1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DescribeCustomMetric`](crate::operation::describe_custom_metric::builders::DescribeCustomMetricFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`metric_name(impl Into<String>)`](crate::operation::describe_custom_metric::builders::DescribeCustomMetricFluentBuilder::metric_name) / [`set_metric_name(Option<String>)`](crate::operation::describe_custom_metric::builders::DescribeCustomMetricFluentBuilder::set_metric_name):<br>required: **true**<br><p>The name of the custom metric.</p><br>
    /// - On success, responds with [`DescribeCustomMetricOutput`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput) with field(s):
    ///   - [`metric_name(Option<String>)`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput::metric_name): <p>The name of the custom metric.</p>
    ///   - [`metric_arn(Option<String>)`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput::metric_arn): <p>The Amazon Resource Number (ARN) of the custom metric.</p>
    ///   - [`metric_type(Option<CustomMetricType>)`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput::metric_type): <p>The type of the custom metric.</p><important>  <p>The type <code>number</code> only takes a single metric value as an input, but while submitting the metrics value in the DeviceMetrics report, it must be passed as an array with a single value.</p> </important>
    ///   - [`display_name(Option<String>)`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput::display_name): <p>Field represents a friendly name in the console for the custom metric; doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated.</p>
    ///   - [`creation_date(Option<DateTime>)`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput::creation_date): <p>The creation date of the custom metric in milliseconds since epoch.</p>
    ///   - [`last_modified_date(Option<DateTime>)`](crate::operation::describe_custom_metric::DescribeCustomMetricOutput::last_modified_date): <p>The time the custom metric was last modified in milliseconds since epoch.</p>
    /// - On failure, responds with [`SdkError<DescribeCustomMetricError>`](crate::operation::describe_custom_metric::DescribeCustomMetricError)
    pub fn describe_custom_metric(&self) -> crate::operation::describe_custom_metric::builders::DescribeCustomMetricFluentBuilder {
        crate::operation::describe_custom_metric::builders::DescribeCustomMetricFluentBuilder::new(self.handle.clone())
    }
}