Struct aws_sdk_elasticloadbalancingv2::client::fluent_builders::CreateRule [−][src]
pub struct CreateRule<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateRule
.
Creates a rule for the specified listener. The listener must be associated with an Application Load Balancer.
Each rule consists of a priority, one or more actions, and one or more conditions. Rules are evaluated in priority order, from the lowest value to the highest value. When the conditions for a rule are met, its actions are performed. If the conditions for no rules are met, the actions for the default rule are performed. For more information, see Listener rules in the Application Load Balancers Guide.
Implementations
impl<C, M, R> CreateRule<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateRule<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<CreateRuleOutput, SdkError<CreateRuleError>> where
R::Policy: SmithyRetryPolicy<CreateRuleInputOperationOutputAlias, CreateRuleOutput, CreateRuleError, CreateRuleInputOperationRetryAlias>,
pub async fn send(self) -> Result<CreateRuleOutput, SdkError<CreateRuleError>> where
R::Policy: SmithyRetryPolicy<CreateRuleInputOperationOutputAlias, CreateRuleOutput, CreateRuleError, CreateRuleInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The Amazon Resource Name (ARN) of the listener.
The Amazon Resource Name (ARN) of the listener.
Appends an item to Conditions
.
To override the contents of this collection use set_conditions
.
The conditions.
The conditions.
The rule priority. A listener can't have multiple rules with the same priority.
The rule priority. A listener can't have multiple rules with the same priority.
Appends an item to Actions
.
To override the contents of this collection use set_actions
.
The actions.
The actions.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags to assign to the rule.
The tags to assign to the rule.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateRule<C, M, R>
impl<C, M, R> Unpin for CreateRule<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateRule<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more