Struct aws_sdk_waf::client::fluent_builders::UpdateRegexPatternSet
source ·
[−]pub struct UpdateRegexPatternSet<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }Expand description
Fluent builder constructing a request to UpdateRegexPatternSet.
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.
Inserts or deletes RegexPatternString objects in a RegexPatternSet. For each RegexPatternString object, you specify the following values:
-
Whether to insert or delete the
RegexPatternString. -
The regular expression pattern that you want to insert or delete. For more information, see
RegexPatternSet.
For example, you can create a RegexPatternString such as B[a@]dB[o0]t. AWS WAF will match this RegexPatternString to:
-
BadBot
-
BadB0t
-
B@dBot
-
B@dB0t
To create and configure a RegexPatternSet, perform the following steps:
-
Create a
RegexPatternSet.For more information, seeCreateRegexPatternSet. -
Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of anUpdateRegexPatternSetrequest. -
Submit an
UpdateRegexPatternSetrequest to specify the regular expression pattern that you want AWS WAF to watch for.
For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.
Implementations
impl<C, M, R> UpdateRegexPatternSet<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateRegexPatternSet<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateRegexPatternSetOutput, SdkError<UpdateRegexPatternSetError>> where
R::Policy: SmithyRetryPolicy<UpdateRegexPatternSetInputOperationOutputAlias, UpdateRegexPatternSetOutput, UpdateRegexPatternSetError, UpdateRegexPatternSetInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateRegexPatternSetOutput, SdkError<UpdateRegexPatternSetError>> where
R::Policy: SmithyRetryPolicy<UpdateRegexPatternSetInputOperationOutputAlias, UpdateRegexPatternSetOutput, UpdateRegexPatternSetError, UpdateRegexPatternSetInputOperationRetryAlias>,
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 RegexPatternSetId of the RegexPatternSet that you want to update. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets.
The RegexPatternSetId of the RegexPatternSet that you want to update. RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets.
Appends an item to Updates.
To override the contents of this collection use set_updates.
An array of RegexPatternSetUpdate objects that you want to insert into or delete from a RegexPatternSet.
An array of RegexPatternSetUpdate objects that you want to insert into or delete from a RegexPatternSet.
The value returned by the most recent call to GetChangeToken.
The value returned by the most recent call to GetChangeToken.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateRegexPatternSet<C, M, R>
impl<C, M, R> Send for UpdateRegexPatternSet<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateRegexPatternSet<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateRegexPatternSet<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateRegexPatternSet<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
