1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeFleetMetric`](crate::operation::describe_fleet_metric::builders::DescribeFleetMetricFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`metric_name(impl Into<String>)`](crate::operation::describe_fleet_metric::builders::DescribeFleetMetricFluentBuilder::metric_name) / [`set_metric_name(Option<String>)`](crate::operation::describe_fleet_metric::builders::DescribeFleetMetricFluentBuilder::set_metric_name):<br>required: **true**<br><p>The name of the fleet metric to describe.</p><br>
    /// - On success, responds with [`DescribeFleetMetricOutput`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput) with field(s):
    ///   - [`metric_name(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::metric_name): <p>The name of the fleet metric to describe.</p>
    ///   - [`query_string(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::query_string): <p>The search query string.</p>
    ///   - [`aggregation_type(Option<AggregationType>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::aggregation_type): <p>The type of the aggregation query.</p>
    ///   - [`period(Option<i32>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::period): <p>The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.</p>
    ///   - [`aggregation_field(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::aggregation_field): <p>The field to aggregate.</p>
    ///   - [`description(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::description): <p>The fleet metric description.</p>
    ///   - [`query_version(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::query_version): <p>The query version.</p>
    ///   - [`index_name(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::index_name): <p>The name of the index to search.</p>
    ///   - [`creation_date(Option<DateTime>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::creation_date): <p>The date when the fleet metric is created.</p>
    ///   - [`last_modified_date(Option<DateTime>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::last_modified_date): <p>The date when the fleet metric is last modified.</p>
    ///   - [`unit(Option<FleetMetricUnit>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::unit): <p>Used to support unit transformation such as milliseconds to seconds. The unit must be supported by <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">CW metric</a>.</p>
    ///   - [`version(i64)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::version): <p>The version of the fleet metric.</p>
    ///   - [`metric_arn(Option<String>)`](crate::operation::describe_fleet_metric::DescribeFleetMetricOutput::metric_arn): <p>The ARN of the fleet metric to describe.</p>
    /// - On failure, responds with [`SdkError<DescribeFleetMetricError>`](crate::operation::describe_fleet_metric::DescribeFleetMetricError)
    pub fn describe_fleet_metric(&self) -> crate::operation::describe_fleet_metric::builders::DescribeFleetMetricFluentBuilder {
        crate::operation::describe_fleet_metric::builders::DescribeFleetMetricFluentBuilder::new(self.handle.clone())
    }
}