Class: AWSCDK::Sagemaker::CfnUserProfile::JupyterLabAppSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnUserProfile::JupyterLabAppSettingsProperty
- Defined in:
- sagemaker/cfn_user_profile.rb
Overview
The settings for the JupyterLab application.
Instance Attribute Summary collapse
-
#app_lifecycle_management ⇒ AWSCDK::IResolvable, ...
readonly
Indicates whether idle shutdown is activated for JupyterLab applications.
-
#built_in_lifecycle_config_arn ⇒ String?
readonly
The lifecycle configuration that runs before the default lifecycle configuration.
-
#code_repositories ⇒ AWSCDK::IResolvable, ...
readonly
A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
-
#custom_images ⇒ AWSCDK::IResolvable, ...
readonly
A list of custom SageMaker images that are configured to run as a JupyterLab app.
-
#default_resource_spec ⇒ AWSCDK::IResolvable, ...
readonly
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the JupyterLab app.
-
#lifecycle_config_arns ⇒ Array<String>?
readonly
The Amazon Resource Name (ARN) of the lifecycle configurations attached to the user profile or domain.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(app_lifecycle_management: nil, built_in_lifecycle_config_arn: nil, code_repositories: nil, custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ JupyterLabAppSettingsProperty
constructor
A new instance of JupyterLabAppSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(app_lifecycle_management: nil, built_in_lifecycle_config_arn: nil, code_repositories: nil, custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ JupyterLabAppSettingsProperty
Returns a new instance of JupyterLabAppSettingsProperty.
1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 |
# File 'sagemaker/cfn_user_profile.rb', line 1164 def initialize(app_lifecycle_management: nil, built_in_lifecycle_config_arn: nil, code_repositories: nil, custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) @app_lifecycle_management = app_lifecycle_management.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnUserProfile::AppLifecycleManagementProperty.new(**app_lifecycle_management.transform_keys(&:to_sym)) : app_lifecycle_management Jsii::Type.check_type(@app_lifecycle_management, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuVXNlclByb2ZpbGUuQXBwTGlmZWN5Y2xlTWFuYWdlbWVudFByb3BlcnR5In1dfX0=")), "appLifecycleManagement") unless @app_lifecycle_management.nil? @built_in_lifecycle_config_arn = built_in_lifecycle_config_arn Jsii::Type.check_type(@built_in_lifecycle_config_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "builtInLifecycleConfigArn") unless @built_in_lifecycle_config_arn.nil? @code_repositories = code_repositories Jsii::Type.check_type(@code_repositories, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmblVzZXJQcm9maWxlLkNvZGVSZXBvc2l0b3J5UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "codeRepositories") unless @code_repositories.nil? @custom_images = custom_images Jsii::Type.check_type(@custom_images, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2FnZW1ha2VyLkNmblVzZXJQcm9maWxlLkN1c3RvbUltYWdlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "customImages") unless @custom_images.nil? @default_resource_spec = default_resource_spec.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnUserProfile::ResourceSpecProperty.new(**default_resource_spec.transform_keys(&:to_sym)) : default_resource_spec Jsii::Type.check_type(@default_resource_spec, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuVXNlclByb2ZpbGUuUmVzb3VyY2VTcGVjUHJvcGVydHkifV19fQ==")), "defaultResourceSpec") unless @default_resource_spec.nil? @lifecycle_config_arns = lifecycle_config_arns Jsii::Type.check_type(@lifecycle_config_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "lifecycleConfigArns") unless @lifecycle_config_arns.nil? end |
Instance Attribute Details
#app_lifecycle_management ⇒ AWSCDK::IResolvable, ... (readonly)
Indicates whether idle shutdown is activated for JupyterLab applications.
1183 1184 1185 |
# File 'sagemaker/cfn_user_profile.rb', line 1183 def app_lifecycle_management @app_lifecycle_management end |
#built_in_lifecycle_config_arn ⇒ String? (readonly)
The lifecycle configuration that runs before the default lifecycle configuration.
It can override changes made in the default lifecycle configuration.
1190 1191 1192 |
# File 'sagemaker/cfn_user_profile.rb', line 1190 def built_in_lifecycle_config_arn @built_in_lifecycle_config_arn end |
#code_repositories ⇒ AWSCDK::IResolvable, ... (readonly)
A list of Git repositories that SageMaker automatically displays to users for cloning in the JupyterLab application.
1195 1196 1197 |
# File 'sagemaker/cfn_user_profile.rb', line 1195 def code_repositories @code_repositories end |
#custom_images ⇒ AWSCDK::IResolvable, ... (readonly)
A list of custom SageMaker images that are configured to run as a JupyterLab app.
1200 1201 1202 |
# File 'sagemaker/cfn_user_profile.rb', line 1200 def custom_images @custom_images end |
#default_resource_spec ⇒ AWSCDK::IResolvable, ... (readonly)
The default instance type and the Amazon Resource Name (ARN) of the default SageMaker image used by the JupyterLab app.
1205 1206 1207 |
# File 'sagemaker/cfn_user_profile.rb', line 1205 def default_resource_spec @default_resource_spec end |
#lifecycle_config_arns ⇒ Array<String>? (readonly)
The Amazon Resource Name (ARN) of the lifecycle configurations attached to the user profile or domain.
To remove a lifecycle config, you must set LifecycleConfigArns to an empty list.
1212 1213 1214 |
# File 'sagemaker/cfn_user_profile.rb', line 1212 def lifecycle_config_arns @lifecycle_config_arns end |
Class Method Details
.jsii_properties ⇒ Object
1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 |
# File 'sagemaker/cfn_user_profile.rb', line 1214 def self.jsii_properties { :app_lifecycle_management => "appLifecycleManagement", :built_in_lifecycle_config_arn => "builtInLifecycleConfigArn", :code_repositories => "codeRepositories", :custom_images => "customImages", :default_resource_spec => "defaultResourceSpec", :lifecycle_config_arns => "lifecycleConfigArns", } end |
Instance Method Details
#to_jsii ⇒ Object
1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'sagemaker/cfn_user_profile.rb', line 1225 def to_jsii result = {} result.merge!({ "appLifecycleManagement" => @app_lifecycle_management, "builtInLifecycleConfigArn" => @built_in_lifecycle_config_arn, "codeRepositories" => @code_repositories, "customImages" => @custom_images, "defaultResourceSpec" => @default_resource_spec, "lifecycleConfigArns" => @lifecycle_config_arns, }) result.compact end |