Class: AWSCDK::ElasticLoadBalancingv2::QueryStringCondition
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::QueryStringCondition
- Defined in:
- elastic_load_balancingv2/query_string_condition.rb
Overview
Properties for the key/value pair of the query string.
Instance Attribute Summary collapse
-
#key ⇒ String?
readonly
The query string key for the condition.
-
#value ⇒ String
readonly
The query string value for the condition.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:, key: nil) ⇒ QueryStringCondition
constructor
A new instance of QueryStringCondition.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:, key: nil) ⇒ QueryStringCondition
Returns a new instance of QueryStringCondition.
9 10 11 12 13 14 |
# File 'elastic_load_balancingv2/query_string_condition.rb', line 9 def initialize(value:, key: nil) @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") unless @key.nil? end |
Instance Attribute Details
#key ⇒ String? (readonly)
Note:
Default: - Any key can be matched.
The query string key for the condition.
24 25 26 |
# File 'elastic_load_balancingv2/query_string_condition.rb', line 24 def key @key end |
#value ⇒ String (readonly)
The query string value for the condition.
19 20 21 |
# File 'elastic_load_balancingv2/query_string_condition.rb', line 19 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'elastic_load_balancingv2/query_string_condition.rb', line 26 def self.jsii_properties { :value => "value", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'elastic_load_balancingv2/query_string_condition.rb', line 33 def to_jsii result = {} result.merge!({ "value" => @value, "key" => @key, }) result.compact end |