CfnContextProps
- class aws_cdk.aws_sagemaker.CfnContextProps(*, context_name, context_type, source, description=None, properties=None, tags=None)
Bases:
objectProperties for defining a
CfnContext.- Parameters:
context_name (
str) – The name of the context. Must be unique to your account in an AWS Region.context_type (
str) – The context type.source (
Union[IResolvable,SourceProperty,Dict[str,Any]]) – The source type, ID, and URI.description (
Optional[str]) – The description of the context.properties (
Union[IResolvable,Mapping[str,str],None]) – A list of properties to add to the context.tags (
Optional[Sequence[Union[TagsItemsProperty,Dict[str,Any]]]]) – A list of tags to apply to the context.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-context.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 import aws_sagemaker as sagemaker cfn_context_props = sagemaker.CfnContextProps( context_name="contextName", context_type="contextType", source=sagemaker.CfnContext.SourceProperty( source_uri="sourceUri", # the properties below are optional source_id="sourceId", source_type="sourceType" ), # the properties below are optional description="description", properties={ "properties_key": "properties" }, tags=[sagemaker.CfnContext.TagsItemsProperty( key="key", value="value" )] )
Attributes
- context_name
The name of the context.
Must be unique to your account in an AWS Region.
- context_type
The context type.
- description
The description of the context.
- properties
A list of properties to add to the context.
- source
The source type, ID, and URI.
- tags
A list of tags to apply to the context.