Skip to content
v2.273.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 ​

notebookInstanceLifecycleConfigNamestringnotebook_instance_lifecycle_config_namestrnotebookInstanceLifecycleConfigNameStringNotebookInstanceLifecycleConfigNamestringNotebookInstanceLifecycleConfigName*string#
The name of the lifecycle configuration.
A shell script that runs only once, when you create a notebook instance.

The shell script must be a base64-encoded string.

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.

tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
An array of key-value pairs to apply to this resource.

Used as props by ​