# CfnNotebookInstanceLifecycleConfigProps

Properties for defining a `CfnNotebookInstanceLifecycleConfig`.

Extends: CfnNotebookInstanceLifecycleConfigProps
Used as props by: CfnNotebookInstanceLifecycleConfig

- Source: Generated code
- Type last changed: v2.272.0 · 30 Sep 2026

## 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

- `notebookInstanceLifecycleConfigName`: string — The name of the lifecycle configuration.

- `onCreate`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty.html)[] — A shell script that runs only once, when you create a notebook instance.

  The shell script must be a base64-encoded string.

- `onStart`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty.html)[] — 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.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.
