Struct aws_sdk_macie2::client::fluent_builders::CreateAllowList
source · [−]pub struct CreateAllowList { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateAllowList
.
Creates and defines the settings for an allow list.
Implementations
sourceimpl CreateAllowList
impl CreateAllowList
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateAllowList, AwsResponseRetryClassifier>, SdkError<CreateAllowListError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateAllowList, AwsResponseRetryClassifier>, SdkError<CreateAllowListError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateAllowListOutput, SdkError<CreateAllowListError>>
pub async fn send(
self
) -> Result<CreateAllowListOutput, SdkError<CreateAllowListError>>
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 client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive token that you provide to ensure the idempotency of the request.
sourcepub fn criteria(self, input: AllowListCriteria) -> Self
pub fn criteria(self, input: AllowListCriteria) -> Self
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.
sourcepub fn set_criteria(self, input: Option<AllowListCriteria>) -> Self
pub fn set_criteria(self, input: Option<AllowListCriteria>) -> Self
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.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A custom description of the allow list. The description can contain as many as 512 characters.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A custom description of the allow list. The description can contain as many as 512 characters.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A custom name for the allow list. The name can contain as many as 128 characters.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A custom name for the allow list. The name can contain as many as 128 characters.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
A map of key-value pairs that specifies the tags to associate with the allow list.
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.
A map of key-value pairs that specifies the tags to associate with the allow list.
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.
Trait Implementations
sourceimpl Clone for CreateAllowList
impl Clone for CreateAllowList
sourcefn clone(&self) -> CreateAllowList
fn clone(&self) -> CreateAllowList
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more