Struct aws_sdk_wafv2::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder
source · pub struct CreateRegexPatternSetFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRegexPatternSet
.
Creates a RegexPatternSet
, which you reference in a RegexPatternSetReferenceStatement
, to have WAF inspect a web request component for the specified patterns.
Implementations§
source§impl CreateRegexPatternSetFluentBuilder
impl CreateRegexPatternSetFluentBuilder
sourcepub fn as_input(&self) -> &CreateRegexPatternSetInputBuilder
pub fn as_input(&self) -> &CreateRegexPatternSetInputBuilder
Access the CreateRegexPatternSet as a reference.
sourcepub async fn send(
self
) -> Result<CreateRegexPatternSetOutput, SdkError<CreateRegexPatternSetError, HttpResponse>>
pub async fn send( self ) -> Result<CreateRegexPatternSetOutput, SdkError<CreateRegexPatternSetError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateRegexPatternSetOutput, CreateRegexPatternSetError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateRegexPatternSetOutput, CreateRegexPatternSetError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the set. You cannot change the name after you create the set.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the set. You cannot change the name after you create the set.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the set. You cannot change the name after you create the set.
sourcepub fn scope(self, input: Scope) -> Self
pub fn scope(self, input: Scope) -> Self
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
sourcepub fn set_scope(self, input: Option<Scope>) -> Self
pub fn set_scope(self, input: Option<Scope>) -> Self
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
sourcepub fn get_scope(&self) -> &Option<Scope>
pub fn get_scope(&self) -> &Option<Scope>
Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, an Amazon Cognito user pool, an App Runner service, or an Amazon Web Services Verified Access instance.
To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1
. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the set that helps with identification.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the set that helps with identification.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the set that helps with identification.
sourcepub fn regular_expression_list(self, input: Regex) -> Self
pub fn regular_expression_list(self, input: Regex) -> Self
Appends an item to RegularExpressionList
.
To override the contents of this collection use set_regular_expression_list
.
Array of regular expression strings.
sourcepub fn set_regular_expression_list(self, input: Option<Vec<Regex>>) -> Self
pub fn set_regular_expression_list(self, input: Option<Vec<Regex>>) -> Self
Array of regular expression strings.
sourcepub fn get_regular_expression_list(&self) -> &Option<Vec<Regex>>
pub fn get_regular_expression_list(&self) -> &Option<Vec<Regex>>
Array of regular expression strings.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
An array of key:value pairs to associate with the resource.
An array of key:value pairs to associate with the resource.
An array of key:value pairs to associate with the resource.
Trait Implementations§
source§impl Clone for CreateRegexPatternSetFluentBuilder
impl Clone for CreateRegexPatternSetFluentBuilder
source§fn clone(&self) -> CreateRegexPatternSetFluentBuilder
fn clone(&self) -> CreateRegexPatternSetFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateRegexPatternSetFluentBuilder
impl !RefUnwindSafe for CreateRegexPatternSetFluentBuilder
impl Send for CreateRegexPatternSetFluentBuilder
impl Sync for CreateRegexPatternSetFluentBuilder
impl Unpin for CreateRegexPatternSetFluentBuilder
impl !UnwindSafe for CreateRegexPatternSetFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more