Interface CfnArtifactProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnArtifactProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:18.386Z")
@Stability(Stable)
public interface CfnArtifactProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnArtifact.
Example:
// 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnArtifactPropsstatic final classAn implementation forCfnArtifactProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnArtifactProps.Builderbuilder()default StringThe name of the artifact.The artifact type.default ObjectReturns union: eitherIResolvableorCfnArtifact.MetadataPropertiesPropertydefault ObjectA list of properties to add to the artifact.Returns union: eitherIResolvableorCfnArtifact.ArtifactSourcePropertygetTags()A list of tags to apply to the artifact.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getArtifactType
The artifact type.- See Also:
-
getSource
Returns union: eitherIResolvableorCfnArtifact.ArtifactSourceProperty- See Also:
-
getArtifactName
The name of the artifact.Must be unique to your account in an AWS Region.
- See Also:
-
getMetadataProperties
Returns union: eitherIResolvableorCfnArtifact.MetadataPropertiesProperty- See Also:
-
getProperties
A list of properties to add to the artifact.Returns union: either
IResolvableor Mapinvalid input: '<'String,String>- See Also:
-
getTags
A list of tags to apply to the artifact.- See Also:
-
builder
- Returns:
- a
CfnArtifactProps.BuilderofCfnArtifactProps
-