Struct aws_sdk_elasticloadbalancingv2::types::Action
source · #[non_exhaustive]pub struct Action {
pub type: Option<ActionTypeEnum>,
pub target_group_arn: Option<String>,
pub authenticate_oidc_config: Option<AuthenticateOidcActionConfig>,
pub authenticate_cognito_config: Option<AuthenticateCognitoActionConfig>,
pub order: Option<i32>,
pub redirect_config: Option<RedirectActionConfig>,
pub fixed_response_config: Option<FixedResponseActionConfig>,
pub forward_config: Option<ForwardActionConfig>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: Option<ActionTypeEnum>
The type of action.
target_group_arn: Option<String>
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.
authenticate_oidc_config: Option<AuthenticateOidcActionConfig>
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when Type
is authenticate-oidc
.
authenticate_cognito_config: Option<AuthenticateCognitoActionConfig>
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
is authenticate-cognito
.
order: 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.
redirect_config: Option<RedirectActionConfig>
[Application Load Balancer] Information for creating a redirect action. Specify only when Type
is redirect
.
fixed_response_config: Option<FixedResponseActionConfig>
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when Type
is fixed-response
.
forward_config: 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
.
Implementations§
source§impl 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
.
Trait Implementations§
source§impl PartialEq for Action
impl PartialEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more