AWS SDK

AWS SDK

rev. 96f5a1b4ad139d2f1ad1e8e40f300e1cd1ff574c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/release_hosts/_release_hosts_output.rs

@@ -8,8 +162,207 @@
   28     28   
    "com.amazonaws.ec2.synthetic",
   29     29   
    "ReleaseHostsOutput",
   30     30   
);
   31     31   
static RELEASEHOSTSOUTPUT_MEMBER_SUCCESSFUL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   32     32   
    ::aws_smithy_schema::ShapeId::from_static(
   33     33   
        "com.amazonaws.ec2.synthetic#ReleaseHostsOutput$Successful",
   34     34   
        "com.amazonaws.ec2.synthetic",
   35     35   
        "ReleaseHostsOutput",
   36     36   
    ),
   37     37   
    ::aws_smithy_schema::ShapeType::List,
   38         -
    "successful",
          38  +
    "Successful",
   39     39   
    0,
   40     40   
)
   41     41   
.with_xml_name("successful");
   42     42   
static RELEASEHOSTSOUTPUT_MEMBER_UNSUCCESSFUL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   43     43   
    ::aws_smithy_schema::ShapeId::from_static(
   44     44   
        "com.amazonaws.ec2.synthetic#ReleaseHostsOutput$Unsuccessful",
   45     45   
        "com.amazonaws.ec2.synthetic",
   46     46   
        "ReleaseHostsOutput",
   47     47   
    ),
   48     48   
    ::aws_smithy_schema::ShapeType::List,
   49         -
    "unsuccessful",
          49  +
    "Unsuccessful",
   50     50   
    1,
   51     51   
)
   52     52   
.with_xml_name("unsuccessful");
          53  +
static RELEASEHOSTSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          54  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          55  +
    ::aws_smithy_schema::ShapeType::String,
          56  +
    "request_id",
          57  +
    2,
          58  +
)
          59  +
.with_http_header("x-amzn-requestid");
   53     60   
static RELEASEHOSTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   54     61   
    RELEASEHOSTSOUTPUT_SCHEMA_ID,
   55     62   
    ::aws_smithy_schema::ShapeType::Structure,
   56         -
    &[&RELEASEHOSTSOUTPUT_MEMBER_SUCCESSFUL, &RELEASEHOSTSOUTPUT_MEMBER_UNSUCCESSFUL],
          63  +
    &[
          64  +
        &RELEASEHOSTSOUTPUT_MEMBER_SUCCESSFUL,
          65  +
        &RELEASEHOSTSOUTPUT_MEMBER_UNSUCCESSFUL,
          66  +
        &RELEASEHOSTSOUTPUT_MEMBER__REQUEST_ID,
          67  +
    ],
   57     68   
);
   58     69   
impl ReleaseHostsOutput {
   59     70   
    /// The schema for this shape.
   60     71   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RELEASEHOSTSOUTPUT_SCHEMA;
   61     72   
}
   62     73   
impl ::aws_smithy_schema::serde::SerializableStruct for ReleaseHostsOutput {
   63     74   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   64     75   
    fn serialize_members(
   65     76   
        &self,
   66     77   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   67     78   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   68     79   
        if let Some(ref val) = self.successful {
   69     80   
            ser.write_list(
   70     81   
                &RELEASEHOSTSOUTPUT_MEMBER_SUCCESSFUL,
   71     82   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   72     83   
                    for item in val {
   73     84   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
   74     85   
                    }
   75     86   
                    Ok(())
   76     87   
                },
   77     88   
            )?;
   78     89   
        }
   79     90   
        if let Some(ref val) = self.unsuccessful {
   80     91   
            ser.write_list(
   81     92   
                &RELEASEHOSTSOUTPUT_MEMBER_UNSUCCESSFUL,
   82     93   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   83     94   
                    for item in val {
   84     95   
                        ser.write_struct(crate::types::UnsuccessfulItem::SCHEMA, item)?;
   85     96   
                    }
   86     97   
                    Ok(())
   87     98   
                },
   88     99   
            )?;
   89    100   
        }
   90    101   
        Ok(())
   91    102   
    }
   92    103   
}
   93    104   
impl ReleaseHostsOutput {
   94    105   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   95         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   96         -
        deserializer: &mut D,
         106  +
    pub fn deserialize(
         107  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   97    108   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   98    109   
        #[allow(unused_variables, unused_mut)]
   99    110   
        let mut builder = Self::builder();
  100    111   
        #[allow(
  101    112   
            unused_variables,
  102    113   
            unreachable_code,
  103    114   
            clippy::single_match,
  104    115   
            clippy::match_single_binding,
  105    116   
            clippy::diverging_sub_expression
  106    117   
        )]
  107         -
        deserializer.read_struct(&RELEASEHOSTSOUTPUT_SCHEMA, (), |_, member, deser| {
         118  +
        deserializer.read_struct(&RELEASEHOSTSOUTPUT_SCHEMA, &mut |member, deser| {
  108    119   
            match member.member_index() {
  109    120   
                Some(0) => {
  110         -
                    builder.successful = Some({
  111         -
                        let container = if let Some(cap) = deser.container_size() {
  112         -
                            Vec::with_capacity(cap)
  113         -
                        } else {
  114         -
                            Vec::new()
  115         -
                        };
  116         -
                        deser.read_list(member, container, |mut list, deser| {
  117         -
                            list.push(deser.read_string(member)?);
  118         -
                            Ok(list)
  119         -
                        })?
         121  +
                    builder.successful = Some(deser.read_string_list(member)?);
         122  +
                }
         123  +
                Some(1) => {
         124  +
                    builder.unsuccessful = Some({
         125  +
                        let mut container = Vec::new();
         126  +
                        deser.read_list(member, &mut |deser| {
         127  +
                            container.push(crate::types::UnsuccessfulItem::deserialize(deser)?);
         128  +
                            Ok(())
         129  +
                        })?;
         130  +
                        container
  120    131   
                    });
  121    132   
                }
         133  +
                Some(2) => {
         134  +
                    builder._request_id = Some(deser.read_string(member)?);
         135  +
                }
         136  +
                _ => {}
         137  +
            }
         138  +
            Ok(())
         139  +
        })?;
         140  +
        Ok(builder.build())
         141  +
    }
         142  +
}
         143  +
impl ReleaseHostsOutput {
         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("x-amzn-requestid") {
         156  +
            builder._request_id = Some(val.to_string());
         157  +
        }
         158  +
        #[allow(
         159  +
            unused_variables,
         160  +
            unreachable_code,
         161  +
            clippy::single_match,
         162  +
            clippy::match_single_binding,
         163  +
            clippy::diverging_sub_expression
         164  +
        )]
         165  +
        deserializer.read_struct(&RELEASEHOSTSOUTPUT_SCHEMA, &mut |member, deser| {
         166  +
            match member.member_index() {
         167  +
                Some(0) => {
         168  +
                    builder.successful = Some(deser.read_string_list(member)?);
         169  +
                }
  122    170   
                Some(1) => {
  123    171   
                    builder.unsuccessful = Some({
  124         -
                        let container = if let Some(cap) = deser.container_size() {
  125         -
                            Vec::with_capacity(cap)
  126         -
                        } else {
  127         -
                            Vec::new()
  128         -
                        };
  129         -
                        deser.read_list(member, container, |mut list, deser| {
  130         -
                            list.push(crate::types::UnsuccessfulItem::deserialize(deser)?);
  131         -
                            Ok(list)
  132         -
                        })?
         172  +
                        let mut container = Vec::new();
         173  +
                        deser.read_list(member, &mut |deser| {
         174  +
                            container.push(crate::types::UnsuccessfulItem::deserialize(deser)?);
         175  +
                            Ok(())
         176  +
                        })?;
         177  +
                        container
  133    178   
                    });
  134    179   
                }
  135    180   
                _ => {}
  136    181   
            }
  137    182   
            Ok(())
  138    183   
        })?;
  139    184   
        Ok(builder.build())
  140    185   
    }
  141    186   
}
  142    187   
impl ::aws_types::request_id::RequestId for ReleaseHostsOutput {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/release_ipam_pool_allocation.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 `ReleaseIpamPoolAllocation`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ReleaseIpamPoolAllocation;
    6      6   
impl ReleaseIpamPoolAllocation {
    7      7   
    /// Creates a new `ReleaseIpamPoolAllocation`
    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::release_ipam_pool_allocation::ReleaseIpamPoolAllocationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationOutput::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::release_ipam_pool_allocation::ReleaseIpamPoolAllocationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationError,
  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 ReleaseIpamPoolAllocationResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ReleaseIpamPoolAllocationResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_release_ipam_pool_allocation::de_release_ipam_pool_allocation_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/release_ipam_pool_allocation/_release_ipam_pool_allocation_input.rs

@@ -15,15 +179,193 @@
   35     35   
    "com.amazonaws.ec2.synthetic",
   36     36   
    "ReleaseIpamPoolAllocationInput",
   37     37   
);
   38     38   
static RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.ec2.synthetic#ReleaseIpamPoolAllocationInput$DryRun",
   41     41   
        "com.amazonaws.ec2.synthetic",
   42     42   
        "ReleaseIpamPoolAllocationInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::Boolean,
   45         -
    "dry_run",
          45  +
    "DryRun",
   46     46   
    0,
   47     47   
);
   48     48   
static RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_IPAM_POOL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   49     49   
    ::aws_smithy_schema::ShapeId::from_static(
   50     50   
        "com.amazonaws.ec2.synthetic#ReleaseIpamPoolAllocationInput$IpamPoolId",
   51     51   
        "com.amazonaws.ec2.synthetic",
   52     52   
        "ReleaseIpamPoolAllocationInput",
   53     53   
    ),
   54     54   
    ::aws_smithy_schema::ShapeType::String,
   55         -
    "ipam_pool_id",
          55  +
    "IpamPoolId",
   56     56   
    1,
   57     57   
);
   58     58   
static RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_CIDR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   59     59   
    ::aws_smithy_schema::ShapeId::from_static(
   60     60   
        "com.amazonaws.ec2.synthetic#ReleaseIpamPoolAllocationInput$Cidr",
   61     61   
        "com.amazonaws.ec2.synthetic",
   62     62   
        "ReleaseIpamPoolAllocationInput",
   63     63   
    ),
   64     64   
    ::aws_smithy_schema::ShapeType::String,
   65         -
    "cidr",
          65  +
    "Cidr",
   66     66   
    2,
   67     67   
);
   68     68   
static RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_IPAM_POOL_ALLOCATION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   69     69   
    ::aws_smithy_schema::ShapeId::from_static(
   70     70   
        "com.amazonaws.ec2.synthetic#ReleaseIpamPoolAllocationInput$IpamPoolAllocationId",
   71     71   
        "com.amazonaws.ec2.synthetic",
   72     72   
        "ReleaseIpamPoolAllocationInput",
   73     73   
    ),
   74     74   
    ::aws_smithy_schema::ShapeType::String,
   75         -
    "ipam_pool_allocation_id",
          75  +
    "IpamPoolAllocationId",
   76     76   
    3,
   77     77   
);
   78     78   
static RELEASEIPAMPOOLALLOCATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   79     79   
    RELEASEIPAMPOOLALLOCATIONINPUT_SCHEMA_ID,
   80     80   
    ::aws_smithy_schema::ShapeType::Structure,
   81     81   
    &[
   82     82   
        &RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_DRY_RUN,
   83     83   
        &RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_IPAM_POOL_ID,
   84     84   
        &RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_CIDR,
   85     85   
        &RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_IPAM_POOL_ALLOCATION_ID,
   86     86   
    ],
   87     87   
);
   88     88   
impl ReleaseIpamPoolAllocationInput {
   89     89   
    /// The schema for this shape.
   90     90   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RELEASEIPAMPOOLALLOCATIONINPUT_SCHEMA;
   91     91   
}
   92     92   
impl ::aws_smithy_schema::serde::SerializableStruct for ReleaseIpamPoolAllocationInput {
   93     93   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   94     94   
    fn serialize_members(
   95     95   
        &self,
   96     96   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   97     97   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   98     98   
        if let Some(ref val) = self.dry_run {
   99     99   
            ser.write_boolean(&RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_DRY_RUN, *val)?;
  100    100   
        }
  101    101   
        if let Some(ref val) = self.ipam_pool_id {
  102    102   
            ser.write_string(&RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_IPAM_POOL_ID, val)?;
  103    103   
        }
  104    104   
        if let Some(ref val) = self.cidr {
  105    105   
            ser.write_string(&RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_CIDR, val)?;
  106    106   
        }
  107    107   
        if let Some(ref val) = self.ipam_pool_allocation_id {
  108    108   
            ser.write_string(&RELEASEIPAMPOOLALLOCATIONINPUT_MEMBER_IPAM_POOL_ALLOCATION_ID, val)?;
  109    109   
        }
  110    110   
        Ok(())
  111    111   
    }
  112    112   
}
  113    113   
impl ReleaseIpamPoolAllocationInput {
  114    114   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  115         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  116         -
        deserializer: &mut D,
         115  +
    pub fn deserialize(
         116  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  117    117   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  118    118   
        #[allow(unused_variables, unused_mut)]
  119    119   
        let mut builder = Self::builder();
  120    120   
        #[allow(
  121    121   
            unused_variables,
  122    122   
            unreachable_code,
  123    123   
            clippy::single_match,
  124    124   
            clippy::match_single_binding,
  125    125   
            clippy::diverging_sub_expression
  126    126   
        )]
  127         -
        deserializer.read_struct(&RELEASEIPAMPOOLALLOCATIONINPUT_SCHEMA, (), |_, member, deser| {
         127  +
        deserializer.read_struct(&RELEASEIPAMPOOLALLOCATIONINPUT_SCHEMA, &mut |member, deser| {
  128    128   
            match member.member_index() {
  129    129   
                Some(0) => {
  130    130   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  131    131   
                }
  132    132   
                Some(1) => {
  133    133   
                    builder.ipam_pool_id = Some(deser.read_string(member)?);
  134    134   
                }
  135    135   
                Some(2) => {
  136    136   
                    builder.cidr = Some(deser.read_string(member)?);
  137    137   
                }
  138    138   
                Some(3) => {
  139    139   
                    builder.ipam_pool_allocation_id = Some(deser.read_string(member)?);
  140    140   
                }
  141    141   
                _ => {}
  142    142   
            }
  143    143   
            Ok(())
  144    144   
        })?;
         145  +
        builder.ipam_pool_id = builder.ipam_pool_id.or(Some(String::new()));
         146  +
        builder.cidr = builder.cidr.or(Some(String::new()));
         147  +
        builder.ipam_pool_allocation_id = builder.ipam_pool_allocation_id.or(Some(String::new()));
  145    148   
        builder
  146    149   
            .build()
  147    150   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  148    151   
    }
  149    152   
}
         153  +
impl ReleaseIpamPoolAllocationInput {
         154  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         155  +
    pub fn deserialize_with_response(
         156  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         157  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         158  +
        _status: u16,
         159  +
        _body: &[u8],
         160  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         161  +
        Self::deserialize(deserializer)
         162  +
    }
         163  +
}
  150    164   
impl ReleaseIpamPoolAllocationInput {
  151    165   
    /// Creates a new builder-style object to manufacture [`ReleaseIpamPoolAllocationInput`](crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationInput).
  152    166   
    pub fn builder() -> crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationInputBuilder {
  153    167   
        crate::operation::release_ipam_pool_allocation::builders::ReleaseIpamPoolAllocationInputBuilder::default()
  154    168   
    }
  155    169   
}
  156    170   
  157    171   
/// A builder for [`ReleaseIpamPoolAllocationInput`](crate::operation::release_ipam_pool_allocation::ReleaseIpamPoolAllocationInput).
  158    172   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  159    173   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/release_ipam_pool_allocation/_release_ipam_pool_allocation_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_iam_instance_profile_association.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 `ReplaceIamInstanceProfileAssociation`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ReplaceIamInstanceProfileAssociation;
    6      6   
impl ReplaceIamInstanceProfileAssociation {
    7      7   
    /// Creates a new `ReplaceIamInstanceProfileAssociation`
    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::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationOutput::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::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::replace_iam_instance_profile_association::ReplaceIamInstanceProfileAssociationError,
  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 ReplaceIamInstanceProfileAssociationResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ReplaceIamInstanceProfileAssociationResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_replace_iam_instance_profile_association::de_replace_iam_instance_profile_association_http_error(
  166    173   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_iam_instance_profile_association/_replace_iam_instance_profile_association_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_iam_instance_profile_association/_replace_iam_instance_profile_association_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_image_criteria_in_allowed_images_settings.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 `ReplaceImageCriteriaInAllowedImagesSettings`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ReplaceImageCriteriaInAllowedImagesSettings;
    6      6   
impl ReplaceImageCriteriaInAllowedImagesSettings {
    7      7   
    /// Creates a new `ReplaceImageCriteriaInAllowedImagesSettings`
    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::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsOutput::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::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -126,132 +188,195 @@
  146    152   
                    crate::operation::replace_image_criteria_in_allowed_images_settings::ReplaceImageCriteriaInAllowedImagesSettingsError,
  147    153   
                >::new());
  148    154   
  149    155   
        ::std::borrow::Cow::Owned(rcb)
  150    156   
    }
  151    157   
}
  152    158   
  153    159   
#[derive(Debug)]
  154    160   
struct ReplaceImageCriteriaInAllowedImagesSettingsResponseDeserializer;
  155    161   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ReplaceImageCriteriaInAllowedImagesSettingsResponseDeserializer {
  156         -
    fn deserialize_nonstreaming(
         162  +
    fn deserialize_nonstreaming_with_config(
  157    163   
        &self,
  158    164   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         165  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  159    166   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  160    167   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  161    168   
        let headers = response.headers();
  162    169   
        let body = response.body().bytes().expect("body loaded");
  163    170   
        #[allow(unused_mut)]
  164    171   
        let mut force_error = false;
  165    172   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  166    173   
        let parse_result = if !success && status != 200 || force_error {
  167    174   
            crate::protocol_serde::shape_replace_image_criteria_in_allowed_images_settings::de_replace_image_criteria_in_allowed_images_settings_http_error(status, headers, body)
  168    175   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_image_criteria_in_allowed_images_settings/_replace_image_criteria_in_allowed_images_settings_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_image_criteria_in_allowed_images_settings/_replace_image_criteria_in_allowed_images_settings_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_network_acl_association.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 `ReplaceNetworkAclAssociation`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ReplaceNetworkAclAssociation;
    6      6   
impl ReplaceNetworkAclAssociation {
    7      7   
    /// Creates a new `ReplaceNetworkAclAssociation`
    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::replace_network_acl_association::ReplaceNetworkAclAssociationInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationOutput::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::replace_network_acl_association::ReplaceNetworkAclAssociationInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::replace_network_acl_association::ReplaceNetworkAclAssociationError,
  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 ReplaceNetworkAclAssociationResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ReplaceNetworkAclAssociationResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         154  +
    fn deserialize_nonstreaming_with_config(
  149    155   
        &self,
  150    156   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         157  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    158   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    159   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    160   
        let headers = response.headers();
  154    161   
        let body = response.body().bytes().expect("body loaded");
  155    162   
        #[allow(unused_mut)]
  156    163   
        let mut force_error = false;
  157    164   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    165   
        let parse_result = if !success && status != 200 || force_error {
  159    166   
            crate::protocol_serde::shape_replace_network_acl_association::de_replace_network_acl_association_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_network_acl_association/_replace_network_acl_association_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_network_acl_association/_replace_network_acl_association_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_network_acl_entry.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 `ReplaceNetworkAclEntry`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ReplaceNetworkAclEntry;
    6      6   
impl ReplaceNetworkAclEntry {
    7      7   
    /// Creates a new `ReplaceNetworkAclEntry`
    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::replace_network_acl_entry::ReplaceNetworkAclEntryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryOutput::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::replace_network_acl_entry::ReplaceNetworkAclEntryInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryError,
  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 ReplaceNetworkAclEntryResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ReplaceNetworkAclEntryResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    158   
        let headers = response.headers();
  154    159   
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    163   
        let parse_result = if !success && status != 200 || force_error {
  159    164   
            crate::protocol_serde::shape_replace_network_acl_entry::de_replace_network_acl_entry_http_error(status, headers, body)
  160    165   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_network_acl_entry/_replace_network_acl_entry_input.rs

@@ -53,53 +212,212 @@
   73     73   
    "com.amazonaws.ec2.synthetic",
   74     74   
    "ReplaceNetworkAclEntryInput",
   75     75   
);
   76     76   
static REPLACENETWORKACLENTRYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   77     77   
    ::aws_smithy_schema::ShapeId::from_static(
   78     78   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$DryRun",
   79     79   
        "com.amazonaws.ec2.synthetic",
   80     80   
        "ReplaceNetworkAclEntryInput",
   81     81   
    ),
   82     82   
    ::aws_smithy_schema::ShapeType::Boolean,
   83         -
    "dry_run",
          83  +
    "DryRun",
   84     84   
    0,
   85     85   
)
   86     86   
.with_xml_name("dryRun");
   87     87   
static REPLACENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$NetworkAclId",
   90     90   
        "com.amazonaws.ec2.synthetic",
   91     91   
        "ReplaceNetworkAclEntryInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::String,
   94         -
    "network_acl_id",
          94  +
    "NetworkAclId",
   95     95   
    1,
   96     96   
)
   97     97   
.with_xml_name("networkAclId");
   98     98   
static REPLACENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$RuleNumber",
  101    101   
        "com.amazonaws.ec2.synthetic",
  102    102   
        "ReplaceNetworkAclEntryInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::Integer,
  105         -
    "rule_number",
         105  +
    "RuleNumber",
  106    106   
    2,
  107    107   
)
  108    108   
.with_xml_name("ruleNumber");
  109    109   
static REPLACENETWORKACLENTRYINPUT_MEMBER_PROTOCOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  110    110   
    ::aws_smithy_schema::ShapeId::from_static(
  111    111   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$Protocol",
  112    112   
        "com.amazonaws.ec2.synthetic",
  113    113   
        "ReplaceNetworkAclEntryInput",
  114    114   
    ),
  115    115   
    ::aws_smithy_schema::ShapeType::String,
  116         -
    "protocol",
         116  +
    "Protocol",
  117    117   
    3,
  118    118   
)
  119    119   
.with_xml_name("protocol");
  120    120   
static REPLACENETWORKACLENTRYINPUT_MEMBER_RULE_ACTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  121    121   
    ::aws_smithy_schema::ShapeId::from_static(
  122    122   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$RuleAction",
  123    123   
        "com.amazonaws.ec2.synthetic",
  124    124   
        "ReplaceNetworkAclEntryInput",
  125    125   
    ),
  126    126   
    ::aws_smithy_schema::ShapeType::String,
  127         -
    "rule_action",
         127  +
    "RuleAction",
  128    128   
    4,
  129    129   
)
  130    130   
.with_xml_name("ruleAction");
  131    131   
static REPLACENETWORKACLENTRYINPUT_MEMBER_EGRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  132    132   
    ::aws_smithy_schema::ShapeId::from_static(
  133    133   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$Egress",
  134    134   
        "com.amazonaws.ec2.synthetic",
  135    135   
        "ReplaceNetworkAclEntryInput",
  136    136   
    ),
  137    137   
    ::aws_smithy_schema::ShapeType::Boolean,
  138         -
    "egress",
         138  +
    "Egress",
  139    139   
    5,
  140    140   
)
  141    141   
.with_xml_name("egress");
  142    142   
static REPLACENETWORKACLENTRYINPUT_MEMBER_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  143    143   
    ::aws_smithy_schema::ShapeId::from_static(
  144    144   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$CidrBlock",
  145    145   
        "com.amazonaws.ec2.synthetic",
  146    146   
        "ReplaceNetworkAclEntryInput",
  147    147   
    ),
  148    148   
    ::aws_smithy_schema::ShapeType::String,
  149         -
    "cidr_block",
         149  +
    "CidrBlock",
  150    150   
    6,
  151    151   
)
  152    152   
.with_xml_name("cidrBlock");
  153    153   
static REPLACENETWORKACLENTRYINPUT_MEMBER_IPV6_CIDR_BLOCK: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  154    154   
    ::aws_smithy_schema::ShapeId::from_static(
  155    155   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$Ipv6CidrBlock",
  156    156   
        "com.amazonaws.ec2.synthetic",
  157    157   
        "ReplaceNetworkAclEntryInput",
  158    158   
    ),
  159    159   
    ::aws_smithy_schema::ShapeType::String,
  160         -
    "ipv6_cidr_block",
         160  +
    "Ipv6CidrBlock",
  161    161   
    7,
  162    162   
)
  163    163   
.with_xml_name("ipv6CidrBlock");
  164    164   
static REPLACENETWORKACLENTRYINPUT_MEMBER_ICMP_TYPE_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  165    165   
    ::aws_smithy_schema::ShapeId::from_static(
  166    166   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$IcmpTypeCode",
  167    167   
        "com.amazonaws.ec2.synthetic",
  168    168   
        "ReplaceNetworkAclEntryInput",
  169    169   
    ),
  170    170   
    ::aws_smithy_schema::ShapeType::Structure,
  171         -
    "icmp_type_code",
         171  +
    "IcmpTypeCode",
  172    172   
    8,
  173    173   
)
  174    174   
.with_xml_name("Icmp");
  175    175   
static REPLACENETWORKACLENTRYINPUT_MEMBER_PORT_RANGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  176    176   
    ::aws_smithy_schema::ShapeId::from_static(
  177    177   
        "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryInput$PortRange",
  178    178   
        "com.amazonaws.ec2.synthetic",
  179    179   
        "ReplaceNetworkAclEntryInput",
  180    180   
    ),
  181    181   
    ::aws_smithy_schema::ShapeType::Structure,
  182         -
    "port_range",
         182  +
    "PortRange",
  183    183   
    9,
  184    184   
)
  185    185   
.with_xml_name("portRange");
  186    186   
static REPLACENETWORKACLENTRYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  187    187   
    REPLACENETWORKACLENTRYINPUT_SCHEMA_ID,
  188    188   
    ::aws_smithy_schema::ShapeType::Structure,
  189    189   
    &[
  190    190   
        &REPLACENETWORKACLENTRYINPUT_MEMBER_DRY_RUN,
  191    191   
        &REPLACENETWORKACLENTRYINPUT_MEMBER_NETWORK_ACL_ID,
  192    192   
        &REPLACENETWORKACLENTRYINPUT_MEMBER_RULE_NUMBER,
@@ -217,217 +329,344 @@
  237    237   
            ser.write_struct(&REPLACENETWORKACLENTRYINPUT_MEMBER_ICMP_TYPE_CODE, val)?;
  238    238   
        }
  239    239   
        if let Some(ref val) = self.port_range {
  240    240   
            ser.write_struct(&REPLACENETWORKACLENTRYINPUT_MEMBER_PORT_RANGE, val)?;
  241    241   
        }
  242    242   
        Ok(())
  243    243   
    }
  244    244   
}
  245    245   
impl ReplaceNetworkAclEntryInput {
  246    246   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  247         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  248         -
        deserializer: &mut D,
         247  +
    pub fn deserialize(
         248  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  249    249   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  250    250   
        #[allow(unused_variables, unused_mut)]
  251    251   
        let mut builder = Self::builder();
  252    252   
        #[allow(
  253    253   
            unused_variables,
  254    254   
            unreachable_code,
  255    255   
            clippy::single_match,
  256    256   
            clippy::match_single_binding,
  257    257   
            clippy::diverging_sub_expression
  258    258   
        )]
  259         -
        deserializer.read_struct(&REPLACENETWORKACLENTRYINPUT_SCHEMA, (), |_, member, deser| {
         259  +
        deserializer.read_struct(&REPLACENETWORKACLENTRYINPUT_SCHEMA, &mut |member, deser| {
  260    260   
            match member.member_index() {
  261    261   
                Some(0) => {
  262    262   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  263    263   
                }
  264    264   
                Some(1) => {
  265    265   
                    builder.network_acl_id = Some(deser.read_string(member)?);
  266    266   
                }
  267    267   
                Some(2) => {
  268    268   
                    builder.rule_number = Some(deser.read_integer(member)?);
  269    269   
                }
  270    270   
                Some(3) => {
  271    271   
                    builder.protocol = Some(deser.read_string(member)?);
  272    272   
                }
  273    273   
                Some(4) => {
  274    274   
                    builder.rule_action = Some(crate::types::RuleAction::from(deser.read_string(member)?.as_str()));
  275    275   
                }
  276    276   
                Some(5) => {
  277    277   
                    builder.egress = Some(deser.read_boolean(member)?);
  278    278   
                }
  279    279   
                Some(6) => {
  280    280   
                    builder.cidr_block = Some(deser.read_string(member)?);
  281    281   
                }
  282    282   
                Some(7) => {
  283    283   
                    builder.ipv6_cidr_block = Some(deser.read_string(member)?);
  284    284   
                }
  285    285   
                Some(8) => {
  286    286   
                    builder.icmp_type_code = Some(crate::types::IcmpTypeCode::deserialize(deser)?);
  287    287   
                }
  288    288   
                Some(9) => {
  289    289   
                    builder.port_range = Some(crate::types::PortRange::deserialize(deser)?);
  290    290   
                }
  291    291   
                _ => {}
  292    292   
            }
  293    293   
            Ok(())
  294    294   
        })?;
         295  +
        builder.network_acl_id = builder.network_acl_id.or(Some(String::new()));
         296  +
        builder.rule_number = builder.rule_number.or(Some(0i32));
         297  +
        builder.protocol = builder.protocol.or(Some(String::new()));
         298  +
        builder.egress = builder.egress.or(Some(false));
  295    299   
        builder
  296    300   
            .build()
  297    301   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  298    302   
    }
  299    303   
}
         304  +
impl ReplaceNetworkAclEntryInput {
         305  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         306  +
    pub fn deserialize_with_response(
         307  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         308  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         309  +
        _status: u16,
         310  +
        _body: &[u8],
         311  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         312  +
        Self::deserialize(deserializer)
         313  +
    }
         314  +
}
  300    315   
impl ReplaceNetworkAclEntryInput {
  301    316   
    /// Creates a new builder-style object to manufacture [`ReplaceNetworkAclEntryInput`](crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryInput).
  302    317   
    pub fn builder() -> crate::operation::replace_network_acl_entry::builders::ReplaceNetworkAclEntryInputBuilder {
  303    318   
        crate::operation::replace_network_acl_entry::builders::ReplaceNetworkAclEntryInputBuilder::default()
  304    319   
    }
  305    320   
}
  306    321   
  307    322   
/// A builder for [`ReplaceNetworkAclEntryInput`](crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryInput).
  308    323   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  309    324   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/replace_network_acl_entry/_replace_network_acl_entry_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct ReplaceNetworkAclEntryOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static REPLACENETWORKACLENTRYOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.ec2.synthetic#ReplaceNetworkAclEntryOutput",
   10     10   
    "com.amazonaws.ec2.synthetic",
   11     11   
    "ReplaceNetworkAclEntryOutput",
   12     12   
);
   13         -
static REPLACENETWORKACLENTRYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(REPLACENETWORKACLENTRYOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static REPLACENETWORKACLENTRYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static REPLACENETWORKACLENTRYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    REPLACENETWORKACLENTRYOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&REPLACENETWORKACLENTRYOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl ReplaceNetworkAclEntryOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &REPLACENETWORKACLENTRYOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for ReplaceNetworkAclEntryOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl ReplaceNetworkAclEntryOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&REPLACENETWORKACLENTRYOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&REPLACENETWORKACLENTRYOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl ReplaceNetworkAclEntryOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for ReplaceNetworkAclEntryOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl ReplaceNetworkAclEntryOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`ReplaceNetworkAclEntryOutput`](crate::operation::replace_network_acl_entry::ReplaceNetworkAclEntryOutput).
   58     89   
    pub fn builder() -> crate::operation::replace_network_acl_entry::builders::ReplaceNetworkAclEntryOutputBuilder {
   59     90   
        crate::operation::replace_network_acl_entry::builders::ReplaceNetworkAclEntryOutputBuilder::default()
   60     91   
    }