Class CfnNotebookInstanceLifecycleConfig

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnNotebookInstanceLifecycleConfig
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:09.501Z") @Stability(Stable) public class CfnNotebookInstanceLifecycleConfig extends CfnResource implements IInspectable
The AWS::SageMaker::NotebookInstanceLifecycleConfig resource creates shell scripts that run when you create and/or start a notebook instance.

For information about notebook instance lifecycle configurations, see Customize a Notebook Instance in the Amazon SageMaker Developer Guide .

Example:

 // 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.*;
 CfnNotebookInstanceLifecycleConfig cfnNotebookInstanceLifecycleConfig = CfnNotebookInstanceLifecycleConfig.Builder.create(this, "MyCfnNotebookInstanceLifecycleConfig")
         .notebookInstanceLifecycleConfigName("notebookInstanceLifecycleConfigName")
         .onCreate(List.of(NotebookInstanceLifecycleHookProperty.builder()
                 .content("content")
                 .build()))
         .onStart(List.of(NotebookInstanceLifecycleHookProperty.builder()
                 .content("content")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnNotebookInstanceLifecycleConfig

      protected CfnNotebookInstanceLifecycleConfig(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnNotebookInstanceLifecycleConfig

      protected CfnNotebookInstanceLifecycleConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnNotebookInstanceLifecycleConfig

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnNotebookInstanceLifecycleConfigProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnNotebookInstanceLifecycleConfig

      @Stability(Stable) public CfnNotebookInstanceLifecycleConfig(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getAttrNotebookInstanceLifecycleConfigName

      @Stability(Stable) @NotNull public String getAttrNotebookInstanceLifecycleConfigName()
      The name of the lifecycle configuration, such as MyLifecycleConfig .
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getNotebookInstanceLifecycleConfigName

      @Stability(Stable) @Nullable public String getNotebookInstanceLifecycleConfigName()
      The name of the lifecycle configuration.
    • setNotebookInstanceLifecycleConfigName

      @Stability(Stable) public void setNotebookInstanceLifecycleConfigName(@Nullable String value)
      The name of the lifecycle configuration.
    • getOnCreate

      @Stability(Stable) @Nullable public Object getOnCreate()
      A shell script that runs only once, when you create a notebook instance.
    • setOnCreate

      @Stability(Stable) public void setOnCreate(@Nullable IResolvable value)
      A shell script that runs only once, when you create a notebook instance.
    • setOnCreate

      @Stability(Stable) public void setOnCreate(@Nullable List<Object> value)
      A shell script that runs only once, when you create a notebook instance.
    • getOnStart

      @Stability(Stable) @Nullable public Object getOnStart()
      A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
    • setOnStart

      @Stability(Stable) public void setOnStart(@Nullable IResolvable value)
      A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
    • setOnStart

      @Stability(Stable) public void setOnStart(@Nullable List<Object> value)
      A shell script that runs every time you start a notebook instance, including when you create the notebook instance.