Struct aws_sdk_elasticloadbalancingv2::model::Action
source · [−]#[non_exhaustive]pub struct Action { /* private fields */ }
Expand description
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.
Implementations
sourceimpl Action
impl Action
sourcepub fn type(&self) -> Option<&ActionTypeEnum>
pub fn type(&self) -> Option<&ActionTypeEnum>
The type of action.
sourcepub fn target_group_arn(&self) -> Option<&str>
pub fn target_group_arn(&self) -> Option<&str>
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.
sourcepub fn authenticate_oidc_config(&self) -> Option<&AuthenticateOidcActionConfig>
pub fn authenticate_oidc_config(&self) -> Option<&AuthenticateOidcActionConfig>
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when Type
is authenticate-oidc
.
sourcepub fn authenticate_cognito_config(
&self
) -> Option<&AuthenticateCognitoActionConfig>
pub fn authenticate_cognito_config(
&self
) -> Option<&AuthenticateCognitoActionConfig>
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
is authenticate-cognito
.
sourcepub fn order(&self) -> Option<i32>
pub fn order(&self) -> Option<i32>
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.
sourcepub fn redirect_config(&self) -> Option<&RedirectActionConfig>
pub fn redirect_config(&self) -> Option<&RedirectActionConfig>
[Application Load Balancer] Information for creating a redirect action. Specify only when Type
is redirect
.
sourcepub fn fixed_response_config(&self) -> Option<&FixedResponseActionConfig>
pub fn fixed_response_config(&self) -> Option<&FixedResponseActionConfig>
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when Type
is fixed-response
.
sourcepub fn forward_config(&self) -> Option<&ForwardActionConfig>
pub fn forward_config(&self) -> Option<&ForwardActionConfig>
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
.