CfnArtifactProps

class aws_cdk.aws_sagemaker.CfnArtifactProps(*, artifact_type, source, artifact_name=None, metadata_properties=None, properties=None, tags=None)

Bases: object

Properties for defining a CfnArtifact.

Parameters:
  • artifact_type (str) – The artifact type.

  • source (Union[IResolvable, ArtifactSourceProperty, Dict[str, Any]])

  • artifact_name (Optional[str]) – The name of the artifact. Must be unique to your account in an AWS Region.

  • metadata_properties (Union[IResolvable, MetadataPropertiesProperty, Dict[str, Any], None])

  • properties (Union[IResolvable, Mapping[str, str], None]) – A list of properties to add to the artifact.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A list of tags to apply to the artifact.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html

ExampleMetadata:

fixture=_generated

Example:

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"
    )]
)

Attributes

artifact_name

The name of the artifact.

Must be unique to your account in an AWS Region.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html#cfn-sagemaker-artifact-artifactname

artifact_type

The artifact type.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html#cfn-sagemaker-artifact-artifacttype

metadata_properties

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html#cfn-sagemaker-artifact-metadataproperties

Type:

see

properties

A list of properties to add to the artifact.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html#cfn-sagemaker-artifact-properties

source

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html#cfn-sagemaker-artifact-source

Type:

see

tags

A list of tags to apply to the artifact.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-artifact.html#cfn-sagemaker-artifact-tags