Class: AWSCDK::ECS::CfnDaemonTaskDefinition::KeyValuePairProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnDaemonTaskDefinition::KeyValuePairProperty
- Defined in:
- ecs/cfn_daemon_task_definition.rb
Overview
A key-value pair object.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of the key-value pair.
-
#value ⇒ String?
readonly
The value of the key-value pair.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, value: nil) ⇒ KeyValuePairProperty
constructor
A new instance of KeyValuePairProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, value: nil) ⇒ KeyValuePairProperty
Returns a new instance of KeyValuePairProperty.
1496 1497 1498 1499 1500 1501 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1496 def initialize(name: nil, value: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @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 key-value pair.
For environment variables, this is the name of the environment variable.
1509 1510 1511 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1509 def name @name end |
#value ⇒ String? (readonly)
The value of the key-value pair.
For environment variables, this is the value of the environment variable.
1516 1517 1518 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1516 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1518 1519 1520 1521 1522 1523 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1518 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1525 1526 1527 1528 1529 1530 1531 1532 |
# File 'ecs/cfn_daemon_task_definition.rb', line 1525 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |