CfnActionPropsMixin

class aws_cdk.cfn_property_mixins.aws_sagemaker.CfnActionPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource type definition for AWS::SageMaker::Action.

An action is a lineage tracking entity that represents an action or activity, such as a model deployment or an HPO job.

See:

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

CloudformationResource:

AWS::SageMaker::Action

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.cfn_property_mixins import aws_sagemaker as sagemaker
import aws_cdk as cdk

# merge_strategy: cdk.IMergeStrategy

cfn_action_props_mixin = sagemaker.CfnActionPropsMixin(sagemaker.CfnActionMixinProps(
    action_name="actionName",
    action_type="actionType",
    description="description",
    metadata_properties=sagemaker.CfnActionPropsMixin.MetadataPropertiesProperty(
        commit_id="commitId",
        generated_by="generatedBy",
        project_id="projectId",
        repository="repository"
    ),
    properties={
        "properties_key": "properties"
    },
    source=sagemaker.CfnActionPropsMixin.ActionSourceProperty(
        source_id="sourceId",
        source_type="sourceType",
        source_uri="sourceUri"
    ),
    status="status",
    tags=[cdk.CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=merge_strategy
)

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

Parameters:
  • props (Union[CfnActionMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

None

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['actionName', 'actionType', 'description', 'metadataProperties', 'properties', 'source', 'status', 'tags']

Static Methods

classmethod is_mixin(x)

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.

ActionSourceProperty

class CfnActionPropsMixin.ActionSourceProperty(*, source_id=None, source_type=None, source_uri=None)

Bases: object

Parameters:
  • source_id (Optional[str]) – The ID of the source.

  • source_type (Optional[str]) – The type of the source.

  • source_uri (Optional[str]) – The URI of the source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-actionsource.html

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.cfn_property_mixins import aws_sagemaker as sagemaker

action_source_property = sagemaker.CfnActionPropsMixin.ActionSourceProperty(
    source_id="sourceId",
    source_type="sourceType",
    source_uri="sourceUri"
)

Attributes

source_id

The ID of the source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-actionsource.html#cfn-sagemaker-action-actionsource-sourceid

source_type

The type of the source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-actionsource.html#cfn-sagemaker-action-actionsource-sourcetype

source_uri

The URI of the source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-actionsource.html#cfn-sagemaker-action-actionsource-sourceuri

MetadataPropertiesProperty

class CfnActionPropsMixin.MetadataPropertiesProperty(*, commit_id=None, generated_by=None, project_id=None, repository=None)

Bases: object

Parameters:
  • commit_id (Optional[str]) – The commit ID.

  • generated_by (Optional[str]) – The entity this entity was generated by.

  • project_id (Optional[str]) – The project ID.

  • repository (Optional[str]) – The repository.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-metadataproperties.html

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.cfn_property_mixins import aws_sagemaker as sagemaker

metadata_properties_property = sagemaker.CfnActionPropsMixin.MetadataPropertiesProperty(
    commit_id="commitId",
    generated_by="generatedBy",
    project_id="projectId",
    repository="repository"
)

Attributes

commit_id

The commit ID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-metadataproperties.html#cfn-sagemaker-action-metadataproperties-commitid

generated_by

The entity this entity was generated by.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-metadataproperties.html#cfn-sagemaker-action-metadataproperties-generatedby

project_id

The project ID.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-metadataproperties.html#cfn-sagemaker-action-metadataproperties-projectid

repository

The repository.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-action-metadataproperties.html#cfn-sagemaker-action-metadataproperties-repository