Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::SourceIPConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::SourceIPConfigProperty
- 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
-
#values ⇒ Array<String>?
readonly
The source IP addresses, in CIDR format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(values: nil) ⇒ SourceIPConfigProperty
constructor
A new instance of SourceIPConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(values: nil) ⇒ SourceIPConfigProperty
Returns a new instance of SourceIPConfigProperty.
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
#values ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |