@Generated(value="software.amazon.awssdk:codegen") public final class Action extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Action.Builder,Action>
Information about an action.
Each rule must include exactly one of the following types of actions: forward,
fixed-response, or redirect, and it must be the last action to be performed.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Action.Builder |
| Modifier and Type | Method and Description |
|---|---|
AuthenticateCognitoActionConfig |
authenticateCognitoConfig()
[HTTPS listeners] Information for using Amazon Cognito to authenticate users.
|
AuthenticateOidcActionConfig |
authenticateOidcConfig()
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC).
|
static Action.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
FixedResponseActionConfig |
fixedResponseConfig()
[Application Load Balancer] Information for creating an action that returns a custom HTTP response.
|
ForwardActionConfig |
forwardConfig()
Information for creating an action that distributes requests among one or more target groups.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
order()
The order for the action.
|
RedirectActionConfig |
redirectConfig()
[Application Load Balancer] Information for creating a redirect action.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Action.Builder> |
serializableBuilderClass() |
String |
targetGroupArn()
The Amazon Resource Name (ARN) of the target group.
|
Action.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ActionTypeEnum |
type()
The type of action.
|
String |
typeAsString()
The type of action.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ActionTypeEnum type()
The type of action.
If the service returns an enum value that is not available in the current SDK version, type will return
ActionTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ActionTypeEnumpublic final String typeAsString()
The type of action.
If the service returns an enum value that is not available in the current SDK version, type will return
ActionTypeEnum.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ActionTypeEnumpublic final String targetGroupArn()
The Amazon Resource Name (ARN) of the target group. Specify only when Type is forward
and you want to route to a single target group. To route to one or more target groups, use
ForwardConfig instead.
Type is
forward and you want to route to a single target group. To route to one or more target
groups, use ForwardConfig instead.public final AuthenticateOidcActionConfig authenticateOidcConfig()
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify
only when Type is authenticate-oidc.
Type is authenticate-oidc.public final AuthenticateCognitoActionConfig authenticateCognitoConfig()
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
is authenticate-cognito.
Type is authenticate-cognito.public final Integer order()
The order for the action. This value is required for rules with multiple actions. The action with the lowest value for order is performed first.
public final RedirectActionConfig redirectConfig()
[Application Load Balancer] Information for creating a redirect action. Specify only when Type is
redirect.
Type is redirect.public final FixedResponseActionConfig fixedResponseConfig()
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only
when Type is fixed-response.
Type is fixed-response.public final ForwardActionConfig forwardConfig()
Information for creating an action that distributes requests among one or more target groups. For Network Load
Balancers, you can specify a single target group. Specify only when Type is forward. If
you specify both ForwardConfig and TargetGroupArn, you can specify only one target
group using ForwardConfig and it must be the same target group specified in
TargetGroupArn.
Type is
forward. If you specify both ForwardConfig and TargetGroupArn, you
can specify only one target group using ForwardConfig and it must be the same target group
specified in TargetGroupArn.public Action.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Action.Builder,Action>public static Action.Builder builder()
public static Class<? extends Action.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.