AWS SDK

AWS SDK

rev. ec7b2441254af868911fccffe8d8dca83aff0045 (ignoring whitespace)

Files changed:

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

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

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

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

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

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

@@ -102,102 +292,292 @@
  122    122   
    "com.amazonaws.ec2.synthetic",
  123    123   
    "RequestSpotInstancesInput",
  124    124   
);
  125    125   
static REQUESTSPOTINSTANCESINPUT_MEMBER_LAUNCH_SPECIFICATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  126    126   
    ::aws_smithy_schema::ShapeId::from_static(
  127    127   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$LaunchSpecification",
  128    128   
        "com.amazonaws.ec2.synthetic",
  129    129   
        "RequestSpotInstancesInput",
  130    130   
    ),
  131    131   
    ::aws_smithy_schema::ShapeType::Structure,
  132         -
    "launch_specification",
         132  +
    "LaunchSpecification",
  133    133   
    0,
  134    134   
);
  135    135   
static REQUESTSPOTINSTANCESINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$TagSpecifications",
  138    138   
        "com.amazonaws.ec2.synthetic",
  139    139   
        "RequestSpotInstancesInput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::List,
  142         -
    "tag_specifications",
         142  +
    "TagSpecifications",
  143    143   
    1,
  144    144   
)
  145    145   
.with_xml_name("TagSpecification");
  146    146   
static REQUESTSPOTINSTANCESINPUT_MEMBER_INSTANCE_INTERRUPTION_BEHAVIOR: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$InstanceInterruptionBehavior",
  149    149   
        "com.amazonaws.ec2.synthetic",
  150    150   
        "RequestSpotInstancesInput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::String,
  153         -
    "instance_interruption_behavior",
         153  +
    "InstanceInterruptionBehavior",
  154    154   
    2,
  155    155   
);
  156    156   
static REQUESTSPOTINSTANCESINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  157    157   
    ::aws_smithy_schema::ShapeId::from_static(
  158    158   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$DryRun",
  159    159   
        "com.amazonaws.ec2.synthetic",
  160    160   
        "RequestSpotInstancesInput",
  161    161   
    ),
  162    162   
    ::aws_smithy_schema::ShapeType::Boolean,
  163         -
    "dry_run",
         163  +
    "DryRun",
  164    164   
    3,
  165    165   
)
  166    166   
.with_xml_name("dryRun");
  167    167   
static REQUESTSPOTINSTANCESINPUT_MEMBER_SPOT_PRICE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  168    168   
    ::aws_smithy_schema::ShapeId::from_static(
  169    169   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$SpotPrice",
  170    170   
        "com.amazonaws.ec2.synthetic",
  171    171   
        "RequestSpotInstancesInput",
  172    172   
    ),
  173    173   
    ::aws_smithy_schema::ShapeType::String,
  174         -
    "spot_price",
         174  +
    "SpotPrice",
  175    175   
    4,
  176    176   
)
  177    177   
.with_xml_name("spotPrice");
  178    178   
static REQUESTSPOTINSTANCESINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  179    179   
    ::aws_smithy_schema::ShapeId::from_static(
  180    180   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$ClientToken",
  181    181   
        "com.amazonaws.ec2.synthetic",
  182    182   
        "RequestSpotInstancesInput",
  183    183   
    ),
  184    184   
    ::aws_smithy_schema::ShapeType::String,
  185         -
    "client_token",
         185  +
    "ClientToken",
  186    186   
    5,
  187    187   
)
  188    188   
.with_xml_name("clientToken");
  189    189   
static REQUESTSPOTINSTANCESINPUT_MEMBER_INSTANCE_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  190    190   
    ::aws_smithy_schema::ShapeId::from_static(
  191    191   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$InstanceCount",
  192    192   
        "com.amazonaws.ec2.synthetic",
  193    193   
        "RequestSpotInstancesInput",
  194    194   
    ),
  195    195   
    ::aws_smithy_schema::ShapeType::Integer,
  196         -
    "instance_count",
         196  +
    "InstanceCount",
  197    197   
    6,
  198    198   
)
  199    199   
.with_xml_name("instanceCount");
  200    200   
static REQUESTSPOTINSTANCESINPUT_MEMBER_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  201    201   
    ::aws_smithy_schema::ShapeId::from_static(
  202    202   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$Type",
  203    203   
        "com.amazonaws.ec2.synthetic",
  204    204   
        "RequestSpotInstancesInput",
  205    205   
    ),
  206    206   
    ::aws_smithy_schema::ShapeType::String,
  207         -
    "r##type",
         207  +
    "Type",
  208    208   
    7,
  209    209   
)
  210    210   
.with_xml_name("type");
  211    211   
static REQUESTSPOTINSTANCESINPUT_MEMBER_VALID_FROM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  212    212   
    ::aws_smithy_schema::ShapeId::from_static(
  213    213   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$ValidFrom",
  214    214   
        "com.amazonaws.ec2.synthetic",
  215    215   
        "RequestSpotInstancesInput",
  216    216   
    ),
  217    217   
    ::aws_smithy_schema::ShapeType::Timestamp,
  218         -
    "valid_from",
         218  +
    "ValidFrom",
  219    219   
    8,
  220    220   
)
  221    221   
.with_xml_name("validFrom");
  222    222   
static REQUESTSPOTINSTANCESINPUT_MEMBER_VALID_UNTIL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  223    223   
    ::aws_smithy_schema::ShapeId::from_static(
  224    224   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$ValidUntil",
  225    225   
        "com.amazonaws.ec2.synthetic",
  226    226   
        "RequestSpotInstancesInput",
  227    227   
    ),
  228    228   
    ::aws_smithy_schema::ShapeType::Timestamp,
  229         -
    "valid_until",
         229  +
    "ValidUntil",
  230    230   
    9,
  231    231   
)
  232    232   
.with_xml_name("validUntil");
  233    233   
static REQUESTSPOTINSTANCESINPUT_MEMBER_LAUNCH_GROUP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  234    234   
    ::aws_smithy_schema::ShapeId::from_static(
  235    235   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$LaunchGroup",
  236    236   
        "com.amazonaws.ec2.synthetic",
  237    237   
        "RequestSpotInstancesInput",
  238    238   
    ),
  239    239   
    ::aws_smithy_schema::ShapeType::String,
  240         -
    "launch_group",
         240  +
    "LaunchGroup",
  241    241   
    10,
  242    242   
)
  243    243   
.with_xml_name("launchGroup");
  244    244   
static REQUESTSPOTINSTANCESINPUT_MEMBER_AVAILABILITY_ZONE_GROUP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  245    245   
    ::aws_smithy_schema::ShapeId::from_static(
  246    246   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$AvailabilityZoneGroup",
  247    247   
        "com.amazonaws.ec2.synthetic",
  248    248   
        "RequestSpotInstancesInput",
  249    249   
    ),
  250    250   
    ::aws_smithy_schema::ShapeType::String,
  251         -
    "availability_zone_group",
         251  +
    "AvailabilityZoneGroup",
  252    252   
    11,
  253    253   
)
  254    254   
.with_xml_name("availabilityZoneGroup");
  255    255   
static REQUESTSPOTINSTANCESINPUT_MEMBER_BLOCK_DURATION_MINUTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  256    256   
    ::aws_smithy_schema::ShapeId::from_static(
  257    257   
        "com.amazonaws.ec2.synthetic#RequestSpotInstancesInput$BlockDurationMinutes",
  258    258   
        "com.amazonaws.ec2.synthetic",
  259    259   
        "RequestSpotInstancesInput",
  260    260   
    ),
  261    261   
    ::aws_smithy_schema::ShapeType::Integer,
  262         -
    "block_duration_minutes",
         262  +
    "BlockDurationMinutes",
  263    263   
    12,
  264    264   
)
  265    265   
.with_xml_name("blockDurationMinutes");
  266    266   
static REQUESTSPOTINSTANCESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  267    267   
    REQUESTSPOTINSTANCESINPUT_SCHEMA_ID,
  268    268   
    ::aws_smithy_schema::ShapeType::Structure,
  269    269   
    &[
  270    270   
        &REQUESTSPOTINSTANCESINPUT_MEMBER_LAUNCH_SPECIFICATION,
  271    271   
        &REQUESTSPOTINSTANCESINPUT_MEMBER_TAG_SPECIFICATIONS,
  272    272   
        &REQUESTSPOTINSTANCESINPUT_MEMBER_INSTANCE_INTERRUPTION_BEHAVIOR,
@@ -317,317 +449,457 @@
  337    337   
            ser.write_string(&REQUESTSPOTINSTANCESINPUT_MEMBER_AVAILABILITY_ZONE_GROUP, val)?;
  338    338   
        }
  339    339   
        if let Some(ref val) = self.block_duration_minutes {
  340    340   
            ser.write_integer(&REQUESTSPOTINSTANCESINPUT_MEMBER_BLOCK_DURATION_MINUTES, *val)?;
  341    341   
        }
  342    342   
        Ok(())
  343    343   
    }
  344    344   
}
  345    345   
impl RequestSpotInstancesInput {
  346    346   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  347         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  348         -
        deserializer: &mut D,
         347  +
    pub fn deserialize(
         348  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  349    349   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  350    350   
        #[allow(unused_variables, unused_mut)]
  351    351   
        let mut builder = Self::builder();
  352    352   
        #[allow(
  353    353   
            unused_variables,
  354    354   
            unreachable_code,
  355    355   
            clippy::single_match,
  356    356   
            clippy::match_single_binding,
  357    357   
            clippy::diverging_sub_expression
  358    358   
        )]
  359         -
        deserializer.read_struct(&REQUESTSPOTINSTANCESINPUT_SCHEMA, (), |_, member, deser| {
         359  +
        deserializer.read_struct(&REQUESTSPOTINSTANCESINPUT_SCHEMA, &mut |member, deser| {
  360    360   
            match member.member_index() {
  361    361   
                Some(0) => {
  362    362   
                    builder.launch_specification = Some(crate::types::RequestSpotLaunchSpecification::deserialize(deser)?);
  363    363   
                }
  364    364   
                Some(1) => {
  365    365   
                    builder.tag_specifications = Some({
  366         -
                        let container = if let Some(cap) = deser.container_size() {
  367         -
                            Vec::with_capacity(cap)
  368         -
                        } else {
  369         -
                            Vec::new()
  370         -
                        };
  371         -
                        deser.read_list(member, container, |mut list, deser| {
  372         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  373         -
                            Ok(list)
  374         -
                        })?
         366  +
                        let mut container = Vec::new();
         367  +
                        deser.read_list(member, &mut |deser| {
         368  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         369  +
                            Ok(())
         370  +
                        })?;
         371  +
                        container
  375    372   
                    });
  376    373   
                }
  377    374   
                Some(2) => {
  378    375   
                    builder.instance_interruption_behavior =
  379    376   
                        Some(crate::types::InstanceInterruptionBehavior::from(deser.read_string(member)?.as_str()));
  380    377   
                }
  381    378   
                Some(3) => {
  382    379   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  383    380   
                }
  384    381   
                Some(4) => {
  385    382   
                    builder.spot_price = Some(deser.read_string(member)?);
  386    383   
                }
  387    384   
                Some(5) => {
  388    385   
                    builder.client_token = Some(deser.read_string(member)?);
  389    386   
                }
  390    387   
                Some(6) => {
  391    388   
                    builder.instance_count = Some(deser.read_integer(member)?);
  392    389   
                }
  393    390   
                Some(7) => {
  394    391   
                    builder.r#type = Some(crate::types::SpotInstanceType::from(deser.read_string(member)?.as_str()));
  395    392   
                }
  396    393   
                Some(8) => {
  397    394   
                    builder.valid_from = Some(deser.read_timestamp(member)?);
  398    395   
                }
  399    396   
                Some(9) => {
  400    397   
                    builder.valid_until = Some(deser.read_timestamp(member)?);
  401    398   
                }
  402    399   
                Some(10) => {
  403    400   
                    builder.launch_group = Some(deser.read_string(member)?);
  404    401   
                }
  405    402   
                Some(11) => {
  406    403   
                    builder.availability_zone_group = Some(deser.read_string(member)?);
  407    404   
                }
  408    405   
                Some(12) => {
  409    406   
                    builder.block_duration_minutes = Some(deser.read_integer(member)?);
  410    407   
                }
  411    408   
                _ => {}
  412    409   
            }
  413    410   
            Ok(())
  414    411   
        })?;
  415    412   
        builder
  416    413   
            .build()
  417    414   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  418    415   
    }
  419    416   
}
         417  +
impl RequestSpotInstancesInput {
         418  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         419  +
    pub fn deserialize_with_response(
         420  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         421  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         422  +
        _status: u16,
         423  +
        _body: &[u8],
         424  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         425  +
        Self::deserialize(deserializer)
         426  +
    }
         427  +
}
  420    428   
impl RequestSpotInstancesInput {
  421    429   
    /// Creates a new builder-style object to manufacture [`RequestSpotInstancesInput`](crate::operation::request_spot_instances::RequestSpotInstancesInput).
  422    430   
    pub fn builder() -> crate::operation::request_spot_instances::builders::RequestSpotInstancesInputBuilder {
  423    431   
        crate::operation::request_spot_instances::builders::RequestSpotInstancesInputBuilder::default()
  424    432   
    }
  425    433   
}
  426    434   
  427    435   
/// A builder for [`RequestSpotInstancesInput`](crate::operation::request_spot_instances::RequestSpotInstancesInput).
  428    436   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  429    437   
#[non_exhaustive]

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

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

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

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

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

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "ResetAddressAttributeOutput",
   20     20   
);
   21     21   
static RESETADDRESSATTRIBUTEOUTPUT_MEMBER_ADDRESS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#ResetAddressAttributeOutput$Address",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "ResetAddressAttributeOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::Structure,
   28         -
    "address",
          28  +
    "Address",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("address");
          32  +
static RESETADDRESSATTRIBUTEOUTPUT_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 RESETADDRESSATTRIBUTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    RESETADDRESSATTRIBUTEOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&RESETADDRESSATTRIBUTEOUTPUT_MEMBER_ADDRESS],
          42  +
    &[
          43  +
        &RESETADDRESSATTRIBUTEOUTPUT_MEMBER_ADDRESS,
          44  +
        &RESETADDRESSATTRIBUTEOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl ResetAddressAttributeOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RESETADDRESSATTRIBUTEOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for ResetAddressAttributeOutput {
   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.address {
   48     58   
            ser.write_struct(&RESETADDRESSATTRIBUTEOUTPUT_MEMBER_ADDRESS, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl ResetAddressAttributeOutput {
   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(&RESETADDRESSATTRIBUTEOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&RESETADDRESSATTRIBUTEOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.address = Some(crate::types::AddressAttribute::deserialize(deser)?);
          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 ResetAddressAttributeOutput {
          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(&RESETADDRESSATTRIBUTEOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.address = Some(crate::types::AddressAttribute::deserialize(deser)?);
   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/reset_ebs_default_kms_key_id.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 `ResetEbsDefaultKmsKeyId`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ResetEbsDefaultKmsKeyId;
    6      6   
impl ResetEbsDefaultKmsKeyId {
    7      7   
    /// Creates a new `ResetEbsDefaultKmsKeyId`
    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::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdOutput::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::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -118,124 +180,187 @@
  138    144   
                crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdError,
  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 ResetEbsDefaultKmsKeyIdResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ResetEbsDefaultKmsKeyIdResponseDeserializer {
  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_reset_ebs_default_kms_key_id::de_reset_ebs_default_kms_key_id_http_error(status, headers, body)
  160    167   
        } else {

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

@@ -1,1 +108,119 @@
   17     17   
    "com.amazonaws.ec2.synthetic",
   18     18   
    "ResetEbsDefaultKmsKeyIdInput",
   19     19   
);
   20     20   
static RESETEBSDEFAULTKMSKEYIDINPUT_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#ResetEbsDefaultKmsKeyIdInput$DryRun",
   23     23   
        "com.amazonaws.ec2.synthetic",
   24     24   
        "ResetEbsDefaultKmsKeyIdInput",
   25     25   
    ),
   26     26   
    ::aws_smithy_schema::ShapeType::Boolean,
   27         -
    "dry_run",
          27  +
    "DryRun",
   28     28   
    0,
   29     29   
);
   30     30   
static RESETEBSDEFAULTKMSKEYIDINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   31     31   
    RESETEBSDEFAULTKMSKEYIDINPUT_SCHEMA_ID,
   32     32   
    ::aws_smithy_schema::ShapeType::Structure,
   33     33   
    &[&RESETEBSDEFAULTKMSKEYIDINPUT_MEMBER_DRY_RUN],
   34     34   
);
   35     35   
impl ResetEbsDefaultKmsKeyIdInput {
   36     36   
    /// The schema for this shape.
   37     37   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RESETEBSDEFAULTKMSKEYIDINPUT_SCHEMA;
   38     38   
}
   39     39   
impl ::aws_smithy_schema::serde::SerializableStruct for ResetEbsDefaultKmsKeyIdInput {
   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(&RESETEBSDEFAULTKMSKEYIDINPUT_MEMBER_DRY_RUN, *val)?;
   47     47   
        }
   48     48   
        Ok(())
   49     49   
    }
   50     50   
}
   51     51   
impl ResetEbsDefaultKmsKeyIdInput {
   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(&RESETEBSDEFAULTKMSKEYIDINPUT_SCHEMA, (), |_, member, deser| {
          65  +
        deserializer.read_struct(&RESETEBSDEFAULTKMSKEYIDINPUT_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 ResetEbsDefaultKmsKeyIdInput {
          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 ResetEbsDefaultKmsKeyIdInput {
   80     91   
    /// Creates a new builder-style object to manufacture [`ResetEbsDefaultKmsKeyIdInput`](crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdInput).
   81     92   
    pub fn builder() -> crate::operation::reset_ebs_default_kms_key_id::builders::ResetEbsDefaultKmsKeyIdInputBuilder {
   82     93   
        crate::operation::reset_ebs_default_kms_key_id::builders::ResetEbsDefaultKmsKeyIdInputBuilder::default()
   83     94   
    }
   84     95   
}
   85     96   
   86     97   
/// A builder for [`ResetEbsDefaultKmsKeyIdInput`](crate::operation::reset_ebs_default_kms_key_id::ResetEbsDefaultKmsKeyIdInput).
   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/reset_ebs_default_kms_key_id/_reset_ebs_default_kms_key_id_output.rs

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "ResetEbsDefaultKmsKeyIdOutput",
   20     20   
);
   21     21   
static RESETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   22     22   
    ::aws_smithy_schema::ShapeId::from_static(
   23     23   
        "com.amazonaws.ec2.synthetic#ResetEbsDefaultKmsKeyIdOutput$KmsKeyId",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "ResetEbsDefaultKmsKeyIdOutput",
   26     26   
    ),
   27     27   
    ::aws_smithy_schema::ShapeType::String,
   28         -
    "kms_key_id",
          28  +
    "KmsKeyId",
   29     29   
    0,
   30     30   
)
   31     31   
.with_xml_name("kmsKeyId");
          32  +
static RESETEBSDEFAULTKMSKEYIDOUTPUT_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 RESETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    RESETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&RESETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID],
          42  +
    &[
          43  +
        &RESETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID,
          44  +
        &RESETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl ResetEbsDefaultKmsKeyIdOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RESETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for ResetEbsDefaultKmsKeyIdOutput {
   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.kms_key_id {
   48     58   
            ser.write_string(&RESETEBSDEFAULTKMSKEYIDOUTPUT_MEMBER_KMS_KEY_ID, val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl ResetEbsDefaultKmsKeyIdOutput {
   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(&RESETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    builder.kms_key_id = Some(deser.read_string(member)?);
          81  +
                }
          82  +
                Some(1) => {
          83  +
                    builder._request_id = Some(deser.read_string(member)?);
          84  +
                }
          85  +
                _ => {}
          86  +
            }
          87  +
            Ok(())
          88  +
        })?;
          89  +
        Ok(builder.build())
          90  +
    }
          91  +
}
          92  +
impl ResetEbsDefaultKmsKeyIdOutput {
          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(&RESETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA, (), |_, member, deser| {
         114  +
        deserializer.read_struct(&RESETEBSDEFAULTKMSKEYIDOUTPUT_SCHEMA, &mut |member, deser| {
   68    115   
            match member.member_index() {
   69    116   
                Some(0) => {
   70    117   
                    builder.kms_key_id = Some(deser.read_string(member)?);
   71    118   
                }
   72    119   
                _ => {}
   73    120   
            }
   74    121   
            Ok(())
   75    122   
        })?;
   76    123   
        Ok(builder.build())
   77    124   
    }

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/reset_fpga_image_attribute.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 `ResetFpgaImageAttribute`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ResetFpgaImageAttribute;
    6      6   
impl ResetFpgaImageAttribute {
    7      7   
    /// Creates a new `ResetFpgaImageAttribute`
    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::reset_fpga_image_attribute::ResetFpgaImageAttributeInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeOutput::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::reset_fpga_image_attribute::ResetFpgaImageAttributeInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -118,123 +180,186 @@
  138    143   
                crate::operation::reset_fpga_image_attribute::ResetFpgaImageAttributeError,
  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 ResetFpgaImageAttributeResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ResetFpgaImageAttributeResponseDeserializer {
  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_reset_fpga_image_attribute::de_reset_fpga_image_attribute_http_error(status, headers, body)
  160    166   
        } else {

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

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

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

@@ -1,1 +97,144 @@
   18     18   
    "com.amazonaws.ec2.synthetic",
   19     19   
    "ResetFpgaImageAttributeOutput",
   20     20   
);
   21     21   
static RESETFPGAIMAGEATTRIBUTEOUTPUT_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#ResetFpgaImageAttributeOutput$Return",
   24     24   
        "com.amazonaws.ec2.synthetic",
   25     25   
        "ResetFpgaImageAttributeOutput",
   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 RESETFPGAIMAGEATTRIBUTEOUTPUT_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 RESETFPGAIMAGEATTRIBUTEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   33     40   
    RESETFPGAIMAGEATTRIBUTEOUTPUT_SCHEMA_ID,
   34     41   
    ::aws_smithy_schema::ShapeType::Structure,
   35         -
    &[&RESETFPGAIMAGEATTRIBUTEOUTPUT_MEMBER_RETURN],
          42  +
    &[
          43  +
        &RESETFPGAIMAGEATTRIBUTEOUTPUT_MEMBER_RETURN,
          44  +
        &RESETFPGAIMAGEATTRIBUTEOUTPUT_MEMBER__REQUEST_ID,
          45  +
    ],
   36     46   
);
   37     47   
impl ResetFpgaImageAttributeOutput {
   38     48   
    /// The schema for this shape.
   39     49   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &RESETFPGAIMAGEATTRIBUTEOUTPUT_SCHEMA;
   40     50   
}
   41     51   
impl ::aws_smithy_schema::serde::SerializableStruct for ResetFpgaImageAttributeOutput {
   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(&RESETFPGAIMAGEATTRIBUTEOUTPUT_MEMBER_RETURN, *val)?;
   49     59   
        }
   50     60   
        Ok(())
   51     61   
    }
   52     62   
}
   53     63   
impl ResetFpgaImageAttributeOutput {
   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(&RESETFPGAIMAGEATTRIBUTEOUTPUT_SCHEMA, (), |_, member, deser| {
          77  +
        deserializer.read_struct(&RESETFPGAIMAGEATTRIBUTEOUTPUT_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 ResetFpgaImageAttributeOutput {
          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(&RESETFPGAIMAGEATTRIBUTEOUTPUT_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/reset_image_attribute.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 `ResetImageAttribute`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct ResetImageAttribute;
    6      6   
impl ResetImageAttribute {
    7      7   
    /// Creates a new `ResetImageAttribute`
    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::reset_image_attribute::ResetImageAttributeInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::reset_image_attribute::ResetImageAttributeOutput::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::reset_image_attribute::ResetImageAttributeInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::reset_image_attribute::ResetImageAttributeOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::reset_image_attribute::ResetImageAttributeError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +180,185 @@
  138    142   
                crate::operation::reset_image_attribute::ResetImageAttributeError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct ResetImageAttributeResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ResetImageAttributeResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153    158   
        let headers = response.headers();
  154    159   
        let body = response.body().bytes().expect("body loaded");
  155    160   
        #[allow(unused_mut)]
  156    161   
        let mut force_error = false;
  157    162   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158    163   
        let parse_result = if !success && status != 200 || force_error {
  159    164   
            crate::protocol_serde::shape_reset_image_attribute::de_reset_image_attribute_http_error(status, headers, body)
  160    165   
        } else {

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

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