aws-sdk-cloudwatchlogs 0.25.1

AWS SDK for Amazon CloudWatch Logs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateKmsKey`](crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`log_group_name(impl Into<String>)`](crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder::log_group_name) / [`set_log_group_name(Option<String>)`](crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder::set_log_group_name): <p>The name of the log group.</p>
    ///   - [`kms_key_id(impl Into<String>)`](crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder::kms_key_id) / [`set_kms_key_id(Option<String>)`](crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder::set_kms_key_id): <p>The Amazon Resource Name (ARN) of the KMS key to use when encrypting log data. This must be a symmetric KMS key. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms">Amazon Resource Names</a> and <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric Keys</a>.</p>
    /// - On success, responds with [`AssociateKmsKeyOutput`](crate::operation::associate_kms_key::AssociateKmsKeyOutput)
    /// - On failure, responds with [`SdkError<AssociateKmsKeyError>`](crate::operation::associate_kms_key::AssociateKmsKeyError)
    pub fn associate_kms_key(
        &self,
    ) -> crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder {
        crate::operation::associate_kms_key::builders::AssociateKmsKeyFluentBuilder::new(
            self.handle.clone(),
        )
    }
}