Class: AWSCDK::ECS::CfnExpressGatewayService::KeyValuePairProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnExpressGatewayService::KeyValuePairProperty
- Defined in:
- ecs/cfn_express_gateway_service.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:, value:) ⇒ KeyValuePairProperty
constructor
A new instance of KeyValuePairProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ KeyValuePairProperty
Returns a new instance of KeyValuePairProperty.
1508 1509 1510 1511 1512 1513 |
# File 'ecs/cfn_express_gateway_service.rb', line 1508 def initialize(name:, value:) @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") 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.
1521 1522 1523 |
# File 'ecs/cfn_express_gateway_service.rb', line 1521 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.
1528 1529 1530 |
# File 'ecs/cfn_express_gateway_service.rb', line 1528 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1530 1531 1532 1533 1534 1535 |
# File 'ecs/cfn_express_gateway_service.rb', line 1530 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1537 1538 1539 1540 1541 1542 1543 1544 |
# File 'ecs/cfn_express_gateway_service.rb', line 1537 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |