Class CfnArtifact
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnArtifact
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IArtifactRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:18.384Z")
@Stability(Stable)
public class CfnArtifact
extends CfnResource
implements IInspectable, IArtifactRef, ITaggableV2
Resource type definition for AWS::SageMaker::Artifact.
An artifact is a lineage tracking entity that represents a URI addressable object or data, such as an S3 URI of a dataset or the ECR registry path of an image.
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.*;
CfnArtifact cfnArtifact = CfnArtifact.Builder.create(this, "MyCfnArtifact")
.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 TypeClassDescriptionstatic interfaceExample:static interfaceExample:static final classA fluent builder forCfnArtifact.static interfaceExample:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IArtifactRef
IArtifactRef.Jsii$Default, IArtifactRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnArtifact(software.amazon.jsii.JsiiObjectRef objRef) CfnArtifact(software.constructs.Construct scope, String id, CfnArtifactProps props) Create a newAWS::SageMaker::Artifact. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForArtifact(IArtifactRef resource) The name of the artifact.A reference to a Artifact resource.The artifact type.The Amazon Resource Name (ARN) of the artifact.When the artifact was created.When the artifact was last modified.Tag Manager which manages the tags for this resource.Returns union: eitherIResolvableorCfnArtifact.MetadataPropertiesPropertyA list of properties to add to the artifact.Returns union: eitherIResolvableorCfnArtifact.ArtifactSourcePropertygetTags()A list of tags to apply to the artifact.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnArtifact.renderProperties(Map<String, Object> props) voidsetArtifactName(String value) The name of the artifact.voidsetArtifactType(String value) The artifact type.voidsetMetadataProperties(IResolvable value) voidvoidsetProperties(Map<String, String> value) A list of properties to add to the artifact.voidsetProperties(IResolvable value) A list of properties to add to the artifact.voidsetSource(IResolvable value) voidvoidA list of tags to apply to the artifact.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnArtifact
protected CfnArtifact(software.amazon.jsii.JsiiObjectRef objRef) -
CfnArtifact
protected CfnArtifact(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnArtifact
@Stability(Stable) public CfnArtifact(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnArtifactProps props) Create a newAWS::SageMaker::Artifact.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForArtifact
- Parameters:
resource- This parameter is required.
-
isCfnArtifact
Checks whether the given object is a CfnArtifact.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getArtifactRef
A reference to a Artifact resource.- Specified by:
getArtifactRefin interfaceIArtifactRef
-
getAttrArn
The Amazon Resource Name (ARN) of the artifact. -
getAttrCreationTime
When the artifact was created. -
getAttrLastModifiedTime
When the artifact was last modified. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getArtifactType
The artifact type. -
setArtifactType
The artifact type. -
getSource
Returns union: eitherIResolvableorCfnArtifact.ArtifactSourceProperty -
setSource
-
setSource
-
getArtifactName
The name of the artifact. -
setArtifactName
The name of the artifact. -
getMetadataProperties
Returns union: eitherIResolvableorCfnArtifact.MetadataPropertiesProperty -
setMetadataProperties
-
setMetadataProperties
@Stability(Stable) public void setMetadataProperties(@Nullable CfnArtifact.MetadataPropertiesProperty value) -
getProperties
A list of properties to add to the artifact.Returns union: either
IResolvableor Mapinvalid input: '<'String,String> -
setProperties
A list of properties to add to the artifact. -
setProperties
A list of properties to add to the artifact. -
getTags
A list of tags to apply to the artifact. -
setTags
A list of tags to apply to the artifact.
-