CfnActionProps
- class aws_cdk.aws_sagemaker.CfnActionProps(*, action_name, action_type, source, description=None, metadata_properties=None, properties=None, status=None, tags=None)
Bases:
objectProperties for defining a
CfnAction.- Parameters:
action_name (
str) – The name of the action. Must be unique to your account in an AWS Region.action_type (
str) – The action type.source (
Union[IResolvable,ActionSourceProperty,Dict[str,Any]])description (
Optional[str]) – The description of the action.metadata_properties (
Union[IResolvable,MetadataPropertiesProperty,Dict[str,Any],None])properties (
Union[IResolvable,Mapping[str,str],None]) – A list of properties to add to the action.status (
Optional[str]) – The status of the action.tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – A list of tags to apply to the action.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-action.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_action_props = sagemaker.CfnActionProps( action_name="actionName", action_type="actionType", source=sagemaker.CfnAction.ActionSourceProperty( source_uri="sourceUri", # the properties below are optional source_id="sourceId", source_type="sourceType" ), # the properties below are optional description="description", metadata_properties=sagemaker.CfnAction.MetadataPropertiesProperty( commit_id="commitId", generated_by="generatedBy", project_id="projectId", repository="repository" ), properties={ "properties_key": "properties" }, status="status", tags=[CfnTag( key="key", value="value" )] )
Attributes
- action_name
The name of the action.
Must be unique to your account in an AWS Region.
- action_type
The action type.
- description
The description of the action.
- metadata_properties
-
- Type:
see
- properties
A list of properties to add to the action.
- source
-
- Type:
see
- status
The status of the action.
- tags
A list of tags to apply to the action.