AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::SageMaker::NotebookInstanceLifecycleConfig

CfnNotebookInstanceLifecycleConfig

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](https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html) in the *Amazon SageMaker Developer Guide* .

Import

import { CfnNotebookInstanceLifecycleConfig } from 'aws-cdk-lib/aws-sagemaker';

Or use the module namespace:

import * as sagemaker from 'aws-cdk-lib/aws-sagemaker';
// sagemaker.CfnNotebookInstanceLifecycleConfig

Properties

Configuration passed to the constructor as CfnNotebookInstanceLifecycleConfigProps.

notebookInstanceLifecycleConfigNameOptional
string

The name of the lifecycle configuration.

onCreateOptional
IResolvable | IResolvable | NotebookInstanceLifecycleHookProperty[]

A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.

onStartOptional
IResolvable | IResolvable | NotebookInstanceLifecycleHookProperty[]

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.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter