CfnActionProps
Struct External
Properties for defining a CfnAction.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnActionProps: sagemaker.CfnActionProps = {
actionName: 'actionName',
actionType: 'actionType',
source: {
sourceUri: 'sourceUri',
// the properties below are optional
sourceId: 'sourceId',
sourceType: 'sourceType',
},
// the properties below are optional
description: 'description',
metadataProperties: {
commitId: 'commitId',
generatedBy: 'generatedBy',
projectId: 'projectId',
repository: 'repository',
},
properties: {
propertiesKey: 'properties',
},
status: 'status',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
cfn_action_props = sagemaker.CfnActionProps(
action_name="actionName",
action_type="actionType",
source=sagemaker.CfnAction.ActionSourceProperty(
source_uri="sourceUri",
# the properties below are optional
source_id="sourceId",
source_type="sourceType"
),
# the properties below are optional
description="description",
metadata_properties=sagemaker.CfnAction.MetadataPropertiesProperty(
commit_id="commitId",
generated_by="generatedBy",
project_id="projectId",
repository="repository"
),
properties={
"properties_key": "properties"
},
status="status",
tags=[CfnTag(
key="key",
value="value"
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnActionProps cfnActionProps = CfnActionProps.builder()
.actionName("actionName")
.actionType("actionType")
.source(ActionSourceProperty.builder()
.sourceUri("sourceUri")
// the properties below are optional
.sourceId("sourceId")
.sourceType("sourceType")
.build())
// the properties below are optional
.description("description")
.metadataProperties(MetadataPropertiesProperty.builder()
.commitId("commitId")
.generatedBy("generatedBy")
.projectId("projectId")
.repository("repository")
.build())
.properties(Map.of(
"propertiesKey", "properties"))
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var cfnActionProps = new CfnActionProps {
ActionName = "actionName",
ActionType = "actionType",
Source = new ActionSourceProperty {
SourceUri = "sourceUri",
// the properties below are optional
SourceId = "sourceId",
SourceType = "sourceType"
},
// the properties below are optional
Description = "description",
MetadataProperties = new MetadataPropertiesProperty {
CommitId = "commitId",
GeneratedBy = "generatedBy",
ProjectId = "projectId",
Repository = "repository"
},
Properties = new Dictionary<string, string> {
{ "propertiesKey", "properties" }
},
Status = "status",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnActionProps := &CfnActionProps{
ActionName: jsii.String("actionName"),
ActionType: jsii.String("actionType"),
Source: &ActionSourceProperty{
SourceUri: jsii.String("sourceUri"),
// the properties below are optional
SourceId: jsii.String("sourceId"),
SourceType: jsii.String("sourceType"),
},
// the properties below are optional
Description: jsii.String("description"),
MetadataProperties: &MetadataPropertiesProperty{
CommitId: jsii.String("commitId"),
GeneratedBy: jsii.String("generatedBy"),
ProjectId: jsii.String("projectId"),
Repository: jsii.String("repository"),
},
Properties: map[string]*string{
"propertiesKey": jsii.String("properties"),
},
Status: jsii.String("status"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
The name of the action.
Must be unique to your account in an AWS Region.
The action type.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #The description of the action.
metadataPropertiesoptionalIResolvable | CfnAction.metadata_propertiesoptionaltyping.Union[IResolvable, MetadataPropertiesProperty]metadataPropertiesoptionalIResolvableMetadataPropertiesoptionalIResolvableMetadataPropertiesoptionalinterface{} #propertiesoptionalIResolvable | { [key: string]: string }propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]propertiesoptionalIResolvablePropertiesoptionalIResolvablePropertiesoptionalinterface{} #A list of properties to add to the action.
sourceIResolvable | CfnAction.ActionSourcePropertysourcetyping.Union[IResolvable, ActionSourceProperty]sourceIResolvableSourceIResolvableSourceinterface{} required #statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string #The status of the action.