Class: AWSCDK::ElasticLoadBalancingv2::QueryStringCondition

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/query_string_condition.rb

Overview

Properties for the key/value pair of the query string.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, key: nil) ⇒ QueryStringCondition

Returns a new instance of QueryStringCondition.

Parameters:

  • value (String)

    The query string value for the condition.

  • key (String, nil) (defaults to: nil)

    The query string key for the condition.



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

#keyString? (readonly)

Note:

Default: - Any key can be matched.

The query string key for the condition.

Returns:

  • (String, nil)


24
25
26
# File 'elastic_load_balancingv2/query_string_condition.rb', line 24

def key
  @key
end

#valueString (readonly)

The query string value for the condition.

Returns:

  • (String)


19
20
21
# File 'elastic_load_balancingv2/query_string_condition.rb', line 19

def value
  @value
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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