aws_sdk_pinpointsmsvoicev2/client/
update_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 [`UpdateProtectConfiguration`](crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`protect_configuration_id(impl Into<String>)`](crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder::protect_configuration_id) / [`set_protect_configuration_id(Option<String>)`](crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder::set_protect_configuration_id):<br>required: **true**<br><p>The unique identifier for the protect configuration.</p><br>
7    ///   - [`deletion_protection_enabled(bool)`](crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder::deletion_protection_enabled) / [`set_deletion_protection_enabled(Option<bool>)`](crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder::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    /// - On success, responds with [`UpdateProtectConfigurationOutput`](crate::operation::update_protect_configuration::UpdateProtectConfigurationOutput) with field(s):
9    ///   - [`protect_configuration_arn(String)`](crate::operation::update_protect_configuration::UpdateProtectConfigurationOutput::protect_configuration_arn): <p>The Amazon Resource Name (ARN) of the protect configuration.</p>
10    ///   - [`protect_configuration_id(String)`](crate::operation::update_protect_configuration::UpdateProtectConfigurationOutput::protect_configuration_id): <p>The unique identifier for the protect configuration.</p>
11    ///   - [`created_timestamp(DateTime)`](crate::operation::update_protect_configuration::UpdateProtectConfigurationOutput::created_timestamp): <p>The time when the protect configuration was created, in <a href="https://www.epochconverter.com/">UNIX epoch time</a> format.</p>
12    ///   - [`account_default(bool)`](crate::operation::update_protect_configuration::UpdateProtectConfigurationOutput::account_default): <p>This is true if the protect configuration is set as your account default protect configuration.</p>
13    ///   - [`deletion_protection_enabled(bool)`](crate::operation::update_protect_configuration::UpdateProtectConfigurationOutput::deletion_protection_enabled): <p>The status of deletion protection for the protect configuration. When set to true deletion protection is enabled. By default this is set to false.</p>
14    /// - On failure, responds with [`SdkError<UpdateProtectConfigurationError>`](crate::operation::update_protect_configuration::UpdateProtectConfigurationError)
15    pub fn update_protect_configuration(&self) -> crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder {
16        crate::operation::update_protect_configuration::builders::UpdateProtectConfigurationFluentBuilder::new(self.handle.clone())
17    }
18}