Skip to content
v2.277.0

NotebookInstanceLifecycleHookProperty Struct ​

Specifies the notebook instance lifecycle configuration script.

Each lifecycle configuration script has a limit of 16384 characters.

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 notebookInstanceLifecycleHookProperty: sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty = {
  content: 'content',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

notebook_instance_lifecycle_hook_property = sagemaker.CfnNotebookInstanceLifecycleConfig.NotebookInstanceLifecycleHookProperty(
    content="content"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

NotebookInstanceLifecycleHookProperty notebookInstanceLifecycleHookProperty = NotebookInstanceLifecycleHookProperty.builder()
        .content("content")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var notebookInstanceLifecycleHookProperty = new NotebookInstanceLifecycleHookProperty {
    Content = "content"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

notebookInstanceLifecycleHookProperty := &NotebookInstanceLifecycleHookProperty{
	Content: jsii.String("content"),
}

Properties ​

contentoptionalstringcontentoptionalstrcontentoptionalStringContentoptionalstringContentoptional*string #
A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.