Class: AWSCDK::Sagemaker::CfnAppImageConfig::CustomImageContainerEnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnAppImageConfig::CustomImageContainerEnvironmentVariableProperty
- Defined in:
- sagemaker/cfn_app_image_config.rb
Overview
The environment variables to set in the container.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The key that identifies a container environment variable.
-
#value ⇒ String
readonly
The value of the container environment variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ CustomImageContainerEnvironmentVariableProperty
constructor
A new instance of CustomImageContainerEnvironmentVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ CustomImageContainerEnvironmentVariableProperty
Returns a new instance of CustomImageContainerEnvironmentVariableProperty.
689 690 691 692 693 694 |
# File 'sagemaker/cfn_app_image_config.rb', line 689 def initialize(key:, value:) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") end |
Instance Attribute Details
#key ⇒ String (readonly)
The key that identifies a container environment variable.
700 701 702 |
# File 'sagemaker/cfn_app_image_config.rb', line 700 def key @key end |
#value ⇒ String (readonly)
The value of the container environment variable.
705 706 707 |
# File 'sagemaker/cfn_app_image_config.rb', line 705 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
707 708 709 710 711 712 |
# File 'sagemaker/cfn_app_image_config.rb', line 707 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
714 715 716 717 718 719 720 721 |
# File 'sagemaker/cfn_app_image_config.rb', line 714 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |