CfnImageVersionPropsMixin

class aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnImageVersionPropsMixin(props, *, strategy=None)

Bases: Mixin

Creates a version of the SageMaker image specified by ImageName .

The version represents the Amazon Container Registry (ECR) container image specified by BaseImage . .. epigraph:

You can use the ``DependsOn`` attribute to specify that the creation of a specific resource follows another. You can use it for the following use cases. For more information, see ```DependsOn`` attribute <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-dependson.html>`_ .

1. ``DependsOn`` can be used to establish a parent/child relationship between ``ImageVersion`` and ``Image`` where the ``ImageVersion`` ``DependsOn`` the ``Image`` .
2. ``DependsOn`` can be used to establish order among ``ImageVersion`` s within the same ``Image`` namespace. For example, if ImageVersionB ``DependsOn`` ImageVersionA and both share the same parent ``Image`` , then ImageVersionA is version N and ImageVersionB is N+1.
See:

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

CloudformationResource:

AWS::SageMaker::ImageVersion

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_sagemaker import mixins as sagemaker_mixins

cfn_image_version_props_mixin = sagemaker_mixins.CfnImageVersionPropsMixin(sagemaker_mixins.CfnImageVersionMixinProps(
    alias="alias",
    aliases=["aliases"],
    base_image="baseImage",
    horovod=False,
    image_name="imageName",
    job_type="jobType",
    ml_framework="mlFramework",
    processor="processor",
    programming_lang="programmingLang",
    release_notes="releaseNotes",
    vendor_guidance="vendorGuidance"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::SageMaker::ImageVersion.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['alias', 'aliases', 'baseImage', 'horovod', 'imageName', 'jobType', 'mlFramework', 'processor', 'programmingLang', 'releaseNotes', 'vendorGuidance']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental