Class: AWSCDK::Batch::CfnJobDefinition::EKSContainerEnvironmentVariableProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Batch::CfnJobDefinition::EKSContainerEnvironmentVariableProperty
- Defined in:
- batch/cfn_job_definition.rb
Overview
An environment variable.
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
The name of the environment variable.
-
#value ⇒ String?
readonly
The value of the environment variable.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value: nil) ⇒ EKSContainerEnvironmentVariableProperty
constructor
A new instance of EKSContainerEnvironmentVariableProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value: nil) ⇒ EKSContainerEnvironmentVariableProperty
Returns a new instance of EKSContainerEnvironmentVariableProperty.
1465 1466 1467 1468 1469 1470 |
# File 'batch/cfn_job_definition.rb', line 1465 def initialize(name:, value: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#name ⇒ String (readonly)
The name of the environment variable.
1476 1477 1478 |
# File 'batch/cfn_job_definition.rb', line 1476 def name @name end |
#value ⇒ String? (readonly)
The value of the environment variable.
1481 1482 1483 |
# File 'batch/cfn_job_definition.rb', line 1481 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1483 1484 1485 1486 1487 1488 |
# File 'batch/cfn_job_definition.rb', line 1483 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1490 1491 1492 1493 1494 1495 1496 1497 |
# File 'batch/cfn_job_definition.rb', line 1490 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |