Class CfnNotebookInstanceLifecycleConfig.Builder

java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfig.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfig>
Enclosing class:
CfnNotebookInstanceLifecycleConfig

@Stability(Stable) public static final class CfnNotebookInstanceLifecycleConfig.Builder extends Object implements software.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfig>
  • Method Details

    • create

      @Stability(Stable) public static CfnNotebookInstanceLifecycleConfig.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnNotebookInstanceLifecycleConfig.Builder.
    • notebookInstanceLifecycleConfigName

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig.Builder notebookInstanceLifecycleConfigName(String notebookInstanceLifecycleConfigName)
      The name of the lifecycle configuration.

      Parameters:
      notebookInstanceLifecycleConfigName - The name of the lifecycle configuration. This parameter is required.
      Returns:
      this
    • onCreate

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig.Builder onCreate(IResolvable onCreate)
      A shell script that runs only once, when you create a notebook instance.

      The shell script must be a base64-encoded string.

      Parameters:
      onCreate - A shell script that runs only once, when you create a notebook instance. This parameter is required.
      Returns:
      this
    • onCreate

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig.Builder onCreate(List<? extends Object> onCreate)
      A shell script that runs only once, when you create a notebook instance.

      The shell script must be a base64-encoded string.

      Parameters:
      onCreate - A shell script that runs only once, when you create a notebook instance. This parameter is required.
      Returns:
      this
    • onStart

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig.Builder onStart(IResolvable onStart)
      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.

      Parameters:
      onStart - A shell script that runs every time you start a notebook instance, including when you create the notebook instance. This parameter is required.
      Returns:
      this
    • onStart

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig.Builder onStart(List<? extends Object> onStart)
      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.

      Parameters:
      onStart - A shell script that runs every time you start a notebook instance, including when you create the notebook instance. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfig>
      Returns:
      a newly built instance of CfnNotebookInstanceLifecycleConfig.