Class: AWSCDK::Sagemaker::CfnUserProfile::CodeEditorAppSettingsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnUserProfile::CodeEditorAppSettingsProperty
- Defined in:
- sagemaker/cfn_user_profile.rb
Overview
The Code Editor application settings.
For more information about Code Editor, see Get started with Code Editor in Amazon SageMaker .
Instance Attribute Summary collapse
-
#app_lifecycle_management ⇒ AWSCDK::IResolvable, ...
readonly
Settings that are used to configure and manage the lifecycle of CodeEditor applications.
-
#built_in_lifecycle_config_arn ⇒ String?
readonly
The lifecycle configuration that runs before the default lifecycle configuration.
-
#custom_images ⇒ AWSCDK::IResolvable, ...
readonly
A list of custom SageMaker images that are configured to run as a Code Editor 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 Code Editor app.
-
#lifecycle_config_arns ⇒ Array<String>?
readonly
The Amazon Resource Name (ARN) of the Code Editor application lifecycle configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(app_lifecycle_management: nil, built_in_lifecycle_config_arn: nil, custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ CodeEditorAppSettingsProperty
constructor
A new instance of CodeEditorAppSettingsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(app_lifecycle_management: nil, built_in_lifecycle_config_arn: nil, custom_images: nil, default_resource_spec: nil, lifecycle_config_arns: nil) ⇒ CodeEditorAppSettingsProperty
Returns a new instance of CodeEditorAppSettingsProperty.
626 627 628 629 630 631 632 633 634 635 636 637 |
# File 'sagemaker/cfn_user_profile.rb', line 626 def initialize(app_lifecycle_management: nil, built_in_lifecycle_config_arn: 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? @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)
Settings that are used to configure and manage the lifecycle of CodeEditor applications.
643 644 645 |
# File 'sagemaker/cfn_user_profile.rb', line 643 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.
650 651 652 |
# File 'sagemaker/cfn_user_profile.rb', line 650 def built_in_lifecycle_config_arn @built_in_lifecycle_config_arn end |
#custom_images ⇒ AWSCDK::IResolvable, ... (readonly)
A list of custom SageMaker images that are configured to run as a Code Editor app.
655 656 657 |
# File 'sagemaker/cfn_user_profile.rb', line 655 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 Code Editor app.
660 661 662 |
# File 'sagemaker/cfn_user_profile.rb', line 660 def default_resource_spec @default_resource_spec end |
#lifecycle_config_arns ⇒ Array<String>? (readonly)
The Amazon Resource Name (ARN) of the Code Editor application lifecycle configuration.
665 666 667 |
# File 'sagemaker/cfn_user_profile.rb', line 665 def lifecycle_config_arns @lifecycle_config_arns end |
Class Method Details
.jsii_properties ⇒ Object
667 668 669 670 671 672 673 674 675 |
# File 'sagemaker/cfn_user_profile.rb', line 667 def self.jsii_properties { :app_lifecycle_management => "appLifecycleManagement", :built_in_lifecycle_config_arn => "builtInLifecycleConfigArn", :custom_images => "customImages", :default_resource_spec => "defaultResourceSpec", :lifecycle_config_arns => "lifecycleConfigArns", } end |
Instance Method Details
#to_jsii ⇒ Object
677 678 679 680 681 682 683 684 685 686 687 |
# File 'sagemaker/cfn_user_profile.rb', line 677 def to_jsii result = {} result.merge!({ "appLifecycleManagement" => @app_lifecycle_management, "builtInLifecycleConfigArn" => @built_in_lifecycle_config_arn, "customImages" => @custom_images, "defaultResourceSpec" => @default_resource_spec, "lifecycleConfigArns" => @lifecycle_config_arns, }) result.compact end |