Class: AWSCDK::Sagemaker::CfnAppImageConfigProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnAppImageConfigProps
- Defined in:
- sagemaker/cfn_app_image_config_props.rb
Overview
Properties for defining a CfnAppImageConfig.
Instance Attribute Summary collapse
-
#app_image_config_name ⇒ String
readonly
The name of the AppImageConfig.
-
#code_editor_app_image_config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for the file system and the runtime, such as the environment variables and entry point.
-
#jupyter_lab_app_image_config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for the file system and the runtime, such as the environment variables and entry point.
-
#kernel_gateway_image_config ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for the file system and kernels in the SageMaker AI image.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(app_image_config_name:, code_editor_app_image_config: nil, jupyter_lab_app_image_config: nil, kernel_gateway_image_config: nil, tags: nil) ⇒ CfnAppImageConfigProps
constructor
A new instance of CfnAppImageConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(app_image_config_name:, code_editor_app_image_config: nil, jupyter_lab_app_image_config: nil, kernel_gateway_image_config: nil, tags: nil) ⇒ CfnAppImageConfigProps
Returns a new instance of CfnAppImageConfigProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 14 def initialize(app_image_config_name:, code_editor_app_image_config: nil, jupyter_lab_app_image_config: nil, kernel_gateway_image_config: nil, tags: nil) @app_image_config_name = app_image_config_name Jsii::Type.check_type(@app_image_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appImageConfigName") @code_editor_app_image_config = code_editor_app_image_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnAppImageConfig::CodeEditorAppImageConfigProperty.new(**code_editor_app_image_config.transform_keys(&:to_sym)) : code_editor_app_image_config Jsii::Type.check_type(@code_editor_app_image_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQXBwSW1hZ2VDb25maWcuQ29kZUVkaXRvckFwcEltYWdlQ29uZmlnUHJvcGVydHkifV19fQ==")), "codeEditorAppImageConfig") unless @code_editor_app_image_config.nil? @jupyter_lab_app_image_config = jupyter_lab_app_image_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnAppImageConfig::JupyterLabAppImageConfigProperty.new(**jupyter_lab_app_image_config.transform_keys(&:to_sym)) : jupyter_lab_app_image_config Jsii::Type.check_type(@jupyter_lab_app_image_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQXBwSW1hZ2VDb25maWcuSnVweXRlckxhYkFwcEltYWdlQ29uZmlnUHJvcGVydHkifV19fQ==")), "jupyterLabAppImageConfig") unless @jupyter_lab_app_image_config.nil? @kernel_gateway_image_config = kernel_gateway_image_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnAppImageConfig::KernelGatewayImageConfigProperty.new(**kernel_gateway_image_config.transform_keys(&:to_sym)) : kernel_gateway_image_config Jsii::Type.check_type(@kernel_gateway_image_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQXBwSW1hZ2VDb25maWcuS2VybmVsR2F0ZXdheUltYWdlQ29uZmlnUHJvcGVydHkifV19fQ==")), "kernelGatewayImageConfig") unless @kernel_gateway_image_config.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#app_image_config_name ⇒ String (readonly)
The name of the AppImageConfig.
Must be unique to your account.
33 34 35 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 33 def app_image_config_name @app_image_config_name end |
#code_editor_app_image_config ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for the file system and the runtime, such as the environment variables and entry point.
38 39 40 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 38 def code_editor_app_image_config @code_editor_app_image_config end |
#jupyter_lab_app_image_config ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for the file system and the runtime, such as the environment variables and entry point.
43 44 45 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 43 def jupyter_lab_app_image_config @jupyter_lab_app_image_config end |
#kernel_gateway_image_config ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for the file system and kernels in the SageMaker AI image.
48 49 50 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 48 def kernel_gateway_image_config @kernel_gateway_image_config end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
55 56 57 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 55 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 57 def self.jsii_properties { :app_image_config_name => "appImageConfigName", :code_editor_app_image_config => "codeEditorAppImageConfig", :jupyter_lab_app_image_config => "jupyterLabAppImageConfig", :kernel_gateway_image_config => "kernelGatewayImageConfig", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'sagemaker/cfn_app_image_config_props.rb', line 67 def to_jsii result = {} result.merge!({ "appImageConfigName" => @app_image_config_name, "codeEditorAppImageConfig" => @code_editor_app_image_config, "jupyterLabAppImageConfig" => @jupyter_lab_app_image_config, "kernelGatewayImageConfig" => @kernel_gateway_image_config, "tags" => @tags, }) result.compact end |