Skip to content
v2.274.0

CfnNotebookInstanceLifecycleConfigProps Struct ​

Properties for defining a CfnNotebookInstanceLifecycleConfig.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnNotebookInstanceLifecycleConfigProps: sagemaker.CfnNotebookInstanceLifecycleConfigProps = {
  notebookInstanceLifecycleConfigName: 'notebookInstanceLifecycleConfigName',
  onCreate: [{
    content: 'content',
  }],
  onStart: [{
    content: 'content',
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

notebookInstanceLifecycleConfigNameoptionalstringnotebook_instance_lifecycle_config_nameoptionalstrnotebookInstanceLifecycleConfigNameoptionalStringNotebookInstanceLifecycleConfigNameoptionalstringNotebookInstanceLifecycleConfigNameoptional*string#
The name of the lifecycle configuration.
onCreateoptionalIResolvable | IResolvable | CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty[]on_createoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NotebookInstanceLifecycleHookProperty]]]onCreateoptionalIResolvableOnCreateoptionalIResolvableOnCreateoptionalinterface{}#
A shell script that runs only once, when you create a notebook instance.

The shell script must be a base64-encoded string.

onStartoptionalIResolvable | IResolvable | CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty[]on_startoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, NotebookInstanceLifecycleHookProperty]]]onStartoptionalIResolvableOnStartoptionalIResolvableOnStartoptionalinterface{}#
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.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
An array of key-value pairs to apply to this resource.