aws-sdk-cloudwatch 1.116.0

AWS SDK for Amazon CloudWatch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AssociateDatasetKmsKey`](crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dataset_identifier(impl Into<String>)`](crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder::dataset_identifier) / [`set_dataset_identifier(Option<String>)`](crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder::set_dataset_identifier):<br>required: **true**<br><p>Specifies the identifier of the dataset that you want to associate the KMS key with. For the <code>default</code> dataset, you can specify either <code>default</code> or the full dataset Amazon Resource Name (ARN) in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/default</code>.</p><br>
    ///   - [`kms_key_arn(impl Into<String>)`](crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder::set_kms_key_arn):<br>required: **true**<br><p>Specifies the Amazon Resource Name (ARN) of the customer managed KMS key to associate with the dataset. The key must be a symmetric encryption KMS key (<code>SYMMETRIC_DEFAULT</code>) in the same Amazon Web Services Region as the dataset.</p> <p>The ARN must be in the format <code>arn:aws:kms:<i>Region</i>:<i>account-id</i>:key/<i>key-id</i> </code>. Key IDs, aliases, and alias ARNs are not accepted.</p> <p>For more information about KMS key ARNs, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN">Key ARN</a> in the <i>Amazon Web Services Key Management Service Developer Guide</i>.</p><br>
    /// - On success, responds with [`AssociateDatasetKmsKeyOutput`](crate::operation::associate_dataset_kms_key::AssociateDatasetKmsKeyOutput)
    /// - On failure, responds with [`SdkError<AssociateDatasetKmsKeyError>`](crate::operation::associate_dataset_kms_key::AssociateDatasetKmsKeyError)
    pub fn associate_dataset_kms_key(&self) -> crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder {
        crate::operation::associate_dataset_kms_key::builders::AssociateDatasetKmsKeyFluentBuilder::new(self.handle.clone())
    }
}