CfnNotebookInstanceLifecycleConfigPropsMixin

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

Bases: Mixin

The AWS::SageMaker::NotebookInstanceLifecycleConfig resource 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:

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

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:

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 = ['notebookInstanceLifecycleConfigName', 'onCreate', 'onStart']

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

NotebookInstanceLifecycleHookProperty

class CfnNotebookInstanceLifecycleConfigPropsMixin.NotebookInstanceLifecycleHookProperty(*, content=None)

Bases: object

Specifies 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.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.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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook.html#cfn-sagemaker-notebookinstancelifecycleconfig-notebookinstancelifecyclehook-content