CfnNotebookInstanceLifecycleConfigProps

class aws_cdk.aws_sagemaker.CfnNotebookInstanceLifecycleConfigProps(*, notebook_instance_lifecycle_config_name=None, on_create=None, on_start=None)

Bases: object

Properties for defining a CfnNotebookInstanceLifecycleConfig.

Parameters:
  • notebook_instance_lifecycle_config_name (Optional[str]) – The name of the lifecycle configuration.

  • on_create (Union[IResolvable, Sequence[Union[IResolvable, NotebookInstanceLifecycleHookProperty, Dict[str, Any]]], None]) – A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.

  • on_start (Union[IResolvable, Sequence[Union[IResolvable, NotebookInstanceLifecycleHookProperty, Dict[str, Any]]], None]) – A shell script that runs every time you start a notebook instance, including when you create the notebook instance. The shell script must be a base64-encoded string.

Link:

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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_sagemaker as sagemaker

cfn_notebook_instance_lifecycle_config_props = sagemaker.CfnNotebookInstanceLifecycleConfigProps(
    notebook_instance_lifecycle_config_name="notebookInstanceLifecycleConfigName",
    on_create=[sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty(
        content="content"
    )],
    on_start=[sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty(
        content="content"
    )]
)

Attributes

notebook_instance_lifecycle_config_name

The name of the lifecycle configuration.

Link:

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

on_create

A shell script that runs only once, when you create a notebook instance.

The shell script must be a base64-encoded string.

Link:

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

on_start

A shell script that runs every time you start a notebook instance, including when you create the notebook instance.

The shell script must be a base64-encoded string.

Link:

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