Class: AWSCDK::Sagemaker::CfnNotebookInstanceLifecycleConfigProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnNotebookInstanceLifecycleConfigProps
- Defined in:
- sagemaker/cfn_notebook_instance_lifecycle_config_props.rb
Overview
Properties for defining a CfnNotebookInstanceLifecycleConfig.
Instance Attribute Summary collapse
-
#notebook_instance_lifecycle_config_name ⇒ String?
readonly
The name of the lifecycle configuration.
-
#on_create ⇒ AWSCDK::IResolvable, ...
readonly
A shell script that runs only once, when you create a notebook instance.
-
#on_start ⇒ AWSCDK::IResolvable, ...
readonly
A shell script that runs every time you start a notebook instance, including when you create the notebook instance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(notebook_instance_lifecycle_config_name: nil, on_create: nil, on_start: nil) ⇒ CfnNotebookInstanceLifecycleConfigProps
constructor
A new instance of CfnNotebookInstanceLifecycleConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(notebook_instance_lifecycle_config_name: nil, on_create: nil, on_start: nil) ⇒ CfnNotebookInstanceLifecycleConfigProps
Returns a new instance of CfnNotebookInstanceLifecycleConfigProps.
12 13 14 15 16 17 18 19 |
# File 'sagemaker/cfn_notebook_instance_lifecycle_config_props.rb', line 12 def initialize(notebook_instance_lifecycle_config_name: nil, on_create: nil, on_start: nil) @notebook_instance_lifecycle_config_name = notebook_instance_lifecycle_config_name Jsii::Type.check_type(@notebook_instance_lifecycle_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "notebookInstanceLifecycleConfigName") unless @notebook_instance_lifecycle_config_name.nil? @on_create = on_create Jsii::Type.check_type(@on_create, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk5vdGVib29rSW5zdGFuY2VMaWZlY3ljbGVDb25maWcuTm90ZWJvb2tJbnN0YW5jZUxpZmVjeWNsZUhvb2tQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "onCreate") unless @on_create.nil? @on_start = on_start Jsii::Type.check_type(@on_start, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmbk5vdGVib29rSW5zdGFuY2VMaWZlY3ljbGVDb25maWcuTm90ZWJvb2tJbnN0YW5jZUxpZmVjeWNsZUhvb2tQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "onStart") unless @on_start.nil? end |
Instance Attribute Details
#notebook_instance_lifecycle_config_name ⇒ String? (readonly)
The name of the lifecycle configuration.
25 26 27 |
# File 'sagemaker/cfn_notebook_instance_lifecycle_config_props.rb', line 25 def notebook_instance_lifecycle_config_name @notebook_instance_lifecycle_config_name end |
#on_create ⇒ AWSCDK::IResolvable, ... (readonly)
A shell script that runs only once, when you create a notebook instance.
The shell script must be a base64-encoded string.
32 33 34 |
# File 'sagemaker/cfn_notebook_instance_lifecycle_config_props.rb', line 32 def on_create @on_create end |
#on_start ⇒ AWSCDK::IResolvable, ... (readonly)
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.
39 40 41 |
# File 'sagemaker/cfn_notebook_instance_lifecycle_config_props.rb', line 39 def on_start @on_start end |
Class Method Details
.jsii_properties ⇒ Object
41 42 43 44 45 46 47 |
# File 'sagemaker/cfn_notebook_instance_lifecycle_config_props.rb', line 41 def self.jsii_properties { :notebook_instance_lifecycle_config_name => "notebookInstanceLifecycleConfigName", :on_create => "onCreate", :on_start => "onStart", } end |
Instance Method Details
#to_jsii ⇒ Object
49 50 51 52 53 54 55 56 57 |
# File 'sagemaker/cfn_notebook_instance_lifecycle_config_props.rb', line 49 def to_jsii result = {} result.merge!({ "notebookInstanceLifecycleConfigName" => @notebook_instance_lifecycle_config_name, "onCreate" => @on_create, "onStart" => @on_start, }) result.compact end |