aws-cdk-lib.aws_sagemaker.CfnNotebookInstanceLifecycleConfigProps

interface CfnNotebookInstanceLifecycleConfigProps

LanguageType name
.NETAmazon.CDK.AWS.Sagemaker.CfnNotebookInstanceLifecycleConfigProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnNotebookInstanceLifecycleConfigProps
Javasoftware.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfigProps
Pythonaws_cdk.aws_sagemaker.CfnNotebookInstanceLifecycleConfigProps
TypeScript aws-cdk-lib » aws_sagemaker » CfnNotebookInstanceLifecycleConfigProps

Properties for defining a CfnNotebookInstanceLifecycleConfig.

Example

// 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',
  }],
};

Properties

NameTypeDescription
notebookInstanceLifecycleConfigName?stringThe name of the lifecycle configuration.
onCreate?IResolvable | IResolvable | NotebookInstanceLifecycleHookProperty[]A shell script that runs only once, when you create a notebook instance.
onStart?IResolvable | IResolvable | NotebookInstanceLifecycleHookProperty[]A shell script that runs every time you start a notebook instance, including when you create the notebook instance.

notebookInstanceLifecycleConfigName?

Type: string (optional)

The name of the lifecycle configuration.


onCreate?

Type: IResolvable | IResolvable | NotebookInstanceLifecycleHookProperty[] (optional)

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

The shell script must be a base64-encoded string.


onStart?

Type: IResolvable | IResolvable | NotebookInstanceLifecycleHookProperty[] (optional)

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.