Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::QueryStringKeyValueProperty

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

Overview

Information about a key/value pair.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of QueryStringKeyValueProperty.

Parameters:

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

    The key.

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

    The value.



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

#keyString? (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

#valueString? (readonly)

The value.



1419
1420
1421
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1419

def value
  @value
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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