CfnNotebookInstanceLifecycleConfigPropsMixin
- class aws_cdk.mixins_preview.aws_sagemaker.mixins.CfnNotebookInstanceLifecycleConfigPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::SageMaker::NotebookInstanceLifecycleConfigresource creates shell scripts that run when you create and/or start a notebook instance.For information about notebook instance lifecycle configurations, see Customize a Notebook Instance in the Amazon SageMaker Developer Guide .
- See:
- CloudformationResource:
AWS::SageMaker::NotebookInstanceLifecycleConfig
- 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_notebook_instance_lifecycle_config_props_mixin = sagemaker_mixins.CfnNotebookInstanceLifecycleConfigPropsMixin(sagemaker_mixins.CfnNotebookInstanceLifecycleConfigMixinProps( notebook_instance_lifecycle_config_name="notebookInstanceLifecycleConfigName", on_create=[sagemaker_mixins.CfnNotebookInstanceLifecycleConfigPropsMixin.NotebookInstanceLifecycleHookProperty( content="content" )], on_start=[sagemaker_mixins.CfnNotebookInstanceLifecycleConfigPropsMixin.NotebookInstanceLifecycleHookProperty( content="content" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::SageMaker::NotebookInstanceLifecycleConfig.- Parameters:
props (
Union[CfnNotebookInstanceLifecycleConfigMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['notebookInstanceLifecycleConfigName', 'onCreate', 'onStart']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
NotebookInstanceLifecycleHookProperty
- class CfnNotebookInstanceLifecycleConfigPropsMixin.NotebookInstanceLifecycleHookProperty(*, content=None)
Bases:
objectSpecifies the notebook instance lifecycle configuration script.
Each lifecycle configuration script has a limit of 16384 characters.
- Parameters:
content (
Optional[str]) – A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.- See:
- 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.aws_sagemaker import mixins as sagemaker_mixins notebook_instance_lifecycle_hook_property = sagemaker_mixins.CfnNotebookInstanceLifecycleConfigPropsMixin.NotebookInstanceLifecycleHookProperty( content="content" )
Attributes
- content
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.