Class: AWSCDK::Lightsail::CfnContainer::EnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnContainer::EnvironmentVariableProperty
- Defined in:
- lightsail/cfn_container.rb
Overview
EnvironmentVariable is a property of the Container property. It describes the environment variables of a container on a container service which are key-value parameters that provide dynamic configuration of the application or script run by the container.
Instance Attribute Summary collapse
-
#value ⇒ String?
readonly
The environment variable value.
-
#variable ⇒ String?
readonly
The environment variable key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value: nil, variable: nil) ⇒ EnvironmentVariableProperty
constructor
A new instance of EnvironmentVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value: nil, variable: nil) ⇒ EnvironmentVariableProperty
Returns a new instance of EnvironmentVariableProperty.
806 807 808 809 810 811 |
# File 'lightsail/cfn_container.rb', line 806 def initialize(value: nil, variable: nil) @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? @variable = variable Jsii::Type.check_type(@variable, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "variable") unless @variable.nil? end |
Instance Attribute Details
#value ⇒ String? (readonly)
The environment variable value.
817 818 819 |
# File 'lightsail/cfn_container.rb', line 817 def value @value end |
#variable ⇒ String? (readonly)
The environment variable key.
822 823 824 |
# File 'lightsail/cfn_container.rb', line 822 def variable @variable end |
Class Method Details
.jsii_properties ⇒ Object
824 825 826 827 828 829 |
# File 'lightsail/cfn_container.rb', line 824 def self.jsii_properties { :value => "value", :variable => "variable", } end |
Instance Method Details
#to_jsii ⇒ Object
831 832 833 834 835 836 837 838 |
# File 'lightsail/cfn_container.rb', line 831 def to_jsii result = {} result.merge!({ "value" => @value, "variable" => @variable, }) result.compact end |