aws_sdk_pinpointsmsvoicev2/client/create_protect_configuration.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 [`CreateProtectConfiguration`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.</p><br>
7 /// - [`deletion_protection_enabled(bool)`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::deletion_protection_enabled) / [`set_deletion_protection_enabled(Option<bool>)`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::set_deletion_protection_enabled):<br>required: **false**<br><p>When set to true deletion protection is enabled. By default this is set to false.</p><br>
8 /// - [`tags(Tag)`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::set_tags):<br>required: **false**<br><p>An array of key and value pair tags that are associated with the resource.</p><br>
9 /// - On success, responds with [`CreateProtectConfigurationOutput`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput) with field(s):
10 /// - [`protect_configuration_arn(String)`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput::protect_configuration_arn): <p>The Amazon Resource Name (ARN) of the protect configuration.</p>
11 /// - [`protect_configuration_id(String)`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput::protect_configuration_id): <p>The unique identifier for the protect configuration.</p>
12 /// - [`created_timestamp(DateTime)`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput::created_timestamp): <p>The time when the protect configuration was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
13 /// - [`account_default(bool)`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput::account_default): <p>This is true if the protect configuration is set as your account default protect configuration.</p>
14 /// - [`deletion_protection_enabled(bool)`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput::deletion_protection_enabled): <p>When set to true deletion protection is enabled. By default this is set to false.</p>
15 /// - [`tags(Option<Vec::<Tag>>)`](crate::operation::create_protect_configuration::CreateProtectConfigurationOutput::tags): <p>An array of key and value pair tags that are associated with the resource.</p>
16 /// - On failure, responds with [`SdkError<CreateProtectConfigurationError>`](crate::operation::create_protect_configuration::CreateProtectConfigurationError)
17 pub fn create_protect_configuration(&self) -> crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder {
18 crate::operation::create_protect_configuration::builders::CreateProtectConfigurationFluentBuilder::new(self.handle.clone())
19 }
20}