Skip to content

SourceIpConditionConfig

Source code in docs_src/capo_elastic_load_balancing_v2/types/source_ip_condition_config.py
class SourceIpConditionConfig(TypedDict, closed=True):
    values: NotRequired[
        "capo_elastic_load_balancing_v2.types.list_of_string.ListOfString"
    ]
    """<p>The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.</p> <p>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. To search for addresses in the X-Forwarded-For header, use an <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#http-header-conditions">HTTP header condition</a>.</p> <p>The total number of values must be less than, or equal to five.</p>"""
    ip_address_type: NotRequired[
        "capo_elastic_load_balancing_v2.types.source_ip_address_type_enum.SourceIpAddressTypeEnum"
    ]
    """<p>The IP address type for Network Load Balancers.</p> <p>The valid values are:</p> <ul> <li> <p> <code>ipv4</code> – IPv4 addresses only.</p> </li> <li> <p> <code>ipv6</code> – IPv6 addresses only.</p> </li> </ul>"""

ip_address_type instance-attribute

ip_address_type: NotRequired[SourceIpAddressTypeEnum]

The IP address type for Network Load Balancers.

The valid values are:

  • ipv4 – IPv4 addresses only.

  • ipv6 – IPv6 addresses only.

values instance-attribute

values: NotRequired[ListOfString]

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. To search for addresses in the X-Forwarded-For header, use an HTTP header condition.

The total number of values must be less than, or equal to five.