Class ListenerRuleCondition


  • public final class ListenerRuleCondition
    extends java.lang.Object
    • Method Detail

      • hostHeader

        public java.util.Optional<ListenerRuleConditionHostHeader> hostHeader()
        Returns:
        Host header patterns to match. Host Header block fields documented below.
      • httpHeader

        public java.util.Optional<ListenerRuleConditionHttpHeader> httpHeader()
        Returns:
        HTTP headers to match. HTTP Header block fields documented below.
      • httpRequestMethod

        public java.util.Optional<ListenerRuleConditionHttpRequestMethod> httpRequestMethod()
        Returns:
        Contains a single `values` item which is a list of HTTP request methods or verbs to match. Maximum size is 40 characters. Only allowed characters are A-Z, hyphen (-) and underscore (\_). Comparison is case sensitive. Wildcards are not supported. Only one needs to match for the condition to be satisfied. AWS recommends that GET and HEAD requests are routed in the same way because the response to a HEAD request may be cached.
      • pathPattern

        public java.util.Optional<ListenerRuleConditionPathPattern> pathPattern()
        Returns:
        Path patterns to match against the request URL. Path Pattern block fields documented below.
      • queryStrings

        public java.util.List<ListenerRuleConditionQueryString> queryStrings()
        Returns:
        Query strings to match. Query String block fields documented below.
      • sourceIp

        public java.util.Optional<ListenerRuleConditionSourceIp> sourceIp()
        Returns:
        Source IP address to match. For ALB, use `values` to specify CIDR ranges. For NLB, use `ipAddressType` to match the IP address type (`ipv4` or `ipv6`). Source IP block fields documented below. > **NOTE::** Exactly one of `hostHeader`, `httpHeader`, `httpRequestMethod`, `pathPattern`, `queryString` or `sourceIp` must be set per condition.