Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::SourceIPConfigProperty

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

Overview

Information about a source IP condition.

You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values: nil) ⇒ SourceIPConfigProperty

Returns a new instance of SourceIPConfigProperty.

Parameters:

  • values (Array<String>, nil) (defaults to: nil)

    The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.



1783
1784
1785
1786
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1783

def initialize(values: nil)
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") unless @values.nil?
end

Instance Attribute Details

#valuesArray<String>? (readonly)

The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.

If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header.



1794
1795
1796
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1794

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1796
1797
1798
1799
1800
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1796

def self.jsii_properties
  {
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



1802
1803
1804
1805
1806
1807
1808
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1802

def to_jsii
  result = {}
  result.merge!({
    "values" => @values,
  })
  result.compact
end