CfnArtifactProps
Struct External
Properties for defining a CfnArtifact.
| 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 cfnArtifactProps: sagemaker.CfnArtifactProps = {
artifactType: 'artifactType',
source: {
sourceUri: 'sourceUri',
// the properties below are optional
sourceTypes: [{
sourceIdType: 'sourceIdType',
value: 'value',
}],
},
// the properties below are optional
artifactName: 'artifactName',
metadataProperties: {
commitId: 'commitId',
generatedBy: 'generatedBy',
projectId: 'projectId',
repository: 'repository',
},
properties: {
propertiesKey: 'properties',
},
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_artifact_props = sagemaker.CfnArtifactProps(
artifact_type="artifactType",
source=sagemaker.CfnArtifact.ArtifactSourceProperty(
source_uri="sourceUri",
# the properties below are optional
source_types=[sagemaker.CfnArtifact.ArtifactSourceTypeProperty(
source_id_type="sourceIdType",
value="value"
)]
),
# the properties below are optional
artifact_name="artifactName",
metadata_properties=sagemaker.CfnArtifact.MetadataPropertiesProperty(
commit_id="commitId",
generated_by="generatedBy",
project_id="projectId",
repository="repository"
),
properties={
"properties_key": "properties"
},
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.*;
CfnArtifactProps cfnArtifactProps = CfnArtifactProps.builder()
.artifactType("artifactType")
.source(ArtifactSourceProperty.builder()
.sourceUri("sourceUri")
// the properties below are optional
.sourceTypes(List.of(ArtifactSourceTypeProperty.builder()
.sourceIdType("sourceIdType")
.value("value")
.build()))
.build())
// the properties below are optional
.artifactName("artifactName")
.metadataProperties(MetadataPropertiesProperty.builder()
.commitId("commitId")
.generatedBy("generatedBy")
.projectId("projectId")
.repository("repository")
.build())
.properties(Map.of(
"propertiesKey", "properties"))
.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 cfnArtifactProps = new CfnArtifactProps {
ArtifactType = "artifactType",
Source = new ArtifactSourceProperty {
SourceUri = "sourceUri",
// the properties below are optional
SourceTypes = new [] { new ArtifactSourceTypeProperty {
SourceIdType = "sourceIdType",
Value = "value"
} }
},
// the properties below are optional
ArtifactName = "artifactName",
MetadataProperties = new MetadataPropertiesProperty {
CommitId = "commitId",
GeneratedBy = "generatedBy",
ProjectId = "projectId",
Repository = "repository"
},
Properties = new Dictionary<string, string> {
{ "propertiesKey", "properties" }
},
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"
cfnArtifactProps := &CfnArtifactProps{
ArtifactType: jsii.String("artifactType"),
Source: &ArtifactSourceProperty{
SourceUri: jsii.String("sourceUri"),
// the properties below are optional
SourceTypes: []interface{}{
&ArtifactSourceTypeProperty{
SourceIdType: jsii.String("sourceIdType"),
Value: jsii.String("value"),
},
},
},
// the properties below are optional
ArtifactName: jsii.String("artifactName"),
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"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
artifactNameoptionalstringartifact_nameoptionalstrartifactNameoptionalStringArtifactNameoptionalstringArtifactNameoptional*string #The name of the artifact.
Must be unique to your account in an AWS Region.
artifactTypestringartifact_typestrartifactTypeStringArtifactTypestringArtifactType*string required #The artifact type.
metadataPropertiesoptionalIResolvable | CfnArtifact.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 artifact.
sourceIResolvable | CfnArtifact.sourcetyping.Union[IResolvable, ArtifactSourceProperty]sourceIResolvableSourceIResolvableSourceinterface{} required #