Struct aws_sdk_elasticloadbalancingv2::model::action::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Action
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn type(self, input: ActionTypeEnum) -> Self
pub fn type(self, input: ActionTypeEnum) -> Self
The type of action.
sourcepub fn set_type(self, input: Option<ActionTypeEnum>) -> Self
pub fn set_type(self, input: Option<ActionTypeEnum>) -> Self
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 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 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 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 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 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 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
.