All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.sagemaker.inputs.NotebookInstanceLifecycleConfigurationState Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.sagemaker.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class NotebookInstanceLifecycleConfigurationState extends com.pulumi.resources.ResourceArgs {

    public static final NotebookInstanceLifecycleConfigurationState Empty = new NotebookInstanceLifecycleConfigurationState();

    /**
     * The Amazon Resource Name (ARN) assigned by AWS to this lifecycle configuration.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The Amazon Resource Name (ARN) assigned by AWS to this lifecycle configuration.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The name of the lifecycle configuration (must be unique). If omitted, this provider will assign a random, unique name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the lifecycle configuration (must be unique). If omitted, this provider will assign a random, unique name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created.
     * 
     */
    @Import(name="onCreate")
    private @Nullable Output onCreate;

    /**
     * @return A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created.
     * 
     */
    public Optional> onCreate() {
        return Optional.ofNullable(this.onCreate);
    }

    /**
     * A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created.
     * 
     */
    @Import(name="onStart")
    private @Nullable Output onStart;

    /**
     * @return A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created.
     * 
     */
    public Optional> onStart() {
        return Optional.ofNullable(this.onStart);
    }

    private NotebookInstanceLifecycleConfigurationState() {}

    private NotebookInstanceLifecycleConfigurationState(NotebookInstanceLifecycleConfigurationState $) {
        this.arn = $.arn;
        this.name = $.name;
        this.onCreate = $.onCreate;
        this.onStart = $.onStart;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(NotebookInstanceLifecycleConfigurationState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private NotebookInstanceLifecycleConfigurationState $;

        public Builder() {
            $ = new NotebookInstanceLifecycleConfigurationState();
        }

        public Builder(NotebookInstanceLifecycleConfigurationState defaults) {
            $ = new NotebookInstanceLifecycleConfigurationState(Objects.requireNonNull(defaults));
        }

        /**
         * @param arn The Amazon Resource Name (ARN) assigned by AWS to this lifecycle configuration.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The Amazon Resource Name (ARN) assigned by AWS to this lifecycle configuration.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param name The name of the lifecycle configuration (must be unique). If omitted, this provider will assign a random, unique name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the lifecycle configuration (must be unique). If omitted, this provider will assign a random, unique name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param onCreate A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created.
         * 
         * @return builder
         * 
         */
        public Builder onCreate(@Nullable Output onCreate) {
            $.onCreate = onCreate;
            return this;
        }

        /**
         * @param onCreate A shell script (base64-encoded) that runs only once when the SageMaker Notebook Instance is created.
         * 
         * @return builder
         * 
         */
        public Builder onCreate(String onCreate) {
            return onCreate(Output.of(onCreate));
        }

        /**
         * @param onStart A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created.
         * 
         * @return builder
         * 
         */
        public Builder onStart(@Nullable Output onStart) {
            $.onStart = onStart;
            return this;
        }

        /**
         * @param onStart A shell script (base64-encoded) that runs every time the SageMaker Notebook Instance is started including the time it's created.
         * 
         * @return builder
         * 
         */
        public Builder onStart(String onStart) {
            return onStart(Output.of(onStart));
        }

        public NotebookInstanceLifecycleConfigurationState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy