Class: AWSCDK::AppRunner::CfnService::KeyValuePairProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppRunner::CfnService::KeyValuePairProperty
- Defined in:
- app_runner/cfn_service.rb
Overview
Describes a key-value pair, which is a string-to-string mapping.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The key name string to map to a value.
-
#value ⇒ String?
readonly
The value string to which the key name is mapped.
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.
1327 1328 1329 1330 1331 1332 |
# File 'app_runner/cfn_service.rb', line 1327 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 key name string to map to a value.
1338 1339 1340 |
# File 'app_runner/cfn_service.rb', line 1338 def name @name end |
#value ⇒ String? (readonly)
The value string to which the key name is mapped.
1343 1344 1345 |
# File 'app_runner/cfn_service.rb', line 1343 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1345 1346 1347 1348 1349 1350 |
# File 'app_runner/cfn_service.rb', line 1345 def self.jsii_properties { :name => "name", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1352 1353 1354 1355 1356 1357 1358 1359 |
# File 'app_runner/cfn_service.rb', line 1352 def to_jsii result = {} result.merge!({ "name" => @name, "value" => @value, }) result.compact end |