#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Action
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more