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>
A fluent builder for
CfnNotebookInstanceLifecycleConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()notebookInstanceLifecycleConfigName(String notebookInstanceLifecycleConfigName) The name of the lifecycle configuration.A shell script that runs only once, when you create a notebook instance.onCreate(IResolvable onCreate) A shell script that runs only once, when you create a notebook instance.A shell script that runs every time you start a notebook instance, including when you create the notebook instance.onStart(IResolvable onStart) A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
-
Method Details
-
create
@Stability(Stable) public static CfnNotebookInstanceLifecycleConfig.Builder create(Construct scope, String id) - Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- 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
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
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
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNotebookInstanceLifecycleConfig>- Returns:
- a newly built instance of
CfnNotebookInstanceLifecycleConfig.
-