Class ListenerDefaultAction


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

      • authenticateCognito

        public java.util.Optional<ListenerDefaultActionAuthenticateCognito> authenticateCognito()
        Returns:
        Configuration block for using Amazon Cognito to authenticate users. Specify only when `type` is `authenticate-cognito`. See below.
      • authenticateOidc

        public java.util.Optional<ListenerDefaultActionAuthenticateOidc> authenticateOidc()
        Returns:
        Configuration block for an identity provider that is compliant with OpenID Connect (OIDC). Specify only when `type` is `authenticate-oidc`. See below.
      • fixedResponse

        public java.util.Optional<ListenerDefaultActionFixedResponse> fixedResponse()
        Returns:
        Information for creating an action that returns a custom HTTP response. Required if `type` is `fixed-response`.
      • forward

        public java.util.Optional<ListenerDefaultActionForward> forward()
        Returns:
        Configuration block for creating an action that distributes requests among one or more target groups. Specify only if `type` is `forward`. See below.
      • jwtValidation

        public java.util.Optional<ListenerDefaultActionJwtValidation> jwtValidation()
        Returns:
        Configuration block for creating a JWT validation action. Required if `type` is `jwt-validation`.
      • order

        public java.util.Optional<java.lang.Integer> order()
        Returns:
        Order for the action. The action with the lowest value for order is performed first. Valid values are between `1` and `50000`. Defaults to the position in the list of actions.
      • redirect

        public java.util.Optional<ListenerDefaultActionRedirect> redirect()
        Returns:
        Configuration block for creating a redirect action. Required if `type` is `redirect`. See below.
      • targetGroupArn

        public java.util.Optional<java.lang.String> targetGroupArn()
        Returns:
        ARN of the Target Group to which to route traffic. Specify only if `type` is `forward` and you want to route to a single target group. To route to one or more target groups, use a `forward` block instead. Can be specified with `forward` but ARNs must match.
      • type

        public java.lang.String type()
        Returns:
        Type of routing action. Valid values are `forward`, `redirect`, `fixed-response`, `authenticate-cognito`, `authenticate-oidc` and `jwt-validation`. The following arguments are optional: