1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. sagemaker
  6. NotebookInstanceLifecycleConfig

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi

    Resource Type definition for AWS::SageMaker::NotebookInstanceLifecycleConfig

    Create NotebookInstanceLifecycleConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NotebookInstanceLifecycleConfig(name: string, args?: NotebookInstanceLifecycleConfigArgs, opts?: CustomResourceOptions);
    @overload
    def NotebookInstanceLifecycleConfig(resource_name: str,
                                        args: Optional[NotebookInstanceLifecycleConfigArgs] = None,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def NotebookInstanceLifecycleConfig(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        notebook_instance_lifecycle_config_name: Optional[str] = None,
                                        on_create: Optional[Sequence[NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs]] = None,
                                        on_start: Optional[Sequence[NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs]] = None,
                                        tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewNotebookInstanceLifecycleConfig(ctx *Context, name string, args *NotebookInstanceLifecycleConfigArgs, opts ...ResourceOption) (*NotebookInstanceLifecycleConfig, error)
    public NotebookInstanceLifecycleConfig(string name, NotebookInstanceLifecycleConfigArgs? args = null, CustomResourceOptions? opts = null)
    public NotebookInstanceLifecycleConfig(String name, NotebookInstanceLifecycleConfigArgs args)
    public NotebookInstanceLifecycleConfig(String name, NotebookInstanceLifecycleConfigArgs args, CustomResourceOptions options)
    
    type: aws-native:sagemaker:NotebookInstanceLifecycleConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_sagemaker_notebook_instance_lifecycle_config" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args NotebookInstanceLifecycleConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NotebookInstanceLifecycleConfigArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NotebookInstanceLifecycleConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotebookInstanceLifecycleConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotebookInstanceLifecycleConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    NotebookInstanceLifecycleConfig Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NotebookInstanceLifecycleConfig resource accepts the following input properties:

    NotebookInstanceLifecycleConfigName string
    The name of the lifecycle configuration.
    OnCreate List<Pulumi.AwsNative.SageMaker.Inputs.NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook>
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    OnStart List<Pulumi.AwsNative.SageMaker.Inputs.NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook>
    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 List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to this resource.
    NotebookInstanceLifecycleConfigName string
    The name of the lifecycle configuration.
    OnCreate []NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    OnStart []NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs
    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 TagArgs
    An array of key-value pairs to apply to this resource.
    notebook_instance_lifecycle_config_name string
    The name of the lifecycle configuration.
    on_create list(object)
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    on_start list(object)
    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 list(object)
    An array of key-value pairs to apply to this resource.
    notebookInstanceLifecycleConfigName String
    The name of the lifecycle configuration.
    onCreate List<NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook>
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    onStart List<NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook>
    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 List<Tag>
    An array of key-value pairs to apply to this resource.
    notebookInstanceLifecycleConfigName string
    The name of the lifecycle configuration.
    onCreate NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook[]
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    onStart NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook[]
    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 Tag[]
    An array of key-value pairs to apply to this resource.
    notebook_instance_lifecycle_config_name str
    The name of the lifecycle configuration.
    on_create Sequence[NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs]
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    on_start Sequence[NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs]
    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 Sequence[TagArgs]
    An array of key-value pairs to apply to this resource.
    notebookInstanceLifecycleConfigName String
    The name of the lifecycle configuration.
    onCreate List<Property Map>
    A shell script that runs only once, when you create a notebook instance. The shell script must be a base64-encoded string.
    onStart List<Property Map>
    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 List<Property Map>
    An array of key-value pairs to apply to this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NotebookInstanceLifecycleConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    NotebookInstanceLifecycleConfigArn string
    The Amazon Resource Name (ARN) of the lifecycle configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    NotebookInstanceLifecycleConfigArn string
    The Amazon Resource Name (ARN) of the lifecycle configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    notebook_instance_lifecycle_config_arn string
    The Amazon Resource Name (ARN) of the lifecycle configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    notebookInstanceLifecycleConfigArn String
    The Amazon Resource Name (ARN) of the lifecycle configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    notebookInstanceLifecycleConfigArn string
    The Amazon Resource Name (ARN) of the lifecycle configuration.
    id str
    The provider-assigned unique ID for this managed resource.
    notebook_instance_lifecycle_config_arn str
    The Amazon Resource Name (ARN) of the lifecycle configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    notebookInstanceLifecycleConfigArn String
    The Amazon Resource Name (ARN) of the lifecycle configuration.

    Supporting Types

    NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHook, NotebookInstanceLifecycleConfigNotebookInstanceLifecycleHookArgs

    Specifies the notebook instance lifecycle configuration script. Each lifecycle configuration script has a limit of 16384 characters.
    Content string
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
    Content string
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
    content string
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
    content String
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
    content string
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
    content str
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.
    content String
    A base64-encoded string that contains a shell script for a notebook instance lifecycle configuration.

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.81.0
    published on Monday, Sep 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial