#[non_exhaustive]pub struct ActionBuilder { /* private fields */ }
Expand description
A builder for Action
.
Implementations§
source§impl ActionBuilder
impl ActionBuilder
sourcepub fn type(self, input: ActionTypeEnum) -> Self
pub fn type(self, input: ActionTypeEnum) -> Self
The type of action.
This field is required.sourcepub fn set_type(self, input: Option<ActionTypeEnum>) -> Self
pub fn set_type(self, input: Option<ActionTypeEnum>) -> Self
The type of action.
sourcepub fn get_type(&self) -> &Option<ActionTypeEnum>
pub fn get_type(&self) -> &Option<ActionTypeEnum>
The type of action.
sourcepub fn target_group_arn(self, input: impl Into<String>) -> Self
pub fn target_group_arn(self, input: impl Into<String>) -> Self
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 set_target_group_arn(self, input: Option<String>) -> Self
pub fn set_target_group_arn(self, input: Option<String>) -> Self
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 get_target_group_arn(&self) -> &Option<String>
pub fn get_target_group_arn(&self) -> &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.
sourcepub fn authenticate_oidc_config(
self,
input: AuthenticateOidcActionConfig
) -> Self
pub fn authenticate_oidc_config( self, input: AuthenticateOidcActionConfig ) -> Self
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when Type
is authenticate-oidc
.
sourcepub fn set_authenticate_oidc_config(
self,
input: Option<AuthenticateOidcActionConfig>
) -> Self
pub fn set_authenticate_oidc_config( self, input: Option<AuthenticateOidcActionConfig> ) -> Self
[HTTPS listeners] Information about an identity provider that is compliant with OpenID Connect (OIDC). Specify only when Type
is authenticate-oidc
.
sourcepub fn get_authenticate_oidc_config(
&self
) -> &Option<AuthenticateOidcActionConfig>
pub fn get_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,
input: AuthenticateCognitoActionConfig
) -> Self
pub fn authenticate_cognito_config( self, input: AuthenticateCognitoActionConfig ) -> Self
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
is authenticate-cognito
.
sourcepub fn set_authenticate_cognito_config(
self,
input: Option<AuthenticateCognitoActionConfig>
) -> Self
pub fn set_authenticate_cognito_config( self, input: Option<AuthenticateCognitoActionConfig> ) -> Self
[HTTPS listeners] Information for using Amazon Cognito to authenticate users. Specify only when Type
is authenticate-cognito
.
sourcepub fn get_authenticate_cognito_config(
&self
) -> &Option<AuthenticateCognitoActionConfig>
pub fn get_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, input: i32) -> Self
pub fn order(self, input: i32) -> Self
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 set_order(self, input: Option<i32>) -> Self
pub fn set_order(self, input: Option<i32>) -> Self
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 get_order(&self) -> &Option<i32>
pub fn get_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, input: RedirectActionConfig) -> Self
pub fn redirect_config(self, input: RedirectActionConfig) -> Self
[Application Load Balancer] Information for creating a redirect action. Specify only when Type
is redirect
.
sourcepub fn set_redirect_config(self, input: Option<RedirectActionConfig>) -> Self
pub fn set_redirect_config(self, input: Option<RedirectActionConfig>) -> Self
[Application Load Balancer] Information for creating a redirect action. Specify only when Type
is redirect
.
sourcepub fn get_redirect_config(&self) -> &Option<RedirectActionConfig>
pub fn get_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, input: FixedResponseActionConfig) -> Self
pub fn fixed_response_config(self, input: FixedResponseActionConfig) -> Self
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when Type
is fixed-response
.
sourcepub fn set_fixed_response_config(
self,
input: Option<FixedResponseActionConfig>
) -> Self
pub fn set_fixed_response_config( self, input: Option<FixedResponseActionConfig> ) -> Self
[Application Load Balancer] Information for creating an action that returns a custom HTTP response. Specify only when Type
is fixed-response
.
sourcepub fn get_fixed_response_config(&self) -> &Option<FixedResponseActionConfig>
pub fn get_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, input: ForwardActionConfig) -> Self
pub fn forward_config(self, input: ForwardActionConfig) -> Self
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
.
sourcepub fn set_forward_config(self, input: Option<ForwardActionConfig>) -> Self
pub fn set_forward_config(self, input: Option<ForwardActionConfig>) -> Self
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
.
sourcepub fn get_forward_config(&self) -> &Option<ForwardActionConfig>
pub fn get_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 Clone for ActionBuilder
impl Clone for ActionBuilder
source§fn clone(&self) -> ActionBuilder
fn clone(&self) -> ActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActionBuilder
impl Debug for ActionBuilder
source§impl Default for ActionBuilder
impl Default for ActionBuilder
source§fn default() -> ActionBuilder
fn default() -> ActionBuilder
source§impl PartialEq for ActionBuilder
impl PartialEq for ActionBuilder
source§fn eq(&self, other: &ActionBuilder) -> bool
fn eq(&self, other: &ActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.