AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

@@ -44,44 +225,239 @@
   64     64   
    "com.amazonaws.route53.synthetic",
   65     65   
    "CreateHostedZoneInput",
   66     66   
);
   67     67   
static CREATEHOSTEDZONEINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.route53.synthetic#CreateHostedZoneInput$Name",
   70     70   
        "com.amazonaws.route53.synthetic",
   71     71   
        "CreateHostedZoneInput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::String,
   74         -
    "name",
          74  +
    "Name",
   75     75   
    0,
   76     76   
);
   77     77   
static CREATEHOSTEDZONEINPUT_MEMBER_VPC: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.route53.synthetic#CreateHostedZoneInput$VPC",
   80     80   
        "com.amazonaws.route53.synthetic",
   81     81   
        "CreateHostedZoneInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Structure,
   84         -
    "vpc",
          84  +
    "VPC",
   85     85   
    1,
   86     86   
);
   87     87   
static CREATEHOSTEDZONEINPUT_MEMBER_CALLER_REFERENCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.route53.synthetic#CreateHostedZoneInput$CallerReference",
   90     90   
        "com.amazonaws.route53.synthetic",
   91     91   
        "CreateHostedZoneInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "caller_reference",
          94  +
    "CallerReference",
   95     95   
    2,
   96     96   
);
   97     97   
static CREATEHOSTEDZONEINPUT_MEMBER_HOSTED_ZONE_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   98     98   
    ::aws_smithy_schema::ShapeId::from_static(
   99     99   
        "com.amazonaws.route53.synthetic#CreateHostedZoneInput$HostedZoneConfig",
  100    100   
        "com.amazonaws.route53.synthetic",
  101    101   
        "CreateHostedZoneInput",
  102    102   
    ),
  103    103   
    ::aws_smithy_schema::ShapeType::Structure,
  104         -
    "hosted_zone_config",
         104  +
    "HostedZoneConfig",
  105    105   
    3,
  106    106   
);
  107    107   
static CREATEHOSTEDZONEINPUT_MEMBER_DELEGATION_SET_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  108    108   
    ::aws_smithy_schema::ShapeId::from_static(
  109    109   
        "com.amazonaws.route53.synthetic#CreateHostedZoneInput$DelegationSetId",
  110    110   
        "com.amazonaws.route53.synthetic",
  111    111   
        "CreateHostedZoneInput",
  112    112   
    ),
  113    113   
    ::aws_smithy_schema::ShapeType::String,
  114         -
    "delegation_set_id",
         114  +
    "DelegationSetId",
  115    115   
    4,
  116    116   
);
  117    117   
static CREATEHOSTEDZONEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  118    118   
    CREATEHOSTEDZONEINPUT_SCHEMA_ID,
  119    119   
    ::aws_smithy_schema::ShapeType::Structure,
  120    120   
    &[
  121    121   
        &CREATEHOSTEDZONEINPUT_MEMBER_NAME,
  122    122   
        &CREATEHOSTEDZONEINPUT_MEMBER_VPC,
  123    123   
        &CREATEHOSTEDZONEINPUT_MEMBER_CALLER_REFERENCE,
  124    124   
        &CREATEHOSTEDZONEINPUT_MEMBER_HOSTED_ZONE_CONFIG,
  125    125   
        &CREATEHOSTEDZONEINPUT_MEMBER_DELEGATION_SET_ID,
  126    126   
    ],
  127         -
);
         127  +
)
         128  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/2013-04-01/hostedzone", Some(201)));
  128    129   
impl CreateHostedZoneInput {
  129    130   
    /// The schema for this shape.
  130    131   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEHOSTEDZONEINPUT_SCHEMA;
  131    132   
}
  132    133   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateHostedZoneInput {
  133    134   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  134    135   
    fn serialize_members(
  135    136   
        &self,
  136    137   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  137    138   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  138    139   
        if let Some(ref val) = self.name {
  139    140   
            ser.write_string(&CREATEHOSTEDZONEINPUT_MEMBER_NAME, val)?;
  140    141   
        }
  141    142   
        if let Some(ref val) = self.vpc {
  142    143   
            ser.write_struct(&CREATEHOSTEDZONEINPUT_MEMBER_VPC, val)?;
  143    144   
        }
  144    145   
        if let Some(ref val) = self.caller_reference {
  145    146   
            ser.write_string(&CREATEHOSTEDZONEINPUT_MEMBER_CALLER_REFERENCE, val)?;
  146    147   
        }
  147    148   
        if let Some(ref val) = self.hosted_zone_config {
  148    149   
            ser.write_struct(&CREATEHOSTEDZONEINPUT_MEMBER_HOSTED_ZONE_CONFIG, val)?;
  149    150   
        }
  150    151   
        if let Some(ref val) = self.delegation_set_id {
  151    152   
            ser.write_string(&CREATEHOSTEDZONEINPUT_MEMBER_DELEGATION_SET_ID, val)?;
  152    153   
        }
  153    154   
        Ok(())
  154    155   
    }
  155    156   
}
  156    157   
impl CreateHostedZoneInput {
  157    158   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  158         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  159         -
        deserializer: &mut D,
         159  +
    pub fn deserialize(
         160  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  160    161   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  161    162   
        #[allow(unused_variables, unused_mut)]
  162    163   
        let mut builder = Self::builder();
  163    164   
        #[allow(
  164    165   
            unused_variables,
  165    166   
            unreachable_code,
  166    167   
            clippy::single_match,
  167    168   
            clippy::match_single_binding,
  168    169   
            clippy::diverging_sub_expression
  169    170   
        )]
  170         -
        deserializer.read_struct(&CREATEHOSTEDZONEINPUT_SCHEMA, (), |_, member, deser| {
         171  +
        deserializer.read_struct(&CREATEHOSTEDZONEINPUT_SCHEMA, &mut |member, deser| {
  171    172   
            match member.member_index() {
  172    173   
                Some(0) => {
  173    174   
                    builder.name = Some(deser.read_string(member)?);
  174    175   
                }
  175    176   
                Some(1) => {
  176    177   
                    builder.vpc = Some(crate::types::Vpc::deserialize(deser)?);
  177    178   
                }
  178    179   
                Some(2) => {
  179    180   
                    builder.caller_reference = Some(deser.read_string(member)?);
  180    181   
                }
  181    182   
                Some(3) => {
  182    183   
                    builder.hosted_zone_config = Some(crate::types::HostedZoneConfig::deserialize(deser)?);
  183    184   
                }
  184    185   
                Some(4) => {
  185    186   
                    builder.delegation_set_id = Some(deser.read_string(member)?);
  186    187   
                }
  187    188   
                _ => {}
  188    189   
            }
  189    190   
            Ok(())
  190    191   
        })?;
         192  +
        builder.name = builder.name.or(Some(String::new()));
         193  +
        builder.caller_reference = builder.caller_reference.or(Some(String::new()));
  191    194   
        builder
  192    195   
            .build()
  193    196   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  194    197   
    }
  195    198   
}
         199  +
impl CreateHostedZoneInput {
         200  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         201  +
    pub fn deserialize_with_response(
         202  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         203  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         204  +
        _status: u16,
         205  +
        _body: &[u8],
         206  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         207  +
        Self::deserialize(deserializer)
         208  +
    }
         209  +
}
  196    210   
impl CreateHostedZoneInput {
  197    211   
    /// Creates a new builder-style object to manufacture [`CreateHostedZoneInput`](crate::operation::create_hosted_zone::CreateHostedZoneInput).
  198    212   
    pub fn builder() -> crate::operation::create_hosted_zone::builders::CreateHostedZoneInputBuilder {
  199    213   
        crate::operation::create_hosted_zone::builders::CreateHostedZoneInputBuilder::default()
  200    214   
    }
  201    215   
}
  202    216   
  203    217   
/// A builder for [`CreateHostedZoneInput`](crate::operation::create_hosted_zone::CreateHostedZoneInput).
  204    218   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  205    219   
#[non_exhaustive]

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

@@ -24,24 +198,259 @@
   44     44   
    "com.amazonaws.route53.synthetic",
   45     45   
    "CreateHostedZoneOutput",
   46     46   
);
   47     47   
static CREATEHOSTEDZONEOUTPUT_MEMBER_HOSTED_ZONE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   48     48   
    ::aws_smithy_schema::ShapeId::from_static(
   49     49   
        "com.amazonaws.route53.synthetic#CreateHostedZoneOutput$HostedZone",
   50     50   
        "com.amazonaws.route53.synthetic",
   51     51   
        "CreateHostedZoneOutput",
   52     52   
    ),
   53     53   
    ::aws_smithy_schema::ShapeType::Structure,
   54         -
    "hosted_zone",
          54  +
    "HostedZone",
   55     55   
    0,
   56     56   
);
   57     57   
static CREATEHOSTEDZONEOUTPUT_MEMBER_CHANGE_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   58     58   
    ::aws_smithy_schema::ShapeId::from_static(
   59     59   
        "com.amazonaws.route53.synthetic#CreateHostedZoneOutput$ChangeInfo",
   60     60   
        "com.amazonaws.route53.synthetic",
   61     61   
        "CreateHostedZoneOutput",
   62     62   
    ),
   63     63   
    ::aws_smithy_schema::ShapeType::Structure,
   64         -
    "change_info",
          64  +
    "ChangeInfo",
   65     65   
    1,
   66     66   
);
   67     67   
static CREATEHOSTEDZONEOUTPUT_MEMBER_DELEGATION_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   68     68   
    ::aws_smithy_schema::ShapeId::from_static(
   69     69   
        "com.amazonaws.route53.synthetic#CreateHostedZoneOutput$DelegationSet",
   70     70   
        "com.amazonaws.route53.synthetic",
   71     71   
        "CreateHostedZoneOutput",
   72     72   
    ),
   73     73   
    ::aws_smithy_schema::ShapeType::Structure,
   74         -
    "delegation_set",
          74  +
    "DelegationSet",
   75     75   
    2,
   76     76   
);
   77     77   
static CREATEHOSTEDZONEOUTPUT_MEMBER_VPC: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.route53.synthetic#CreateHostedZoneOutput$VPC",
   80     80   
        "com.amazonaws.route53.synthetic",
   81     81   
        "CreateHostedZoneOutput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Structure,
   84         -
    "vpc",
          84  +
    "VPC",
   85     85   
    3,
   86     86   
);
   87     87   
static CREATEHOSTEDZONEOUTPUT_MEMBER_LOCATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.route53.synthetic#CreateHostedZoneOutput$Location",
   90     90   
        "com.amazonaws.route53.synthetic",
   91     91   
        "CreateHostedZoneOutput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "location",
          94  +
    "Location",
   95     95   
    4,
   96     96   
)
   97     97   
.with_http_header("Location");
          98  +
static CREATEHOSTEDZONEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          99  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         100  +
    ::aws_smithy_schema::ShapeType::String,
         101  +
    "request_id",
         102  +
    5,
         103  +
)
         104  +
.with_http_header("x-amzn-requestid");
   98    105   
static CREATEHOSTEDZONEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   99    106   
    CREATEHOSTEDZONEOUTPUT_SCHEMA_ID,
  100    107   
    ::aws_smithy_schema::ShapeType::Structure,
  101    108   
    &[
  102    109   
        &CREATEHOSTEDZONEOUTPUT_MEMBER_HOSTED_ZONE,
  103    110   
        &CREATEHOSTEDZONEOUTPUT_MEMBER_CHANGE_INFO,
  104    111   
        &CREATEHOSTEDZONEOUTPUT_MEMBER_DELEGATION_SET,
  105    112   
        &CREATEHOSTEDZONEOUTPUT_MEMBER_VPC,
  106    113   
        &CREATEHOSTEDZONEOUTPUT_MEMBER_LOCATION,
         114  +
        &CREATEHOSTEDZONEOUTPUT_MEMBER__REQUEST_ID,
  107    115   
    ],
  108    116   
);
  109    117   
impl CreateHostedZoneOutput {
  110    118   
    /// The schema for this shape.
  111    119   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEHOSTEDZONEOUTPUT_SCHEMA;
  112    120   
}
  113    121   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateHostedZoneOutput {
  114    122   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  115    123   
    fn serialize_members(
  116    124   
        &self,
  117    125   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  118    126   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  119    127   
        if let Some(ref val) = self.hosted_zone {
  120    128   
            ser.write_struct(&CREATEHOSTEDZONEOUTPUT_MEMBER_HOSTED_ZONE, val)?;
  121    129   
        }
  122    130   
        if let Some(ref val) = self.change_info {
  123    131   
            ser.write_struct(&CREATEHOSTEDZONEOUTPUT_MEMBER_CHANGE_INFO, val)?;
  124    132   
        }
  125    133   
        if let Some(ref val) = self.delegation_set {
  126    134   
            ser.write_struct(&CREATEHOSTEDZONEOUTPUT_MEMBER_DELEGATION_SET, val)?;
  127    135   
        }
  128    136   
        if let Some(ref val) = self.vpc {
  129    137   
            ser.write_struct(&CREATEHOSTEDZONEOUTPUT_MEMBER_VPC, val)?;
  130    138   
        }
  131    139   
        {
  132    140   
            let val = &self.location;
  133    141   
            ser.write_string(&CREATEHOSTEDZONEOUTPUT_MEMBER_LOCATION, val)?;
  134    142   
        }
  135    143   
        Ok(())
  136    144   
    }
  137    145   
}
  138    146   
impl CreateHostedZoneOutput {
  139    147   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  140         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  141         -
        deserializer: &mut D,
         148  +
    pub fn deserialize(
         149  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  142    150   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  143    151   
        #[allow(unused_variables, unused_mut)]
  144    152   
        let mut builder = Self::builder();
  145    153   
        #[allow(
  146    154   
            unused_variables,
  147    155   
            unreachable_code,
  148    156   
            clippy::single_match,
  149    157   
            clippy::match_single_binding,
  150    158   
            clippy::diverging_sub_expression
  151    159   
        )]
  152         -
        deserializer.read_struct(&CREATEHOSTEDZONEOUTPUT_SCHEMA, (), |_, member, deser| {
         160  +
        deserializer.read_struct(&CREATEHOSTEDZONEOUTPUT_SCHEMA, &mut |member, deser| {
  153    161   
            match member.member_index() {
  154    162   
                Some(0) => {
  155    163   
                    builder.hosted_zone = Some(crate::types::HostedZone::deserialize(deser)?);
  156    164   
                }
  157    165   
                Some(1) => {
  158    166   
                    builder.change_info = Some(crate::types::ChangeInfo::deserialize(deser)?);
  159    167   
                }
  160    168   
                Some(2) => {
  161    169   
                    builder.delegation_set = Some(crate::types::DelegationSet::deserialize(deser)?);
  162    170   
                }
  163    171   
                Some(3) => {
  164    172   
                    builder.vpc = Some(crate::types::Vpc::deserialize(deser)?);
  165    173   
                }
  166    174   
                Some(4) => {
  167    175   
                    builder.location = Some(deser.read_string(member)?);
  168    176   
                }
         177  +
                Some(5) => {
         178  +
                    builder._request_id = Some(deser.read_string(member)?);
         179  +
                }
         180  +
                _ => {}
         181  +
            }
         182  +
            Ok(())
         183  +
        })?;
         184  +
        builder.location = builder.location.or(Some(String::new()));
         185  +
        builder
         186  +
            .build()
         187  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         188  +
    }
         189  +
}
         190  +
impl CreateHostedZoneOutput {
         191  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         192  +
    /// Header-bound members are read directly from headers, avoiding runtime
         193  +
    /// member iteration overhead. Body members are read via the deserializer.
         194  +
    pub fn deserialize_with_response(
         195  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         196  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         197  +
        _status: u16,
         198  +
        _body: &[u8],
         199  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         200  +
        #[allow(unused_variables, unused_mut)]
         201  +
        let mut builder = Self::builder();
         202  +
        if let Some(val) = headers.get("Location") {
         203  +
            builder.location = Some(val.to_string());
         204  +
        }
         205  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         206  +
            builder._request_id = Some(val.to_string());
         207  +
        }
         208  +
        #[allow(
         209  +
            unused_variables,
         210  +
            unreachable_code,
         211  +
            clippy::single_match,
         212  +
            clippy::match_single_binding,
         213  +
            clippy::diverging_sub_expression
         214  +
        )]
         215  +
        deserializer.read_struct(&CREATEHOSTEDZONEOUTPUT_SCHEMA, &mut |member, deser| {
         216  +
            match member.member_index() {
         217  +
                Some(0) => {
         218  +
                    builder.hosted_zone = Some(crate::types::HostedZone::deserialize(deser)?);
         219  +
                }
         220  +
                Some(1) => {
         221  +
                    builder.change_info = Some(crate::types::ChangeInfo::deserialize(deser)?);
         222  +
                }
         223  +
                Some(2) => {
         224  +
                    builder.delegation_set = Some(crate::types::DelegationSet::deserialize(deser)?);
         225  +
                }
         226  +
                Some(3) => {
         227  +
                    builder.vpc = Some(crate::types::Vpc::deserialize(deser)?);
         228  +
                }
         229  +
                Some(4) => { /* read from headers above */ }
  169    230   
                _ => {}
  170    231   
            }
  171    232   
            Ok(())
  172    233   
        })?;
  173    234   
        builder
  174    235   
            .build()
  175    236   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  176    237   
    }
  177    238   
}
  178    239   
impl ::aws_types::request_id::RequestId for CreateHostedZoneOutput {

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

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

@@ -103,103 +284,301 @@
  123    123   
    "com.amazonaws.route53.synthetic",
  124    124   
    "CreateKeySigningKeyInput",
  125    125   
);
  126    126   
static CREATEKEYSIGNINGKEYINPUT_MEMBER_CALLER_REFERENCE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.route53.synthetic#CreateKeySigningKeyInput$CallerReference",
  129    129   
        "com.amazonaws.route53.synthetic",
  130    130   
        "CreateKeySigningKeyInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::String,
  133         -
    "caller_reference",
         133  +
    "CallerReference",
  134    134   
    0,
  135    135   
);
  136    136   
static CREATEKEYSIGNINGKEYINPUT_MEMBER_HOSTED_ZONE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.route53.synthetic#CreateKeySigningKeyInput$HostedZoneId",
  139    139   
        "com.amazonaws.route53.synthetic",
  140    140   
        "CreateKeySigningKeyInput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::String,
  143         -
    "hosted_zone_id",
         143  +
    "HostedZoneId",
  144    144   
    1,
  145    145   
);
  146    146   
static CREATEKEYSIGNINGKEYINPUT_MEMBER_KEY_MANAGEMENT_SERVICE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.route53.synthetic#CreateKeySigningKeyInput$KeyManagementServiceArn",
  149    149   
        "com.amazonaws.route53.synthetic",
  150    150   
        "CreateKeySigningKeyInput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::String,
  153         -
    "key_management_service_arn",
         153  +
    "KeyManagementServiceArn",
  154    154   
    2,
  155    155   
);
  156    156   
static CREATEKEYSIGNINGKEYINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  157    157   
    ::aws_smithy_schema::ShapeId::from_static(
  158    158   
        "com.amazonaws.route53.synthetic#CreateKeySigningKeyInput$Name",
  159    159   
        "com.amazonaws.route53.synthetic",
  160    160   
        "CreateKeySigningKeyInput",
  161    161   
    ),
  162    162   
    ::aws_smithy_schema::ShapeType::String,
  163         -
    "name",
         163  +
    "Name",
  164    164   
    3,
  165    165   
);
  166    166   
static CREATEKEYSIGNINGKEYINPUT_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  167    167   
    ::aws_smithy_schema::ShapeId::from_static(
  168    168   
        "com.amazonaws.route53.synthetic#CreateKeySigningKeyInput$Status",
  169    169   
        "com.amazonaws.route53.synthetic",
  170    170   
        "CreateKeySigningKeyInput",
  171    171   
    ),
  172    172   
    ::aws_smithy_schema::ShapeType::String,
  173         -
    "status",
         173  +
    "Status",
  174    174   
    4,
  175    175   
);
  176    176   
static CREATEKEYSIGNINGKEYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  177    177   
    CREATEKEYSIGNINGKEYINPUT_SCHEMA_ID,
  178    178   
    ::aws_smithy_schema::ShapeType::Structure,
  179    179   
    &[
  180    180   
        &CREATEKEYSIGNINGKEYINPUT_MEMBER_CALLER_REFERENCE,
  181    181   
        &CREATEKEYSIGNINGKEYINPUT_MEMBER_HOSTED_ZONE_ID,
  182    182   
        &CREATEKEYSIGNINGKEYINPUT_MEMBER_KEY_MANAGEMENT_SERVICE_ARN,
  183    183   
        &CREATEKEYSIGNINGKEYINPUT_MEMBER_NAME,
  184    184   
        &CREATEKEYSIGNINGKEYINPUT_MEMBER_STATUS,
  185    185   
    ],
  186         -
);
         186  +
)
         187  +
.with_http(aws_smithy_schema::traits::HttpTrait::new("POST", "/2013-04-01/keysigningkey", Some(201)));
  187    188   
impl CreateKeySigningKeyInput {
  188    189   
    /// The schema for this shape.
  189    190   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEKEYSIGNINGKEYINPUT_SCHEMA;
  190    191   
}
  191    192   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateKeySigningKeyInput {
  192    193   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  193    194   
    fn serialize_members(
  194    195   
        &self,
  195    196   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  196    197   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  197    198   
        if let Some(ref val) = self.caller_reference {
  198    199   
            ser.write_string(&CREATEKEYSIGNINGKEYINPUT_MEMBER_CALLER_REFERENCE, val)?;
  199    200   
        }
  200    201   
        if let Some(ref val) = self.hosted_zone_id {
  201    202   
            ser.write_string(&CREATEKEYSIGNINGKEYINPUT_MEMBER_HOSTED_ZONE_ID, val)?;
  202    203   
        }
  203    204   
        if let Some(ref val) = self.key_management_service_arn {
  204    205   
            ser.write_string(&CREATEKEYSIGNINGKEYINPUT_MEMBER_KEY_MANAGEMENT_SERVICE_ARN, val)?;
  205    206   
        }
  206    207   
        if let Some(ref val) = self.name {
  207    208   
            ser.write_string(&CREATEKEYSIGNINGKEYINPUT_MEMBER_NAME, val)?;
  208    209   
        }
  209    210   
        if let Some(ref val) = self.status {
  210    211   
            ser.write_string(&CREATEKEYSIGNINGKEYINPUT_MEMBER_STATUS, val)?;
  211    212   
        }
  212    213   
        Ok(())
  213    214   
    }
  214    215   
}
  215    216   
impl CreateKeySigningKeyInput {
  216    217   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  217         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  218         -
        deserializer: &mut D,
         218  +
    pub fn deserialize(
         219  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  219    220   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  220    221   
        #[allow(unused_variables, unused_mut)]
  221    222   
        let mut builder = Self::builder();
  222    223   
        #[allow(
  223    224   
            unused_variables,
  224    225   
            unreachable_code,
  225    226   
            clippy::single_match,
  226    227   
            clippy::match_single_binding,
  227    228   
            clippy::diverging_sub_expression
  228    229   
        )]
  229         -
        deserializer.read_struct(&CREATEKEYSIGNINGKEYINPUT_SCHEMA, (), |_, member, deser| {
         230  +
        deserializer.read_struct(&CREATEKEYSIGNINGKEYINPUT_SCHEMA, &mut |member, deser| {
  230    231   
            match member.member_index() {
  231    232   
                Some(0) => {
  232    233   
                    builder.caller_reference = Some(deser.read_string(member)?);
  233    234   
                }
  234    235   
                Some(1) => {
  235    236   
                    builder.hosted_zone_id = Some(deser.read_string(member)?);
  236    237   
                }
  237    238   
                Some(2) => {
  238    239   
                    builder.key_management_service_arn = Some(deser.read_string(member)?);
  239    240   
                }
  240    241   
                Some(3) => {
  241    242   
                    builder.name = Some(deser.read_string(member)?);
  242    243   
                }
  243    244   
                Some(4) => {
  244    245   
                    builder.status = Some(deser.read_string(member)?);
  245    246   
                }
  246    247   
                _ => {}
  247    248   
            }
  248    249   
            Ok(())
  249    250   
        })?;
         251  +
        builder.caller_reference = builder.caller_reference.or(Some(String::new()));
         252  +
        builder.hosted_zone_id = builder.hosted_zone_id.or(Some(String::new()));
         253  +
        builder.key_management_service_arn = builder.key_management_service_arn.or(Some(String::new()));
         254  +
        builder.name = builder.name.or(Some(String::new()));
         255  +
        builder.status = builder.status.or(Some(String::new()));
  250    256   
        builder
  251    257   
            .build()
  252    258   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  253    259   
    }
  254    260   
}
         261  +
impl CreateKeySigningKeyInput {
         262  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         263  +
    pub fn deserialize_with_response(
         264  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         265  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         266  +
        _status: u16,
         267  +
        _body: &[u8],
         268  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         269  +
        Self::deserialize(deserializer)
         270  +
    }
         271  +
}
  255    272   
impl CreateKeySigningKeyInput {
  256    273   
    /// Creates a new builder-style object to manufacture [`CreateKeySigningKeyInput`](crate::operation::create_key_signing_key::CreateKeySigningKeyInput).
  257    274   
    pub fn builder() -> crate::operation::create_key_signing_key::builders::CreateKeySigningKeyInputBuilder {
  258    275   
        crate::operation::create_key_signing_key::builders::CreateKeySigningKeyInputBuilder::default()
  259    276   
    }
  260    277   
}
  261    278   
  262    279   
/// A builder for [`CreateKeySigningKeyInput`](crate::operation::create_key_signing_key::CreateKeySigningKeyInput).
  263    280   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  264    281   
#[non_exhaustive]

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

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

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

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

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

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

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

@@ -5,5 +128,180 @@
   25     25   
    "com.amazonaws.route53.synthetic",
   26     26   
    "CreateQueryLoggingConfigOutput",
   27     27   
);
   28     28   
static CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.route53.synthetic#CreateQueryLoggingConfigOutput$QueryLoggingConfig",
   31     31   
        "com.amazonaws.route53.synthetic",
   32     32   
        "CreateQueryLoggingConfigOutput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    "query_logging_config",
          35  +
    "QueryLoggingConfig",
   36     36   
    0,
   37     37   
);
   38     38   
static CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER_LOCATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.route53.synthetic#CreateQueryLoggingConfigOutput$Location",
   41     41   
        "com.amazonaws.route53.synthetic",
   42     42   
        "CreateQueryLoggingConfigOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "location",
          45  +
    "Location",
   46     46   
    1,
   47     47   
)
   48     48   
.with_http_header("Location");
          49  +
static CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static CREATEQUERYLOGGINGCONFIGOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    CREATEQUERYLOGGINGCONFIGOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG,
   54     61   
        &CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER_LOCATION,
          62  +
        &CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl CreateQueryLoggingConfigOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEQUERYLOGGINGCONFIGOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateQueryLoggingConfigOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.query_logging_config {
   68     76   
            ser.write_struct(&CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER_QUERY_LOGGING_CONFIG, val)?;
   69     77   
        }
   70     78   
        {
   71     79   
            let val = &self.location;
   72     80   
            ser.write_string(&CREATEQUERYLOGGINGCONFIGOUTPUT_MEMBER_LOCATION, val)?;
   73     81   
        }
   74     82   
        Ok(())
   75     83   
    }
   76     84   
}
   77     85   
impl CreateQueryLoggingConfigOutput {
   78     86   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   79         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   80         -
        deserializer: &mut D,
          87  +
    pub fn deserialize(
          88  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   81     89   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   82     90   
        #[allow(unused_variables, unused_mut)]
   83     91   
        let mut builder = Self::builder();
   84     92   
        #[allow(
   85     93   
            unused_variables,
   86     94   
            unreachable_code,
   87     95   
            clippy::single_match,
   88     96   
            clippy::match_single_binding,
   89     97   
            clippy::diverging_sub_expression
   90     98   
        )]
   91         -
        deserializer.read_struct(&CREATEQUERYLOGGINGCONFIGOUTPUT_SCHEMA, (), |_, member, deser| {
          99  +
        deserializer.read_struct(&CREATEQUERYLOGGINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
   92    100   
            match member.member_index() {
   93    101   
                Some(0) => {
   94    102   
                    builder.query_logging_config = Some(crate::types::QueryLoggingConfig::deserialize(deser)?);
   95    103   
                }
   96    104   
                Some(1) => {
   97    105   
                    builder.location = Some(deser.read_string(member)?);
   98    106   
                }
         107  +
                Some(2) => {
         108  +
                    builder._request_id = Some(deser.read_string(member)?);
         109  +
                }
         110  +
                _ => {}
         111  +
            }
         112  +
            Ok(())
         113  +
        })?;
         114  +
        builder.location = builder.location.or(Some(String::new()));
         115  +
        builder
         116  +
            .build()
         117  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         118  +
    }
         119  +
}
         120  +
impl CreateQueryLoggingConfigOutput {
         121  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         122  +
    /// Header-bound members are read directly from headers, avoiding runtime
         123  +
    /// member iteration overhead. Body members are read via the deserializer.
         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  +
        #[allow(unused_variables, unused_mut)]
         131  +
        let mut builder = Self::builder();
         132  +
        if let Some(val) = headers.get("Location") {
         133  +
            builder.location = Some(val.to_string());
         134  +
        }
         135  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         136  +
            builder._request_id = Some(val.to_string());
         137  +
        }
         138  +
        #[allow(
         139  +
            unused_variables,
         140  +
            unreachable_code,
         141  +
            clippy::single_match,
         142  +
            clippy::match_single_binding,
         143  +
            clippy::diverging_sub_expression
         144  +
        )]
         145  +
        deserializer.read_struct(&CREATEQUERYLOGGINGCONFIGOUTPUT_SCHEMA, &mut |member, deser| {
         146  +
            match member.member_index() {
         147  +
                Some(0) => {
         148  +
                    builder.query_logging_config = Some(crate::types::QueryLoggingConfig::deserialize(deser)?);
         149  +
                }
         150  +
                Some(1) => { /* read from headers above */ }
   99    151   
                _ => {}
  100    152   
            }
  101    153   
            Ok(())
  102    154   
        })?;
  103    155   
        builder
  104    156   
            .build()
  105    157   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  106    158   
    }
  107    159   
}
  108    160   
impl ::aws_types::request_id::RequestId for CreateQueryLoggingConfigOutput {

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

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

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

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

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

@@ -5,5 +128,180 @@
   25     25   
    "com.amazonaws.route53.synthetic",
   26     26   
    "CreateReusableDelegationSetOutput",
   27     27   
);
   28     28   
static CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.route53.synthetic#CreateReusableDelegationSetOutput$DelegationSet",
   31     31   
        "com.amazonaws.route53.synthetic",
   32     32   
        "CreateReusableDelegationSetOutput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    "delegation_set",
          35  +
    "DelegationSet",
   36     36   
    0,
   37     37   
);
   38     38   
static CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER_LOCATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.route53.synthetic#CreateReusableDelegationSetOutput$Location",
   41     41   
        "com.amazonaws.route53.synthetic",
   42     42   
        "CreateReusableDelegationSetOutput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "location",
          45  +
    "Location",
   46     46   
    1,
   47     47   
)
   48     48   
.with_http_header("Location");
          49  +
static CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          50  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          51  +
    ::aws_smithy_schema::ShapeType::String,
          52  +
    "request_id",
          53  +
    2,
          54  +
)
          55  +
.with_http_header("x-amzn-requestid");
   49     56   
static CREATEREUSABLEDELEGATIONSETOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     57   
    CREATEREUSABLEDELEGATIONSETOUTPUT_SCHEMA_ID,
   51     58   
    ::aws_smithy_schema::ShapeType::Structure,
   52     59   
    &[
   53     60   
        &CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET,
   54     61   
        &CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER_LOCATION,
          62  +
        &CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER__REQUEST_ID,
   55     63   
    ],
   56     64   
);
   57     65   
impl CreateReusableDelegationSetOutput {
   58     66   
    /// The schema for this shape.
   59     67   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATEREUSABLEDELEGATIONSETOUTPUT_SCHEMA;
   60     68   
}
   61     69   
impl ::aws_smithy_schema::serde::SerializableStruct for CreateReusableDelegationSetOutput {
   62     70   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     71   
    fn serialize_members(
   64     72   
        &self,
   65     73   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     74   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     75   
        if let Some(ref val) = self.delegation_set {
   68     76   
            ser.write_struct(&CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER_DELEGATION_SET, val)?;
   69     77   
        }
   70     78   
        {
   71     79   
            let val = &self.location;
   72     80   
            ser.write_string(&CREATEREUSABLEDELEGATIONSETOUTPUT_MEMBER_LOCATION, val)?;
   73     81   
        }
   74     82   
        Ok(())
   75     83   
    }
   76     84   
}
   77     85   
impl CreateReusableDelegationSetOutput {
   78     86   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   79         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   80         -
        deserializer: &mut D,
          87  +
    pub fn deserialize(
          88  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   81     89   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   82     90   
        #[allow(unused_variables, unused_mut)]
   83     91   
        let mut builder = Self::builder();
   84     92   
        #[allow(
   85     93   
            unused_variables,
   86     94   
            unreachable_code,
   87     95   
            clippy::single_match,
   88     96   
            clippy::match_single_binding,
   89     97   
            clippy::diverging_sub_expression
   90     98   
        )]
   91         -
        deserializer.read_struct(&CREATEREUSABLEDELEGATIONSETOUTPUT_SCHEMA, (), |_, member, deser| {
          99  +
        deserializer.read_struct(&CREATEREUSABLEDELEGATIONSETOUTPUT_SCHEMA, &mut |member, deser| {
   92    100   
            match member.member_index() {
   93    101   
                Some(0) => {
   94    102   
                    builder.delegation_set = Some(crate::types::DelegationSet::deserialize(deser)?);
   95    103   
                }
   96    104   
                Some(1) => {
   97    105   
                    builder.location = Some(deser.read_string(member)?);
   98    106   
                }
         107  +
                Some(2) => {
         108  +
                    builder._request_id = Some(deser.read_string(member)?);
         109  +
                }
         110  +
                _ => {}
         111  +
            }
         112  +
            Ok(())
         113  +
        })?;
         114  +
        builder.location = builder.location.or(Some(String::new()));
         115  +
        builder
         116  +
            .build()
         117  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         118  +
    }
         119  +
}
         120  +
impl CreateReusableDelegationSetOutput {
         121  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         122  +
    /// Header-bound members are read directly from headers, avoiding runtime
         123  +
    /// member iteration overhead. Body members are read via the deserializer.
         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  +
        #[allow(unused_variables, unused_mut)]
         131  +
        let mut builder = Self::builder();
         132  +
        if let Some(val) = headers.get("Location") {
         133  +
            builder.location = Some(val.to_string());
         134  +
        }
         135  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         136  +
            builder._request_id = Some(val.to_string());
         137  +
        }
         138  +
        #[allow(
         139  +
            unused_variables,
         140  +
            unreachable_code,
         141  +
            clippy::single_match,
         142  +
            clippy::match_single_binding,
         143  +
            clippy::diverging_sub_expression
         144  +
        )]
         145  +
        deserializer.read_struct(&CREATEREUSABLEDELEGATIONSETOUTPUT_SCHEMA, &mut |member, deser| {
         146  +
            match member.member_index() {
         147  +
                Some(0) => {
         148  +
                    builder.delegation_set = Some(crate::types::DelegationSet::deserialize(deser)?);
         149  +
                }
         150  +
                Some(1) => { /* read from headers above */ }
   99    151   
                _ => {}
  100    152   
            }
  101    153   
            Ok(())
  102    154   
        })?;
  103    155   
        builder
  104    156   
            .build()
  105    157   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  106    158   
    }
  107    159   
}
  108    160   
impl ::aws_types::request_id::RequestId for CreateReusableDelegationSetOutput {

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

@@ -1,1 +40,44 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `CreateTrafficPolicy`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CreateTrafficPolicy;
    6      6   
impl CreateTrafficPolicy {
    7      7   
    /// Creates a new `CreateTrafficPolicy`
    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::create_traffic_policy::CreateTrafficPolicyInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::create_traffic_policy::CreateTrafficPolicyOutput::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::create_traffic_policy::CreateTrafficPolicyInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::create_traffic_policy::CreateTrafficPolicyOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::create_traffic_policy::CreateTrafficPolicyError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::create_traffic_policy::CreateTrafficPolicyError,
  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 CreateTrafficPolicyResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateTrafficPolicyResponseDeserializer {
  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 != 201 || force_error {
  159    164   
            crate::protocol_serde::shape_create_traffic_policy::de_create_traffic_policy_http_error(status, headers, body)
  160    165   
        } else {

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

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