AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c (ignoring whitespace)

Files changed:

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 {

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

@@ -1,1 +71,85 @@
    3      3   
/// <p>A request to retrieve a count of all the hosted zones 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 GetHostedZoneCountInput {}
    7      7   
static GETHOSTEDZONECOUNTINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    8      8   
    "com.amazonaws.route53.synthetic#GetHostedZoneCountInput",
    9      9   
    "com.amazonaws.route53.synthetic",
   10     10   
    "GetHostedZoneCountInput",
   11     11   
);
   12     12   
static GETHOSTEDZONECOUNTINPUT_SCHEMA: ::aws_smithy_schema::Schema =
   13         -
    ::aws_smithy_schema::Schema::new_struct(GETHOSTEDZONECOUNTINPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
    ::aws_smithy_schema::Schema::new_struct(GETHOSTEDZONECOUNTINPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[])
          14  +
        .with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/2013-04-01/hostedzonecount", None));
   14     15   
impl GetHostedZoneCountInput {
   15     16   
    /// The schema for this shape.
   16     17   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHOSTEDZONECOUNTINPUT_SCHEMA;
   17     18   
}
   18     19   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHostedZoneCountInput {
   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 GetHostedZoneCountInput {
   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(&GETHOSTEDZONECOUNTINPUT_SCHEMA, (), |_, member, deser| {
          42  +
        deserializer.read_struct(&GETHOSTEDZONECOUNTINPUT_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 GetHostedZoneCountInput {
          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 GetHostedZoneCountInput {
   53     67   
    /// Creates a new builder-style object to manufacture [`GetHostedZoneCountInput`](crate::operation::get_hosted_zone_count::GetHostedZoneCountInput).
   54     68   
    pub fn builder() -> crate::operation::get_hosted_zone_count::builders::GetHostedZoneCountInputBuilder {
   55     69   
        crate::operation::get_hosted_zone_count::builders::GetHostedZoneCountInputBuilder::default()
   56     70   
    }
   57     71   
}
   58     72   
   59     73   
/// A builder for [`GetHostedZoneCountInput`](crate::operation::get_hosted_zone_count::GetHostedZoneCountInput).
   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_hosted_zone_count/_get_hosted_zone_count_output.rs

@@ -1,1 +98,148 @@
   19     19   
    "com.amazonaws.route53.synthetic",
   20     20   
    "GetHostedZoneCountOutput",
   21     21   
);
   22     22   
static GETHOSTEDZONECOUNTOUTPUT_MEMBER_HOSTED_ZONE_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#GetHostedZoneCountOutput$HostedZoneCount",
   25     25   
        "com.amazonaws.route53.synthetic",
   26     26   
        "GetHostedZoneCountOutput",
   27     27   
    ),
   28     28   
    ::aws_smithy_schema::ShapeType::Long,
   29         -
    "hosted_zone_count",
          29  +
    "HostedZoneCount",
   30     30   
    0,
   31     31   
);
          32  +
static GETHOSTEDZONECOUNTOUTPUT_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 GETHOSTEDZONECOUNTOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    GETHOSTEDZONECOUNTOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&GETHOSTEDZONECOUNTOUTPUT_MEMBER_HOSTED_ZONE_COUNT],
          42  +
    &[
          43  +
        &GETHOSTEDZONECOUNTOUTPUT_MEMBER_HOSTED_ZONE_COUNT,
          44  +
        &GETHOSTEDZONECOUNTOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl GetHostedZoneCountOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHOSTEDZONECOUNTOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHostedZoneCountOutput {
   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.hosted_zone_count;
   49     59   
            ser.write_long(&GETHOSTEDZONECOUNTOUTPUT_MEMBER_HOSTED_ZONE_COUNT, *val)?;
   50     60   
        }
   51     61   
        Ok(())
   52     62   
    }
   53     63   
}
   54     64   
impl GetHostedZoneCountOutput {
   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(&GETHOSTEDZONECOUNTOUTPUT_SCHEMA, (), |_, member, deser| {
          78  +
        deserializer.read_struct(&GETHOSTEDZONECOUNTOUTPUT_SCHEMA, &mut |member, deser| {
          79  +
            match member.member_index() {
          80  +
                Some(0) => {
          81  +
                    builder.hosted_zone_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.hosted_zone_count = builder.hosted_zone_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 GetHostedZoneCountOutput {
          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(&GETHOSTEDZONECOUNTOUTPUT_SCHEMA, &mut |member, deser| {
   69    119   
            match member.member_index() {
   70    120   
                Some(0) => {
   71    121   
                    builder.hosted_zone_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_hosted_zone_limit.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 `GetHostedZoneLimit`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct GetHostedZoneLimit;
    6      6   
impl GetHostedZoneLimit {
    7      7   
    /// Creates a new `GetHostedZoneLimit`
    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_limit::GetHostedZoneLimitInput::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_limit::GetHostedZoneLimitOutput::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_limit::GetHostedZoneLimitInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::get_hosted_zone_limit::GetHostedZoneLimitOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::get_hosted_zone_limit::GetHostedZoneLimitError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +183,188 @@
  141    145   
                crate::operation::get_hosted_zone_limit::GetHostedZoneLimitError,
  142    146   
            >::new());
  143    147   
  144    148   
        ::std::borrow::Cow::Owned(rcb)
  145    149   
    }
  146    150   
}
  147    151   
  148    152   
#[derive(Debug)]
  149    153   
struct GetHostedZoneLimitResponseDeserializer;
  150    154   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetHostedZoneLimitResponseDeserializer {
  151         -
    fn deserialize_nonstreaming(
         155  +
    fn deserialize_nonstreaming_with_config(
  152    156   
        &self,
  153    157   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         158  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    159   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    160   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156    161   
        let headers = response.headers();
  157    162   
        let body = response.body().bytes().expect("body loaded");
  158    163   
        #[allow(unused_mut)]
  159    164   
        let mut force_error = false;
  160    165   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  161    166   
        let parse_result = if !success && status != 200 || force_error {
  162    167   
            crate::protocol_serde::shape_get_hosted_zone_limit::de_get_hosted_zone_limit_http_error(status, headers, body)
  163    168   
        } else {

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

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

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

@@ -5,5 +117,168 @@
   25     25   
    "com.amazonaws.route53.synthetic",
   26     26   
    "GetHostedZoneLimitOutput",
   27     27   
);
   28     28   
static GETHOSTEDZONELIMITOUTPUT_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#GetHostedZoneLimitOutput$Limit",
   31     31   
        "com.amazonaws.route53.synthetic",
   32     32   
        "GetHostedZoneLimitOutput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    "limit",
          35  +
    "Limit",
   36     36   
    0,
   37     37   
);
   38     38   
static GETHOSTEDZONELIMITOUTPUT_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#GetHostedZoneLimitOutput$Count",
   41     41   
        "com.amazonaws.route53.synthetic",
   42     42   
        "GetHostedZoneLimitOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Long,
   45         -
    "count",
          45  +
    "Count",
   46     46   
    1,
   47     47   
);
          48  +
static GETHOSTEDZONELIMITOUTPUT_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 GETHOSTEDZONELIMITOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     56   
    GETHOSTEDZONELIMITOUTPUT_SCHEMA_ID,
   50     57   
    ::aws_smithy_schema::ShapeType::Structure,
   51         -
    &[&GETHOSTEDZONELIMITOUTPUT_MEMBER_LIMIT, &GETHOSTEDZONELIMITOUTPUT_MEMBER_COUNT],
          58  +
    &[
          59  +
        &GETHOSTEDZONELIMITOUTPUT_MEMBER_LIMIT,
          60  +
        &GETHOSTEDZONELIMITOUTPUT_MEMBER_COUNT,
          61  +
        &GETHOSTEDZONELIMITOUTPUT_MEMBER__REQUEST_ID,
          62  +
    ],
   52     63   
);
   53     64   
impl GetHostedZoneLimitOutput {
   54     65   
    /// The schema for this shape.
   55     66   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETHOSTEDZONELIMITOUTPUT_SCHEMA;
   56     67   
}
   57     68   
impl ::aws_smithy_schema::serde::SerializableStruct for GetHostedZoneLimitOutput {
   58     69   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     70   
    fn serialize_members(
   60     71   
        &self,
   61     72   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     73   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     74   
        if let Some(ref val) = self.limit {
   64     75   
            ser.write_struct(&GETHOSTEDZONELIMITOUTPUT_MEMBER_LIMIT, val)?;
   65     76   
        }
   66     77   
        {
   67     78   
            let val = &self.count;
   68     79   
            ser.write_long(&GETHOSTEDZONELIMITOUTPUT_MEMBER_COUNT, *val)?;
   69     80   
        }
   70     81   
        Ok(())
   71     82   
    }
   72     83   
}
   73     84   
impl GetHostedZoneLimitOutput {
   74     85   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   75         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   76         -
        deserializer: &mut D,
          86  +
    pub fn deserialize(
          87  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   77     88   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   78     89   
        #[allow(unused_variables, unused_mut)]
   79     90   
        let mut builder = Self::builder();
   80     91   
        #[allow(
   81     92   
            unused_variables,
   82     93   
            unreachable_code,
   83     94   
            clippy::single_match,
   84     95   
            clippy::match_single_binding,
   85     96   
            clippy::diverging_sub_expression
   86     97   
        )]
   87         -
        deserializer.read_struct(&GETHOSTEDZONELIMITOUTPUT_SCHEMA, (), |_, member, deser| {
          98  +
        deserializer.read_struct(&GETHOSTEDZONELIMITOUTPUT_SCHEMA, &mut |member, deser| {
          99  +
            match member.member_index() {
         100  +
                Some(0) => {
         101  +
                    builder.limit = Some(crate::types::HostedZoneLimit::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 GetHostedZoneLimitOutput {
         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(&GETHOSTEDZONELIMITOUTPUT_SCHEMA, &mut |member, deser| {
   88    139   
            match member.member_index() {
   89    140   
                Some(0) => {
   90    141   
                    builder.limit = Some(crate::types::HostedZoneLimit::deserialize(deser)?);
   91    142   
                }
   92    143   
                Some(1) => {
   93    144   
                    builder.count = Some(deser.read_long(member)?);
   94    145   
                }
   95    146   
                _ => {}
   96    147   
            }
   97    148   
            Ok(())

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

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

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