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
14
15
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetDataset`](crate::operation::get_dataset::builders::GetDatasetFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`dataset_identifier(impl Into<String>)`](crate::operation::get_dataset::builders::GetDatasetFluentBuilder::dataset_identifier) / [`set_dataset_identifier(Option<String>)`](crate::operation::get_dataset::builders::GetDatasetFluentBuilder::set_dataset_identifier):<br>required: **true**<br><p>Specifies the identifier of the dataset to retrieve. 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>
    /// - On success, responds with [`GetDatasetOutput`](crate::operation::get_dataset::GetDatasetOutput) with field(s):
    ///   - [`dataset_id(Option<String>)`](crate::operation::get_dataset::GetDatasetOutput::dataset_id): <p>Returns the identifier of the dataset.</p>
    ///   - [`arn(Option<String>)`](crate::operation::get_dataset::GetDatasetOutput::arn): <p>Returns the Amazon Resource Name (ARN) of the dataset, in the format <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:dataset/<i>dataset-id</i> </code>.</p>
    ///   - [`kms_key_arn(Option<String>)`](crate::operation::get_dataset::GetDatasetOutput::kms_key_arn): <p>Returns the Amazon Resource Name (ARN) of the customer managed Amazon Web Services KMS key that is currently associated with the dataset, if any. If the dataset is not associated with a customer managed KMS key, this field is not included in the response and the dataset is encrypted at rest using an Amazon Web Services owned key.</p>
    /// - On failure, responds with [`SdkError<GetDatasetError>`](crate::operation::get_dataset::GetDatasetError)
    pub fn get_dataset(&self) -> crate::operation::get_dataset::builders::GetDatasetFluentBuilder {
        crate::operation::get_dataset::builders::GetDatasetFluentBuilder::new(self.handle.clone())
    }
}