AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_index_policies/_describe_index_policies_input.rs

@@ -5,5 +153,155 @@
   25     25   
    "com.amazonaws.cloudwatchlogs.synthetic",
   26     26   
    "DescribeIndexPoliciesInput",
   27     27   
);
   28     28   
static DESCRIBEINDEXPOLICIESINPUT_MEMBER_LOG_GROUP_IDENTIFIERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeIndexPoliciesInput$logGroupIdentifiers",
   31     31   
        "com.amazonaws.cloudwatchlogs.synthetic",
   32     32   
        "DescribeIndexPoliciesInput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::List,
   35         -
    "log_group_identifiers",
          35  +
    "logGroupIdentifiers",
   36     36   
    0,
   37     37   
);
   38     38   
static DESCRIBEINDEXPOLICIESINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeIndexPoliciesInput$nextToken",
   41     41   
        "com.amazonaws.cloudwatchlogs.synthetic",
   42     42   
        "DescribeIndexPoliciesInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "next_token",
          45  +
    "nextToken",
   46     46   
    1,
   47     47   
);
   48     48   
static DESCRIBEINDEXPOLICIESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    DESCRIBEINDEXPOLICIESINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[
   52     52   
        &DESCRIBEINDEXPOLICIESINPUT_MEMBER_LOG_GROUP_IDENTIFIERS,
   53     53   
        &DESCRIBEINDEXPOLICIESINPUT_MEMBER_NEXT_TOKEN,
   54     54   
    ],
   55     55   
);
   56     56   
impl DescribeIndexPoliciesInput {
   57     57   
    /// The schema for this shape.
   58     58   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEINDEXPOLICIESINPUT_SCHEMA;
   59     59   
}
   60     60   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeIndexPoliciesInput {
   61     61   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     62   
    fn serialize_members(
   63     63   
        &self,
   64     64   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     65   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     66   
        if let Some(ref val) = self.log_group_identifiers {
   67     67   
            ser.write_list(
   68     68   
                &DESCRIBEINDEXPOLICIESINPUT_MEMBER_LOG_GROUP_IDENTIFIERS,
   69     69   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     70   
                    for item in val {
   71     71   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
   72     72   
                    }
   73     73   
                    Ok(())
   74     74   
                },
   75     75   
            )?;
   76     76   
        }
   77     77   
        if let Some(ref val) = self.next_token {
   78     78   
            ser.write_string(&DESCRIBEINDEXPOLICIESINPUT_MEMBER_NEXT_TOKEN, val)?;
   79     79   
        }
   80     80   
        Ok(())
   81     81   
    }
   82     82   
}
   83     83   
impl DescribeIndexPoliciesInput {
   84     84   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   85         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   86         -
        deserializer: &mut D,
          85  +
    pub fn deserialize(
          86  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   87     87   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   88     88   
        #[allow(unused_variables, unused_mut)]
   89     89   
        let mut builder = Self::builder();
   90     90   
        #[allow(
   91     91   
            unused_variables,
   92     92   
            unreachable_code,
   93     93   
            clippy::single_match,
   94     94   
            clippy::match_single_binding,
   95     95   
            clippy::diverging_sub_expression
   96     96   
        )]
   97         -
        deserializer.read_struct(&DESCRIBEINDEXPOLICIESINPUT_SCHEMA, (), |_, member, deser| {
          97  +
        deserializer.read_struct(&DESCRIBEINDEXPOLICIESINPUT_SCHEMA, &mut |member, deser| {
   98     98   
            match member.member_index() {
   99     99   
                Some(0) => {
  100         -
                    builder.log_group_identifiers = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(deser.read_string(member)?);
  108         -
                            Ok(list)
  109         -
                        })?
  110         -
                    });
         100  +
                    builder.log_group_identifiers = Some(deser.read_string_list(member)?);
  111    101   
                }
  112    102   
                Some(1) => {
  113    103   
                    builder.next_token = Some(deser.read_string(member)?);
  114    104   
                }
  115    105   
                _ => {}
  116    106   
            }
  117    107   
            Ok(())
  118    108   
        })?;
         109  +
        builder.log_group_identifiers = builder.log_group_identifiers.or(Some(Vec::new()));
  119    110   
        builder
  120    111   
            .build()
  121    112   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  122    113   
    }
  123    114   
}
         115  +
impl DescribeIndexPoliciesInput {
         116  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         117  +
    pub fn deserialize_with_response(
         118  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         119  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         120  +
        _status: u16,
         121  +
        _body: &[u8],
         122  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         123  +
        Self::deserialize(deserializer)
         124  +
    }
         125  +
}
  124    126   
impl DescribeIndexPoliciesInput {
  125    127   
    /// Creates a new builder-style object to manufacture [`DescribeIndexPoliciesInput`](crate::operation::describe_index_policies::DescribeIndexPoliciesInput).
  126    128   
    pub fn builder() -> crate::operation::describe_index_policies::builders::DescribeIndexPoliciesInputBuilder {
  127    129   
        crate::operation::describe_index_policies::builders::DescribeIndexPoliciesInputBuilder::default()
  128    130   
    }
  129    131   
}
  130    132   
  131    133   
/// A builder for [`DescribeIndexPoliciesInput`](crate::operation::describe_index_policies::DescribeIndexPoliciesInput).
  132    134   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  133    135   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_index_policies/_describe_index_policies_output.rs

@@ -6,6 +140,192 @@
   26     26   
    "com.amazonaws.cloudwatchlogs.synthetic",
   27     27   
    "DescribeIndexPoliciesOutput",
   28     28   
);
   29     29   
static DESCRIBEINDEXPOLICIESOUTPUT_MEMBER_INDEX_POLICIES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeIndexPoliciesOutput$indexPolicies",
   32     32   
        "com.amazonaws.cloudwatchlogs.synthetic",
   33     33   
        "DescribeIndexPoliciesOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "index_policies",
          36  +
    "indexPolicies",
   37     37   
    0,
   38     38   
);
   39     39   
static DESCRIBEINDEXPOLICIESOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeIndexPoliciesOutput$nextToken",
   42     42   
        "com.amazonaws.cloudwatchlogs.synthetic",
   43     43   
        "DescribeIndexPoliciesOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "nextToken",
   47     47   
    1,
   48     48   
);
          49  +
static DESCRIBEINDEXPOLICIESOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static DESCRIBEINDEXPOLICIESOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    DESCRIBEINDEXPOLICIESOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &DESCRIBEINDEXPOLICIESOUTPUT_MEMBER_INDEX_POLICIES,
   54     61   
        &DESCRIBEINDEXPOLICIESOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &DESCRIBEINDEXPOLICIESOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl DescribeIndexPoliciesOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEINDEXPOLICIESOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeIndexPoliciesOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.index_policies {
   68     76   
            ser.write_list(
   69     77   
                &DESCRIBEINDEXPOLICIESOUTPUT_MEMBER_INDEX_POLICIES,
   70     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   71     79   
                    for item in val {
   72     80   
                        ser.write_struct(crate::types::IndexPolicy::SCHEMA, item)?;
   73     81   
                    }
   74     82   
                    Ok(())
   75     83   
                },
   76     84   
            )?;
   77     85   
        }
   78     86   
        if let Some(ref val) = self.next_token {
   79     87   
            ser.write_string(&DESCRIBEINDEXPOLICIESOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   80     88   
        }
   81     89   
        Ok(())
   82     90   
    }
   83     91   
}
   84     92   
impl DescribeIndexPoliciesOutput {
   85     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   86         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   87         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   88     96   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   89     97   
        #[allow(unused_variables, unused_mut)]
   90     98   
        let mut builder = Self::builder();
   91     99   
        #[allow(
   92    100   
            unused_variables,
   93    101   
            unreachable_code,
   94    102   
            clippy::single_match,
   95    103   
            clippy::match_single_binding,
   96    104   
            clippy::diverging_sub_expression
   97    105   
        )]
   98         -
        deserializer.read_struct(&DESCRIBEINDEXPOLICIESOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&DESCRIBEINDEXPOLICIESOUTPUT_SCHEMA, &mut |member, deser| {
   99    107   
            match member.member_index() {
  100    108   
                Some(0) => {
  101    109   
                    builder.index_policies = Some({
  102         -
                        let container = if let Some(cap) = deser.container_size() {
  103         -
                            Vec::with_capacity(cap)
  104         -
                        } else {
  105         -
                            Vec::new()
  106         -
                        };
  107         -
                        deser.read_list(member, container, |mut list, deser| {
  108         -
                            list.push(crate::types::IndexPolicy::deserialize(deser)?);
  109         -
                            Ok(list)
  110         -
                        })?
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::IndexPolicy::deserialize(deser)?);
         113  +
                            Ok(())
         114  +
                        })?;
         115  +
                        container
         116  +
                    });
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.next_token = Some(deser.read_string(member)?);
         120  +
                }
         121  +
                Some(2) => {
         122  +
                    builder._request_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl DescribeIndexPoliciesOutput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         133  +
    /// Header-bound members are read directly from headers, avoiding runtime
         134  +
    /// member iteration overhead. Body members are read via the deserializer.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
         140  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         141  +
        #[allow(unused_variables, unused_mut)]
         142  +
        let mut builder = Self::builder();
         143  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         144  +
            builder._request_id = Some(val.to_string());
         145  +
        }
         146  +
        #[allow(
         147  +
            unused_variables,
         148  +
            unreachable_code,
         149  +
            clippy::single_match,
         150  +
            clippy::match_single_binding,
         151  +
            clippy::diverging_sub_expression
         152  +
        )]
         153  +
        deserializer.read_struct(&DESCRIBEINDEXPOLICIESOUTPUT_SCHEMA, &mut |member, deser| {
         154  +
            match member.member_index() {
         155  +
                Some(0) => {
         156  +
                    builder.index_policies = Some({
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::IndexPolicy::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  111    163   
                    });
  112    164   
                }
  113    165   
                Some(1) => {
  114    166   
                    builder.next_token = Some(deser.read_string(member)?);
  115    167   
                }
  116    168   
                _ => {}
  117    169   
            }
  118    170   
            Ok(())
  119    171   
        })?;
  120    172   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_log_groups.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeLogGroups`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeLogGroups;
    6      6   
impl DescribeLogGroups {
    7      7   
    /// Creates a new `DescribeLogGroups`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_log_groups::DescribeLogGroupsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_log_groups::DescribeLogGroupsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_log_groups::DescribeLogGroupsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_log_groups::DescribeLogGroupsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_log_groups::DescribeLogGroupsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,310 @@
  138    142   
                crate::operation::describe_log_groups::DescribeLogGroupsError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DescribeLogGroupsResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeLogGroupsResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_describe_log_groups::de_describe_log_groups_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_describe_log_groups::de_describe_log_groups_http_response(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::describe_log_groups::DescribeLogGroupsError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "InvalidParameterException" => crate::operation::describe_log_groups::DescribeLogGroupsError::InvalidParameterException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
  162    202   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "ServiceUnavailableException" => crate::operation::describe_log_groups::DescribeLogGroupsError::ServiceUnavailableException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                _ => crate::operation::describe_log_groups::DescribeLogGroupsError::generic(generic),
         234  +
            };
         235  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         236  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         237  +
            ))
         238  +
        } else {
         239  +
            let protocol = _cfg
         240  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         241  +
                .expect("a SharedClientProtocol is required");
         242  +
            let mut deser = protocol
         243  +
                .deserialize_response(response, DescribeLogGroups::OUTPUT_SCHEMA, _cfg)
         244  +
                .map_err(|e| {
         245  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         246  +
                })?;
         247  +
            let body = response.body().bytes().expect("body loaded");
         248  +
            let output = crate::operation::describe_log_groups::DescribeLogGroupsOutput::deserialize_with_response(
         249  +
                &mut *deser,
         250  +
                response.headers(),
         251  +
                response.status().into(),
         252  +
                body,
         253  +
            )
         254  +
            .map_err(|e| {
         255  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         256  +
            })?;
         257  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         258  +
        }
  164    259   
    }
  165    260   
}
  166    261   
#[derive(Debug)]
  167    262   
struct DescribeLogGroupsRequestSerializer;
  168    263   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeLogGroupsRequestSerializer {
  169    264   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    265   
    fn serialize_input(
  171    266   
        &self,
  172    267   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    268   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    269   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    270   
        let input = input
  176    271   
            .downcast::<crate::operation::describe_log_groups::DescribeLogGroupsInput>()
  177    272   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::describe_log_groups::DescribeLogGroupsInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::describe_log_groups::DescribeLogGroupsInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "Logs_20140328.DescribeLogGroups",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_log_groups::ser_describe_log_groups_input(&input)?);
  211         -
        if let Some(content_length) = body.content_length() {
  212         -
            let content_length = content_length.to_string();
  213         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  214         -
        }
  215         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         273  +
        let protocol = _cfg
         274  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         275  +
            .expect("a SharedClientProtocol is required");
         276  +
        let mut request = protocol
         277  +
            .serialize_request(&input, DescribeLogGroups::INPUT_SCHEMA, "", _cfg)
         278  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         279  +
         280  +
        return ::std::result::Result::Ok(request);
  216    281   
    }
  217    282   
}
  218    283   
#[derive(Debug)]
  219    284   
struct DescribeLogGroupsEndpointParamsInterceptor;
  220    285   
  221    286   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeLogGroupsEndpointParamsInterceptor {
  222    287   
    fn name(&self) -> &'static str {
  223    288   
        "DescribeLogGroupsEndpointParamsInterceptor"
  224    289   
    }
  225    290   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_log_groups/_describe_log_groups_input.rs

@@ -79,79 +209,209 @@
   99     99   
    "com.amazonaws.cloudwatchlogs.synthetic",
  100    100   
    "DescribeLogGroupsInput",
  101    101   
);
  102    102   
static DESCRIBELOGGROUPSINPUT_MEMBER_ACCOUNT_IDENTIFIERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  103    103   
    ::aws_smithy_schema::ShapeId::from_static(
  104    104   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$accountIdentifiers",
  105    105   
        "com.amazonaws.cloudwatchlogs.synthetic",
  106    106   
        "DescribeLogGroupsInput",
  107    107   
    ),
  108    108   
    ::aws_smithy_schema::ShapeType::List,
  109         -
    "account_identifiers",
         109  +
    "accountIdentifiers",
  110    110   
    0,
  111    111   
);
  112    112   
static DESCRIBELOGGROUPSINPUT_MEMBER_LOG_GROUP_NAME_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  113    113   
    ::aws_smithy_schema::ShapeId::from_static(
  114    114   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$logGroupNamePrefix",
  115    115   
        "com.amazonaws.cloudwatchlogs.synthetic",
  116    116   
        "DescribeLogGroupsInput",
  117    117   
    ),
  118    118   
    ::aws_smithy_schema::ShapeType::String,
  119         -
    "log_group_name_prefix",
         119  +
    "logGroupNamePrefix",
  120    120   
    1,
  121    121   
);
  122    122   
static DESCRIBELOGGROUPSINPUT_MEMBER_LOG_GROUP_NAME_PATTERN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  123    123   
    ::aws_smithy_schema::ShapeId::from_static(
  124    124   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$logGroupNamePattern",
  125    125   
        "com.amazonaws.cloudwatchlogs.synthetic",
  126    126   
        "DescribeLogGroupsInput",
  127    127   
    ),
  128    128   
    ::aws_smithy_schema::ShapeType::String,
  129         -
    "log_group_name_pattern",
         129  +
    "logGroupNamePattern",
  130    130   
    2,
  131    131   
);
  132    132   
static DESCRIBELOGGROUPSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  133    133   
    ::aws_smithy_schema::ShapeId::from_static(
  134    134   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$nextToken",
  135    135   
        "com.amazonaws.cloudwatchlogs.synthetic",
  136    136   
        "DescribeLogGroupsInput",
  137    137   
    ),
  138    138   
    ::aws_smithy_schema::ShapeType::String,
  139         -
    "next_token",
         139  +
    "nextToken",
  140    140   
    3,
  141    141   
);
  142    142   
static DESCRIBELOGGROUPSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  143    143   
    ::aws_smithy_schema::ShapeId::from_static(
  144    144   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$limit",
  145    145   
        "com.amazonaws.cloudwatchlogs.synthetic",
  146    146   
        "DescribeLogGroupsInput",
  147    147   
    ),
  148    148   
    ::aws_smithy_schema::ShapeType::Integer,
  149    149   
    "limit",
  150    150   
    4,
  151    151   
);
  152    152   
static DESCRIBELOGGROUPSINPUT_MEMBER_INCLUDE_LINKED_ACCOUNTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  153    153   
    ::aws_smithy_schema::ShapeId::from_static(
  154    154   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$includeLinkedAccounts",
  155    155   
        "com.amazonaws.cloudwatchlogs.synthetic",
  156    156   
        "DescribeLogGroupsInput",
  157    157   
    ),
  158    158   
    ::aws_smithy_schema::ShapeType::Boolean,
  159         -
    "include_linked_accounts",
         159  +
    "includeLinkedAccounts",
  160    160   
    5,
  161    161   
);
  162    162   
static DESCRIBELOGGROUPSINPUT_MEMBER_LOG_GROUP_CLASS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  163    163   
    ::aws_smithy_schema::ShapeId::from_static(
  164    164   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$logGroupClass",
  165    165   
        "com.amazonaws.cloudwatchlogs.synthetic",
  166    166   
        "DescribeLogGroupsInput",
  167    167   
    ),
  168    168   
    ::aws_smithy_schema::ShapeType::String,
  169         -
    "log_group_class",
         169  +
    "logGroupClass",
  170    170   
    6,
  171    171   
);
  172    172   
static DESCRIBELOGGROUPSINPUT_MEMBER_LOG_GROUP_IDENTIFIERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  173    173   
    ::aws_smithy_schema::ShapeId::from_static(
  174    174   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsInput$logGroupIdentifiers",
  175    175   
        "com.amazonaws.cloudwatchlogs.synthetic",
  176    176   
        "DescribeLogGroupsInput",
  177    177   
    ),
  178    178   
    ::aws_smithy_schema::ShapeType::List,
  179         -
    "log_group_identifiers",
         179  +
    "logGroupIdentifiers",
  180    180   
    7,
  181    181   
);
  182    182   
static DESCRIBELOGGROUPSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  183    183   
    DESCRIBELOGGROUPSINPUT_SCHEMA_ID,
  184    184   
    ::aws_smithy_schema::ShapeType::Structure,
  185    185   
    &[
  186    186   
        &DESCRIBELOGGROUPSINPUT_MEMBER_ACCOUNT_IDENTIFIERS,
  187    187   
        &DESCRIBELOGGROUPSINPUT_MEMBER_LOG_GROUP_NAME_PREFIX,
  188    188   
        &DESCRIBELOGGROUPSINPUT_MEMBER_LOG_GROUP_NAME_PATTERN,
  189    189   
        &DESCRIBELOGGROUPSINPUT_MEMBER_NEXT_TOKEN,
@@ -221,221 +347,338 @@
  241    241   
                    }
  242    242   
                    Ok(())
  243    243   
                },
  244    244   
            )?;
  245    245   
        }
  246    246   
        Ok(())
  247    247   
    }
  248    248   
}
  249    249   
impl DescribeLogGroupsInput {
  250    250   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  251         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  252         -
        deserializer: &mut D,
         251  +
    pub fn deserialize(
         252  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  253    253   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  254    254   
        #[allow(unused_variables, unused_mut)]
  255    255   
        let mut builder = Self::builder();
  256    256   
        #[allow(
  257    257   
            unused_variables,
  258    258   
            unreachable_code,
  259    259   
            clippy::single_match,
  260    260   
            clippy::match_single_binding,
  261    261   
            clippy::diverging_sub_expression
  262    262   
        )]
  263         -
        deserializer.read_struct(&DESCRIBELOGGROUPSINPUT_SCHEMA, (), |_, member, deser| {
         263  +
        deserializer.read_struct(&DESCRIBELOGGROUPSINPUT_SCHEMA, &mut |member, deser| {
  264    264   
            match member.member_index() {
  265    265   
                Some(0) => {
  266         -
                    builder.account_identifiers = Some({
  267         -
                        let container = if let Some(cap) = deser.container_size() {
  268         -
                            Vec::with_capacity(cap)
  269         -
                        } else {
  270         -
                            Vec::new()
  271         -
                        };
  272         -
                        deser.read_list(member, container, |mut list, deser| {
  273         -
                            list.push(deser.read_string(member)?);
  274         -
                            Ok(list)
  275         -
                        })?
  276         -
                    });
         266  +
                    builder.account_identifiers = Some(deser.read_string_list(member)?);
  277    267   
                }
  278    268   
                Some(1) => {
  279    269   
                    builder.log_group_name_prefix = Some(deser.read_string(member)?);
  280    270   
                }
  281    271   
                Some(2) => {
  282    272   
                    builder.log_group_name_pattern = Some(deser.read_string(member)?);
  283    273   
                }
  284    274   
                Some(3) => {
  285    275   
                    builder.next_token = Some(deser.read_string(member)?);
  286    276   
                }
  287    277   
                Some(4) => {
  288    278   
                    builder.limit = Some(deser.read_integer(member)?);
  289    279   
                }
  290    280   
                Some(5) => {
  291    281   
                    builder.include_linked_accounts = Some(deser.read_boolean(member)?);
  292    282   
                }
  293    283   
                Some(6) => {
  294    284   
                    builder.log_group_class = Some(crate::types::LogGroupClass::from(deser.read_string(member)?.as_str()));
  295    285   
                }
  296    286   
                Some(7) => {
  297         -
                    builder.log_group_identifiers = Some({
  298         -
                        let container = if let Some(cap) = deser.container_size() {
  299         -
                            Vec::with_capacity(cap)
  300         -
                        } else {
  301         -
                            Vec::new()
  302         -
                        };
  303         -
                        deser.read_list(member, container, |mut list, deser| {
  304         -
                            list.push(deser.read_string(member)?);
  305         -
                            Ok(list)
  306         -
                        })?
  307         -
                    });
         287  +
                    builder.log_group_identifiers = Some(deser.read_string_list(member)?);
  308    288   
                }
  309    289   
                _ => {}
  310    290   
            }
  311    291   
            Ok(())
  312    292   
        })?;
  313    293   
        builder
  314    294   
            .build()
  315    295   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  316    296   
    }
  317    297   
}
         298  +
impl DescribeLogGroupsInput {
         299  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         300  +
    pub fn deserialize_with_response(
         301  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         302  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         303  +
        _status: u16,
         304  +
        _body: &[u8],
         305  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         306  +
        Self::deserialize(deserializer)
         307  +
    }
         308  +
}
  318    309   
impl DescribeLogGroupsInput {
  319    310   
    /// Creates a new builder-style object to manufacture [`DescribeLogGroupsInput`](crate::operation::describe_log_groups::DescribeLogGroupsInput).
  320    311   
    pub fn builder() -> crate::operation::describe_log_groups::builders::DescribeLogGroupsInputBuilder {
  321    312   
        crate::operation::describe_log_groups::builders::DescribeLogGroupsInputBuilder::default()
  322    313   
    }
  323    314   
}
  324    315   
  325    316   
/// A builder for [`DescribeLogGroupsInput`](crate::operation::describe_log_groups::DescribeLogGroupsInput).
  326    317   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  327    318   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_log_groups/_describe_log_groups_output.rs

@@ -6,6 +137,192 @@
   26     26   
    "com.amazonaws.cloudwatchlogs.synthetic",
   27     27   
    "DescribeLogGroupsOutput",
   28     28   
);
   29     29   
static DESCRIBELOGGROUPSOUTPUT_MEMBER_LOG_GROUPS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsOutput$logGroups",
   32     32   
        "com.amazonaws.cloudwatchlogs.synthetic",
   33     33   
        "DescribeLogGroupsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "log_groups",
          36  +
    "logGroups",
   37     37   
    0,
   38     38   
);
   39     39   
static DESCRIBELOGGROUPSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogGroupsOutput$nextToken",
   42     42   
        "com.amazonaws.cloudwatchlogs.synthetic",
   43     43   
        "DescribeLogGroupsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "nextToken",
   47     47   
    1,
   48     48   
);
          49  +
static DESCRIBELOGGROUPSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static DESCRIBELOGGROUPSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    DESCRIBELOGGROUPSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52         -
    &[&DESCRIBELOGGROUPSOUTPUT_MEMBER_LOG_GROUPS, &DESCRIBELOGGROUPSOUTPUT_MEMBER_NEXT_TOKEN],
          59  +
    &[
          60  +
        &DESCRIBELOGGROUPSOUTPUT_MEMBER_LOG_GROUPS,
          61  +
        &DESCRIBELOGGROUPSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &DESCRIBELOGGROUPSOUTPUT_MEMBER__REQUEST_ID,
          63  +
    ],
   53     64   
);
   54     65   
impl DescribeLogGroupsOutput {
   55     66   
    /// The schema for this shape.
   56     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBELOGGROUPSOUTPUT_SCHEMA;
   57     68   
}
   58     69   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeLogGroupsOutput {
   59     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     71   
    fn serialize_members(
   61     72   
        &self,
   62     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     75   
        if let Some(ref val) = self.log_groups {
   65     76   
            ser.write_list(
   66     77   
                &DESCRIBELOGGROUPSOUTPUT_MEMBER_LOG_GROUPS,
   67     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   68     79   
                    for item in val {
   69     80   
                        ser.write_struct(crate::types::LogGroup::SCHEMA, item)?;
   70     81   
                    }
   71     82   
                    Ok(())
   72     83   
                },
   73     84   
            )?;
   74     85   
        }
   75     86   
        if let Some(ref val) = self.next_token {
   76     87   
            ser.write_string(&DESCRIBELOGGROUPSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   77     88   
        }
   78     89   
        Ok(())
   79     90   
    }
   80     91   
}
   81     92   
impl DescribeLogGroupsOutput {
   82     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   83         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   84         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        #[allow(unused_variables, unused_mut)]
          98  +
        let mut builder = Self::builder();
          99  +
        #[allow(
         100  +
            unused_variables,
         101  +
            unreachable_code,
         102  +
            clippy::single_match,
         103  +
            clippy::match_single_binding,
         104  +
            clippy::diverging_sub_expression
         105  +
        )]
         106  +
        deserializer.read_struct(&DESCRIBELOGGROUPSOUTPUT_SCHEMA, &mut |member, deser| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.log_groups = Some({
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::LogGroup::deserialize(deser)?);
         113  +
                            Ok(())
         114  +
                        })?;
         115  +
                        container
         116  +
                    });
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.next_token = Some(deser.read_string(member)?);
         120  +
                }
         121  +
                Some(2) => {
         122  +
                    builder._request_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl DescribeLogGroupsOutput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         133  +
    /// Header-bound members are read directly from headers, avoiding runtime
         134  +
    /// member iteration overhead. Body members are read via the deserializer.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
   85    140   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   86    141   
        #[allow(unused_variables, unused_mut)]
   87    142   
        let mut builder = Self::builder();
         143  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         144  +
            builder._request_id = Some(val.to_string());
         145  +
        }
   88    146   
        #[allow(
   89    147   
            unused_variables,
   90    148   
            unreachable_code,
   91    149   
            clippy::single_match,
   92    150   
            clippy::match_single_binding,
   93    151   
            clippy::diverging_sub_expression
   94    152   
        )]
   95         -
        deserializer.read_struct(&DESCRIBELOGGROUPSOUTPUT_SCHEMA, (), |_, member, deser| {
         153  +
        deserializer.read_struct(&DESCRIBELOGGROUPSOUTPUT_SCHEMA, &mut |member, deser| {
   96    154   
            match member.member_index() {
   97    155   
                Some(0) => {
   98    156   
                    builder.log_groups = Some({
   99         -
                        let container = if let Some(cap) = deser.container_size() {
  100         -
                            Vec::with_capacity(cap)
  101         -
                        } else {
  102         -
                            Vec::new()
  103         -
                        };
  104         -
                        deser.read_list(member, container, |mut list, deser| {
  105         -
                            list.push(crate::types::LogGroup::deserialize(deser)?);
  106         -
                            Ok(list)
  107         -
                        })?
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::LogGroup::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  108    163   
                    });
  109    164   
                }
  110    165   
                Some(1) => {
  111    166   
                    builder.next_token = Some(deser.read_string(member)?);
  112    167   
                }
  113    168   
                _ => {}
  114    169   
            }
  115    170   
            Ok(())
  116    171   
        })?;
  117    172   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_log_streams.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeLogStreams`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeLogStreams;
    6      6   
impl DescribeLogStreams {
    7      7   
    /// Creates a new `DescribeLogStreams`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_log_streams::DescribeLogStreamsInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_log_streams::DescribeLogStreamsOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_log_streams::DescribeLogStreamsInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_log_streams::DescribeLogStreamsOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_log_streams::DescribeLogStreamsError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -124,128 +252,340 @@
  144    148   
                crate::operation::describe_log_streams::DescribeLogStreamsError,
  145    149   
            >::new());
  146    150   
  147    151   
        ::std::borrow::Cow::Owned(rcb)
  148    152   
    }
  149    153   
}
  150    154   
  151    155   
#[derive(Debug)]
  152    156   
struct DescribeLogStreamsResponseDeserializer;
  153    157   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeLogStreamsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         158  +
    fn deserialize_nonstreaming_with_config(
  155    159   
        &self,
  156    160   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         161  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    162   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    163   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    164   
        #[allow(unused_mut)]
  162    165   
        let mut force_error = false;
  163    166   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_log_streams::de_describe_log_streams_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_describe_log_streams::de_describe_log_streams_http_response(status, headers, body)
         167  +
        if !success && status != 200 || force_error {
         168  +
            let headers = response.headers();
         169  +
            let body = response.body().bytes().expect("body loaded");
         170  +
            #[allow(unused_mut)]
         171  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         172  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         173  +
            })?;
         174  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         175  +
            let generic = generic_builder.build();
         176  +
            let error_code = match generic.code() {
         177  +
                ::std::option::Option::Some(code) => code,
         178  +
                ::std::option::Option::None => {
         179  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         180  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         181  +
                            crate::operation::describe_log_streams::DescribeLogStreamsError::unhandled(generic),
         182  +
                        ),
         183  +
                    ))
         184  +
                }
  168    185   
            };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         186  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         187  +
            let protocol = _cfg
         188  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         189  +
                .expect("a SharedClientProtocol is required");
         190  +
            let err = match error_code {
         191  +
                "InvalidParameterException" => crate::operation::describe_log_streams::DescribeLogStreamsError::InvalidParameterException({
         192  +
                    let mut tmp = match protocol
         193  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         194  +
                        .and_then(|mut deser| {
         195  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         196  +
                                &mut *deser,
         197  +
                                response.headers(),
         198  +
                                response.status().into(),
         199  +
                                body,
         200  +
                            )
         201  +
                        }) {
         202  +
                        ::std::result::Result::Ok(val) => val,
         203  +
                        ::std::result::Result::Err(e) => {
         204  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         205  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         206  +
                            ))
         207  +
                        }
         208  +
                    };
         209  +
                    tmp.meta = generic;
         210  +
                    if tmp.message.is_none() {
         211  +
                        tmp.message = _error_message;
         212  +
                    }
         213  +
                    tmp
         214  +
                }),
         215  +
                "ResourceNotFoundException" => crate::operation::describe_log_streams::DescribeLogStreamsError::ResourceNotFoundException({
         216  +
                    let mut tmp = match protocol
         217  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         218  +
                        .and_then(|mut deser| {
         219  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         220  +
                                &mut *deser,
         221  +
                                response.headers(),
         222  +
                                response.status().into(),
         223  +
                                body,
         224  +
                            )
         225  +
                        }) {
         226  +
                        ::std::result::Result::Ok(val) => val,
         227  +
                        ::std::result::Result::Err(e) => {
         228  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                            ))
         231  +
                        }
         232  +
                    };
         233  +
                    tmp.meta = generic;
         234  +
                    if tmp.message.is_none() {
         235  +
                        tmp.message = _error_message;
         236  +
                    }
         237  +
                    tmp
         238  +
                }),
         239  +
                "ServiceUnavailableException" => crate::operation::describe_log_streams::DescribeLogStreamsError::ServiceUnavailableException({
         240  +
                    let mut tmp = match protocol
         241  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         242  +
                        .and_then(|mut deser| {
         243  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         244  +
                                &mut *deser,
         245  +
                                response.headers(),
         246  +
                                response.status().into(),
         247  +
                                body,
         248  +
                            )
         249  +
                        }) {
         250  +
                        ::std::result::Result::Ok(val) => val,
         251  +
                        ::std::result::Result::Err(e) => {
         252  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         253  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         254  +
                            ))
         255  +
                        }
         256  +
                    };
         257  +
                    tmp.meta = generic;
         258  +
                    if tmp.message.is_none() {
         259  +
                        tmp.message = _error_message;
         260  +
                    }
         261  +
                    tmp
         262  +
                }),
         263  +
                _ => crate::operation::describe_log_streams::DescribeLogStreamsError::generic(generic),
         264  +
            };
         265  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         266  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         267  +
            ))
         268  +
        } else {
         269  +
            let protocol = _cfg
         270  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         271  +
                .expect("a SharedClientProtocol is required");
         272  +
            let mut deser = protocol
         273  +
                .deserialize_response(response, DescribeLogStreams::OUTPUT_SCHEMA, _cfg)
         274  +
                .map_err(|e| {
         275  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         276  +
                })?;
         277  +
            let body = response.body().bytes().expect("body loaded");
         278  +
            let output = crate::operation::describe_log_streams::DescribeLogStreamsOutput::deserialize_with_response(
         279  +
                &mut *deser,
         280  +
                response.headers(),
         281  +
                response.status().into(),
         282  +
                body,
         283  +
            )
         284  +
            .map_err(|e| {
         285  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         286  +
            })?;
         287  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         288  +
        }
  170    289   
    }
  171    290   
}
  172    291   
#[derive(Debug)]
  173    292   
struct DescribeLogStreamsRequestSerializer;
  174    293   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeLogStreamsRequestSerializer {
  175    294   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    295   
    fn serialize_input(
  177    296   
        &self,
  178    297   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    298   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    299   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    300   
        let input = input
  182    301   
            .downcast::<crate::operation::describe_log_streams::DescribeLogStreamsInput>()
  183    302   
            .expect("correct type");
  184         -
        let _header_serialization_settings = _cfg
  185         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  186         -
            .cloned()
  187         -
            .unwrap_or_default();
  188         -
        let mut request_builder = {
  189         -
            #[allow(clippy::uninlined_format_args)]
  190         -
            fn uri_base(
  191         -
                _input: &crate::operation::describe_log_streams::DescribeLogStreamsInput,
  192         -
                output: &mut ::std::string::String,
  193         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  194         -
                use ::std::fmt::Write as _;
  195         -
                ::std::write!(output, "/").expect("formatting should succeed");
  196         -
                ::std::result::Result::Ok(())
  197         -
            }
  198         -
            #[allow(clippy::unnecessary_wraps)]
  199         -
            fn update_http_builder(
  200         -
                input: &crate::operation::describe_log_streams::DescribeLogStreamsInput,
  201         -
                builder: ::http_1x::request::Builder,
  202         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  203         -
                let mut uri = ::std::string::String::new();
  204         -
                uri_base(input, &mut uri)?;
  205         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  206         -
            }
  207         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  208         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  209         -
            builder = _header_serialization_settings.set_default_header(
  210         -
                builder,
  211         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  212         -
                "Logs_20140328.DescribeLogStreams",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body =
  217         -
            ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_log_streams::ser_describe_log_streams_input(&input)?);
  218         -
        if let Some(content_length) = body.content_length() {
  219         -
            let content_length = content_length.to_string();
  220         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  221         -
        }
  222         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         303  +
        let protocol = _cfg
         304  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         305  +
            .expect("a SharedClientProtocol is required");
         306  +
        let mut request = protocol
         307  +
            .serialize_request(&input, DescribeLogStreams::INPUT_SCHEMA, "", _cfg)
         308  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         309  +
         310  +
        return ::std::result::Result::Ok(request);
  223    311   
    }
  224    312   
}
  225    313   
#[derive(Debug)]
  226    314   
struct DescribeLogStreamsEndpointParamsInterceptor;
  227    315   
  228    316   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeLogStreamsEndpointParamsInterceptor {
  229    317   
    fn name(&self) -> &'static str {
  230    318   
        "DescribeLogStreamsEndpointParamsInterceptor"
  231    319   
    }
  232    320   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_log_streams/_describe_log_streams_input.rs

@@ -47,47 +157,157 @@
   67     67   
    "com.amazonaws.cloudwatchlogs.synthetic",
   68     68   
    "DescribeLogStreamsInput",
   69     69   
);
   70     70   
static DESCRIBELOGSTREAMSINPUT_MEMBER_LOG_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$logGroupName",
   73     73   
        "com.amazonaws.cloudwatchlogs.synthetic",
   74     74   
        "DescribeLogStreamsInput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::String,
   77         -
    "log_group_name",
          77  +
    "logGroupName",
   78     78   
    0,
   79     79   
);
   80     80   
static DESCRIBELOGSTREAMSINPUT_MEMBER_LOG_GROUP_IDENTIFIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$logGroupIdentifier",
   83     83   
        "com.amazonaws.cloudwatchlogs.synthetic",
   84     84   
        "DescribeLogStreamsInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::String,
   87         -
    "log_group_identifier",
          87  +
    "logGroupIdentifier",
   88     88   
    1,
   89     89   
);
   90     90   
static DESCRIBELOGSTREAMSINPUT_MEMBER_LOG_STREAM_NAME_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$logStreamNamePrefix",
   93     93   
        "com.amazonaws.cloudwatchlogs.synthetic",
   94     94   
        "DescribeLogStreamsInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "log_stream_name_prefix",
          97  +
    "logStreamNamePrefix",
   98     98   
    2,
   99     99   
);
  100    100   
static DESCRIBELOGSTREAMSINPUT_MEMBER_ORDER_BY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$orderBy",
  103    103   
        "com.amazonaws.cloudwatchlogs.synthetic",
  104    104   
        "DescribeLogStreamsInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "order_by",
         107  +
    "orderBy",
  108    108   
    3,
  109    109   
);
  110    110   
static DESCRIBELOGSTREAMSINPUT_MEMBER_DESCENDING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  111    111   
    ::aws_smithy_schema::ShapeId::from_static(
  112    112   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$descending",
  113    113   
        "com.amazonaws.cloudwatchlogs.synthetic",
  114    114   
        "DescribeLogStreamsInput",
  115    115   
    ),
  116    116   
    ::aws_smithy_schema::ShapeType::Boolean,
  117    117   
    "descending",
  118    118   
    4,
  119    119   
);
  120    120   
static DESCRIBELOGSTREAMSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$nextToken",
  123    123   
        "com.amazonaws.cloudwatchlogs.synthetic",
  124    124   
        "DescribeLogStreamsInput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::String,
  127         -
    "next_token",
         127  +
    "nextToken",
  128    128   
    5,
  129    129   
);
  130    130   
static DESCRIBELOGSTREAMSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  131    131   
    ::aws_smithy_schema::ShapeId::from_static(
  132    132   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsInput$limit",
  133    133   
        "com.amazonaws.cloudwatchlogs.synthetic",
  134    134   
        "DescribeLogStreamsInput",
  135    135   
    ),
  136    136   
    ::aws_smithy_schema::ShapeType::Integer,
  137    137   
    "limit",
@@ -159,159 +262,273 @@
  179    179   
            ser.write_string(&DESCRIBELOGSTREAMSINPUT_MEMBER_NEXT_TOKEN, val)?;
  180    180   
        }
  181    181   
        if let Some(ref val) = self.limit {
  182    182   
            ser.write_integer(&DESCRIBELOGSTREAMSINPUT_MEMBER_LIMIT, *val)?;
  183    183   
        }
  184    184   
        Ok(())
  185    185   
    }
  186    186   
}
  187    187   
impl DescribeLogStreamsInput {
  188    188   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  189         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  190         -
        deserializer: &mut D,
         189  +
    pub fn deserialize(
         190  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  191    191   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  192    192   
        #[allow(unused_variables, unused_mut)]
  193    193   
        let mut builder = Self::builder();
  194    194   
        #[allow(
  195    195   
            unused_variables,
  196    196   
            unreachable_code,
  197    197   
            clippy::single_match,
  198    198   
            clippy::match_single_binding,
  199    199   
            clippy::diverging_sub_expression
  200    200   
        )]
  201         -
        deserializer.read_struct(&DESCRIBELOGSTREAMSINPUT_SCHEMA, (), |_, member, deser| {
         201  +
        deserializer.read_struct(&DESCRIBELOGSTREAMSINPUT_SCHEMA, &mut |member, deser| {
  202    202   
            match member.member_index() {
  203    203   
                Some(0) => {
  204    204   
                    builder.log_group_name = Some(deser.read_string(member)?);
  205    205   
                }
  206    206   
                Some(1) => {
  207    207   
                    builder.log_group_identifier = Some(deser.read_string(member)?);
  208    208   
                }
  209    209   
                Some(2) => {
  210    210   
                    builder.log_stream_name_prefix = Some(deser.read_string(member)?);
  211    211   
                }
  212    212   
                Some(3) => {
  213    213   
                    builder.order_by = Some(crate::types::OrderBy::from(deser.read_string(member)?.as_str()));
  214    214   
                }
  215    215   
                Some(4) => {
  216    216   
                    builder.descending = Some(deser.read_boolean(member)?);
  217    217   
                }
  218    218   
                Some(5) => {
  219    219   
                    builder.next_token = Some(deser.read_string(member)?);
  220    220   
                }
  221    221   
                Some(6) => {
  222    222   
                    builder.limit = Some(deser.read_integer(member)?);
  223    223   
                }
  224    224   
                _ => {}
  225    225   
            }
  226    226   
            Ok(())
  227    227   
        })?;
  228    228   
        builder
  229    229   
            .build()
  230    230   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  231    231   
    }
  232    232   
}
         233  +
impl DescribeLogStreamsInput {
         234  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         235  +
    pub fn deserialize_with_response(
         236  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         237  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         238  +
        _status: u16,
         239  +
        _body: &[u8],
         240  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         241  +
        Self::deserialize(deserializer)
         242  +
    }
         243  +
}
  233    244   
impl DescribeLogStreamsInput {
  234    245   
    /// Creates a new builder-style object to manufacture [`DescribeLogStreamsInput`](crate::operation::describe_log_streams::DescribeLogStreamsInput).
  235    246   
    pub fn builder() -> crate::operation::describe_log_streams::builders::DescribeLogStreamsInputBuilder {
  236    247   
        crate::operation::describe_log_streams::builders::DescribeLogStreamsInputBuilder::default()
  237    248   
    }
  238    249   
}
  239    250   
  240    251   
/// A builder for [`DescribeLogStreamsInput`](crate::operation::describe_log_streams::DescribeLogStreamsInput).
  241    252   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  242    253   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_log_streams/_describe_log_streams_output.rs

@@ -6,6 +137,192 @@
   26     26   
    "com.amazonaws.cloudwatchlogs.synthetic",
   27     27   
    "DescribeLogStreamsOutput",
   28     28   
);
   29     29   
static DESCRIBELOGSTREAMSOUTPUT_MEMBER_LOG_STREAMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsOutput$logStreams",
   32     32   
        "com.amazonaws.cloudwatchlogs.synthetic",
   33     33   
        "DescribeLogStreamsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "log_streams",
          36  +
    "logStreams",
   37     37   
    0,
   38     38   
);
   39     39   
static DESCRIBELOGSTREAMSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeLogStreamsOutput$nextToken",
   42     42   
        "com.amazonaws.cloudwatchlogs.synthetic",
   43     43   
        "DescribeLogStreamsOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "nextToken",
   47     47   
    1,
   48     48   
);
          49  +
static DESCRIBELOGSTREAMSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static DESCRIBELOGSTREAMSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    DESCRIBELOGSTREAMSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52         -
    &[&DESCRIBELOGSTREAMSOUTPUT_MEMBER_LOG_STREAMS, &DESCRIBELOGSTREAMSOUTPUT_MEMBER_NEXT_TOKEN],
          59  +
    &[
          60  +
        &DESCRIBELOGSTREAMSOUTPUT_MEMBER_LOG_STREAMS,
          61  +
        &DESCRIBELOGSTREAMSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &DESCRIBELOGSTREAMSOUTPUT_MEMBER__REQUEST_ID,
          63  +
    ],
   53     64   
);
   54     65   
impl DescribeLogStreamsOutput {
   55     66   
    /// The schema for this shape.
   56     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBELOGSTREAMSOUTPUT_SCHEMA;
   57     68   
}
   58     69   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeLogStreamsOutput {
   59     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     71   
    fn serialize_members(
   61     72   
        &self,
   62     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     75   
        if let Some(ref val) = self.log_streams {
   65     76   
            ser.write_list(
   66     77   
                &DESCRIBELOGSTREAMSOUTPUT_MEMBER_LOG_STREAMS,
   67     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   68     79   
                    for item in val {
   69     80   
                        ser.write_struct(crate::types::LogStream::SCHEMA, item)?;
   70     81   
                    }
   71     82   
                    Ok(())
   72     83   
                },
   73     84   
            )?;
   74     85   
        }
   75     86   
        if let Some(ref val) = self.next_token {
   76     87   
            ser.write_string(&DESCRIBELOGSTREAMSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   77     88   
        }
   78     89   
        Ok(())
   79     90   
    }
   80     91   
}
   81     92   
impl DescribeLogStreamsOutput {
   82     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   83         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   84         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          96  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          97  +
        #[allow(unused_variables, unused_mut)]
          98  +
        let mut builder = Self::builder();
          99  +
        #[allow(
         100  +
            unused_variables,
         101  +
            unreachable_code,
         102  +
            clippy::single_match,
         103  +
            clippy::match_single_binding,
         104  +
            clippy::diverging_sub_expression
         105  +
        )]
         106  +
        deserializer.read_struct(&DESCRIBELOGSTREAMSOUTPUT_SCHEMA, &mut |member, deser| {
         107  +
            match member.member_index() {
         108  +
                Some(0) => {
         109  +
                    builder.log_streams = Some({
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::LogStream::deserialize(deser)?);
         113  +
                            Ok(())
         114  +
                        })?;
         115  +
                        container
         116  +
                    });
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.next_token = Some(deser.read_string(member)?);
         120  +
                }
         121  +
                Some(2) => {
         122  +
                    builder._request_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl DescribeLogStreamsOutput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         133  +
    /// Header-bound members are read directly from headers, avoiding runtime
         134  +
    /// member iteration overhead. Body members are read via the deserializer.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
   85    140   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   86    141   
        #[allow(unused_variables, unused_mut)]
   87    142   
        let mut builder = Self::builder();
         143  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         144  +
            builder._request_id = Some(val.to_string());
         145  +
        }
   88    146   
        #[allow(
   89    147   
            unused_variables,
   90    148   
            unreachable_code,
   91    149   
            clippy::single_match,
   92    150   
            clippy::match_single_binding,
   93    151   
            clippy::diverging_sub_expression
   94    152   
        )]
   95         -
        deserializer.read_struct(&DESCRIBELOGSTREAMSOUTPUT_SCHEMA, (), |_, member, deser| {
         153  +
        deserializer.read_struct(&DESCRIBELOGSTREAMSOUTPUT_SCHEMA, &mut |member, deser| {
   96    154   
            match member.member_index() {
   97    155   
                Some(0) => {
   98    156   
                    builder.log_streams = Some({
   99         -
                        let container = if let Some(cap) = deser.container_size() {
  100         -
                            Vec::with_capacity(cap)
  101         -
                        } else {
  102         -
                            Vec::new()
  103         -
                        };
  104         -
                        deser.read_list(member, container, |mut list, deser| {
  105         -
                            list.push(crate::types::LogStream::deserialize(deser)?);
  106         -
                            Ok(list)
  107         -
                        })?
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::LogStream::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  108    163   
                    });
  109    164   
                }
  110    165   
                Some(1) => {
  111    166   
                    builder.next_token = Some(deser.read_string(member)?);
  112    167   
                }
  113    168   
                _ => {}
  114    169   
            }
  115    170   
            Ok(())
  116    171   
        })?;
  117    172   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_metric_filters.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeMetricFilters`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeMetricFilters;
    6      6   
impl DescribeMetricFilters {
    7      7   
    /// Creates a new `DescribeMetricFilters`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_metric_filters::DescribeMetricFiltersInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_metric_filters::DescribeMetricFiltersOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_metric_filters::DescribeMetricFiltersInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_metric_filters::DescribeMetricFiltersOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_metric_filters::DescribeMetricFiltersError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -124,128 +253,342 @@
  144    148   
                crate::operation::describe_metric_filters::DescribeMetricFiltersError,
  145    149   
            >::new());
  146    150   
  147    151   
        ::std::borrow::Cow::Owned(rcb)
  148    152   
    }
  149    153   
}
  150    154   
  151    155   
#[derive(Debug)]
  152    156   
struct DescribeMetricFiltersResponseDeserializer;
  153    157   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeMetricFiltersResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         158  +
    fn deserialize_nonstreaming_with_config(
  155    159   
        &self,
  156    160   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         161  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    162   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    163   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159         -
        let headers = response.headers();
  160         -
        let body = response.body().bytes().expect("body loaded");
  161    164   
        #[allow(unused_mut)]
  162    165   
        let mut force_error = false;
  163    166   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164         -
        let parse_result = if !success && status != 200 || force_error {
  165         -
            crate::protocol_serde::shape_describe_metric_filters::de_describe_metric_filters_http_error(status, headers, body)
  166         -
        } else {
  167         -
            crate::protocol_serde::shape_describe_metric_filters::de_describe_metric_filters_http_response(status, headers, body)
         167  +
        if !success && status != 200 || force_error {
         168  +
            let headers = response.headers();
         169  +
            let body = response.body().bytes().expect("body loaded");
         170  +
            #[allow(unused_mut)]
         171  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         172  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         173  +
            })?;
         174  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         175  +
            let generic = generic_builder.build();
         176  +
            let error_code = match generic.code() {
         177  +
                ::std::option::Option::Some(code) => code,
         178  +
                ::std::option::Option::None => {
         179  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         180  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         181  +
                            crate::operation::describe_metric_filters::DescribeMetricFiltersError::unhandled(generic),
         182  +
                        ),
         183  +
                    ))
         184  +
                }
         185  +
            };
         186  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         187  +
            let protocol = _cfg
         188  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         189  +
                .expect("a SharedClientProtocol is required");
         190  +
            let err = match error_code {
         191  +
                "InvalidParameterException" => crate::operation::describe_metric_filters::DescribeMetricFiltersError::InvalidParameterException({
         192  +
                    let mut tmp = match protocol
         193  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         194  +
                        .and_then(|mut deser| {
         195  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         196  +
                                &mut *deser,
         197  +
                                response.headers(),
         198  +
                                response.status().into(),
         199  +
                                body,
         200  +
                            )
         201  +
                        }) {
         202  +
                        ::std::result::Result::Ok(val) => val,
         203  +
                        ::std::result::Result::Err(e) => {
         204  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         205  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         206  +
                            ))
         207  +
                        }
         208  +
                    };
         209  +
                    tmp.meta = generic;
         210  +
                    if tmp.message.is_none() {
         211  +
                        tmp.message = _error_message;
         212  +
                    }
         213  +
                    tmp
         214  +
                }),
         215  +
                "ResourceNotFoundException" => crate::operation::describe_metric_filters::DescribeMetricFiltersError::ResourceNotFoundException({
         216  +
                    let mut tmp = match protocol
         217  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         218  +
                        .and_then(|mut deser| {
         219  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         220  +
                                &mut *deser,
         221  +
                                response.headers(),
         222  +
                                response.status().into(),
         223  +
                                body,
         224  +
                            )
         225  +
                        }) {
         226  +
                        ::std::result::Result::Ok(val) => val,
         227  +
                        ::std::result::Result::Err(e) => {
         228  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         229  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         230  +
                            ))
         231  +
                        }
         232  +
                    };
         233  +
                    tmp.meta = generic;
         234  +
                    if tmp.message.is_none() {
         235  +
                        tmp.message = _error_message;
         236  +
                    }
         237  +
                    tmp
         238  +
                }),
         239  +
                "ServiceUnavailableException" => {
         240  +
                    crate::operation::describe_metric_filters::DescribeMetricFiltersError::ServiceUnavailableException({
         241  +
                        let mut tmp = match protocol
         242  +
                            .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         243  +
                            .and_then(|mut deser| {
         244  +
                                crate::types::error::ServiceUnavailableException::deserialize_with_response(
         245  +
                                    &mut *deser,
         246  +
                                    response.headers(),
         247  +
                                    response.status().into(),
         248  +
                                    body,
         249  +
                                )
         250  +
                            }) {
         251  +
                            ::std::result::Result::Ok(val) => val,
         252  +
                            ::std::result::Result::Err(e) => {
         253  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         254  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         255  +
                                ))
         256  +
                            }
  168    257   
                        };
  169         -
        crate::protocol_serde::type_erase_result(parse_result)
         258  +
                        tmp.meta = generic;
         259  +
                        if tmp.message.is_none() {
         260  +
                            tmp.message = _error_message;
         261  +
                        }
         262  +
                        tmp
         263  +
                    })
         264  +
                }
         265  +
                _ => crate::operation::describe_metric_filters::DescribeMetricFiltersError::generic(generic),
         266  +
            };
         267  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         268  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         269  +
            ))
         270  +
        } else {
         271  +
            let protocol = _cfg
         272  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         273  +
                .expect("a SharedClientProtocol is required");
         274  +
            let mut deser = protocol
         275  +
                .deserialize_response(response, DescribeMetricFilters::OUTPUT_SCHEMA, _cfg)
         276  +
                .map_err(|e| {
         277  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         278  +
                })?;
         279  +
            let body = response.body().bytes().expect("body loaded");
         280  +
            let output = crate::operation::describe_metric_filters::DescribeMetricFiltersOutput::deserialize_with_response(
         281  +
                &mut *deser,
         282  +
                response.headers(),
         283  +
                response.status().into(),
         284  +
                body,
         285  +
            )
         286  +
            .map_err(|e| {
         287  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         288  +
            })?;
         289  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         290  +
        }
  170    291   
    }
  171    292   
}
  172    293   
#[derive(Debug)]
  173    294   
struct DescribeMetricFiltersRequestSerializer;
  174    295   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeMetricFiltersRequestSerializer {
  175    296   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  176    297   
    fn serialize_input(
  177    298   
        &self,
  178    299   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  179    300   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  180    301   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  181    302   
        let input = input
  182    303   
            .downcast::<crate::operation::describe_metric_filters::DescribeMetricFiltersInput>()
  183    304   
            .expect("correct type");
  184         -
        let _header_serialization_settings = _cfg
  185         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  186         -
            .cloned()
  187         -
            .unwrap_or_default();
  188         -
        let mut request_builder = {
  189         -
            #[allow(clippy::uninlined_format_args)]
  190         -
            fn uri_base(
  191         -
                _input: &crate::operation::describe_metric_filters::DescribeMetricFiltersInput,
  192         -
                output: &mut ::std::string::String,
  193         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  194         -
                use ::std::fmt::Write as _;
  195         -
                ::std::write!(output, "/").expect("formatting should succeed");
  196         -
                ::std::result::Result::Ok(())
  197         -
            }
  198         -
            #[allow(clippy::unnecessary_wraps)]
  199         -
            fn update_http_builder(
  200         -
                input: &crate::operation::describe_metric_filters::DescribeMetricFiltersInput,
  201         -
                builder: ::http_1x::request::Builder,
  202         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  203         -
                let mut uri = ::std::string::String::new();
  204         -
                uri_base(input, &mut uri)?;
  205         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  206         -
            }
  207         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  208         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  209         -
            builder = _header_serialization_settings.set_default_header(
  210         -
                builder,
  211         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  212         -
                "Logs_20140328.DescribeMetricFilters",
  213         -
            );
  214         -
            builder
  215         -
        };
  216         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_metric_filters::ser_describe_metric_filters_input(
  217         -
            &input,
  218         -
        )?);
  219         -
        if let Some(content_length) = body.content_length() {
  220         -
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222         -
        }
  223         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         305  +
        let protocol = _cfg
         306  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         307  +
            .expect("a SharedClientProtocol is required");
         308  +
        let mut request = protocol
         309  +
            .serialize_request(&input, DescribeMetricFilters::INPUT_SCHEMA, "", _cfg)
         310  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         311  +
         312  +
        return ::std::result::Result::Ok(request);
  224    313   
    }
  225    314   
}
  226    315   
#[derive(Debug)]
  227    316   
struct DescribeMetricFiltersEndpointParamsInterceptor;
  228    317   
  229    318   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeMetricFiltersEndpointParamsInterceptor {
  230    319   
    fn name(&self) -> &'static str {
  231    320   
        "DescribeMetricFiltersEndpointParamsInterceptor"
  232    321   
    }
  233    322   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_metric_filters/_describe_metric_filters_input.rs

@@ -27,27 +225,236 @@
   47     47   
    "com.amazonaws.cloudwatchlogs.synthetic",
   48     48   
    "DescribeMetricFiltersInput",
   49     49   
);
   50     50   
static DESCRIBEMETRICFILTERSINPUT_MEMBER_LOG_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersInput$logGroupName",
   53     53   
        "com.amazonaws.cloudwatchlogs.synthetic",
   54     54   
        "DescribeMetricFiltersInput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::String,
   57         -
    "log_group_name",
          57  +
    "logGroupName",
   58     58   
    0,
   59     59   
);
   60     60   
static DESCRIBEMETRICFILTERSINPUT_MEMBER_FILTER_NAME_PREFIX: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   61     61   
    ::aws_smithy_schema::ShapeId::from_static(
   62     62   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersInput$filterNamePrefix",
   63     63   
        "com.amazonaws.cloudwatchlogs.synthetic",
   64     64   
        "DescribeMetricFiltersInput",
   65     65   
    ),
   66     66   
    ::aws_smithy_schema::ShapeType::String,
   67         -
    "filter_name_prefix",
          67  +
    "filterNamePrefix",
   68     68   
    1,
   69     69   
);
   70     70   
static DESCRIBEMETRICFILTERSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   71     71   
    ::aws_smithy_schema::ShapeId::from_static(
   72     72   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersInput$nextToken",
   73     73   
        "com.amazonaws.cloudwatchlogs.synthetic",
   74     74   
        "DescribeMetricFiltersInput",
   75     75   
    ),
   76     76   
    ::aws_smithy_schema::ShapeType::String,
   77         -
    "next_token",
          77  +
    "nextToken",
   78     78   
    2,
   79     79   
);
   80     80   
static DESCRIBEMETRICFILTERSINPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   81     81   
    ::aws_smithy_schema::ShapeId::from_static(
   82     82   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersInput$limit",
   83     83   
        "com.amazonaws.cloudwatchlogs.synthetic",
   84     84   
        "DescribeMetricFiltersInput",
   85     85   
    ),
   86     86   
    ::aws_smithy_schema::ShapeType::Integer,
   87     87   
    "limit",
   88     88   
    3,
   89     89   
);
   90     90   
static DESCRIBEMETRICFILTERSINPUT_MEMBER_METRIC_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   91     91   
    ::aws_smithy_schema::ShapeId::from_static(
   92     92   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersInput$metricName",
   93     93   
        "com.amazonaws.cloudwatchlogs.synthetic",
   94     94   
        "DescribeMetricFiltersInput",
   95     95   
    ),
   96     96   
    ::aws_smithy_schema::ShapeType::String,
   97         -
    "metric_name",
          97  +
    "metricName",
   98     98   
    4,
   99     99   
);
  100    100   
static DESCRIBEMETRICFILTERSINPUT_MEMBER_METRIC_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersInput$metricNamespace",
  103    103   
        "com.amazonaws.cloudwatchlogs.synthetic",
  104    104   
        "DescribeMetricFiltersInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "metric_namespace",
         107  +
    "metricNamespace",
  108    108   
    5,
  109    109   
);
  110    110   
static DESCRIBEMETRICFILTERSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  111    111   
    DESCRIBEMETRICFILTERSINPUT_SCHEMA_ID,
  112    112   
    ::aws_smithy_schema::ShapeType::Structure,
  113    113   
    &[
  114    114   
        &DESCRIBEMETRICFILTERSINPUT_MEMBER_LOG_GROUP_NAME,
  115    115   
        &DESCRIBEMETRICFILTERSINPUT_MEMBER_FILTER_NAME_PREFIX,
  116    116   
        &DESCRIBEMETRICFILTERSINPUT_MEMBER_NEXT_TOKEN,
  117    117   
        &DESCRIBEMETRICFILTERSINPUT_MEMBER_LIMIT,
  118    118   
        &DESCRIBEMETRICFILTERSINPUT_MEMBER_METRIC_NAME,
  119    119   
        &DESCRIBEMETRICFILTERSINPUT_MEMBER_METRIC_NAMESPACE,
  120    120   
    ],
  121    121   
);
  122    122   
impl DescribeMetricFiltersInput {
  123    123   
    /// The schema for this shape.
  124    124   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEMETRICFILTERSINPUT_SCHEMA;
  125    125   
}
  126    126   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeMetricFiltersInput {
  127    127   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  128    128   
    fn serialize_members(
  129    129   
        &self,
  130    130   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  131    131   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  132    132   
        if let Some(ref val) = self.log_group_name {
  133    133   
            ser.write_string(&DESCRIBEMETRICFILTERSINPUT_MEMBER_LOG_GROUP_NAME, val)?;
  134    134   
        }
  135    135   
        if let Some(ref val) = self.filter_name_prefix {
  136    136   
            ser.write_string(&DESCRIBEMETRICFILTERSINPUT_MEMBER_FILTER_NAME_PREFIX, val)?;
  137    137   
        }
  138    138   
        if let Some(ref val) = self.next_token {
  139    139   
            ser.write_string(&DESCRIBEMETRICFILTERSINPUT_MEMBER_NEXT_TOKEN, val)?;
  140    140   
        }
  141    141   
        if let Some(ref val) = self.limit {
  142    142   
            ser.write_integer(&DESCRIBEMETRICFILTERSINPUT_MEMBER_LIMIT, *val)?;
  143    143   
        }
  144    144   
        if let Some(ref val) = self.metric_name {
  145    145   
            ser.write_string(&DESCRIBEMETRICFILTERSINPUT_MEMBER_METRIC_NAME, val)?;
  146    146   
        }
  147    147   
        if let Some(ref val) = self.metric_namespace {
  148    148   
            ser.write_string(&DESCRIBEMETRICFILTERSINPUT_MEMBER_METRIC_NAMESPACE, val)?;
  149    149   
        }
  150    150   
        Ok(())
  151    151   
    }
  152    152   
}
  153    153   
impl DescribeMetricFiltersInput {
  154    154   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  155         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  156         -
        deserializer: &mut D,
         155  +
    pub fn deserialize(
         156  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  157    157   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  158    158   
        #[allow(unused_variables, unused_mut)]
  159    159   
        let mut builder = Self::builder();
  160    160   
        #[allow(
  161    161   
            unused_variables,
  162    162   
            unreachable_code,
  163    163   
            clippy::single_match,
  164    164   
            clippy::match_single_binding,
  165    165   
            clippy::diverging_sub_expression
  166    166   
        )]
  167         -
        deserializer.read_struct(&DESCRIBEMETRICFILTERSINPUT_SCHEMA, (), |_, member, deser| {
         167  +
        deserializer.read_struct(&DESCRIBEMETRICFILTERSINPUT_SCHEMA, &mut |member, deser| {
  168    168   
            match member.member_index() {
  169    169   
                Some(0) => {
  170    170   
                    builder.log_group_name = Some(deser.read_string(member)?);
  171    171   
                }
  172    172   
                Some(1) => {
  173    173   
                    builder.filter_name_prefix = Some(deser.read_string(member)?);
  174    174   
                }
  175    175   
                Some(2) => {
  176    176   
                    builder.next_token = Some(deser.read_string(member)?);
  177    177   
                }
  178    178   
                Some(3) => {
  179    179   
                    builder.limit = Some(deser.read_integer(member)?);
  180    180   
                }
  181    181   
                Some(4) => {
  182    182   
                    builder.metric_name = Some(deser.read_string(member)?);
  183    183   
                }
  184    184   
                Some(5) => {
  185    185   
                    builder.metric_namespace = Some(deser.read_string(member)?);
  186    186   
                }
  187    187   
                _ => {}
  188    188   
            }
  189    189   
            Ok(())
  190    190   
        })?;
  191    191   
        builder
  192    192   
            .build()
  193    193   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  194    194   
    }
  195    195   
}
         196  +
impl DescribeMetricFiltersInput {
         197  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         198  +
    pub fn deserialize_with_response(
         199  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         200  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         201  +
        _status: u16,
         202  +
        _body: &[u8],
         203  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         204  +
        Self::deserialize(deserializer)
         205  +
    }
         206  +
}
  196    207   
impl DescribeMetricFiltersInput {
  197    208   
    /// Creates a new builder-style object to manufacture [`DescribeMetricFiltersInput`](crate::operation::describe_metric_filters::DescribeMetricFiltersInput).
  198    209   
    pub fn builder() -> crate::operation::describe_metric_filters::builders::DescribeMetricFiltersInputBuilder {
  199    210   
        crate::operation::describe_metric_filters::builders::DescribeMetricFiltersInputBuilder::default()
  200    211   
    }
  201    212   
}
  202    213   
  203    214   
/// A builder for [`DescribeMetricFiltersInput`](crate::operation::describe_metric_filters::DescribeMetricFiltersInput).
  204    215   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  205    216   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_metric_filters/_describe_metric_filters_output.rs

@@ -6,6 +140,192 @@
   26     26   
    "com.amazonaws.cloudwatchlogs.synthetic",
   27     27   
    "DescribeMetricFiltersOutput",
   28     28   
);
   29     29   
static DESCRIBEMETRICFILTERSOUTPUT_MEMBER_METRIC_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersOutput$metricFilters",
   32     32   
        "com.amazonaws.cloudwatchlogs.synthetic",
   33     33   
        "DescribeMetricFiltersOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "metric_filters",
          36  +
    "metricFilters",
   37     37   
    0,
   38     38   
);
   39     39   
static DESCRIBEMETRICFILTERSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   40     40   
    ::aws_smithy_schema::ShapeId::from_static(
   41     41   
        "com.amazonaws.cloudwatchlogs.synthetic#DescribeMetricFiltersOutput$nextToken",
   42     42   
        "com.amazonaws.cloudwatchlogs.synthetic",
   43     43   
        "DescribeMetricFiltersOutput",
   44     44   
    ),
   45     45   
    ::aws_smithy_schema::ShapeType::String,
   46         -
    "next_token",
          46  +
    "nextToken",
   47     47   
    1,
   48     48   
);
          49  +
static DESCRIBEMETRICFILTERSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static DESCRIBEMETRICFILTERSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    DESCRIBEMETRICFILTERSOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &DESCRIBEMETRICFILTERSOUTPUT_MEMBER_METRIC_FILTERS,
   54     61   
        &DESCRIBEMETRICFILTERSOUTPUT_MEMBER_NEXT_TOKEN,
          62  +
        &DESCRIBEMETRICFILTERSOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl DescribeMetricFiltersOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEMETRICFILTERSOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeMetricFiltersOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.metric_filters {
   68     76   
            ser.write_list(
   69     77   
                &DESCRIBEMETRICFILTERSOUTPUT_MEMBER_METRIC_FILTERS,
   70     78   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   71     79   
                    for item in val {
   72     80   
                        ser.write_struct(crate::types::MetricFilter::SCHEMA, item)?;
   73     81   
                    }
   74     82   
                    Ok(())
   75     83   
                },
   76     84   
            )?;
   77     85   
        }
   78     86   
        if let Some(ref val) = self.next_token {
   79     87   
            ser.write_string(&DESCRIBEMETRICFILTERSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   80     88   
        }
   81     89   
        Ok(())
   82     90   
    }
   83     91   
}
   84     92   
impl DescribeMetricFiltersOutput {
   85     93   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   86         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   87         -
        deserializer: &mut D,
          94  +
    pub fn deserialize(
          95  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   88     96   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   89     97   
        #[allow(unused_variables, unused_mut)]
   90     98   
        let mut builder = Self::builder();
   91     99   
        #[allow(
   92    100   
            unused_variables,
   93    101   
            unreachable_code,
   94    102   
            clippy::single_match,
   95    103   
            clippy::match_single_binding,
   96    104   
            clippy::diverging_sub_expression
   97    105   
        )]
   98         -
        deserializer.read_struct(&DESCRIBEMETRICFILTERSOUTPUT_SCHEMA, (), |_, member, deser| {
         106  +
        deserializer.read_struct(&DESCRIBEMETRICFILTERSOUTPUT_SCHEMA, &mut |member, deser| {
   99    107   
            match member.member_index() {
  100    108   
                Some(0) => {
  101    109   
                    builder.metric_filters = Some({
  102         -
                        let container = if let Some(cap) = deser.container_size() {
  103         -
                            Vec::with_capacity(cap)
  104         -
                        } else {
  105         -
                            Vec::new()
  106         -
                        };
  107         -
                        deser.read_list(member, container, |mut list, deser| {
  108         -
                            list.push(crate::types::MetricFilter::deserialize(deser)?);
  109         -
                            Ok(list)
  110         -
                        })?
         110  +
                        let mut container = Vec::new();
         111  +
                        deser.read_list(member, &mut |deser| {
         112  +
                            container.push(crate::types::MetricFilter::deserialize(deser)?);
         113  +
                            Ok(())
         114  +
                        })?;
         115  +
                        container
         116  +
                    });
         117  +
                }
         118  +
                Some(1) => {
         119  +
                    builder.next_token = Some(deser.read_string(member)?);
         120  +
                }
         121  +
                Some(2) => {
         122  +
                    builder._request_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl DescribeMetricFiltersOutput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         133  +
    /// Header-bound members are read directly from headers, avoiding runtime
         134  +
    /// member iteration overhead. Body members are read via the deserializer.
         135  +
    pub fn deserialize_with_response(
         136  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         137  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         138  +
        _status: u16,
         139  +
        _body: &[u8],
         140  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         141  +
        #[allow(unused_variables, unused_mut)]
         142  +
        let mut builder = Self::builder();
         143  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         144  +
            builder._request_id = Some(val.to_string());
         145  +
        }
         146  +
        #[allow(
         147  +
            unused_variables,
         148  +
            unreachable_code,
         149  +
            clippy::single_match,
         150  +
            clippy::match_single_binding,
         151  +
            clippy::diverging_sub_expression
         152  +
        )]
         153  +
        deserializer.read_struct(&DESCRIBEMETRICFILTERSOUTPUT_SCHEMA, &mut |member, deser| {
         154  +
            match member.member_index() {
         155  +
                Some(0) => {
         156  +
                    builder.metric_filters = Some({
         157  +
                        let mut container = Vec::new();
         158  +
                        deser.read_list(member, &mut |deser| {
         159  +
                            container.push(crate::types::MetricFilter::deserialize(deser)?);
         160  +
                            Ok(())
         161  +
                        })?;
         162  +
                        container
  111    163   
                    });
  112    164   
                }
  113    165   
                Some(1) => {
  114    166   
                    builder.next_token = Some(deser.read_string(member)?);
  115    167   
                }
  116    168   
                _ => {}
  117    169   
            }
  118    170   
            Ok(())
  119    171   
        })?;
  120    172   
        Ok(builder.build())

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/operation/describe_queries.rs

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DescribeQueries`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeQueries;
    6      6   
impl DescribeQueries {
    7      7   
    /// Creates a new `DescribeQueries`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_queries::DescribeQueriesInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_queries::DescribeQueriesOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_queries::DescribeQueriesInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_queries::DescribeQueriesOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_queries::DescribeQueriesError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,334 @@
  138    142   
                crate::operation::describe_queries::DescribeQueriesError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DescribeQueriesResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeQueriesResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_describe_queries::de_describe_queries_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_describe_queries::de_describe_queries_http_response(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::describe_queries::DescribeQueriesError::unhandled(
         175  +
                            generic,
         176  +
                        )),
         177  +
                    ))
         178  +
                }
  162    179   
            };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "InvalidParameterException" => crate::operation::describe_queries::DescribeQueriesError::InvalidParameterException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::InvalidParameterException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::InvalidParameterException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "ResourceNotFoundException" => crate::operation::describe_queries::DescribeQueriesError::ResourceNotFoundException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "ServiceUnavailableException" => crate::operation::describe_queries::DescribeQueriesError::ServiceUnavailableException({
         234  +
                    let mut tmp = match protocol
         235  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| {
         237  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         238  +
                                &mut *deser,
         239  +
                                response.headers(),
         240  +
                                response.status().into(),
         241  +
                                body,
         242  +
                            )
         243  +
                        }) {
         244  +
                        ::std::result::Result::Ok(val) => val,
         245  +
                        ::std::result::Result::Err(e) => {
         246  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         247  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         248  +
                            ))
         249  +
                        }
         250  +
                    };
         251  +
                    tmp.meta = generic;
         252  +
                    if tmp.message.is_none() {
         253  +
                        tmp.message = _error_message;
         254  +
                    }
         255  +
                    tmp
         256  +
                }),
         257  +
                _ => crate::operation::describe_queries::DescribeQueriesError::generic(generic),
         258  +
            };
         259  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         260  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         261  +
            ))
         262  +
        } else {
         263  +
            let protocol = _cfg
         264  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         265  +
                .expect("a SharedClientProtocol is required");
         266  +
            let mut deser = protocol
         267  +
                .deserialize_response(response, DescribeQueries::OUTPUT_SCHEMA, _cfg)
         268  +
                .map_err(|e| {
         269  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         270  +
                })?;
         271  +
            let body = response.body().bytes().expect("body loaded");
         272  +
            let output = crate::operation::describe_queries::DescribeQueriesOutput::deserialize_with_response(
         273  +
                &mut *deser,
         274  +
                response.headers(),
         275  +
                response.status().into(),
         276  +
                body,
         277  +
            )
         278  +
            .map_err(|e| {
         279  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         280  +
            })?;
         281  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         282  +
        }
  164    283   
    }
  165    284   
}
  166    285   
#[derive(Debug)]
  167    286   
struct DescribeQueriesRequestSerializer;
  168    287   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeQueriesRequestSerializer {
  169    288   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    289   
    fn serialize_input(
  171    290   
        &self,
  172    291   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    292   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    293   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    294   
        let input = input
  176    295   
            .downcast::<crate::operation::describe_queries::DescribeQueriesInput>()
  177    296   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::describe_queries::DescribeQueriesInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::describe_queries::DescribeQueriesInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "Logs_20140328.DescribeQueries",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_describe_queries::ser_describe_queries_input(&input)?);
  211         -
        if let Some(content_length) = body.content_length() {
  212         -
            let content_length = content_length.to_string();
  213         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  214         -
        }
  215         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         297  +
        let protocol = _cfg
         298  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         299  +
            .expect("a SharedClientProtocol is required");
         300  +
        let mut request = protocol
         301  +
            .serialize_request(&input, DescribeQueries::INPUT_SCHEMA, "", _cfg)
         302  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         303  +
         304  +
        return ::std::result::Result::Ok(request);
  216    305   
    }
  217    306   
}
  218    307   
#[derive(Debug)]
  219    308   
struct DescribeQueriesEndpointParamsInterceptor;
  220    309   
  221    310   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeQueriesEndpointParamsInterceptor {
  222    311   
    fn name(&self) -> &'static str {
  223    312   
        "DescribeQueriesEndpointParamsInterceptor"
  224    313   
    }
  225    314