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
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// Operation shape for `DescribeDimensionKeys`.
///
/// This is usually constructed for you using the the fluent builder returned by
/// [`describe_dimension_keys`](crate::client::Client::describe_dimension_keys).
///
/// See [`crate::client::fluent_builders::DescribeDimensionKeys`] for more details about the operation.
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct DescribeDimensionKeys {
    _private: (),
}
impl DescribeDimensionKeys {
    /// Creates a new builder-style object to manufacture [`DescribeDimensionKeysInput`](crate::input::DescribeDimensionKeysInput)
    pub fn builder() -> crate::input::describe_dimension_keys_input::Builder {
        crate::input::describe_dimension_keys_input::Builder::default()
    }
    /// Creates a new `DescribeDimensionKeys` operation.
    pub fn new() -> Self {
        Self { _private: () }
    }
}
impl aws_smithy_http::response::ParseStrictResponse for DescribeDimensionKeys {
    type Output = std::result::Result<
        crate::output::DescribeDimensionKeysOutput,
        crate::error::DescribeDimensionKeysError,
    >;
    fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
        if !response.status().is_success() && response.status().as_u16() != 200 {
            crate::operation_deser::parse_describe_dimension_keys_error(response)
        } else {
            crate::operation_deser::parse_describe_dimension_keys_response(response)
        }
    }
}

/// Operation shape for `GetDimensionKeyDetails`.
///
/// This is usually constructed for you using the the fluent builder returned by
/// [`get_dimension_key_details`](crate::client::Client::get_dimension_key_details).
///
/// See [`crate::client::fluent_builders::GetDimensionKeyDetails`] for more details about the operation.
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetDimensionKeyDetails {
    _private: (),
}
impl GetDimensionKeyDetails {
    /// Creates a new builder-style object to manufacture [`GetDimensionKeyDetailsInput`](crate::input::GetDimensionKeyDetailsInput)
    pub fn builder() -> crate::input::get_dimension_key_details_input::Builder {
        crate::input::get_dimension_key_details_input::Builder::default()
    }
    /// Creates a new `GetDimensionKeyDetails` operation.
    pub fn new() -> Self {
        Self { _private: () }
    }
}
impl aws_smithy_http::response::ParseStrictResponse for GetDimensionKeyDetails {
    type Output = std::result::Result<
        crate::output::GetDimensionKeyDetailsOutput,
        crate::error::GetDimensionKeyDetailsError,
    >;
    fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
        if !response.status().is_success() && response.status().as_u16() != 200 {
            crate::operation_deser::parse_get_dimension_key_details_error(response)
        } else {
            crate::operation_deser::parse_get_dimension_key_details_response(response)
        }
    }
}

/// Operation shape for `GetResourceMetrics`.
///
/// This is usually constructed for you using the the fluent builder returned by
/// [`get_resource_metrics`](crate::client::Client::get_resource_metrics).
///
/// See [`crate::client::fluent_builders::GetResourceMetrics`] for more details about the operation.
#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
pub struct GetResourceMetrics {
    _private: (),
}
impl GetResourceMetrics {
    /// Creates a new builder-style object to manufacture [`GetResourceMetricsInput`](crate::input::GetResourceMetricsInput)
    pub fn builder() -> crate::input::get_resource_metrics_input::Builder {
        crate::input::get_resource_metrics_input::Builder::default()
    }
    /// Creates a new `GetResourceMetrics` operation.
    pub fn new() -> Self {
        Self { _private: () }
    }
}
impl aws_smithy_http::response::ParseStrictResponse for GetResourceMetrics {
    type Output = std::result::Result<
        crate::output::GetResourceMetricsOutput,
        crate::error::GetResourceMetricsError,
    >;
    fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
        if !response.status().is_success() && response.status().as_u16() != 200 {
            crate::operation_deser::parse_get_resource_metrics_error(response)
        } else {
            crate::operation_deser::parse_get_resource_metrics_response(response)
        }
    }
}