aws_sdk_wafv2/client/
create_regex_pattern_set.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`CreateRegexPatternSet`](crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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 a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use <code>CLOUDFRONT</code>.</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>
8    ///   - [`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>
9    ///   - [`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>
10    ///   - [`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>
11    /// - On success, responds with [`CreateRegexPatternSetOutput`](crate::operation::create_regex_pattern_set::CreateRegexPatternSetOutput) with field(s):
12    ///   - [`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>
13    /// - On failure, responds with [`SdkError<CreateRegexPatternSetError>`](crate::operation::create_regex_pattern_set::CreateRegexPatternSetError)
14    pub fn create_regex_pattern_set(&self) -> crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder {
15        crate::operation::create_regex_pattern_set::builders::CreateRegexPatternSetFluentBuilder::new(self.handle.clone())
16    }
17}