aws-sdk-cloudwatchlogs 1.120.0

AWS SDK for Amazon CloudWatch Logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`PutLogGroupDeletionProtection`](crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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>
    ///   - [`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>
    /// - On success, responds with [`PutLogGroupDeletionProtectionOutput`](crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionOutput)
    /// - On failure, responds with [`SdkError<PutLogGroupDeletionProtectionError>`](crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError)
    pub fn put_log_group_deletion_protection(
        &self,
    ) -> crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder {
        crate::operation::put_log_group_deletion_protection::builders::PutLogGroupDeletionProtectionFluentBuilder::new(self.handle.clone())
    }
}