AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_query_logging_config/_get_query_logging_config_output.rs

@@ -1,1 +96,143 @@
   18     18   
    "com.amazonaws.route53.synthetic",
   19     19   
    "GetQueryLoggingConfigOutput",
   20     20   
);
   21     21   
static GETQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.route53.synthetic#GetQueryLoggingConfigOutput$QueryLoggingConfig",
   24     24   
        "com.amazonaws.route53.synthetic",
   25     25   
        "GetQueryLoggingConfigOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "query_logging_config",
          28  +
    "QueryLoggingConfig",
   29     29   
    0,
   30     30   
);
          31  +
static GETQUERYLOGGINGCONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          32  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          33  +
    ::aws_smithy_schema::ShapeType::String,
          34  +
    "request_id",
          35  +
    1,
          36  +
)
          37  +
.with_http_header("x-amzn-requestid");
   31     38   
static GETQUERYLOGGINGCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   32     39   
    GETQUERYLOGGINGCONFIGOUTPUT_SCHEMA_ID,
   33     40   
    ::aws_smithy_schema::ShapeType::Structure,
   34         -
    &[&GETQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG],
          41  +
    &[
          42  +
        &GETQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG,
          43  +
        &GETQUERYLOGGINGCONFIGOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
   35     45   
);
   36     46   
impl GetQueryLoggingConfigOutput {
   37     47   
    /// The schema for this shape.
   38     48   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETQUERYLOGGINGCONFIGOUTPUT_SCHEMA;
   39     49   
}
   40     50   
impl ::aws_smithy_schema::serde::SerializableStruct for GetQueryLoggingConfigOutput {
   41     51   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   42     52   
    fn serialize_members(
   43     53   
        &self,
   44     54   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   45     55   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   46     56   
        if let Some(ref val) = self.query_logging_config {
   47     57   
            ser.write_struct(&GETQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG, val)?;
   48     58   
        }
   49     59   
        Ok(())
   50     60   
    }
   51     61   
}
   52     62   
impl GetQueryLoggingConfigOutput {
   53     63   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   54         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   55         -
        deserializer: &mut D,
          64  +
    pub fn deserialize(
          65  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   56     66   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   57     67   
        #[allow(unused_variables, unused_mut)]
   58     68   
        let mut builder = Self::builder();
   59     69   
        #[allow(
   60     70   
            unused_variables,
   61     71   
            unreachable_code,
   62     72   
            clippy::single_match,
   63     73   
            clippy::match_single_binding,
   64     74   
            clippy::diverging_sub_expression
   65     75   
        )]
   66         -
        deserializer.read_struct(&GETQUERYLOGGINGCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          76  +
        deserializer.read_struct(&GETQUERYLOGGINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
          77  +
            match member.member_index() {
          78  +
                Some(0) => {
          79  +
                    builder.query_logging_config = Some(crate::types::QueryLoggingConfig::deserialize(deser)?);
          80  +
                }
          81  +
                Some(1) => {
          82  +
                    builder._request_id = Some(deser.read_string(member)?);
          83  +
                }
          84  +
                _ => {}
          85  +
            }
          86  +
            Ok(())
          87  +
        })?;
          88  +
        Ok(builder.build())
          89  +
    }
          90  +
}
          91  +
impl GetQueryLoggingConfigOutput {
          92  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          93  +
    /// Header-bound members are read directly from headers, avoiding runtime
          94  +
    /// member iteration overhead. Body members are read via the deserializer.
          95  +
    pub fn deserialize_with_response(
          96  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          97  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          98  +
        _status: u16,
          99  +
        _body: &[u8],
         100  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         101  +
        #[allow(unused_variables, unused_mut)]
         102  +
        let mut builder = Self::builder();
         103  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         104  +
            builder._request_id = Some(val.to_string());
         105  +
        }
         106  +
        #[allow(
         107  +
            unused_variables,
         108  +
            unreachable_code,
         109  +
            clippy::single_match,
         110  +
            clippy::match_single_binding,
         111  +
            clippy::diverging_sub_expression
         112  +
        )]
         113  +
        deserializer.read_struct(&GETQUERYLOGGINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
   67    114   
            match member.member_index() {
   68    115   
                Some(0) => {
   69    116   
                    builder.query_logging_config = Some(crate::types::QueryLoggingConfig::deserialize(deser)?);
   70    117   
                }
   71    118   
                _ => {}
   72    119   
            }
   73    120   
            Ok(())
   74    121   
        })?;
   75    122   
        Ok(builder.build())
   76    123   
    }

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_reusable_delegation_set.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetReusableDelegationSet`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetReusableDelegationSet;
    6      6   
impl GetReusableDelegationSet {
    7      7   
    /// Creates a new `GetReusableDelegationSet`
    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 =
          13  +
        crate::operation::get_reusable_delegation_set::GetReusableDelegationSetInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_reusable_delegation_set::GetReusableDelegationSetOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_reusable_delegation_set::GetReusableDelegationSetInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_reusable_delegation_set::GetReusableDelegationSetOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_reusable_delegation_set::GetReusableDelegationSetError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +183,190 @@
  141    147   
                crate::operation::get_reusable_delegation_set::GetReusableDelegationSetError,
  142    148   
            >::new());
  143    149   
  144    150   
        ::std::borrow::Cow::Owned(rcb)
  145    151   
    }
  146    152   
}
  147    153   
  148    154   
#[derive(Debug)]
  149    155   
struct GetReusableDelegationSetResponseDeserializer;
  150    156   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetReusableDelegationSetResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         157  +
    fn deserialize_nonstreaming_with_config(
  152    158   
        &self,
  153    159   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         160  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    161   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    162   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156    163   
        let headers = response.headers();
  157    164   
        let body = response.body().bytes().expect("body loaded");
  158    165   
        #[allow(unused_mut)]
  159    166   
        let mut force_error = false;
  160    167   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  161    168   
        let parse_result = if !success && status != 200 || force_error {
  162    169   
            crate::protocol_serde::shape_get_reusable_delegation_set::de_get_reusable_delegation_set_http_error(status, headers, body)
  163    170   
        } else {

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_reusable_delegation_set/_get_reusable_delegation_set_input.rs

@@ -1,1 +110,123 @@
   18     18   
    "com.amazonaws.route53.synthetic",
   19     19   
    "GetReusableDelegationSetInput",
   20     20   
);
   21     21   
static GETREUSABLEDELEGATIONSETINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.route53.synthetic#GetReusableDelegationSetInput$Id",
   24     24   
        "com.amazonaws.route53.synthetic",
   25     25   
        "GetReusableDelegationSetInput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "id",
          28  +
    "Id",
   29     29   
    0,
   30     30   
)
   31     31   
.with_http_label();
   32     32   
static GETREUSABLEDELEGATIONSETINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     33   
    GETREUSABLEDELEGATIONSETINPUT_SCHEMA_ID,
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35     35   
    &[&GETREUSABLEDELEGATIONSETINPUT_MEMBER_ID],
   36         -
);
          36  +
)
          37  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/2013-04-01/delegationset/{Id}", None));
   37     38   
impl GetReusableDelegationSetInput {
   38     39   
    /// The schema for this shape.
   39     40   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETREUSABLEDELEGATIONSETINPUT_SCHEMA;
   40     41   
}
   41     42   
impl ::aws_smithy_schema::serde::SerializableStruct for GetReusableDelegationSetInput {
   42     43   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     44   
    fn serialize_members(
   44     45   
        &self,
   45     46   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     47   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     48   
        if let Some(ref val) = self.id {
   48     49   
            ser.write_string(&GETREUSABLEDELEGATIONSETINPUT_MEMBER_ID, val)?;
   49     50   
        }
   50     51   
        Ok(())
   51     52   
    }
   52     53   
}
   53     54   
impl GetReusableDelegationSetInput {
   54     55   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          56  +
    pub fn deserialize(
          57  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     58   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     59   
        #[allow(unused_variables, unused_mut)]
   59     60   
        let mut builder = Self::builder();
   60     61   
        #[allow(
   61     62   
            unused_variables,
   62     63   
            unreachable_code,
   63     64   
            clippy::single_match,
   64     65   
            clippy::match_single_binding,
   65     66   
            clippy::diverging_sub_expression
   66     67   
        )]
   67         -
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETINPUT_SCHEMA, (), |_, member, deser| {
          68  +
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETINPUT_SCHEMA, &mut |member, deser| {
   68     69   
            match member.member_index() {
   69     70   
                Some(0) => {
   70     71   
                    builder.id = Some(deser.read_string(member)?);
   71     72   
                }
   72     73   
                _ => {}
   73     74   
            }
   74     75   
            Ok(())
   75     76   
        })?;
          77  +
        builder.id = builder.id.or(Some(String::new()));
   76     78   
        builder
   77     79   
            .build()
   78     80   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   79     81   
    }
   80     82   
}
          83  +
impl GetReusableDelegationSetInput {
          84  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          85  +
    pub fn deserialize_with_response(
          86  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          87  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          88  +
        _status: u16,
          89  +
        _body: &[u8],
          90  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          91  +
        Self::deserialize(deserializer)
          92  +
    }
          93  +
}
   81     94   
impl GetReusableDelegationSetInput {
   82     95   
    /// Creates a new builder-style object to manufacture [`GetReusableDelegationSetInput`](crate::operation::get_reusable_delegation_set::GetReusableDelegationSetInput).
   83     96   
    pub fn builder() -> crate::operation::get_reusable_delegation_set::builders::GetReusableDelegationSetInputBuilder {
   84     97   
        crate::operation::get_reusable_delegation_set::builders::GetReusableDelegationSetInputBuilder::default()
   85     98   
    }
   86     99   
}
   87    100   
   88    101   
/// A builder for [`GetReusableDelegationSetInput`](crate::operation::get_reusable_delegation_set::GetReusableDelegationSetInput).
   89    102   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   90    103   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_reusable_delegation_set/_get_reusable_delegation_set_output.rs

@@ -1,1 +97,144 @@
   19     19   
    "com.amazonaws.route53.synthetic",
   20     20   
    "GetReusableDelegationSetOutput",
   21     21   
);
   22     22   
static GETREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.route53.synthetic#GetReusableDelegationSetOutput$DelegationSet",
   25     25   
        "com.amazonaws.route53.synthetic",
   26     26   
        "GetReusableDelegationSetOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "delegation_set",
          29  +
    "DelegationSet",
   30     30   
    0,
   31     31   
);
          32  +
static GETREUSABLEDELEGATIONSETOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          33  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          34  +
    ::aws_smithy_schema::ShapeType::String,
          35  +
    "request_id",
          36  +
    1,
          37  +
)
          38  +
.with_http_header("x-amzn-requestid");
   32     39   
static GETREUSABLEDELEGATIONSETOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    GETREUSABLEDELEGATIONSETOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&GETREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET],
          42  +
    &[
          43  +
        &GETREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET,
          44  +
        &GETREUSABLEDELEGATIONSETOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl GetReusableDelegationSetOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETREUSABLEDELEGATIONSETOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for GetReusableDelegationSetOutput {
   42     52   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     53   
    fn serialize_members(
   44     54   
        &self,
   45     55   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     56   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     57   
        if let Some(ref val) = self.delegation_set {
   48     58   
            ser.write_struct(&GETREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl GetReusableDelegationSetOutput {
   54     64   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          65  +
    pub fn deserialize(
          66  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     67   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     68   
        #[allow(unused_variables, unused_mut)]
   59     69   
        let mut builder = Self::builder();
   60     70   
        #[allow(
   61     71   
            unused_variables,
   62     72   
            unreachable_code,
   63     73   
            clippy::single_match,
   64     74   
            clippy::match_single_binding,
   65     75   
            clippy::diverging_sub_expression
   66     76   
        )]
   67         -
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.delegation_set = Some(crate::types::DelegationSet::deserialize(deser)?);
          81  +
                }
          82  +
                Some(1) => {
          83  +
                    builder._request_id = Some(deser.read_string(member)?);
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl GetReusableDelegationSetOutput {
          93  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          94  +
    /// Header-bound members are read directly from headers, avoiding runtime
          95  +
    /// member iteration overhead. Body members are read via the deserializer.
          96  +
    pub fn deserialize_with_response(
          97  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          98  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          99  +
        _status: u16,
         100  +
        _body: &[u8],
         101  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         102  +
        #[allow(unused_variables, unused_mut)]
         103  +
        let mut builder = Self::builder();
         104  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         105  +
            builder._request_id = Some(val.to_string());
         106  +
        }
         107  +
        #[allow(
         108  +
            unused_variables,
         109  +
            unreachable_code,
         110  +
            clippy::single_match,
         111  +
            clippy::match_single_binding,
         112  +
            clippy::diverging_sub_expression
         113  +
        )]
         114  +
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.delegation_set = Some(crate::types::DelegationSet::deserialize(deser)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_reusable_delegation_set_limit.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetReusableDelegationSetLimit`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetReusableDelegationSetLimit;
    6      6   
impl GetReusableDelegationSetLimit {
    7      7   
    /// Creates a new `GetReusableDelegationSetLimit`
    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 =
          13  +
        crate::operation::get_reusable_delegation_set_limit::GetReusableDelegationSetLimitInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_reusable_delegation_set_limit::GetReusableDelegationSetLimitOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_reusable_delegation_set_limit::GetReusableDelegationSetLimitInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_reusable_delegation_set_limit::GetReusableDelegationSetLimitOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_reusable_delegation_set_limit::GetReusableDelegationSetLimitError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -127,133 +189,196 @@
  147    153   
                crate::operation::get_reusable_delegation_set_limit::GetReusableDelegationSetLimitError,
  148    154   
            >::new());
  149    155   
  150    156   
        ::std::borrow::Cow::Owned(rcb)
  151    157   
    }
  152    158   
}
  153    159   
  154    160   
#[derive(Debug)]
  155    161   
struct GetReusableDelegationSetLimitResponseDeserializer;
  156    162   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetReusableDelegationSetLimitResponseDeserializer {
  157         -
    fn deserialize_nonstreaming(
         163  +
    fn deserialize_nonstreaming_with_config(
  158    164   
        &self,
  159    165   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         166  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  160    167   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  161    168   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  162    169   
        let headers = response.headers();
  163    170   
        let body = response.body().bytes().expect("body loaded");
  164    171   
        #[allow(unused_mut)]
  165    172   
        let mut force_error = false;
  166    173   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  167    174   
        let parse_result = if !success && status != 200 || force_error {
  168    175   
            crate::protocol_serde::shape_get_reusable_delegation_set_limit::de_get_reusable_delegation_set_limit_http_error(status, headers, body)
  169    176   
        } else {

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_reusable_delegation_set_limit/_get_reusable_delegation_set_limit_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_reusable_delegation_set_limit/_get_reusable_delegation_set_limit_output.rs

@@ -5,5 +120,168 @@
   25     25   
    "com.amazonaws.route53.synthetic",
   26     26   
    "GetReusableDelegationSetLimitOutput",
   27     27   
);
   28     28   
static GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_LIMIT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.route53.synthetic#GetReusableDelegationSetLimitOutput$Limit",
   31     31   
        "com.amazonaws.route53.synthetic",
   32     32   
        "GetReusableDelegationSetLimitOutput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    "limit",
          35  +
    "Limit",
   36     36   
    0,
   37     37   
);
   38     38   
static GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.route53.synthetic#GetReusableDelegationSetLimitOutput$Count",
   41     41   
        "com.amazonaws.route53.synthetic",
   42     42   
        "GetReusableDelegationSetLimitOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Long,
   45         -
    "count",
          45  +
    "Count",
   46     46   
    1,
   47     47   
);
          48  +
static GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          49  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          50  +
    ::aws_smithy_schema::ShapeType::String,
          51  +
    "request_id",
          52  +
    2,
          53  +
)
          54  +
.with_http_header("x-amzn-requestid");
   48     55   
static GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     56   
    GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA_ID,
   50     57   
    ::aws_smithy_schema::ShapeType::Structure,
   51     58   
    &[
   52     59   
        &GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_LIMIT,
   53     60   
        &GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_COUNT,
          61  +
        &GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER__REQUEST_ID,
   54     62   
    ],
   55     63   
);
   56     64   
impl GetReusableDelegationSetLimitOutput {
   57     65   
    /// The schema for this shape.
   58     66   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA;
   59     67   
}
   60     68   
impl ::aws_smithy_schema::serde::SerializableStruct for GetReusableDelegationSetLimitOutput {
   61     69   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     70   
    fn serialize_members(
   63     71   
        &self,
   64     72   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     73   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     74   
        if let Some(ref val) = self.limit {
   67     75   
            ser.write_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_LIMIT, val)?;
   68     76   
        }
   69     77   
        {
   70     78   
            let val = &self.count;
   71     79   
            ser.write_long(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_MEMBER_COUNT, *val)?;
   72     80   
        }
   73     81   
        Ok(())
   74     82   
    }
   75     83   
}
   76     84   
impl GetReusableDelegationSetLimitOutput {
   77     85   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   78         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   79         -
        deserializer: &mut D,
          86  +
    pub fn deserialize(
          87  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   80     88   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   81     89   
        #[allow(unused_variables, unused_mut)]
   82     90   
        let mut builder = Self::builder();
   83     91   
        #[allow(
   84     92   
            unused_variables,
   85     93   
            unreachable_code,
   86     94   
            clippy::single_match,
   87     95   
            clippy::match_single_binding,
   88     96   
            clippy::diverging_sub_expression
   89     97   
        )]
   90         -
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA, (), |_, member, deser| {
          98  +
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA, &mut |member, deser| {
          99  +
            match member.member_index() {
         100  +
                Some(0) => {
         101  +
                    builder.limit = Some(crate::types::ReusableDelegationSetLimit::deserialize(deser)?);
         102  +
                }
         103  +
                Some(1) => {
         104  +
                    builder.count = Some(deser.read_long(member)?);
         105  +
                }
         106  +
                Some(2) => {
         107  +
                    builder._request_id = Some(deser.read_string(member)?);
         108  +
                }
         109  +
                _ => {}
         110  +
            }
         111  +
            Ok(())
         112  +
        })?;
         113  +
        Ok(builder.build())
         114  +
    }
         115  +
}
         116  +
impl GetReusableDelegationSetLimitOutput {
         117  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         118  +
    /// Header-bound members are read directly from headers, avoiding runtime
         119  +
    /// member iteration overhead. Body members are read via the deserializer.
         120  +
    pub fn deserialize_with_response(
         121  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         122  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         123  +
        _status: u16,
         124  +
        _body: &[u8],
         125  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         126  +
        #[allow(unused_variables, unused_mut)]
         127  +
        let mut builder = Self::builder();
         128  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         129  +
            builder._request_id = Some(val.to_string());
         130  +
        }
         131  +
        #[allow(
         132  +
            unused_variables,
         133  +
            unreachable_code,
         134  +
            clippy::single_match,
         135  +
            clippy::match_single_binding,
         136  +
            clippy::diverging_sub_expression
         137  +
        )]
         138  +
        deserializer.read_struct(&GETREUSABLEDELEGATIONSETLIMITOUTPUT_SCHEMA, &mut |member, deser| {
   91    139   
            match member.member_index() {
   92    140   
                Some(0) => {
   93    141   
                    builder.limit = Some(crate::types::ReusableDelegationSetLimit::deserialize(deser)?);
   94    142   
                }
   95    143   
                Some(1) => {
   96    144   
                    builder.count = Some(deser.read_long(member)?);
   97    145   
                }
   98    146   
                _ => {}
   99    147   
            }
  100    148   
            Ok(())

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy.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 `GetTrafficPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetTrafficPolicy;
    6      6   
impl GetTrafficPolicy {
    7      7   
    /// Creates a new `GetTrafficPolicy`
    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::get_traffic_policy::GetTrafficPolicyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_traffic_policy::GetTrafficPolicyOutput::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::get_traffic_policy::GetTrafficPolicyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_traffic_policy::GetTrafficPolicyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_traffic_policy::GetTrafficPolicyError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::get_traffic_policy::GetTrafficPolicyError,
  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 GetTrafficPolicyResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetTrafficPolicyResponseDeserializer {
  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    158   
        let headers = response.headers();
  154    159   
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    163   
        let parse_result = if !success && status != 200 || force_error {
  159    164   
            crate::protocol_serde::shape_get_traffic_policy::de_get_traffic_policy_http_error(status, headers, body)
  160    165   
        } else {

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy/_get_traffic_policy_input.rs

@@ -4,4 +133,151 @@
   24     24   
    "com.amazonaws.route53.synthetic",
   25     25   
    "GetTrafficPolicyInput",
   26     26   
);
   27     27   
static GETTRAFFICPOLICYINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   28     28   
    ::aws_smithy_schema::ShapeId::from_static(
   29     29   
        "com.amazonaws.route53.synthetic#GetTrafficPolicyInput$Id",
   30     30   
        "com.amazonaws.route53.synthetic",
   31     31   
        "GetTrafficPolicyInput",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::String,
   34         -
    "id",
          34  +
    "Id",
   35     35   
    0,
   36     36   
)
   37     37   
.with_http_label();
   38     38   
static GETTRAFFICPOLICYINPUT_MEMBER_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.route53.synthetic#GetTrafficPolicyInput$Version",
   41     41   
        "com.amazonaws.route53.synthetic",
   42     42   
        "GetTrafficPolicyInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Integer,
   45         -
    "version",
          45  +
    "Version",
   46     46   
    1,
   47     47   
)
   48     48   
.with_http_label();
   49     49   
static GETTRAFFICPOLICYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     50   
    GETTRAFFICPOLICYINPUT_SCHEMA_ID,
   51     51   
    ::aws_smithy_schema::ShapeType::Structure,
   52     52   
    &[&GETTRAFFICPOLICYINPUT_MEMBER_ID, &GETTRAFFICPOLICYINPUT_MEMBER_VERSION],
   53         -
);
          53  +
)
          54  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          55  +
    "GET",
          56  +
    "/2013-04-01/trafficpolicy/{Id}/{Version}",
          57  +
    None,
          58  +
));
   54     59   
impl GetTrafficPolicyInput {
   55     60   
    /// The schema for this shape.
   56     61   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETTRAFFICPOLICYINPUT_SCHEMA;
   57     62   
}
   58     63   
impl ::aws_smithy_schema::serde::SerializableStruct for GetTrafficPolicyInput {
   59     64   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   60     65   
    fn serialize_members(
   61     66   
        &self,
   62     67   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   63     68   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   64     69   
        if let Some(ref val) = self.id {
   65     70   
            ser.write_string(&GETTRAFFICPOLICYINPUT_MEMBER_ID, val)?;
   66     71   
        }
   67     72   
        if let Some(ref val) = self.version {
   68     73   
            ser.write_integer(&GETTRAFFICPOLICYINPUT_MEMBER_VERSION, *val)?;
   69     74   
        }
   70     75   
        Ok(())
   71     76   
    }
   72     77   
}
   73     78   
impl GetTrafficPolicyInput {
   74     79   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   75         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   76         -
        deserializer: &mut D,
          80  +
    pub fn deserialize(
          81  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   77     82   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   78     83   
        #[allow(unused_variables, unused_mut)]
   79     84   
        let mut builder = Self::builder();
   80     85   
        #[allow(
   81     86   
            unused_variables,
   82     87   
            unreachable_code,
   83     88   
            clippy::single_match,
   84     89   
            clippy::match_single_binding,
   85     90   
            clippy::diverging_sub_expression
   86     91   
        )]
   87         -
        deserializer.read_struct(&GETTRAFFICPOLICYINPUT_SCHEMA, (), |_, member, deser| {
          92  +
        deserializer.read_struct(&GETTRAFFICPOLICYINPUT_SCHEMA, &mut |member, deser| {
   88     93   
            match member.member_index() {
   89     94   
                Some(0) => {
   90     95   
                    builder.id = Some(deser.read_string(member)?);
   91     96   
                }
   92     97   
                Some(1) => {
   93     98   
                    builder.version = Some(deser.read_integer(member)?);
   94     99   
                }
   95    100   
                _ => {}
   96    101   
            }
   97    102   
            Ok(())
   98    103   
        })?;
         104  +
        builder.id = builder.id.or(Some(String::new()));
         105  +
        builder.version = builder.version.or(Some(0i32));
   99    106   
        builder
  100    107   
            .build()
  101    108   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  102    109   
    }
  103    110   
}
         111  +
impl GetTrafficPolicyInput {
         112  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         113  +
    pub fn deserialize_with_response(
         114  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         115  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         116  +
        _status: u16,
         117  +
        _body: &[u8],
         118  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         119  +
        Self::deserialize(deserializer)
         120  +
    }
         121  +
}
  104    122   
impl GetTrafficPolicyInput {
  105    123   
    /// Creates a new builder-style object to manufacture [`GetTrafficPolicyInput`](crate::operation::get_traffic_policy::GetTrafficPolicyInput).
  106    124   
    pub fn builder() -> crate::operation::get_traffic_policy::builders::GetTrafficPolicyInputBuilder {
  107    125   
        crate::operation::get_traffic_policy::builders::GetTrafficPolicyInputBuilder::default()
  108    126   
    }
  109    127   
}
  110    128   
  111    129   
/// A builder for [`GetTrafficPolicyInput`](crate::operation::get_traffic_policy::GetTrafficPolicyInput).
  112    130   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  113    131   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy/_get_traffic_policy_output.rs

@@ -1,1 +97,141 @@
   19     19   
    "com.amazonaws.route53.synthetic",
   20     20   
    "GetTrafficPolicyOutput",
   21     21   
);
   22     22   
static GETTRAFFICPOLICYOUTPUT_MEMBER_TRAFFIC_POLICY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.route53.synthetic#GetTrafficPolicyOutput$TrafficPolicy",
   25     25   
        "com.amazonaws.route53.synthetic",
   26     26   
        "GetTrafficPolicyOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "traffic_policy",
          29  +
    "TrafficPolicy",
   30     30   
    0,
   31     31   
);
          32  +
static GETTRAFFICPOLICYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          33  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          34  +
    ::aws_smithy_schema::ShapeType::String,
          35  +
    "request_id",
          36  +
    1,
          37  +
)
          38  +
.with_http_header("x-amzn-requestid");
   32     39   
static GETTRAFFICPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    GETTRAFFICPOLICYOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&GETTRAFFICPOLICYOUTPUT_MEMBER_TRAFFIC_POLICY],
          42  +
    &[&GETTRAFFICPOLICYOUTPUT_MEMBER_TRAFFIC_POLICY, &GETTRAFFICPOLICYOUTPUT_MEMBER__REQUEST_ID],
   36     43   
);
   37     44   
impl GetTrafficPolicyOutput {
   38     45   
    /// The schema for this shape.
   39     46   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETTRAFFICPOLICYOUTPUT_SCHEMA;
   40     47   
}
   41     48   
impl ::aws_smithy_schema::serde::SerializableStruct for GetTrafficPolicyOutput {
   42     49   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     50   
    fn serialize_members(
   44     51   
        &self,
   45     52   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     53   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     54   
        if let Some(ref val) = self.traffic_policy {
   48     55   
            ser.write_struct(&GETTRAFFICPOLICYOUTPUT_MEMBER_TRAFFIC_POLICY, val)?;
   49     56   
        }
   50     57   
        Ok(())
   51     58   
    }
   52     59   
}
   53     60   
impl GetTrafficPolicyOutput {
   54     61   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          62  +
    pub fn deserialize(
          63  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     64   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     65   
        #[allow(unused_variables, unused_mut)]
   59     66   
        let mut builder = Self::builder();
   60     67   
        #[allow(
   61     68   
            unused_variables,
   62     69   
            unreachable_code,
   63     70   
            clippy::single_match,
   64     71   
            clippy::match_single_binding,
   65     72   
            clippy::diverging_sub_expression
   66     73   
        )]
   67         -
        deserializer.read_struct(&GETTRAFFICPOLICYOUTPUT_SCHEMA, (), |_, member, deser| {
          74  +
        deserializer.read_struct(&GETTRAFFICPOLICYOUTPUT_SCHEMA, &mut |member, deser| {
          75  +
            match member.member_index() {
          76  +
                Some(0) => {
          77  +
                    builder.traffic_policy = Some(crate::types::TrafficPolicy::deserialize(deser)?);
          78  +
                }
          79  +
                Some(1) => {
          80  +
                    builder._request_id = Some(deser.read_string(member)?);
          81  +
                }
          82  +
                _ => {}
          83  +
            }
          84  +
            Ok(())
          85  +
        })?;
          86  +
        Ok(builder.build())
          87  +
    }
          88  +
}
          89  +
impl GetTrafficPolicyOutput {
          90  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          91  +
    /// Header-bound members are read directly from headers, avoiding runtime
          92  +
    /// member iteration overhead. Body members are read via the deserializer.
          93  +
    pub fn deserialize_with_response(
          94  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          95  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          96  +
        _status: u16,
          97  +
        _body: &[u8],
          98  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          99  +
        #[allow(unused_variables, unused_mut)]
         100  +
        let mut builder = Self::builder();
         101  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         102  +
            builder._request_id = Some(val.to_string());
         103  +
        }
         104  +
        #[allow(
         105  +
            unused_variables,
         106  +
            unreachable_code,
         107  +
            clippy::single_match,
         108  +
            clippy::match_single_binding,
         109  +
            clippy::diverging_sub_expression
         110  +
        )]
         111  +
        deserializer.read_struct(&GETTRAFFICPOLICYOUTPUT_SCHEMA, &mut |member, deser| {
   68    112   
            match member.member_index() {
   69    113   
                Some(0) => {
   70    114   
                    builder.traffic_policy = Some(crate::types::TrafficPolicy::deserialize(deser)?);
   71    115   
                }
   72    116   
                _ => {}
   73    117   
            }
   74    118   
            Ok(())
   75    119   
        })?;
   76    120   
        Ok(builder.build())
   77    121   
    }

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy_instance.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetTrafficPolicyInstance`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetTrafficPolicyInstance;
    6      6   
impl GetTrafficPolicyInstance {
    7      7   
    /// Creates a new `GetTrafficPolicyInstance`
    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 =
          13  +
        crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceError,
  139    145   
            >::new());
  140    146   
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct GetTrafficPolicyInstanceResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetTrafficPolicyInstanceResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_get_traffic_policy_instance::de_get_traffic_policy_instance_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy_instance/_get_traffic_policy_instance_input.rs

@@ -1,1 +110,127 @@
   18     18   
    "com.amazonaws.route53.synthetic",
   19     19   
    "GetTrafficPolicyInstanceInput",
   20     20   
);
   21     21   
static GETTRAFFICPOLICYINSTANCEINPUT_MEMBER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.route53.synthetic#GetTrafficPolicyInstanceInput$Id",
   24     24   
        "com.amazonaws.route53.synthetic",
   25     25   
        "GetTrafficPolicyInstanceInput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "id",
          28  +
    "Id",
   29     29   
    0,
   30     30   
)
   31     31   
.with_http_label();
   32     32   
static GETTRAFFICPOLICYINSTANCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     33   
    GETTRAFFICPOLICYINSTANCEINPUT_SCHEMA_ID,
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35     35   
    &[&GETTRAFFICPOLICYINSTANCEINPUT_MEMBER_ID],
   36         -
);
          36  +
)
          37  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          38  +
    "GET",
          39  +
    "/2013-04-01/trafficpolicyinstance/{Id}",
          40  +
    None,
          41  +
));
   37     42   
impl GetTrafficPolicyInstanceInput {
   38     43   
    /// The schema for this shape.
   39     44   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETTRAFFICPOLICYINSTANCEINPUT_SCHEMA;
   40     45   
}
   41     46   
impl ::aws_smithy_schema::serde::SerializableStruct for GetTrafficPolicyInstanceInput {
   42     47   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     48   
    fn serialize_members(
   44     49   
        &self,
   45     50   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     51   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     52   
        if let Some(ref val) = self.id {
   48     53   
            ser.write_string(&GETTRAFFICPOLICYINSTANCEINPUT_MEMBER_ID, val)?;
   49     54   
        }
   50     55   
        Ok(())
   51     56   
    }
   52     57   
}
   53     58   
impl GetTrafficPolicyInstanceInput {
   54     59   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          60  +
    pub fn deserialize(
          61  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     62   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     63   
        #[allow(unused_variables, unused_mut)]
   59     64   
        let mut builder = Self::builder();
   60     65   
        #[allow(
   61     66   
            unused_variables,
   62     67   
            unreachable_code,
   63     68   
            clippy::single_match,
   64     69   
            clippy::match_single_binding,
   65     70   
            clippy::diverging_sub_expression
   66     71   
        )]
   67         -
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCEINPUT_SCHEMA, (), |_, member, deser| {
          72  +
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCEINPUT_SCHEMA, &mut |member, deser| {
   68     73   
            match member.member_index() {
   69     74   
                Some(0) => {
   70     75   
                    builder.id = Some(deser.read_string(member)?);
   71     76   
                }
   72     77   
                _ => {}
   73     78   
            }
   74     79   
            Ok(())
   75     80   
        })?;
          81  +
        builder.id = builder.id.or(Some(String::new()));
   76     82   
        builder
   77     83   
            .build()
   78     84   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   79     85   
    }
   80     86   
}
          87  +
impl GetTrafficPolicyInstanceInput {
          88  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          89  +
    pub fn deserialize_with_response(
          90  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          91  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          92  +
        _status: u16,
          93  +
        _body: &[u8],
          94  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          95  +
        Self::deserialize(deserializer)
          96  +
    }
          97  +
}
   81     98   
impl GetTrafficPolicyInstanceInput {
   82     99   
    /// Creates a new builder-style object to manufacture [`GetTrafficPolicyInstanceInput`](crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceInput).
   83    100   
    pub fn builder() -> crate::operation::get_traffic_policy_instance::builders::GetTrafficPolicyInstanceInputBuilder {
   84    101   
        crate::operation::get_traffic_policy_instance::builders::GetTrafficPolicyInstanceInputBuilder::default()
   85    102   
    }
   86    103   
}
   87    104   
   88    105   
/// A builder for [`GetTrafficPolicyInstanceInput`](crate::operation::get_traffic_policy_instance::GetTrafficPolicyInstanceInput).
   89    106   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   90    107   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy_instance/_get_traffic_policy_instance_output.rs

@@ -1,1 +97,144 @@
   19     19   
    "com.amazonaws.route53.synthetic",
   20     20   
    "GetTrafficPolicyInstanceOutput",
   21     21   
);
   22     22   
static GETTRAFFICPOLICYINSTANCEOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.route53.synthetic#GetTrafficPolicyInstanceOutput$TrafficPolicyInstance",
   25     25   
        "com.amazonaws.route53.synthetic",
   26     26   
        "GetTrafficPolicyInstanceOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "traffic_policy_instance",
          29  +
    "TrafficPolicyInstance",
   30     30   
    0,
   31     31   
);
          32  +
static GETTRAFFICPOLICYINSTANCEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          33  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          34  +
    ::aws_smithy_schema::ShapeType::String,
          35  +
    "request_id",
          36  +
    1,
          37  +
)
          38  +
.with_http_header("x-amzn-requestid");
   32     39   
static GETTRAFFICPOLICYINSTANCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    GETTRAFFICPOLICYINSTANCEOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&GETTRAFFICPOLICYINSTANCEOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE],
          42  +
    &[
          43  +
        &GETTRAFFICPOLICYINSTANCEOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE,
          44  +
        &GETTRAFFICPOLICYINSTANCEOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl GetTrafficPolicyInstanceOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETTRAFFICPOLICYINSTANCEOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for GetTrafficPolicyInstanceOutput {
   42     52   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   43     53   
    fn serialize_members(
   44     54   
        &self,
   45     55   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   46     56   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   47     57   
        if let Some(ref val) = self.traffic_policy_instance {
   48     58   
            ser.write_struct(&GETTRAFFICPOLICYINSTANCEOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl GetTrafficPolicyInstanceOutput {
   54     64   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   55         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   56         -
        deserializer: &mut D,
          65  +
    pub fn deserialize(
          66  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   57     67   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   58     68   
        #[allow(unused_variables, unused_mut)]
   59     69   
        let mut builder = Self::builder();
   60     70   
        #[allow(
   61     71   
            unused_variables,
   62     72   
            unreachable_code,
   63     73   
            clippy::single_match,
   64     74   
            clippy::match_single_binding,
   65     75   
            clippy::diverging_sub_expression
   66     76   
        )]
   67         -
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCEOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCEOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.traffic_policy_instance = Some(crate::types::TrafficPolicyInstance::deserialize(deser)?);
          81  +
                }
          82  +
                Some(1) => {
          83  +
                    builder._request_id = Some(deser.read_string(member)?);
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl GetTrafficPolicyInstanceOutput {
          93  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          94  +
    /// Header-bound members are read directly from headers, avoiding runtime
          95  +
    /// member iteration overhead. Body members are read via the deserializer.
          96  +
    pub fn deserialize_with_response(
          97  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          98  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          99  +
        _status: u16,
         100  +
        _body: &[u8],
         101  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         102  +
        #[allow(unused_variables, unused_mut)]
         103  +
        let mut builder = Self::builder();
         104  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         105  +
            builder._request_id = Some(val.to_string());
         106  +
        }
         107  +
        #[allow(
         108  +
            unused_variables,
         109  +
            unreachable_code,
         110  +
            clippy::single_match,
         111  +
            clippy::match_single_binding,
         112  +
            clippy::diverging_sub_expression
         113  +
        )]
         114  +
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCEOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.traffic_policy_instance = Some(crate::types::TrafficPolicyInstance::deserialize(deser)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy_instance_count.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `GetTrafficPolicyInstanceCount`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetTrafficPolicyInstanceCount;
    6      6   
impl GetTrafficPolicyInstanceCount {
    7      7   
    /// Creates a new `GetTrafficPolicyInstanceCount`
    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 =
          13  +
        crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct GetTrafficPolicyInstanceCountResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetTrafficPolicyInstanceCountResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_get_traffic_policy_instance_count::de_get_traffic_policy_instance_count_http_error(status, headers, body)
  166    173   
        } else {

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy_instance_count/_get_traffic_policy_instance_count_input.rs

@@ -1,1 +76,94 @@
    6      6   
pub struct GetTrafficPolicyInstanceCountInput {}
    7      7   
static GETTRAFFICPOLICYINSTANCECOUNTINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    8      8   
    "com.amazonaws.route53.synthetic#GetTrafficPolicyInstanceCountInput",
    9      9   
    "com.amazonaws.route53.synthetic",
   10     10   
    "GetTrafficPolicyInstanceCountInput",
   11     11   
);
   12     12   
static GETTRAFFICPOLICYINSTANCECOUNTINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   13     13   
    GETTRAFFICPOLICYINSTANCECOUNTINPUT_SCHEMA_ID,
   14     14   
    ::aws_smithy_schema::ShapeType::Structure,
   15     15   
    &[],
   16         -
);
          16  +
)
          17  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          18  +
    "GET",
          19  +
    "/2013-04-01/trafficpolicyinstancecount",
          20  +
    None,
          21  +
));
   17     22   
impl GetTrafficPolicyInstanceCountInput {
   18     23   
    /// The schema for this shape.
   19     24   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETTRAFFICPOLICYINSTANCECOUNTINPUT_SCHEMA;
   20     25   
}
   21     26   
impl ::aws_smithy_schema::serde::SerializableStruct for GetTrafficPolicyInstanceCountInput {
   22     27   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   23     28   
    fn serialize_members(
   24     29   
        &self,
   25     30   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   26     31   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   27     32   
        Ok(())
   28     33   
    }
   29     34   
}
   30     35   
impl GetTrafficPolicyInstanceCountInput {
   31     36   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   32         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   33         -
        deserializer: &mut D,
          37  +
    pub fn deserialize(
          38  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   34     39   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   35     40   
        #[allow(unused_variables, unused_mut)]
   36     41   
        let mut builder = Self::builder();
   37     42   
        #[allow(
   38     43   
            unused_variables,
   39     44   
            unreachable_code,
   40     45   
            clippy::single_match,
   41     46   
            clippy::match_single_binding,
   42     47   
            clippy::diverging_sub_expression
   43     48   
        )]
   44         -
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCECOUNTINPUT_SCHEMA, (), |_, member, deser| {
          49  +
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCECOUNTINPUT_SCHEMA, &mut |member, deser| {
   45     50   
            match member.member_index() {
   46     51   
                _ => {}
   47     52   
            }
   48     53   
            Ok(())
   49     54   
        })?;
   50     55   
        builder
   51     56   
            .build()
   52     57   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
   53     58   
    }
   54     59   
}
          60  +
impl GetTrafficPolicyInstanceCountInput {
          61  +
    /// Deserializes this structure from a body deserializer and HTTP response.
          62  +
    pub fn deserialize_with_response(
          63  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          64  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
          65  +
        _status: u16,
          66  +
        _body: &[u8],
          67  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          68  +
        Self::builder()
          69  +
            .build()
          70  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          71  +
    }
          72  +
}
   55     73   
impl GetTrafficPolicyInstanceCountInput {
   56     74   
    /// Creates a new builder-style object to manufacture [`GetTrafficPolicyInstanceCountInput`](crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountInput).
   57     75   
    pub fn builder() -> crate::operation::get_traffic_policy_instance_count::builders::GetTrafficPolicyInstanceCountInputBuilder {
   58     76   
        crate::operation::get_traffic_policy_instance_count::builders::GetTrafficPolicyInstanceCountInputBuilder::default()
   59     77   
    }
   60     78   
}
   61     79   
   62     80   
/// A builder for [`GetTrafficPolicyInstanceCountInput`](crate::operation::get_traffic_policy_instance_count::GetTrafficPolicyInstanceCountInput).
   63     81   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   64     82   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_traffic_policy_instance_count/_get_traffic_policy_instance_count_output.rs

@@ -1,1 +99,149 @@
   20     20   
    "GetTrafficPolicyInstanceCountOutput",
   21     21   
);
   22     22   
static GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE_COUNT: ::aws_smithy_schema::Schema =
   23     23   
    ::aws_smithy_schema::Schema::new_member(
   24     24   
        ::aws_smithy_schema::ShapeId::from_static(
   25     25   
            "com.amazonaws.route53.synthetic#GetTrafficPolicyInstanceCountOutput$TrafficPolicyInstanceCount",
   26     26   
            "com.amazonaws.route53.synthetic",
   27     27   
            "GetTrafficPolicyInstanceCountOutput",
   28     28   
        ),
   29     29   
        ::aws_smithy_schema::ShapeType::Integer,
   30         -
        "traffic_policy_instance_count",
          30  +
        "TrafficPolicyInstanceCount",
   31     31   
        0,
   32     32   
    );
          33  +
static GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          34  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          35  +
    ::aws_smithy_schema::ShapeType::String,
          36  +
    "request_id",
          37  +
    1,
          38  +
)
          39  +
.with_http_header("x-amzn-requestid");
   33     40   
static GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE_COUNT],
          43  +
    &[
          44  +
        &GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE_COUNT,
          45  +
        &GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetTrafficPolicyInstanceCountOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetTrafficPolicyInstanceCountOutput {
   43     53   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   44     54   
    fn serialize_members(
   45     55   
        &self,
   46     56   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   47     57   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   48     58   
        {
   49     59   
            let val = &self.traffic_policy_instance_count;
   50     60   
            ser.write_integer(&GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_MEMBER_TRAFFIC_POLICY_INSTANCE_COUNT, *val)?;
   51     61   
        }
   52     62   
        Ok(())
   53     63   
    }
   54     64   
}
   55     65   
impl GetTrafficPolicyInstanceCountOutput {
   56     66   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   57         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   58         -
        deserializer: &mut D,
          67  +
    pub fn deserialize(
          68  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   59     69   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   60     70   
        #[allow(unused_variables, unused_mut)]
   61     71   
        let mut builder = Self::builder();
   62     72   
        #[allow(
   63     73   
            unused_variables,
   64     74   
            unreachable_code,
   65     75   
            clippy::single_match,
   66     76   
            clippy::match_single_binding,
   67     77   
            clippy::diverging_sub_expression
   68     78   
        )]
   69         -
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_SCHEMA, (), |_, member, deser| {
          79  +
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_SCHEMA, &mut |member, deser| {
          80  +
            match member.member_index() {
          81  +
                Some(0) => {
          82  +
                    builder.traffic_policy_instance_count = Some(deser.read_integer(member)?);
          83  +
                }
          84  +
                Some(1) => {
          85  +
                    builder._request_id = Some(deser.read_string(member)?);
          86  +
                }
          87  +
                _ => {}
          88  +
            }
          89  +
            Ok(())
          90  +
        })?;
          91  +
        builder.traffic_policy_instance_count = builder.traffic_policy_instance_count.or(Some(0i32));
          92  +
        builder
          93  +
            .build()
          94  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
          95  +
    }
          96  +
}
          97  +
impl GetTrafficPolicyInstanceCountOutput {
          98  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          99  +
    /// Header-bound members are read directly from headers, avoiding runtime
         100  +
    /// member iteration overhead. Body members are read via the deserializer.
         101  +
    pub fn deserialize_with_response(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         103  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         104  +
        _status: u16,
         105  +
        _body: &[u8],
         106  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         107  +
        #[allow(unused_variables, unused_mut)]
         108  +
        let mut builder = Self::builder();
         109  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         110  +
            builder._request_id = Some(val.to_string());
         111  +
        }
         112  +
        #[allow(
         113  +
            unused_variables,
         114  +
            unreachable_code,
         115  +
            clippy::single_match,
         116  +
            clippy::match_single_binding,
         117  +
            clippy::diverging_sub_expression
         118  +
        )]
         119  +
        deserializer.read_struct(&GETTRAFFICPOLICYINSTANCECOUNTOUTPUT_SCHEMA, &mut |member, deser| {
   70    120   
            match member.member_index() {
   71    121   
                Some(0) => {
   72    122   
                    builder.traffic_policy_instance_count = Some(deser.read_integer(member)?);
   73    123   
                }
   74    124   
                _ => {}
   75    125   
            }
   76    126   
            Ok(())
   77    127   
        })?;
   78    128   
        builder
   79    129   
            .build()