aws_sdk_cloudwatchlogs/client/put_log_group_deletion_protection.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 [`PutLogGroupDeletionProtection`](crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`log_group_identifier(impl Into<String>)`](crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder::log_group_identifier) / [`set_log_group_identifier(Option<String>)`](crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder::set_log_group_identifier):<br>required: **true**<br><p>The name or ARN of the log group.</p> <p>Type: String</p> <p>Length Constraints: Minimum length of 1. Maximum length of 512.</p> <p>Pattern: <code>\[\.\-_/#A-Za-z0-9\]+</code></p> <p>Required: Yes</p><br>
7 /// - [`deletion_protection_enabled(bool)`](crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder::deletion_protection_enabled) / [`set_deletion_protection_enabled(Option<bool>)`](crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder::set_deletion_protection_enabled):<br>required: **true**<br><p>Whether to enable deletion protection.</p> <p>Type: Boolean</p> <p>Required: Yes</p><br>
8 /// - On success, responds with [`PutLogGroupDeletionProtectionOutput`](crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionOutput)
9 /// - On failure, responds with [`SdkError<PutLogGroupDeletionProtectionError>`](crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError)
10 pub fn put_log_group_deletion_protection(
11 &self,
12 ) -> crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder {
13 crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder::new(self.handle.clone())
14 }
15}