AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_health_check.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 `GetHealthCheck`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHealthCheck;
    6      6   
impl GetHealthCheck {
    7      7   
    /// Creates a new `GetHealthCheck`
    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_health_check::GetHealthCheckInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_health_check::GetHealthCheckOutput::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_health_check::GetHealthCheckInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_health_check::GetHealthCheckOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_health_check::GetHealthCheckError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::get_health_check::GetHealthCheckError,
  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 GetHealthCheckResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHealthCheckResponseDeserializer {
  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_health_check::de_get_health_check_http_error(status, headers, body)
  160    165   
        } else {

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

@@ -1,1 +110,127 @@
   18     18   
    "com.amazonaws.route53.synthetic",
   19     19   
    "GetHealthCheckInput",
   20     20   
);
   21     21   
static GETHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_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#GetHealthCheckInput$HealthCheckId",
   24     24   
        "com.amazonaws.route53.synthetic",
   25     25   
        "GetHealthCheckInput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "health_check_id",
          28  +
    "HealthCheckId",
   29     29   
    0,
   30     30   
)
   31     31   
.with_http_label();
   32     32   
static GETHEALTHCHECKINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     33   
    GETHEALTHCHECKINPUT_SCHEMA_ID,
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35     35   
    &[&GETHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_ID],
   36         -
);
          36  +
)
          37  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          38  +
    "GET",
          39  +
    "/2013-04-01/healthcheck/{HealthCheckId}",
          40  +
    None,
          41  +
));
   37     42   
impl GetHealthCheckInput {
   38     43   
    /// The schema for this shape.
   39     44   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHEALTHCHECKINPUT_SCHEMA;
   40     45   
}
   41     46   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHealthCheckInput {
   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.health_check_id {
   48     53   
            ser.write_string(&GETHEALTHCHECKINPUT_MEMBER_HEALTH_CHECK_ID, val)?;
   49     54   
        }
   50     55   
        Ok(())
   51     56   
    }
   52     57   
}
   53     58   
impl GetHealthCheckInput {
   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(&GETHEALTHCHECKINPUT_SCHEMA, (), |_, member, deser| {
          72  +
        deserializer.read_struct(&GETHEALTHCHECKINPUT_SCHEMA, &mut |member, deser| {
   68     73   
            match member.member_index() {
   69     74   
                Some(0) => {
   70     75   
                    builder.health_check_id = Some(deser.read_string(member)?);
   71     76   
                }
   72     77   
                _ => {}
   73     78   
            }
   74     79   
            Ok(())
   75     80   
        })?;
          81  +
        builder.health_check_id = builder.health_check_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 GetHealthCheckInput {
          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 GetHealthCheckInput {
   82     99   
    /// Creates a new builder-style object to manufacture [`GetHealthCheckInput`](crate::operation::get_health_check::GetHealthCheckInput).
   83    100   
    pub fn builder() -> crate::operation::get_health_check::builders::GetHealthCheckInputBuilder {
   84    101   
        crate::operation::get_health_check::builders::GetHealthCheckInputBuilder::default()
   85    102   
    }
   86    103   
}
   87    104   
   88    105   
/// A builder for [`GetHealthCheckInput`](crate::operation::get_health_check::GetHealthCheckInput).
   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_health_check/_get_health_check_output.rs

@@ -1,1 +97,141 @@
   19     19   
    "com.amazonaws.route53.synthetic",
   20     20   
    "GetHealthCheckOutput",
   21     21   
);
   22     22   
static GETHEALTHCHECKOUTPUT_MEMBER_HEALTH_CHECK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   23     23   
    ::aws_smithy_schema::ShapeId::from_static(
   24     24   
        "com.amazonaws.route53.synthetic#GetHealthCheckOutput$HealthCheck",
   25     25   
        "com.amazonaws.route53.synthetic",
   26     26   
        "GetHealthCheckOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Structure,
   29         -
    "health_check",
          29  +
    "HealthCheck",
   30     30   
    0,
   31     31   
);
          32  +
static GETHEALTHCHECKOUTPUT_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 GETHEALTHCHECKOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    GETHEALTHCHECKOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&GETHEALTHCHECKOUTPUT_MEMBER_HEALTH_CHECK],
          42  +
    &[&GETHEALTHCHECKOUTPUT_MEMBER_HEALTH_CHECK, &GETHEALTHCHECKOUTPUT_MEMBER__REQUEST_ID],
   36     43   
);
   37     44   
impl GetHealthCheckOutput {
   38     45   
    /// The schema for this shape.
   39     46   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHEALTHCHECKOUTPUT_SCHEMA;
   40     47   
}
   41     48   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHealthCheckOutput {
   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.health_check {
   48     55   
            ser.write_struct(&GETHEALTHCHECKOUTPUT_MEMBER_HEALTH_CHECK, val)?;
   49     56   
        }
   50     57   
        Ok(())
   51     58   
    }
   52     59   
}
   53     60   
impl GetHealthCheckOutput {
   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(&GETHEALTHCHECKOUTPUT_SCHEMA, (), |_, member, deser| {
          74  +
        deserializer.read_struct(&GETHEALTHCHECKOUTPUT_SCHEMA, &mut |member, deser| {
          75  +
            match member.member_index() {
          76  +
                Some(0) => {
          77  +
                    builder.health_check = Some(crate::types::HealthCheck::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 GetHealthCheckOutput {
          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(&GETHEALTHCHECKOUTPUT_SCHEMA, &mut |member, deser| {
   68    112   
            match member.member_index() {
   69    113   
                Some(0) => {
   70    114   
                    builder.health_check = Some(crate::types::HealthCheck::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_health_check_count.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 `GetHealthCheckCount`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHealthCheckCount;
    6      6   
impl GetHealthCheckCount {
    7      7   
    /// Creates a new `GetHealthCheckCount`
    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_health_check_count::GetHealthCheckCountInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_health_check_count::GetHealthCheckCountOutput::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_health_check_count::GetHealthCheckCountInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_health_check_count::GetHealthCheckCountOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_health_check_count::GetHealthCheckCountError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::get_health_check_count::GetHealthCheckCountError,
  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 GetHealthCheckCountResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHealthCheckCountResponseDeserializer {
  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_health_check_count::de_get_health_check_count_http_error(status, headers, body)
  160    165   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_health_check_last_failure_reason.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 `GetHealthCheckLastFailureReason`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHealthCheckLastFailureReason;
    6      6   
impl GetHealthCheckLastFailureReason {
    7      7   
    /// Creates a new `GetHealthCheckLastFailureReason`
    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_health_check_last_failure_reason::GetHealthCheckLastFailureReasonInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonOutput::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_health_check_last_failure_reason::GetHealthCheckLastFailureReasonInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::get_health_check_last_failure_reason::GetHealthCheckLastFailureReasonError,
  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 GetHealthCheckLastFailureReasonResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHealthCheckLastFailureReasonResponseDeserializer {
  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_health_check_last_failure_reason::de_get_health_check_last_failure_reason_http_error(
  166    173   
                status, headers, body,

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

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

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

@@ -1,1 +120,174 @@
   20     20   
    "com.amazonaws.route53.synthetic",
   21     21   
    "GetHealthCheckLastFailureReasonOutput",
   22     22   
);
   23     23   
static GETHEALTHCHECKLASTFAILUREREASONOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   24     24   
    ::aws_smithy_schema::ShapeId::from_static(
   25     25   
        "com.amazonaws.route53.synthetic#GetHealthCheckLastFailureReasonOutput$HealthCheckObservations",
   26     26   
        "com.amazonaws.route53.synthetic",
   27     27   
        "GetHealthCheckLastFailureReasonOutput",
   28     28   
    ),
   29     29   
    ::aws_smithy_schema::ShapeType::List,
   30         -
    "health_check_observations",
          30  +
    "HealthCheckObservations",
   31     31   
    0,
   32     32   
);
          33  +
static GETHEALTHCHECKLASTFAILUREREASONOUTPUT_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 GETHEALTHCHECKLASTFAILUREREASONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETHEALTHCHECKLASTFAILUREREASONOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETHEALTHCHECKLASTFAILUREREASONOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS],
          43  +
    &[
          44  +
        &GETHEALTHCHECKLASTFAILUREREASONOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS,
          45  +
        &GETHEALTHCHECKLASTFAILUREREASONOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetHealthCheckLastFailureReasonOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHEALTHCHECKLASTFAILUREREASONOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHealthCheckLastFailureReasonOutput {
   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.health_check_observations;
   50     60   
   51     61   
            ser.write_list(
   52     62   
                &GETHEALTHCHECKLASTFAILUREREASONOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS,
   53     63   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   54     64   
                    for item in val {
   55     65   
                        ser.write_struct(crate::types::HealthCheckObservation::SCHEMA, item)?;
   56     66   
                    }
   57     67   
                    Ok(())
   58     68   
                },
   59     69   
            )?;
   60     70   
        }
   61     71   
        Ok(())
   62     72   
    }
   63     73   
}
   64     74   
impl GetHealthCheckLastFailureReasonOutput {
   65     75   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   66         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   67         -
        deserializer: &mut D,
          76  +
    pub fn deserialize(
          77  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   68     78   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   69     79   
        #[allow(unused_variables, unused_mut)]
   70     80   
        let mut builder = Self::builder();
   71     81   
        #[allow(
   72     82   
            unused_variables,
   73     83   
            unreachable_code,
   74     84   
            clippy::single_match,
   75     85   
            clippy::match_single_binding,
   76     86   
            clippy::diverging_sub_expression
   77     87   
        )]
   78         -
        deserializer.read_struct(&GETHEALTHCHECKLASTFAILUREREASONOUTPUT_SCHEMA, (), |_, member, deser| {
          88  +
        deserializer.read_struct(&GETHEALTHCHECKLASTFAILUREREASONOUTPUT_SCHEMA, &mut |member, deser| {
   79     89   
            match member.member_index() {
   80     90   
                Some(0) => {
   81     91   
                    builder.health_check_observations = Some({
   82         -
                        let container = if let Some(cap) = deser.container_size() {
   83         -
                            Vec::with_capacity(cap)
   84         -
                        } else {
   85         -
                            Vec::new()
   86         -
                        };
   87         -
                        deser.read_list(member, container, |mut list, deser| {
   88         -
                            list.push(crate::types::HealthCheckObservation::deserialize(deser)?);
   89         -
                            Ok(list)
   90         -
                        })?
          92  +
                        let mut container = Vec::new();
          93  +
                        deser.read_list(member, &mut |deser| {
          94  +
                            container.push(crate::types::HealthCheckObservation::deserialize(deser)?);
          95  +
                            Ok(())
          96  +
                        })?;
          97  +
                        container
          98  +
                    });
          99  +
                }
         100  +
                Some(1) => {
         101  +
                    builder._request_id = Some(deser.read_string(member)?);
         102  +
                }
         103  +
                _ => {}
         104  +
            }
         105  +
            Ok(())
         106  +
        })?;
         107  +
        builder.health_check_observations = builder.health_check_observations.or(Some(Vec::new()));
         108  +
        builder
         109  +
            .build()
         110  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         111  +
    }
         112  +
}
         113  +
impl GetHealthCheckLastFailureReasonOutput {
         114  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         115  +
    /// Header-bound members are read directly from headers, avoiding runtime
         116  +
    /// member iteration overhead. Body members are read via the deserializer.
         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  +
        #[allow(unused_variables, unused_mut)]
         124  +
        let mut builder = Self::builder();
         125  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         126  +
            builder._request_id = Some(val.to_string());
         127  +
        }
         128  +
        #[allow(
         129  +
            unused_variables,
         130  +
            unreachable_code,
         131  +
            clippy::single_match,
         132  +
            clippy::match_single_binding,
         133  +
            clippy::diverging_sub_expression
         134  +
        )]
         135  +
        deserializer.read_struct(&GETHEALTHCHECKLASTFAILUREREASONOUTPUT_SCHEMA, &mut |member, deser| {
         136  +
            match member.member_index() {
         137  +
                Some(0) => {
         138  +
                    builder.health_check_observations = Some({
         139  +
                        let mut container = Vec::new();
         140  +
                        deser.read_list(member, &mut |deser| {
         141  +
                            container.push(crate::types::HealthCheckObservation::deserialize(deser)?);
         142  +
                            Ok(())
         143  +
                        })?;
         144  +
                        container
   91    145   
                    });
   92    146   
                }
   93    147   
                _ => {}
   94    148   
            }
   95    149   
            Ok(())
   96    150   
        })?;
   97    151   
        builder
   98    152   
            .build()
   99    153   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  100    154   
    }

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_health_check_status.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 `GetHealthCheckStatus`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHealthCheckStatus;
    6      6   
impl GetHealthCheckStatus {
    7      7   
    /// Creates a new `GetHealthCheckStatus`
    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_health_check_status::GetHealthCheckStatusInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_health_check_status::GetHealthCheckStatusOutput::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_health_check_status::GetHealthCheckStatusInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_health_check_status::GetHealthCheckStatusOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_health_check_status::GetHealthCheckStatusError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::get_health_check_status::GetHealthCheckStatusError,
  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 GetHealthCheckStatusResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHealthCheckStatusResponseDeserializer {
  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_health_check_status::de_get_health_check_status_http_error(status, headers, body)
  160    165   
        } else {

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

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

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

@@ -1,1 +120,174 @@
   20     20   
    "com.amazonaws.route53.synthetic",
   21     21   
    "GetHealthCheckStatusOutput",
   22     22   
);
   23     23   
static GETHEALTHCHECKSTATUSOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   24     24   
    ::aws_smithy_schema::ShapeId::from_static(
   25     25   
        "com.amazonaws.route53.synthetic#GetHealthCheckStatusOutput$HealthCheckObservations",
   26     26   
        "com.amazonaws.route53.synthetic",
   27     27   
        "GetHealthCheckStatusOutput",
   28     28   
    ),
   29     29   
    ::aws_smithy_schema::ShapeType::List,
   30         -
    "health_check_observations",
          30  +
    "HealthCheckObservations",
   31     31   
    0,
   32     32   
);
          33  +
static GETHEALTHCHECKSTATUSOUTPUT_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 GETHEALTHCHECKSTATUSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   34     41   
    GETHEALTHCHECKSTATUSOUTPUT_SCHEMA_ID,
   35     42   
    ::aws_smithy_schema::ShapeType::Structure,
   36         -
    &[&GETHEALTHCHECKSTATUSOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS],
          43  +
    &[
          44  +
        &GETHEALTHCHECKSTATUSOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS,
          45  +
        &GETHEALTHCHECKSTATUSOUTPUT_MEMBER__REQUEST_ID,
          46  +
    ],
   37     47   
);
   38     48   
impl GetHealthCheckStatusOutput {
   39     49   
    /// The schema for this shape.
   40     50   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHEALTHCHECKSTATUSOUTPUT_SCHEMA;
   41     51   
}
   42     52   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHealthCheckStatusOutput {
   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.health_check_observations;
   50     60   
   51     61   
            ser.write_list(
   52     62   
                &GETHEALTHCHECKSTATUSOUTPUT_MEMBER_HEALTH_CHECK_OBSERVATIONS,
   53     63   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   54     64   
                    for item in val {
   55     65   
                        ser.write_struct(crate::types::HealthCheckObservation::SCHEMA, item)?;
   56     66   
                    }
   57     67   
                    Ok(())
   58     68   
                },
   59     69   
            )?;
   60     70   
        }
   61     71   
        Ok(())
   62     72   
    }
   63     73   
}
   64     74   
impl GetHealthCheckStatusOutput {
   65     75   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   66         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   67         -
        deserializer: &mut D,
          76  +
    pub fn deserialize(
          77  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   68     78   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   69     79   
        #[allow(unused_variables, unused_mut)]
   70     80   
        let mut builder = Self::builder();
   71     81   
        #[allow(
   72     82   
            unused_variables,
   73     83   
            unreachable_code,
   74     84   
            clippy::single_match,
   75     85   
            clippy::match_single_binding,
   76     86   
            clippy::diverging_sub_expression
   77     87   
        )]
   78         -
        deserializer.read_struct(&GETHEALTHCHECKSTATUSOUTPUT_SCHEMA, (), |_, member, deser| {
          88  +
        deserializer.read_struct(&GETHEALTHCHECKSTATUSOUTPUT_SCHEMA, &mut |member, deser| {
   79     89   
            match member.member_index() {
   80     90   
                Some(0) => {
   81     91   
                    builder.health_check_observations = Some({
   82         -
                        let container = if let Some(cap) = deser.container_size() {
   83         -
                            Vec::with_capacity(cap)
   84         -
                        } else {
   85         -
                            Vec::new()
   86         -
                        };
   87         -
                        deser.read_list(member, container, |mut list, deser| {
   88         -
                            list.push(crate::types::HealthCheckObservation::deserialize(deser)?);
   89         -
                            Ok(list)
   90         -
                        })?
          92  +
                        let mut container = Vec::new();
          93  +
                        deser.read_list(member, &mut |deser| {
          94  +
                            container.push(crate::types::HealthCheckObservation::deserialize(deser)?);
          95  +
                            Ok(())
          96  +
                        })?;
          97  +
                        container
          98  +
                    });
          99  +
                }
         100  +
                Some(1) => {
         101  +
                    builder._request_id = Some(deser.read_string(member)?);
         102  +
                }
         103  +
                _ => {}
         104  +
            }
         105  +
            Ok(())
         106  +
        })?;
         107  +
        builder.health_check_observations = builder.health_check_observations.or(Some(Vec::new()));
         108  +
        builder
         109  +
            .build()
         110  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         111  +
    }
         112  +
}
         113  +
impl GetHealthCheckStatusOutput {
         114  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         115  +
    /// Header-bound members are read directly from headers, avoiding runtime
         116  +
    /// member iteration overhead. Body members are read via the deserializer.
         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  +
        #[allow(unused_variables, unused_mut)]
         124  +
        let mut builder = Self::builder();
         125  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         126  +
            builder._request_id = Some(val.to_string());
         127  +
        }
         128  +
        #[allow(
         129  +
            unused_variables,
         130  +
            unreachable_code,
         131  +
            clippy::single_match,
         132  +
            clippy::match_single_binding,
         133  +
            clippy::diverging_sub_expression
         134  +
        )]
         135  +
        deserializer.read_struct(&GETHEALTHCHECKSTATUSOUTPUT_SCHEMA, &mut |member, deser| {
         136  +
            match member.member_index() {
         137  +
                Some(0) => {
         138  +
                    builder.health_check_observations = Some({
         139  +
                        let mut container = Vec::new();
         140  +
                        deser.read_list(member, &mut |deser| {
         141  +
                            container.push(crate::types::HealthCheckObservation::deserialize(deser)?);
         142  +
                            Ok(())
         143  +
                        })?;
         144  +
                        container
   91    145   
                    });
   92    146   
                }
   93    147   
                _ => {}
   94    148   
            }
   95    149   
            Ok(())
   96    150   
        })?;
   97    151   
        builder
   98    152   
            .build()
   99    153   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  100    154   
    }

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_hosted_zone.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 `GetHostedZone`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHostedZone;
    6      6   
impl GetHostedZone {
    7      7   
    /// Creates a new `GetHostedZone`
    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_hosted_zone::GetHostedZoneInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_hosted_zone::GetHostedZoneOutput::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_hosted_zone::GetHostedZoneInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_hosted_zone::GetHostedZoneOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_hosted_zone::GetHostedZoneError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::get_hosted_zone::GetHostedZoneError,
  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 GetHostedZoneResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHostedZoneResponseDeserializer {
  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_hosted_zone::de_get_hosted_zone_http_error(status, headers, body)
  160    165   
        } else {

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

@@ -1,1 +110,123 @@
   18     18   
    "com.amazonaws.route53.synthetic",
   19     19   
    "GetHostedZoneInput",
   20     20   
);
   21     21   
static GETHOSTEDZONEINPUT_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#GetHostedZoneInput$Id",
   24     24   
        "com.amazonaws.route53.synthetic",
   25     25   
        "GetHostedZoneInput",
   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 GETHOSTEDZONEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     33   
    GETHOSTEDZONEINPUT_SCHEMA_ID,
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35     35   
    &[&GETHOSTEDZONEINPUT_MEMBER_ID],
   36         -
);
          36  +
)
          37  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/2013-04-01/hostedzone/{Id}", None));
   37     38   
impl GetHostedZoneInput {
   38     39   
    /// The schema for this shape.
   39     40   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHOSTEDZONEINPUT_SCHEMA;
   40     41   
}
   41     42   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHostedZoneInput {
   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(&GETHOSTEDZONEINPUT_MEMBER_ID, val)?;
   49     50   
        }
   50     51   
        Ok(())
   51     52   
    }
   52     53   
}
   53     54   
impl GetHostedZoneInput {
   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(&GETHOSTEDZONEINPUT_SCHEMA, (), |_, member, deser| {
          68  +
        deserializer.read_struct(&GETHOSTEDZONEINPUT_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 GetHostedZoneInput {
          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 GetHostedZoneInput {
   82     95   
    /// Creates a new builder-style object to manufacture [`GetHostedZoneInput`](crate::operation::get_hosted_zone::GetHostedZoneInput).
   83     96   
    pub fn builder() -> crate::operation::get_hosted_zone::builders::GetHostedZoneInputBuilder {
   84     97   
        crate::operation::get_hosted_zone::builders::GetHostedZoneInputBuilder::default()
   85     98   
    }
   86     99   
}
   87    100   
   88    101   
/// A builder for [`GetHostedZoneInput`](crate::operation::get_hosted_zone::GetHostedZoneInput).
   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_hosted_zone/_get_hosted_zone_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/route53/src/operation/get_hosted_zone_count.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 `GetHostedZoneCount`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHostedZoneCount;
    6      6   
impl GetHostedZoneCount {
    7      7   
    /// Creates a new `GetHostedZoneCount`
    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_hosted_zone_count::GetHostedZoneCountInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::get_hosted_zone_count::GetHostedZoneCountOutput::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_hosted_zone_count::GetHostedZoneCountInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_hosted_zone_count::GetHostedZoneCountOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_hosted_zone_count::GetHostedZoneCountError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::get_hosted_zone_count::GetHostedZoneCountError,
  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 GetHostedZoneCountResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHostedZoneCountResponseDeserializer {
  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_hosted_zone_count::de_get_hosted_zone_count_http_error(status, headers, body)
  160    165   
        } else {