Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::QueryStringKeyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::QueryStringKeyValueProperty
- Defined in:
- elastic_load_balancingv2/cfn_listener_rule.rb
Overview
Information about a key/value pair.
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
The key.
-
#value ⇒ String?
readonly
The value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, value: nil) ⇒ QueryStringKeyValueProperty
constructor
A new instance of QueryStringKeyValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key: nil, value: nil) ⇒ QueryStringKeyValueProperty
Returns a new instance of QueryStringKeyValueProperty.
1401 1402 1403 1404 1405 1406 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1401 def initialize(key: nil, value: nil) @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil? end |
Instance Attribute Details
#key ⇒ String? (readonly)
The key.
You can omit the key.
1414 1415 1416 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1414 def key @key end |
#value ⇒ String? (readonly)
The value.
1419 1420 1421 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1419 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1421 1422 1423 1424 1425 1426 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1421 def self.jsii_properties { :key => "key", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1428 1429 1430 1431 1432 1433 1434 1435 |
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1428 def to_jsii result = {} result.merge!({ "key" => @key, "value" => @value, }) result.compact end |