aws_sdk_wafv2/client/
create_regex_pattern_set.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateRegexPatternSet`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::set_name):<br>required: **true**<br><p>The name of the set. You cannot change the name after you create the set.</p><br>
    ///   - [`scope(Scope)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::scope) / [`set_scope(Option<Scope>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::set_scope):<br>required: **true**<br><p>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.</p> <p>To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:</p> <ul>  <li>   <p>CLI - Specify the Region when you use the CloudFront scope: <code>--scope=CLOUDFRONT --region=us-east-1</code>.</p></li>  <li>   <p>API and SDKs - For all calls, use the Region endpoint us-east-1.</p></li> </ul><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::set_description):<br>required: **false**<br><p>A description of the set that helps with identification.</p><br>
    ///   - [`regular_expression_list(Regex)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::regular_expression_list) / [`set_regular_expression_list(Option<Vec::<Regex>>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::set_regular_expression_list):<br>required: **true**<br><p>Array of regular expression strings.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::set_tags):<br>required: **false**<br><p>An array of key:value pairs to associate with the resource.</p><br>
    /// - On success, responds with [`CreateRegexPatternSetOutput`](crate::operation::create_regex_pattern_set::CreateRegexPatternSetOutput) with field(s):
    ///   - [`summary(Option<RegexPatternSetSummary>)`](crate::operation::create_regex_pattern_set::CreateRegexPatternSetOutput::summary): <p>High-level information about a <code>RegexPatternSet</code>, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a <code>RegexPatternSet</code>, and the ARN, that you provide to the <code>RegexPatternSetReferenceStatement</code> to use the pattern set in a <code>Rule</code>.</p>
    /// - On failure, responds with [`SdkError<CreateRegexPatternSetError>`](crate::operation::create_regex_pattern_set::CreateRegexPatternSetError)
    pub fn create_regex_pattern_set(&self) -> crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder {
        crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::new(self.handle.clone())
    }
}