AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_fast_snapshot_restores.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 `DisableFastSnapshotRestores`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DisableFastSnapshotRestores;
    6      6   
impl DisableFastSnapshotRestores {
    7      7   
    /// Creates a new `DisableFastSnapshotRestores`
    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::disable_fast_snapshot_restores::DisableFastSnapshotRestoresInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresOutput::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::disable_fast_snapshot_restores::DisableFastSnapshotRestoresInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::disable_fast_snapshot_restores::DisableFastSnapshotRestoresError,
  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 DisableFastSnapshotRestoresResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisableFastSnapshotRestoresResponseDeserializer {
  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_disable_fast_snapshot_restores::de_disable_fast_snapshot_restores_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_fast_snapshot_restores/_disable_fast_snapshot_restores_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_fast_snapshot_restores/_disable_fast_snapshot_restores_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image.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 `DisableImage`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DisableImage;
    6      6   
impl DisableImage {
    7      7   
    /// Creates a new `DisableImage`
    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::disable_image::DisableImageInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::disable_image::DisableImageOutput::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::disable_image::DisableImageInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::disable_image::DisableImageOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::disable_image::DisableImageError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -115,119 +177,182 @@
  135    139   
                crate::operation::disable_image::DisableImageError,
  136    140   
            >::new());
  137    141   
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct DisableImageResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisableImageResponseDeserializer {
  145         -
    fn deserialize_nonstreaming(
         149  +
    fn deserialize_nonstreaming_with_config(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150    155   
        let headers = response.headers();
  151    156   
        let body = response.body().bytes().expect("body loaded");
  152    157   
        #[allow(unused_mut)]
  153    158   
        let mut force_error = false;
  154    159   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155    160   
        let parse_result = if !success && status != 200 || force_error {
  156    161   
            crate::protocol_serde::shape_disable_image::de_disable_image_http_error(status, headers, body)
  157    162   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image/_disable_image_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image/_disable_image_output.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image_block_public_access.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 `DisableImageBlockPublicAccess`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DisableImageBlockPublicAccess;
    6      6   
impl DisableImageBlockPublicAccess {
    7      7   
    /// Creates a new `DisableImageBlockPublicAccess`
    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::disable_image_block_public_access::DisableImageBlockPublicAccessInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessOutput::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::disable_image_block_public_access::DisableImageBlockPublicAccessInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::disable_image_block_public_access::DisableImageBlockPublicAccessError,
  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 DisableImageBlockPublicAccessResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisableImageBlockPublicAccessResponseDeserializer {
  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_disable_image_block_public_access::de_disable_image_block_public_access_http_error(status, headers, body)
  160    167   
        } else {

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image_block_public_access/_disable_image_block_public_access_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image_block_public_access/_disable_image_block_public_access_output.rs

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image_deprecation/_disable_image_deprecation_input.rs

@@ -3,3 +133,145 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DisableImageDeprecationInput",
   25     25   
);
   26     26   
static DISABLEIMAGEDEPRECATIONINPUT_MEMBER_IMAGE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#DisableImageDeprecationInput$ImageId",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DisableImageDeprecationInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::String,
   33         -
    "image_id",
          33  +
    "ImageId",
   34     34   
    0,
   35     35   
);
   36     36   
static DISABLEIMAGEDEPRECATIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#DisableImageDeprecationInput$DryRun",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "DisableImageDeprecationInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::Boolean,
   43         -
    "dry_run",
          43  +
    "DryRun",
   44     44   
    1,
   45     45   
);
   46     46   
static DISABLEIMAGEDEPRECATIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    DISABLEIMAGEDEPRECATIONINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &DISABLEIMAGEDEPRECATIONINPUT_MEMBER_IMAGE_ID,
   51     51   
        &DISABLEIMAGEDEPRECATIONINPUT_MEMBER_DRY_RUN,
   52     52   
    ],
   53     53   
);
   54     54   
impl DisableImageDeprecationInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DISABLEIMAGEDEPRECATIONINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for DisableImageDeprecationInput {
   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.image_id {
   65     65   
            ser.write_string(&DISABLEIMAGEDEPRECATIONINPUT_MEMBER_IMAGE_ID, val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.dry_run {
   68     68   
            ser.write_boolean(&DISABLEIMAGEDEPRECATIONINPUT_MEMBER_DRY_RUN, *val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl DisableImageDeprecationInput {
   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(&DISABLEIMAGEDEPRECATIONINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&DISABLEIMAGEDEPRECATIONINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.image_id = Some(deser.read_string(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.image_id = builder.image_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 DisableImageDeprecationInput {
         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 DisableImageDeprecationInput {
  105    117   
    /// Creates a new builder-style object to manufacture [`DisableImageDeprecationInput`](crate::operation::disable_image_deprecation::DisableImageDeprecationInput).
  106    118   
    pub fn builder() -> crate::operation::disable_image_deprecation::builders::DisableImageDeprecationInputBuilder {
  107    119   
        crate::operation::disable_image_deprecation::builders::DisableImageDeprecationInputBuilder::default()
  108    120   
    }
  109    121   
}
  110    122   
  111    123   
/// A builder for [`DisableImageDeprecationInput`](crate::operation::disable_image_deprecation::DisableImageDeprecationInput).
  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/disable_image_deprecation/_disable_image_deprecation_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "DisableImageDeprecationOutput",
   20     20   
);
   21     21   
static DISABLEIMAGEDEPRECATIONOUTPUT_MEMBER_RETURN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#DisableImageDeprecationOutput$Return",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "DisableImageDeprecationOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Boolean,
   28         -
    "r##return",
          28  +
    "Return",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("return");
          32  +
static DISABLEIMAGEDEPRECATIONOUTPUT_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 DISABLEIMAGEDEPRECATIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    DISABLEIMAGEDEPRECATIONOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&DISABLEIMAGEDEPRECATIONOUTPUT_MEMBER_RETURN],
          42  +
    &[
          43  +
        &DISABLEIMAGEDEPRECATIONOUTPUT_MEMBER_RETURN,
          44  +
        &DISABLEIMAGEDEPRECATIONOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl DisableImageDeprecationOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DISABLEIMAGEDEPRECATIONOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for DisableImageDeprecationOutput {
   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.r#return {
   48     58   
            ser.write_boolean(&DISABLEIMAGEDEPRECATIONOUTPUT_MEMBER_RETURN, *val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl DisableImageDeprecationOutput {
   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(&DISABLEIMAGEDEPRECATIONOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&DISABLEIMAGEDEPRECATIONOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.r#return = 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 DisableImageDeprecationOutput {
          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(&DISABLEIMAGEDEPRECATIONOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.r#return = 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/disable_image_deregistration_protection.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 `DisableImageDeregistrationProtection`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DisableImageDeregistrationProtection;
    6      6   
impl DisableImageDeregistrationProtection {
    7      7   
    /// Creates a new `DisableImageDeregistrationProtection`
    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::disable_image_deregistration_protection::DisableImageDeregistrationProtectionInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionOutput::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::disable_image_deregistration_protection::DisableImageDeregistrationProtectionInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionError,
  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 DisableImageDeregistrationProtectionResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisableImageDeregistrationProtectionResponseDeserializer {
  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_disable_image_deregistration_protection::de_disable_image_deregistration_protection_http_error(
  166    173   
                status, headers, body,

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/disable_image_deregistration_protection/_disable_image_deregistration_protection_input.rs

@@ -3,3 +133,145 @@
   23     23   
    "com.amazonaws.ec2.synthetic",
   24     24   
    "DisableImageDeregistrationProtectionInput",
   25     25   
);
   26     26   
static DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_MEMBER_IMAGE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   27     27   
    ::aws_smithy_schema::ShapeId::from_static(
   28     28   
        "com.amazonaws.ec2.synthetic#DisableImageDeregistrationProtectionInput$ImageId",
   29     29   
        "com.amazonaws.ec2.synthetic",
   30     30   
        "DisableImageDeregistrationProtectionInput",
   31     31   
    ),
   32     32   
    ::aws_smithy_schema::ShapeType::String,
   33         -
    "image_id",
          33  +
    "ImageId",
   34     34   
    0,
   35     35   
);
   36     36   
static DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   37     37   
    ::aws_smithy_schema::ShapeId::from_static(
   38     38   
        "com.amazonaws.ec2.synthetic#DisableImageDeregistrationProtectionInput$DryRun",
   39     39   
        "com.amazonaws.ec2.synthetic",
   40     40   
        "DisableImageDeregistrationProtectionInput",
   41     41   
    ),
   42     42   
    ::aws_smithy_schema::ShapeType::Boolean,
   43         -
    "dry_run",
          43  +
    "DryRun",
   44     44   
    1,
   45     45   
);
   46     46   
static DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   47     47   
    DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_SCHEMA_ID,
   48     48   
    ::aws_smithy_schema::ShapeType::Structure,
   49     49   
    &[
   50     50   
        &DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_MEMBER_IMAGE_ID,
   51     51   
        &DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_MEMBER_DRY_RUN,
   52     52   
    ],
   53     53   
);
   54     54   
impl DisableImageDeregistrationProtectionInput {
   55     55   
    /// The schema for this shape.
   56     56   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_SCHEMA;
   57     57   
}
   58     58   
impl ::aws_smithy_schema::serde::SerializableStruct for DisableImageDeregistrationProtectionInput {
   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.image_id {
   65     65   
            ser.write_string(&DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_MEMBER_IMAGE_ID, val)?;
   66     66   
        }
   67     67   
        if let Some(ref val) = self.dry_run {
   68     68   
            ser.write_boolean(&DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_MEMBER_DRY_RUN, *val)?;
   69     69   
        }
   70     70   
        Ok(())
   71     71   
    }
   72     72   
}
   73     73   
impl DisableImageDeregistrationProtectionInput {
   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(&DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_SCHEMA, (), |_, member, deser| {
          87  +
        deserializer.read_struct(&DISABLEIMAGEDEREGISTRATIONPROTECTIONINPUT_SCHEMA, &mut |member, deser| {
   88     88   
            match member.member_index() {
   89     89   
                Some(0) => {
   90     90   
                    builder.image_id = Some(deser.read_string(member)?);
   91     91   
                }
   92     92   
                Some(1) => {
   93     93   
                    builder.dry_run = Some(deser.read_boolean(member)?);
   94     94   
                }
   95     95   
                _ => {}
   96     96   
            }
   97     97   
            Ok(())
   98     98   
        })?;
          99  +
        builder.image_id = builder.image_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 DisableImageDeregistrationProtectionInput {
         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 DisableImageDeregistrationProtectionInput {
  105    117   
    /// Creates a new builder-style object to manufacture [`DisableImageDeregistrationProtectionInput`](crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionInput).
  106    118   
    pub fn builder() -> crate::operation::disable_image_deregistration_protection::builders::DisableImageDeregistrationProtectionInputBuilder {
  107    119   
        crate::operation::disable_image_deregistration_protection::builders::DisableImageDeregistrationProtectionInputBuilder::default()
  108    120   
    }
  109    121   
}
  110    122   
  111    123   
/// A builder for [`DisableImageDeregistrationProtectionInput`](crate::operation::disable_image_deregistration_protection::DisableImageDeregistrationProtectionInput).
  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/disable_image_deregistration_protection/_disable_image_deregistration_protection_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "DisableImageDeregistrationProtectionOutput",
   20     20   
);
   21     21   
static DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_MEMBER_RETURN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#DisableImageDeregistrationProtectionOutput$Return",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "DisableImageDeregistrationProtectionOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "r##return",
          28  +
    "Return",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("return");
          32  +
static DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_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 DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_MEMBER_RETURN],
          42  +
    &[
          43  +
        &DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_MEMBER_RETURN,
          44  +
        &DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl DisableImageDeregistrationProtectionOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for DisableImageDeregistrationProtectionOutput {
   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.r#return {
   48     58   
            ser.write_string(&DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_MEMBER_RETURN, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl DisableImageDeregistrationProtectionOutput {
   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(&DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.r#return = 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 DisableImageDeregistrationProtectionOutput {
          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(&DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&DISABLEIMAGEDEREGISTRATIONPROTECTIONOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.r#return = 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/disable_ipam_organization_admin_account.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 `DisableIpamOrganizationAdminAccount`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DisableIpamOrganizationAdminAccount;
    6      6   
impl DisableIpamOrganizationAdminAccount {
    7      7   
    /// Creates a new `DisableIpamOrganizationAdminAccount`
    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::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountOutput::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::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::disable_ipam_organization_admin_account::DisableIpamOrganizationAdminAccountError,
  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 DisableIpamOrganizationAdminAccountResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DisableIpamOrganizationAdminAccountResponseDeserializer {
  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_disable_ipam_organization_admin_account::de_disable_ipam_organization_admin_account_http_error(
  166    173   
                status, headers, body,