1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateAllowList`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::set_client_token):<br>required: **true**<br><p>A unique, case-sensitive token that you provide to ensure the idempotency of the request.</p><br>
    ///   - [`criteria(AllowListCriteria)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::criteria) / [`set_criteria(Option<AllowListCriteria>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::set_criteria):<br>required: **true**<br><p>The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression (regex) that defines a text pattern to ignore.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::set_description):<br>required: **false**<br><p>A custom description of the allow list. The description can contain as many as 512 characters.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::set_name):<br>required: **true**<br><p>A custom name for the allow list. The name can contain as many as 128 characters.</p><br>
    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::set_tags):<br>required: **false**<br><p>A map of key-value pairs that specifies the tags to associate with the allow list.</p>  <p>An allow list can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.</p><br>
    /// - On success, responds with [`CreateAllowListOutput`](crate::operation::create_allow_list::CreateAllowListOutput) with field(s):
    ///   - [`arn(Option<String>)`](crate::operation::create_allow_list::CreateAllowListOutput::arn): <p>The Amazon Resource Name (ARN) of the allow list.</p>
    ///   - [`id(Option<String>)`](crate::operation::create_allow_list::CreateAllowListOutput::id): <p>The unique identifier for the allow list.</p>
    /// - On failure, responds with [`SdkError<CreateAllowListError>`](crate::operation::create_allow_list::CreateAllowListError)
    pub fn create_allow_list(&self) -> crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder {
        crate::operation::create_allow_list::builders::CreateAllowListFluentBuilder::new(self.handle.clone())
    }
}