Struct aws_sdk_waf::client::fluent_builders::CreateWebACL
source ·
[−]pub struct CreateWebACL<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to CreateWebACL.
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Creates a WebACL, which contains the Rules that identify the CloudFront web requests that you want to allow, block, or count. AWS WAF evaluates Rules in order based on the value of Priority for each Rule.
You also specify a default action, either ALLOW or BLOCK. If a web request doesn't match any of the Rules in a WebACL, AWS WAF responds to the request with the default action.
To create and configure a WebACL, perform the following steps:
-
Create and update the
ByteMatchSetobjects and other predicates that you want to include inRules. For more information, seeCreateByteMatchSet,UpdateByteMatchSet,CreateIPSet,UpdateIPSet,CreateSqlInjectionMatchSet, andUpdateSqlInjectionMatchSet. -
Create and update the
Rulesthat you want to include in theWebACL. For more information, seeCreateRuleandUpdateRule. -
Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aCreateWebACLrequest. -
Submit a
CreateWebACLrequest. -
Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of anUpdateWebACLrequest. -
Submit an
UpdateWebACLrequest to specify theRulesthat you want to include in theWebACL, to specify the default action, and to associate theWebACLwith a CloudFront distribution.
For more information about how to use the AWS WAF API, see the AWS WAF Developer Guide.
Implementations
impl<C, M, R> CreateWebACL<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateWebACL<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateWebAclOutput, SdkError<CreateWebACLError>> where
R::Policy: SmithyRetryPolicy<CreateWebAclInputOperationOutputAlias, CreateWebAclOutput, CreateWebACLError, CreateWebAclInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateWebAclOutput, SdkError<CreateWebACLError>> where
R::Policy: SmithyRetryPolicy<CreateWebAclInputOperationOutputAlias, CreateWebAclOutput, CreateWebACLError, CreateWebAclInputOperationRetryAlias>,
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.
A friendly name or description of the WebACL. You can't change Name after you create the WebACL.
A friendly name or description of the WebACL. You can't change Name after you create the WebACL.
A friendly name or description for the metrics for this WebACL.The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
A friendly name or description for the metrics for this WebACL.The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change MetricName after you create the WebACL.
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the Rule objects that are associated with the WebACL.
The value returned by the most recent call to GetChangeToken.
The value returned by the most recent call to GetChangeToken.
Appends an item to Tags.
To override the contents of this collection use set_tags.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateWebACL<C, M, R>
impl<C, M, R> Unpin for CreateWebACL<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateWebACL<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
