AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

@@ -28,28 +232,245 @@
   48     48   
    "com.amazonaws.ec2.synthetic",
   49     49   
    "DescribeSpotFleetRequestHistoryInput",
   50     50   
);
   51     51   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   52     52   
    ::aws_smithy_schema::ShapeId::from_static(
   53     53   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryInput$DryRun",
   54     54   
        "com.amazonaws.ec2.synthetic",
   55     55   
        "DescribeSpotFleetRequestHistoryInput",
   56     56   
    ),
   57     57   
    ::aws_smithy_schema::ShapeType::Boolean,
   58         -
    "dry_run",
          58  +
    "DryRun",
   59     59   
    0,
   60     60   
)
   61     61   
.with_xml_name("dryRun");
   62     62   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_SPOT_FLEET_REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   63     63   
    ::aws_smithy_schema::ShapeId::from_static(
   64     64   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryInput$SpotFleetRequestId",
   65     65   
        "com.amazonaws.ec2.synthetic",
   66     66   
        "DescribeSpotFleetRequestHistoryInput",
   67     67   
    ),
   68     68   
    ::aws_smithy_schema::ShapeType::String,
   69         -
    "spot_fleet_request_id",
          69  +
    "SpotFleetRequestId",
   70     70   
    1,
   71     71   
)
   72     72   
.with_xml_name("spotFleetRequestId");
   73     73   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_EVENT_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   74     74   
    ::aws_smithy_schema::ShapeId::from_static(
   75     75   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryInput$EventType",
   76     76   
        "com.amazonaws.ec2.synthetic",
   77     77   
        "DescribeSpotFleetRequestHistoryInput",
   78     78   
    ),
   79     79   
    ::aws_smithy_schema::ShapeType::String,
   80         -
    "event_type",
          80  +
    "EventType",
   81     81   
    2,
   82     82   
)
   83     83   
.with_xml_name("eventType");
   84     84   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryInput$StartTime",
   87     87   
        "com.amazonaws.ec2.synthetic",
   88     88   
        "DescribeSpotFleetRequestHistoryInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::Timestamp,
   91         -
    "start_time",
          91  +
    "StartTime",
   92     92   
    3,
   93     93   
)
   94     94   
.with_xml_name("startTime");
   95     95   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   96     96   
    ::aws_smithy_schema::ShapeId::from_static(
   97     97   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryInput$NextToken",
   98     98   
        "com.amazonaws.ec2.synthetic",
   99     99   
        "DescribeSpotFleetRequestHistoryInput",
  100    100   
    ),
  101    101   
    ::aws_smithy_schema::ShapeType::String,
  102         -
    "next_token",
         102  +
    "NextToken",
  103    103   
    4,
  104    104   
)
  105    105   
.with_xml_name("nextToken");
  106    106   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryInput$MaxResults",
  109    109   
        "com.amazonaws.ec2.synthetic",
  110    110   
        "DescribeSpotFleetRequestHistoryInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::Integer,
  113         -
    "max_results",
         113  +
    "MaxResults",
  114    114   
    5,
  115    115   
)
  116    116   
.with_xml_name("maxResults");
  117    117   
static DESCRIBESPOTFLEETREQUESTHISTORYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  118    118   
    DESCRIBESPOTFLEETREQUESTHISTORYINPUT_SCHEMA_ID,
  119    119   
    ::aws_smithy_schema::ShapeType::Structure,
  120    120   
    &[
  121    121   
        &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_DRY_RUN,
  122    122   
        &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_SPOT_FLEET_REQUEST_ID,
  123    123   
        &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_EVENT_TYPE,
  124    124   
        &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_START_TIME,
  125    125   
        &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_NEXT_TOKEN,
  126    126   
        &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_MAX_RESULTS,
  127    127   
    ],
  128    128   
);
  129    129   
impl DescribeSpotFleetRequestHistoryInput {
  130    130   
    /// The schema for this shape.
  131    131   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBESPOTFLEETREQUESTHISTORYINPUT_SCHEMA;
  132    132   
}
  133    133   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeSpotFleetRequestHistoryInput {
  134    134   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  135    135   
    fn serialize_members(
  136    136   
        &self,
  137    137   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  138    138   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  139    139   
        if let Some(ref val) = self.dry_run {
  140    140   
            ser.write_boolean(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_DRY_RUN, *val)?;
  141    141   
        }
  142    142   
        if let Some(ref val) = self.spot_fleet_request_id {
  143    143   
            ser.write_string(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_SPOT_FLEET_REQUEST_ID, val)?;
  144    144   
        }
  145    145   
        if let Some(ref val) = self.event_type {
  146    146   
            ser.write_string(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_EVENT_TYPE, val.as_str())?;
  147    147   
        }
  148    148   
        if let Some(ref val) = self.start_time {
  149    149   
            ser.write_timestamp(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_START_TIME, val)?;
  150    150   
        }
  151    151   
        if let Some(ref val) = self.next_token {
  152    152   
            ser.write_string(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_NEXT_TOKEN, val)?;
  153    153   
        }
  154    154   
        if let Some(ref val) = self.max_results {
  155    155   
            ser.write_integer(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_MEMBER_MAX_RESULTS, *val)?;
  156    156   
        }
  157    157   
        Ok(())
  158    158   
    }
  159    159   
}
  160    160   
impl DescribeSpotFleetRequestHistoryInput {
  161    161   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  162         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  163         -
        deserializer: &mut D,
         162  +
    pub fn deserialize(
         163  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  164    164   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  165    165   
        #[allow(unused_variables, unused_mut)]
  166    166   
        let mut builder = Self::builder();
  167    167   
        #[allow(
  168    168   
            unused_variables,
  169    169   
            unreachable_code,
  170    170   
            clippy::single_match,
  171    171   
            clippy::match_single_binding,
  172    172   
            clippy::diverging_sub_expression
  173    173   
        )]
  174         -
        deserializer.read_struct(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_SCHEMA, (), |_, member, deser| {
         174  +
        deserializer.read_struct(&DESCRIBESPOTFLEETREQUESTHISTORYINPUT_SCHEMA, &mut |member, deser| {
  175    175   
            match member.member_index() {
  176    176   
                Some(0) => {
  177    177   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  178    178   
                }
  179    179   
                Some(1) => {
  180    180   
                    builder.spot_fleet_request_id = Some(deser.read_string(member)?);
  181    181   
                }
  182    182   
                Some(2) => {
  183    183   
                    builder.event_type = Some(crate::types::EventType::from(deser.read_string(member)?.as_str()));
  184    184   
                }
  185    185   
                Some(3) => {
  186    186   
                    builder.start_time = Some(deser.read_timestamp(member)?);
  187    187   
                }
  188    188   
                Some(4) => {
  189    189   
                    builder.next_token = Some(deser.read_string(member)?);
  190    190   
                }
  191    191   
                Some(5) => {
  192    192   
                    builder.max_results = Some(deser.read_integer(member)?);
  193    193   
                }
  194    194   
                _ => {}
  195    195   
            }
  196    196   
            Ok(())
  197    197   
        })?;
         198  +
        builder.spot_fleet_request_id = builder.spot_fleet_request_id.or(Some(String::new()));
         199  +
        builder.start_time = builder.start_time.or(Some(::aws_smithy_types::DateTime::from_secs(0)));
  198    200   
        builder
  199    201   
            .build()
  200    202   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  201    203   
    }
  202    204   
}
         205  +
impl DescribeSpotFleetRequestHistoryInput {
         206  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         207  +
    pub fn deserialize_with_response(
         208  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         209  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         210  +
        _status: u16,
         211  +
        _body: &[u8],
         212  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         213  +
        Self::deserialize(deserializer)
         214  +
    }
         215  +
}
  203    216   
impl DescribeSpotFleetRequestHistoryInput {
  204    217   
    /// Creates a new builder-style object to manufacture [`DescribeSpotFleetRequestHistoryInput`](crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryInput).
  205    218   
    pub fn builder() -> crate::operation::describe_spot_fleet_request_history::builders::DescribeSpotFleetRequestHistoryInputBuilder {
  206    219   
        crate::operation::describe_spot_fleet_request_history::builders::DescribeSpotFleetRequestHistoryInputBuilder::default()
  207    220   
    }
  208    221   
}
  209    222   
  210    223   
/// A builder for [`DescribeSpotFleetRequestHistoryInput`](crate::operation::describe_spot_fleet_request_history::DescribeSpotFleetRequestHistoryInput).
  211    224   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  212    225   
#[non_exhaustive]

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

@@ -27,27 +208,269 @@
   47     47   
    "com.amazonaws.ec2.synthetic",
   48     48   
    "DescribeSpotFleetRequestHistoryOutput",
   49     49   
);
   50     50   
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_HISTORY_RECORDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   51     51   
    ::aws_smithy_schema::ShapeId::from_static(
   52     52   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryOutput$HistoryRecords",
   53     53   
        "com.amazonaws.ec2.synthetic",
   54     54   
        "DescribeSpotFleetRequestHistoryOutput",
   55     55   
    ),
   56     56   
    ::aws_smithy_schema::ShapeType::List,
   57         -
    "history_records",
          57  +
    "HistoryRecords",
   58     58   
    0,
   59     59   
)
   60     60   
.with_xml_name("historyRecordSet");
   61     61   
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_LAST_EVALUATED_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   62     62   
    ::aws_smithy_schema::ShapeId::from_static(
   63     63   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryOutput$LastEvaluatedTime",
   64     64   
        "com.amazonaws.ec2.synthetic",
   65     65   
        "DescribeSpotFleetRequestHistoryOutput",
   66     66   
    ),
   67     67   
    ::aws_smithy_schema::ShapeType::Timestamp,
   68         -
    "last_evaluated_time",
          68  +
    "LastEvaluatedTime",
   69     69   
    1,
   70     70   
)
   71     71   
.with_xml_name("lastEvaluatedTime");
   72     72   
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   73     73   
    ::aws_smithy_schema::ShapeId::from_static(
   74     74   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryOutput$NextToken",
   75     75   
        "com.amazonaws.ec2.synthetic",
   76     76   
        "DescribeSpotFleetRequestHistoryOutput",
   77     77   
    ),
   78     78   
    ::aws_smithy_schema::ShapeType::String,
   79         -
    "next_token",
          79  +
    "NextToken",
   80     80   
    2,
   81     81   
)
   82     82   
.with_xml_name("nextToken");
   83     83   
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_SPOT_FLEET_REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   84     84   
    ::aws_smithy_schema::ShapeId::from_static(
   85     85   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryOutput$SpotFleetRequestId",
   86     86   
        "com.amazonaws.ec2.synthetic",
   87     87   
        "DescribeSpotFleetRequestHistoryOutput",
   88     88   
    ),
   89     89   
    ::aws_smithy_schema::ShapeType::String,
   90         -
    "spot_fleet_request_id",
          90  +
    "SpotFleetRequestId",
   91     91   
    3,
   92     92   
)
   93     93   
.with_xml_name("spotFleetRequestId");
   94     94   
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.ec2.synthetic#DescribeSpotFleetRequestHistoryOutput$StartTime",
   97     97   
        "com.amazonaws.ec2.synthetic",
   98     98   
        "DescribeSpotFleetRequestHistoryOutput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::Timestamp,
  101         -
    "start_time",
         101  +
    "StartTime",
  102    102   
    4,
  103    103   
)
  104    104   
.with_xml_name("startTime");
         105  +
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         106  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         107  +
    ::aws_smithy_schema::ShapeType::String,
         108  +
    "request_id",
         109  +
    5,
         110  +
)
         111  +
.with_http_header("x-amzn-requestid");
  105    112   
static DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  106    113   
    DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_SCHEMA_ID,
  107    114   
    ::aws_smithy_schema::ShapeType::Structure,
  108    115   
    &[
  109    116   
        &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_HISTORY_RECORDS,
  110    117   
        &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_LAST_EVALUATED_TIME,
  111    118   
        &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_NEXT_TOKEN,
  112    119   
        &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_SPOT_FLEET_REQUEST_ID,
  113    120   
        &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_START_TIME,
         121  +
        &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER__REQUEST_ID,
  114    122   
    ],
  115    123   
);
  116    124   
impl DescribeSpotFleetRequestHistoryOutput {
  117    125   
    /// The schema for this shape.
  118    126   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_SCHEMA;
  119    127   
}
  120    128   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeSpotFleetRequestHistoryOutput {
  121    129   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  122    130   
    fn serialize_members(
  123    131   
        &self,
  124    132   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  125    133   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  126    134   
        if let Some(ref val) = self.history_records {
  127    135   
            ser.write_list(
  128    136   
                &DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_HISTORY_RECORDS,
  129    137   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  130    138   
                    for item in val {
  131    139   
                        ser.write_struct(crate::types::HistoryRecord::SCHEMA, item)?;
  132    140   
                    }
  133    141   
                    Ok(())
  134    142   
                },
  135    143   
            )?;
  136    144   
        }
  137    145   
        if let Some(ref val) = self.last_evaluated_time {
  138    146   
            ser.write_timestamp(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_LAST_EVALUATED_TIME, val)?;
  139    147   
        }
  140    148   
        if let Some(ref val) = self.next_token {
  141    149   
            ser.write_string(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_NEXT_TOKEN, val)?;
  142    150   
        }
  143    151   
        if let Some(ref val) = self.spot_fleet_request_id {
  144    152   
            ser.write_string(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_SPOT_FLEET_REQUEST_ID, val)?;
  145    153   
        }
  146    154   
        if let Some(ref val) = self.start_time {
  147    155   
            ser.write_timestamp(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_MEMBER_START_TIME, val)?;
  148    156   
        }
  149    157   
        Ok(())
  150    158   
    }
  151    159   
}
  152    160   
impl DescribeSpotFleetRequestHistoryOutput {
  153    161   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  154         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  155         -
        deserializer: &mut D,
         162  +
    pub fn deserialize(
         163  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  156    164   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  157    165   
        #[allow(unused_variables, unused_mut)]
  158    166   
        let mut builder = Self::builder();
  159    167   
        #[allow(
  160    168   
            unused_variables,
  161    169   
            unreachable_code,
  162    170   
            clippy::single_match,
  163    171   
            clippy::match_single_binding,
  164    172   
            clippy::diverging_sub_expression
  165    173   
        )]
  166         -
        deserializer.read_struct(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_SCHEMA, (), |_, member, deser| {
         174  +
        deserializer.read_struct(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_SCHEMA, &mut |member, deser| {
  167    175   
            match member.member_index() {
  168    176   
                Some(0) => {
  169    177   
                    builder.history_records = Some({
  170         -
                        let container = if let Some(cap) = deser.container_size() {
  171         -
                            Vec::with_capacity(cap)
  172         -
                        } else {
  173         -
                            Vec::new()
  174         -
                        };
  175         -
                        deser.read_list(member, container, |mut list, deser| {
  176         -
                            list.push(crate::types::HistoryRecord::deserialize(deser)?);
  177         -
                            Ok(list)
  178         -
                        })?
         178  +
                        let mut container = Vec::new();
         179  +
                        deser.read_list(member, &mut |deser| {
         180  +
                            container.push(crate::types::HistoryRecord::deserialize(deser)?);
         181  +
                            Ok(())
         182  +
                        })?;
         183  +
                        container
         184  +
                    });
         185  +
                }
         186  +
                Some(1) => {
         187  +
                    builder.last_evaluated_time = Some(deser.read_timestamp(member)?);
         188  +
                }
         189  +
                Some(2) => {
         190  +
                    builder.next_token = Some(deser.read_string(member)?);
         191  +
                }
         192  +
                Some(3) => {
         193  +
                    builder.spot_fleet_request_id = Some(deser.read_string(member)?);
         194  +
                }
         195  +
                Some(4) => {
         196  +
                    builder.start_time = Some(deser.read_timestamp(member)?);
         197  +
                }
         198  +
                Some(5) => {
         199  +
                    builder._request_id = Some(deser.read_string(member)?);
         200  +
                }
         201  +
                _ => {}
         202  +
            }
         203  +
            Ok(())
         204  +
        })?;
         205  +
        Ok(builder.build())
         206  +
    }
         207  +
}
         208  +
impl DescribeSpotFleetRequestHistoryOutput {
         209  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         210  +
    /// Header-bound members are read directly from headers, avoiding runtime
         211  +
    /// member iteration overhead. Body members are read via the deserializer.
         212  +
    pub fn deserialize_with_response(
         213  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         214  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         215  +
        _status: u16,
         216  +
        _body: &[u8],
         217  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         218  +
        #[allow(unused_variables, unused_mut)]
         219  +
        let mut builder = Self::builder();
         220  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         221  +
            builder._request_id = Some(val.to_string());
         222  +
        }
         223  +
        #[allow(
         224  +
            unused_variables,
         225  +
            unreachable_code,
         226  +
            clippy::single_match,
         227  +
            clippy::match_single_binding,
         228  +
            clippy::diverging_sub_expression
         229  +
        )]
         230  +
        deserializer.read_struct(&DESCRIBESPOTFLEETREQUESTHISTORYOUTPUT_SCHEMA, &mut |member, deser| {
         231  +
            match member.member_index() {
         232  +
                Some(0) => {
         233  +
                    builder.history_records = Some({
         234  +
                        let mut container = Vec::new();
         235  +
                        deser.read_list(member, &mut |deser| {
         236  +
                            container.push(crate::types::HistoryRecord::deserialize(deser)?);
         237  +
                            Ok(())
         238  +
                        })?;
         239  +
                        container
  179    240   
                    });
  180    241   
                }
  181    242   
                Some(1) => {
  182    243   
                    builder.last_evaluated_time = Some(deser.read_timestamp(member)?);
  183    244   
                }
  184    245   
                Some(2) => {
  185    246   
                    builder.next_token = Some(deser.read_string(member)?);
  186    247   
                }
  187    248   
                Some(3) => {
  188    249   
                    builder.spot_fleet_request_id = Some(deser.read_string(member)?);

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

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

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

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

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

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

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

@@ -190,190 +410,408 @@
  210    210   
    "com.amazonaws.ec2.synthetic",
  211    211   
    "DescribeSpotInstanceRequestsInput",
  212    212   
);
  213    213   
static DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  214    214   
    ::aws_smithy_schema::ShapeId::from_static(
  215    215   
        "com.amazonaws.ec2.synthetic#DescribeSpotInstanceRequestsInput$NextToken",
  216    216   
        "com.amazonaws.ec2.synthetic",
  217    217   
        "DescribeSpotInstanceRequestsInput",
  218    218   
    ),
  219    219   
    ::aws_smithy_schema::ShapeType::String,
  220         -
    "next_token",
         220  +
    "NextToken",
  221    221   
    0,
  222    222   
);
  223    223   
static DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  224    224   
    ::aws_smithy_schema::ShapeId::from_static(
  225    225   
        "com.amazonaws.ec2.synthetic#DescribeSpotInstanceRequestsInput$MaxResults",
  226    226   
        "com.amazonaws.ec2.synthetic",
  227    227   
        "DescribeSpotInstanceRequestsInput",
  228    228   
    ),
  229    229   
    ::aws_smithy_schema::ShapeType::Integer,
  230         -
    "max_results",
         230  +
    "MaxResults",
  231    231   
    1,
  232    232   
);
  233    233   
static DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  234    234   
    ::aws_smithy_schema::ShapeId::from_static(
  235    235   
        "com.amazonaws.ec2.synthetic#DescribeSpotInstanceRequestsInput$DryRun",
  236    236   
        "com.amazonaws.ec2.synthetic",
  237    237   
        "DescribeSpotInstanceRequestsInput",
  238    238   
    ),
  239    239   
    ::aws_smithy_schema::ShapeType::Boolean,
  240         -
    "dry_run",
         240  +
    "DryRun",
  241    241   
    2,
  242    242   
)
  243    243   
.with_xml_name("dryRun");
  244    244   
static DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_SPOT_INSTANCE_REQUEST_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  245    245   
    ::aws_smithy_schema::ShapeId::from_static(
  246    246   
        "com.amazonaws.ec2.synthetic#DescribeSpotInstanceRequestsInput$SpotInstanceRequestIds",
  247    247   
        "com.amazonaws.ec2.synthetic",
  248    248   
        "DescribeSpotInstanceRequestsInput",
  249    249   
    ),
  250    250   
    ::aws_smithy_schema::ShapeType::List,
  251         -
    "spot_instance_request_ids",
         251  +
    "SpotInstanceRequestIds",
  252    252   
    3,
  253    253   
)
  254    254   
.with_xml_name("SpotInstanceRequestId");
  255    255   
static DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  256    256   
    ::aws_smithy_schema::ShapeId::from_static(
  257    257   
        "com.amazonaws.ec2.synthetic#DescribeSpotInstanceRequestsInput$Filters",
  258    258   
        "com.amazonaws.ec2.synthetic",
  259    259   
        "DescribeSpotInstanceRequestsInput",
  260    260   
    ),
  261    261   
    ::aws_smithy_schema::ShapeType::List,
  262         -
    "filters",
         262  +
    "Filters",
  263    263   
    4,
  264    264   
)
  265    265   
.with_xml_name("Filter");
  266    266   
static DESCRIBESPOTINSTANCEREQUESTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  267    267   
    DESCRIBESPOTINSTANCEREQUESTSINPUT_SCHEMA_ID,
  268    268   
    ::aws_smithy_schema::ShapeType::Structure,
  269    269   
    &[
  270    270   
        &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_NEXT_TOKEN,
  271    271   
        &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_MAX_RESULTS,
  272    272   
        &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_DRY_RUN,
  273    273   
        &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_SPOT_INSTANCE_REQUEST_IDS,
  274    274   
        &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_FILTERS,
  275    275   
    ],
  276    276   
);
  277    277   
impl DescribeSpotInstanceRequestsInput {
  278    278   
    /// The schema for this shape.
  279    279   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBESPOTINSTANCEREQUESTSINPUT_SCHEMA;
  280    280   
}
  281    281   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeSpotInstanceRequestsInput {
  282    282   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  283    283   
    fn serialize_members(
  284    284   
        &self,
  285    285   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  286    286   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  287    287   
        if let Some(ref val) = self.next_token {
  288    288   
            ser.write_string(&DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_NEXT_TOKEN, val)?;
  289    289   
        }
  290    290   
        if let Some(ref val) = self.max_results {
  291    291   
            ser.write_integer(&DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_MAX_RESULTS, *val)?;
  292    292   
        }
  293    293   
        if let Some(ref val) = self.dry_run {
  294    294   
            ser.write_boolean(&DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_DRY_RUN, *val)?;
  295    295   
        }
  296    296   
        if let Some(ref val) = self.spot_instance_request_ids {
  297    297   
            ser.write_list(
  298    298   
                &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_SPOT_INSTANCE_REQUEST_IDS,
  299    299   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  300    300   
                    for item in val {
  301    301   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  302    302   
                    }
  303    303   
                    Ok(())
  304    304   
                },
  305    305   
            )?;
  306    306   
        }
  307    307   
        if let Some(ref val) = self.filters {
  308    308   
            ser.write_list(
  309    309   
                &DESCRIBESPOTINSTANCEREQUESTSINPUT_MEMBER_FILTERS,
  310    310   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  311    311   
                    for item in val {
  312    312   
                        ser.write_struct(crate::types::Filter::SCHEMA, item)?;
  313    313   
                    }
  314    314   
                    Ok(())
  315    315   
                },
  316    316   
            )?;
  317    317   
        }
  318    318   
        Ok(())
  319    319   
    }
  320    320   
}
  321    321   
impl DescribeSpotInstanceRequestsInput {
  322    322   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  323         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  324         -
        deserializer: &mut D,
         323  +
    pub fn deserialize(
         324  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  325    325   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  326    326   
        #[allow(unused_variables, unused_mut)]
  327    327   
        let mut builder = Self::builder();
  328    328   
        #[allow(
  329    329   
            unused_variables,
  330    330   
            unreachable_code,
  331    331   
            clippy::single_match,
  332    332   
            clippy::match_single_binding,
  333    333   
            clippy::diverging_sub_expression
  334    334   
        )]
  335         -
        deserializer.read_struct(&DESCRIBESPOTINSTANCEREQUESTSINPUT_SCHEMA, (), |_, member, deser| {
         335  +
        deserializer.read_struct(&DESCRIBESPOTINSTANCEREQUESTSINPUT_SCHEMA, &mut |member, deser| {
  336    336   
            match member.member_index() {
  337    337   
                Some(0) => {
  338    338   
                    builder.next_token = Some(deser.read_string(member)?);
  339    339   
                }
  340    340   
                Some(1) => {
  341    341   
                    builder.max_results = Some(deser.read_integer(member)?);
  342    342   
                }
  343    343   
                Some(2) => {
  344    344   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  345    345   
                }
  346    346   
                Some(3) => {
  347         -
                    builder.spot_instance_request_ids = Some({
  348         -
                        let container = if let Some(cap) = deser.container_size() {
  349         -
                            Vec::with_capacity(cap)
  350         -
                        } else {
  351         -
                            Vec::new()
  352         -
                        };
  353         -
                        deser.read_list(member, container, |mut list, deser| {
  354         -
                            list.push(deser.read_string(member)?);
  355         -
                            Ok(list)
  356         -
                        })?
  357         -
                    });
         347  +
                    builder.spot_instance_request_ids = Some(deser.read_string_list(member)?);
  358    348   
                }
  359    349   
                Some(4) => {
  360    350   
                    builder.filters = Some({
  361         -
                        let container = if let Some(cap) = deser.container_size() {
  362         -
                            Vec::with_capacity(cap)
  363         -
                        } else {
  364         -
                            Vec::new()
  365         -
                        };
  366         -
                        deser.read_list(member, container, |mut list, deser| {
  367         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  368         -
                            Ok(list)
  369         -
                        })?
         351  +
                        let mut container = Vec::new();
         352  +
                        deser.read_list(member, &mut |deser| {
         353  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         354  +
                            Ok(())
         355  +
                        })?;
         356  +
                        container
  370    357   
                    });
  371    358   
                }
  372    359   
                _ => {}
  373    360   
            }
  374    361   
            Ok(())
  375    362   
        })?;
  376    363   
        builder
  377    364   
            .build()
  378    365   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  379    366   
    }
  380    367   
}
         368  +
impl DescribeSpotInstanceRequestsInput {
         369  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         370  +
    pub fn deserialize_with_response(
         371  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         372  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         373  +
        _status: u16,
         374  +
        _body: &[u8],
         375  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         376  +
        Self::deserialize(deserializer)
         377  +
    }
         378  +
}
  381    379   
impl DescribeSpotInstanceRequestsInput {
  382    380   
    /// Creates a new builder-style object to manufacture [`DescribeSpotInstanceRequestsInput`](crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsInput).
  383    381   
    pub fn builder() -> crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder {
  384    382   
        crate::operation::describe_spot_instance_requests::builders::DescribeSpotInstanceRequestsInputBuilder::default()
  385    383   
    }
  386    384   
}
  387    385   
  388    386   
/// A builder for [`DescribeSpotInstanceRequestsInput`](crate::operation::describe_spot_instance_requests::DescribeSpotInstanceRequestsInput).
  389    387   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  390    388   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_spot_price_history.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 `DescribeSpotPriceHistory`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeSpotPriceHistory;
    6      6   
impl DescribeSpotPriceHistory {
    7      7   
    /// Creates a new `DescribeSpotPriceHistory`
    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::describe_spot_price_history::DescribeSpotPriceHistoryInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryOutput::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::describe_spot_price_history::DescribeSpotPriceHistoryInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +180,187 @@
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DescribeSpotPriceHistoryResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeSpotPriceHistoryResponseDeserializer {
  148    154   
    fn deserialize_nonstreaming(
  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_describe_spot_price_history::de_describe_spot_price_history_http_error(status, headers, body)
  160    167   
        } else {

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

@@ -90,90 +248,248 @@
  110    110   
    "com.amazonaws.ec2.synthetic",
  111    111   
    "DescribeSpotPriceHistoryInput",
  112    112   
);
  113    113   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_AVAILABILITY_ZONE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  114    114   
    ::aws_smithy_schema::ShapeId::from_static(
  115    115   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$AvailabilityZoneId",
  116    116   
        "com.amazonaws.ec2.synthetic",
  117    117   
        "DescribeSpotPriceHistoryInput",
  118    118   
    ),
  119    119   
    ::aws_smithy_schema::ShapeType::String,
  120         -
    "availability_zone_id",
         120  +
    "AvailabilityZoneId",
  121    121   
    0,
  122    122   
);
  123    123   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  124    124   
    ::aws_smithy_schema::ShapeId::from_static(
  125    125   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$DryRun",
  126    126   
        "com.amazonaws.ec2.synthetic",
  127    127   
        "DescribeSpotPriceHistoryInput",
  128    128   
    ),
  129    129   
    ::aws_smithy_schema::ShapeType::Boolean,
  130         -
    "dry_run",
         130  +
    "DryRun",
  131    131   
    1,
  132    132   
)
  133    133   
.with_xml_name("dryRun");
  134    134   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_START_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  135    135   
    ::aws_smithy_schema::ShapeId::from_static(
  136    136   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$StartTime",
  137    137   
        "com.amazonaws.ec2.synthetic",
  138    138   
        "DescribeSpotPriceHistoryInput",
  139    139   
    ),
  140    140   
    ::aws_smithy_schema::ShapeType::Timestamp,
  141         -
    "start_time",
         141  +
    "StartTime",
  142    142   
    2,
  143    143   
)
  144    144   
.with_xml_name("startTime");
  145    145   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_END_TIME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  146    146   
    ::aws_smithy_schema::ShapeId::from_static(
  147    147   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$EndTime",
  148    148   
        "com.amazonaws.ec2.synthetic",
  149    149   
        "DescribeSpotPriceHistoryInput",
  150    150   
    ),
  151    151   
    ::aws_smithy_schema::ShapeType::Timestamp,
  152         -
    "end_time",
         152  +
    "EndTime",
  153    153   
    3,
  154    154   
)
  155    155   
.with_xml_name("endTime");
  156    156   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_INSTANCE_TYPES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  157    157   
    ::aws_smithy_schema::ShapeId::from_static(
  158    158   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$InstanceTypes",
  159    159   
        "com.amazonaws.ec2.synthetic",
  160    160   
        "DescribeSpotPriceHistoryInput",
  161    161   
    ),
  162    162   
    ::aws_smithy_schema::ShapeType::List,
  163         -
    "instance_types",
         163  +
    "InstanceTypes",
  164    164   
    4,
  165    165   
)
  166    166   
.with_xml_name("InstanceType");
  167    167   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_PRODUCT_DESCRIPTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  168    168   
    ::aws_smithy_schema::ShapeId::from_static(
  169    169   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$ProductDescriptions",
  170    170   
        "com.amazonaws.ec2.synthetic",
  171    171   
        "DescribeSpotPriceHistoryInput",
  172    172   
    ),
  173    173   
    ::aws_smithy_schema::ShapeType::List,
  174         -
    "product_descriptions",
         174  +
    "ProductDescriptions",
  175    175   
    5,
  176    176   
)
  177    177   
.with_xml_name("ProductDescription");
  178    178   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  179    179   
    ::aws_smithy_schema::ShapeId::from_static(
  180    180   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$Filters",
  181    181   
        "com.amazonaws.ec2.synthetic",
  182    182   
        "DescribeSpotPriceHistoryInput",
  183    183   
    ),
  184    184   
    ::aws_smithy_schema::ShapeType::List,
  185         -
    "filters",
         185  +
    "Filters",
  186    186   
    6,
  187    187   
)
  188    188   
.with_xml_name("Filter");
  189    189   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_AVAILABILITY_ZONE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  190    190   
    ::aws_smithy_schema::ShapeId::from_static(
  191    191   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$AvailabilityZone",
  192    192   
        "com.amazonaws.ec2.synthetic",
  193    193   
        "DescribeSpotPriceHistoryInput",
  194    194   
    ),
  195    195   
    ::aws_smithy_schema::ShapeType::String,
  196         -
    "availability_zone",
         196  +
    "AvailabilityZone",
  197    197   
    7,
  198    198   
)
  199    199   
.with_xml_name("availabilityZone");
  200    200   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  201    201   
    ::aws_smithy_schema::ShapeId::from_static(
  202    202   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$MaxResults",
  203    203   
        "com.amazonaws.ec2.synthetic",
  204    204   
        "DescribeSpotPriceHistoryInput",
  205    205   
    ),
  206    206   
    ::aws_smithy_schema::ShapeType::Integer,
  207         -
    "max_results",
         207  +
    "MaxResults",
  208    208   
    8,
  209    209   
)
  210    210   
.with_xml_name("maxResults");
  211    211   
static DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  212    212   
    ::aws_smithy_schema::ShapeId::from_static(
  213    213   
        "com.amazonaws.ec2.synthetic#DescribeSpotPriceHistoryInput$NextToken",
  214    214   
        "com.amazonaws.ec2.synthetic",
  215    215   
        "DescribeSpotPriceHistoryInput",
  216    216   
    ),
  217    217   
    ::aws_smithy_schema::ShapeType::String,
  218         -
    "next_token",
         218  +
    "NextToken",
  219    219   
    9,
  220    220   
)
  221    221   
.with_xml_name("nextToken");
  222    222   
static DESCRIBESPOTPRICEHISTORYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  223    223   
    DESCRIBESPOTPRICEHISTORYINPUT_SCHEMA_ID,
  224    224   
    ::aws_smithy_schema::ShapeType::Structure,
  225    225   
    &[
  226    226   
        &DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_AVAILABILITY_ZONE_ID,
  227    227   
        &DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_DRY_RUN,
  228    228   
        &DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_START_TIME,
@@ -277,277 +419,414 @@
  297    297   
            ser.write_integer(&DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_MAX_RESULTS, *val)?;
  298    298   
        }
  299    299   
        if let Some(ref val) = self.next_token {
  300    300   
            ser.write_string(&DESCRIBESPOTPRICEHISTORYINPUT_MEMBER_NEXT_TOKEN, val)?;
  301    301   
        }
  302    302   
        Ok(())
  303    303   
    }
  304    304   
}
  305    305   
impl DescribeSpotPriceHistoryInput {
  306    306   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  307         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  308         -
        deserializer: &mut D,
         307  +
    pub fn deserialize(
         308  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  309    309   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  310    310   
        #[allow(unused_variables, unused_mut)]
  311    311   
        let mut builder = Self::builder();
  312    312   
        #[allow(
  313    313   
            unused_variables,
  314    314   
            unreachable_code,
  315    315   
            clippy::single_match,
  316    316   
            clippy::match_single_binding,
  317    317   
            clippy::diverging_sub_expression
  318    318   
        )]
  319         -
        deserializer.read_struct(&DESCRIBESPOTPRICEHISTORYINPUT_SCHEMA, (), |_, member, deser| {
         319  +
        deserializer.read_struct(&DESCRIBESPOTPRICEHISTORYINPUT_SCHEMA, &mut |member, deser| {
  320    320   
            match member.member_index() {
  321    321   
                Some(0) => {
  322    322   
                    builder.availability_zone_id = Some(deser.read_string(member)?);
  323    323   
                }
  324    324   
                Some(1) => {
  325    325   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  326    326   
                }
  327    327   
                Some(2) => {
  328    328   
                    builder.start_time = Some(deser.read_timestamp(member)?);
  329    329   
                }
  330    330   
                Some(3) => {
  331    331   
                    builder.end_time = Some(deser.read_timestamp(member)?);
  332    332   
                }
  333    333   
                Some(4) => {
  334    334   
                    builder.instance_types = Some({
  335         -
                        let container = if let Some(cap) = deser.container_size() {
  336         -
                            Vec::with_capacity(cap)
  337         -
                        } else {
  338         -
                            Vec::new()
  339         -
                        };
  340         -
                        deser.read_list(member, container, |mut list, deser| {
  341         -
                            list.push(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
  342         -
                            Ok(list)
  343         -
                        })?
         335  +
                        let mut container = Vec::new();
         336  +
                        deser.read_list(member, &mut |deser| {
         337  +
                            container.push(crate::types::InstanceType::from(deser.read_string(member)?.as_str()));
         338  +
                            Ok(())
         339  +
                        })?;
         340  +
                        container
  344    341   
                    });
  345    342   
                }
  346    343   
                Some(5) => {
  347         -
                    builder.product_descriptions = Some({
  348         -
                        let container = if let Some(cap) = deser.container_size() {
  349         -
                            Vec::with_capacity(cap)
  350         -
                        } else {
  351         -
                            Vec::new()
  352         -
                        };
  353         -
                        deser.read_list(member, container, |mut list, deser| {
  354         -
                            list.push(deser.read_string(member)?);
  355         -
                            Ok(list)
  356         -
                        })?
  357         -
                    });
         344  +
                    builder.product_descriptions = Some(deser.read_string_list(member)?);
  358    345   
                }
  359    346   
                Some(6) => {
  360    347   
                    builder.filters = Some({
  361         -
                        let container = if let Some(cap) = deser.container_size() {
  362         -
                            Vec::with_capacity(cap)
  363         -
                        } else {
  364         -
                            Vec::new()
  365         -
                        };
  366         -
                        deser.read_list(member, container, |mut list, deser| {
  367         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  368         -
                            Ok(list)
  369         -
                        })?
         348  +
                        let mut container = Vec::new();
         349  +
                        deser.read_list(member, &mut |deser| {
         350  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         351  +
                            Ok(())
         352  +
                        })?;
         353  +
                        container
  370    354   
                    });
  371    355   
                }
  372    356   
                Some(7) => {
  373    357   
                    builder.availability_zone = Some(deser.read_string(member)?);
  374    358   
                }
  375    359   
                Some(8) => {
  376    360   
                    builder.max_results = Some(deser.read_integer(member)?);
  377    361   
                }
  378    362   
                Some(9) => {
  379    363   
                    builder.next_token = Some(deser.read_string(member)?);
  380    364   
                }
  381    365   
                _ => {}
  382    366   
            }
  383    367   
            Ok(())
  384    368   
        })?;
  385    369   
        builder
  386    370   
            .build()
  387    371   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  388    372   
    }
  389    373   
}
         374  +
impl DescribeSpotPriceHistoryInput {
         375  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         376  +
    pub fn deserialize_with_response(
         377  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         378  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         379  +
        _status: u16,
         380  +
        _body: &[u8],
         381  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         382  +
        Self::deserialize(deserializer)
         383  +
    }
         384  +
}
  390    385   
impl DescribeSpotPriceHistoryInput {
  391    386   
    /// Creates a new builder-style object to manufacture [`DescribeSpotPriceHistoryInput`](crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryInput).
  392    387   
    pub fn builder() -> crate::operation::describe_spot_price_history::builders::DescribeSpotPriceHistoryInputBuilder {
  393    388   
        crate::operation::describe_spot_price_history::builders::DescribeSpotPriceHistoryInputBuilder::default()
  394    389   
    }
  395    390   
}
  396    391   
  397    392   
/// A builder for [`DescribeSpotPriceHistoryInput`](crate::operation::describe_spot_price_history::DescribeSpotPriceHistoryInput).
  398    393   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  399    394   
#[non_exhaustive]

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_stale_security_groups.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 `DescribeStaleSecurityGroups`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeStaleSecurityGroups;
    6      6   
impl DescribeStaleSecurityGroups {
    7      7   
    /// Creates a new `DescribeStaleSecurityGroups`
    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::describe_stale_security_groups::DescribeStaleSecurityGroupsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsOutput::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::describe_stale_security_groups::DescribeStaleSecurityGroupsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_stale_security_groups::DescribeStaleSecurityGroupsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -121,127 +180,187 @@
  141    147   
        ::std::borrow::Cow::Owned(rcb)
  142    148   
    }
  143    149   
}
  144    150   
  145    151   
#[derive(Debug)]
  146    152   
struct DescribeStaleSecurityGroupsResponseDeserializer;
  147    153   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeStaleSecurityGroupsResponseDeserializer {
  148    154   
    fn deserialize_nonstreaming(
  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_describe_stale_security_groups::de_describe_stale_security_groups_http_error(status, headers, body)
  160    167   
        } else {

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/describe_store_image_tasks.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 `DescribeStoreImageTasks`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeStoreImageTasks;
    6      6   
impl DescribeStoreImageTasks {
    7      7   
    /// Creates a new `DescribeStoreImageTasks`
    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::describe_store_image_tasks::DescribeStoreImageTasksInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          15  +
        crate::operation::describe_store_image_tasks::DescribeStoreImageTasksOutput::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::describe_store_image_tasks::DescribeStoreImageTasksInput,
   14     19   
    ) -> ::std::result::Result<
   15     20   
        crate::operation::describe_store_image_tasks::DescribeStoreImageTasksOutput,
   16     21   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     22   
            crate::operation::describe_store_image_tasks::DescribeStoreImageTasksError,
   18     23   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     24   
        >,
   20     25   
    > {
@@ -121,126 +180,186 @@
  141    146   
        ::std::borrow::Cow::Owned(rcb)
  142    147   
    }
  143    148   
}
  144    149   
  145    150   
#[derive(Debug)]
  146    151   
struct DescribeStoreImageTasksResponseDeserializer;
  147    152   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeStoreImageTasksResponseDeserializer {
  148    153   
    fn deserialize_nonstreaming(
  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_describe_store_image_tasks::de_describe_store_image_tasks_http_error(status, headers, body)
  160    166   
        } else {

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

@@ -43,43 +262,260 @@
   63     63   
    "com.amazonaws.ec2.synthetic",
   64     64   
    "DescribeStoreImageTasksInput",
   65     65   
);
   66     66   
static DESCRIBESTOREIMAGETASKSINPUT_MEMBER_IMAGE_IDS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   67     67   
    ::aws_smithy_schema::ShapeId::from_static(
   68     68   
        "com.amazonaws.ec2.synthetic#DescribeStoreImageTasksInput$ImageIds",
   69     69   
        "com.amazonaws.ec2.synthetic",
   70     70   
        "DescribeStoreImageTasksInput",
   71     71   
    ),
   72     72   
    ::aws_smithy_schema::ShapeType::List,
   73         -
    "image_ids",
          73  +
    "ImageIds",
   74     74   
    0,
   75     75   
)
   76     76   
.with_xml_name("ImageId");
   77     77   
static DESCRIBESTOREIMAGETASKSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   78     78   
    ::aws_smithy_schema::ShapeId::from_static(
   79     79   
        "com.amazonaws.ec2.synthetic#DescribeStoreImageTasksInput$DryRun",
   80     80   
        "com.amazonaws.ec2.synthetic",
   81     81   
        "DescribeStoreImageTasksInput",
   82     82   
    ),
   83     83   
    ::aws_smithy_schema::ShapeType::Boolean,
   84         -
    "dry_run",
          84  +
    "DryRun",
   85     85   
    1,
   86     86   
);
   87     87   
static DESCRIBESTOREIMAGETASKSINPUT_MEMBER_FILTERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   88     88   
    ::aws_smithy_schema::ShapeId::from_static(
   89     89   
        "com.amazonaws.ec2.synthetic#DescribeStoreImageTasksInput$Filters",
   90     90   
        "com.amazonaws.ec2.synthetic",
   91     91   
        "DescribeStoreImageTasksInput",
   92     92   
    ),
   93     93   
    ::aws_smithy_schema::ShapeType::List,
   94         -
    "filters",
          94  +
    "Filters",
   95     95   
    2,
   96     96   
)
   97     97   
.with_xml_name("Filter");
   98     98   
static DESCRIBESTOREIMAGETASKSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   99     99   
    ::aws_smithy_schema::ShapeId::from_static(
  100    100   
        "com.amazonaws.ec2.synthetic#DescribeStoreImageTasksInput$NextToken",
  101    101   
        "com.amazonaws.ec2.synthetic",
  102    102   
        "DescribeStoreImageTasksInput",
  103    103   
    ),
  104    104   
    ::aws_smithy_schema::ShapeType::String,
  105         -
    "next_token",
         105  +
    "NextToken",
  106    106   
    3,
  107    107   
);
  108    108   
static DESCRIBESTOREIMAGETASKSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  109    109   
    ::aws_smithy_schema::ShapeId::from_static(
  110    110   
        "com.amazonaws.ec2.synthetic#DescribeStoreImageTasksInput$MaxResults",
  111    111   
        "com.amazonaws.ec2.synthetic",
  112    112   
        "DescribeStoreImageTasksInput",
  113    113   
    ),
  114    114   
    ::aws_smithy_schema::ShapeType::Integer,
  115         -
    "max_results",
         115  +
    "MaxResults",
  116    116   
    4,
  117    117   
);
  118    118   
static DESCRIBESTOREIMAGETASKSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  119    119   
    DESCRIBESTOREIMAGETASKSINPUT_SCHEMA_ID,
  120    120   
    ::aws_smithy_schema::ShapeType::Structure,
  121    121   
    &[
  122    122   
        &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_IMAGE_IDS,
  123    123   
        &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_DRY_RUN,
  124    124   
        &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_FILTERS,
  125    125   
        &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_NEXT_TOKEN,
  126    126   
        &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_MAX_RESULTS,
  127    127   
    ],
  128    128   
);
  129    129   
impl DescribeStoreImageTasksInput {
  130    130   
    /// The schema for this shape.
  131    131   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBESTOREIMAGETASKSINPUT_SCHEMA;
  132    132   
}
  133    133   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeStoreImageTasksInput {
  134    134   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  135    135   
    fn serialize_members(
  136    136   
        &self,
  137    137   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  138    138   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  139    139   
        if let Some(ref val) = self.image_ids {
  140    140   
            ser.write_list(
  141    141   
                &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_IMAGE_IDS,
  142    142   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  143    143   
                    for item in val {
  144    144   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
  145    145   
                    }
  146    146   
                    Ok(())
  147    147   
                },
  148    148   
            )?;
  149    149   
        }
  150    150   
        if let Some(ref val) = self.dry_run {
  151    151   
            ser.write_boolean(&DESCRIBESTOREIMAGETASKSINPUT_MEMBER_DRY_RUN, *val)?;
  152    152   
        }
  153    153   
        if let Some(ref val) = self.filters {
  154    154   
            ser.write_list(
  155    155   
                &DESCRIBESTOREIMAGETASKSINPUT_MEMBER_FILTERS,
  156    156   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  157    157   
                    for item in val {
  158    158   
                        ser.write_struct(crate::types::Filter::SCHEMA, item)?;
  159    159   
                    }
  160    160   
                    Ok(())
  161    161   
                },
  162    162   
            )?;
  163    163   
        }
  164    164   
        if let Some(ref val) = self.next_token {
  165    165   
            ser.write_string(&DESCRIBESTOREIMAGETASKSINPUT_MEMBER_NEXT_TOKEN, val)?;
  166    166   
        }
  167    167   
        if let Some(ref val) = self.max_results {
  168    168   
            ser.write_integer(&DESCRIBESTOREIMAGETASKSINPUT_MEMBER_MAX_RESULTS, *val)?;
  169    169   
        }
  170    170   
        Ok(())
  171    171   
    }
  172    172   
}
  173    173   
impl DescribeStoreImageTasksInput {
  174    174   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  175         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  176         -
        deserializer: &mut D,
         175  +
    pub fn deserialize(
         176  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  177    177   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  178    178   
        #[allow(unused_variables, unused_mut)]
  179    179   
        let mut builder = Self::builder();
  180    180   
        #[allow(
  181    181   
            unused_variables,
  182    182   
            unreachable_code,
  183    183   
            clippy::single_match,
  184    184   
            clippy::match_single_binding,
  185    185   
            clippy::diverging_sub_expression
  186    186   
        )]
  187         -
        deserializer.read_struct(&DESCRIBESTOREIMAGETASKSINPUT_SCHEMA, (), |_, member, deser| {
         187  +
        deserializer.read_struct(&DESCRIBESTOREIMAGETASKSINPUT_SCHEMA, &mut |member, deser| {
  188    188   
            match member.member_index() {
  189    189   
                Some(0) => {
  190         -
                    builder.image_ids = Some({
  191         -
                        let container = if let Some(cap) = deser.container_size() {
  192         -
                            Vec::with_capacity(cap)
  193         -
                        } else {
  194         -
                            Vec::new()
  195         -
                        };
  196         -
                        deser.read_list(member, container, |mut list, deser| {
  197         -
                            list.push(deser.read_string(member)?);
  198         -
                            Ok(list)
  199         -
                        })?
  200         -
                    });
         190  +
                    builder.image_ids = Some(deser.read_string_list(member)?);
  201    191   
                }
  202    192   
                Some(1) => {
  203    193   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  204    194   
                }
  205    195   
                Some(2) => {
  206    196   
                    builder.filters = Some({
  207         -
                        let container = if let Some(cap) = deser.container_size() {
  208         -
                            Vec::with_capacity(cap)
  209         -
                        } else {
  210         -
                            Vec::new()
  211         -
                        };
  212         -
                        deser.read_list(member, container, |mut list, deser| {
  213         -
                            list.push(crate::types::Filter::deserialize(deser)?);
  214         -
                            Ok(list)
  215         -
                        })?
         197  +
                        let mut container = Vec::new();
         198  +
                        deser.read_list(member, &mut |deser| {
         199  +
                            container.push(crate::types::Filter::deserialize(deser)?);
         200  +
                            Ok(())
         201  +
                        })?;
         202  +
                        container
  216    203   
                    });
  217    204   
                }
  218    205   
                Some(3) => {
  219    206   
                    builder.next_token = Some(deser.read_string(member)?);
  220    207   
                }
  221    208   
                Some(4) => {
  222    209   
                    builder.max_results = Some(deser.read_integer(member)?);
  223    210   
                }
  224    211   
                _ => {}
  225    212   
            }
  226    213   
            Ok(())
  227    214   
        })?;
  228    215   
        builder
  229    216   
            .build()
  230    217   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  231    218   
    }
  232    219   
}
         220  +
impl DescribeStoreImageTasksInput {
         221  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         222  +
    pub fn deserialize_with_response(
         223  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         224  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         225  +
        _status: u16,
         226  +
        _body: &[u8],
         227  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         228  +
        Self::deserialize(deserializer)
         229  +
    }
         230  +
}
  233    231   
impl DescribeStoreImageTasksInput {
  234    232   
    /// Creates a new builder-style object to manufacture [`DescribeStoreImageTasksInput`](crate::operation::describe_store_image_tasks::DescribeStoreImageTasksInput).
  235    233   
    pub fn builder() -> crate::operation::describe_store_image_tasks::builders::DescribeStoreImageTasksInputBuilder {
  236    234   
        crate::operation::describe_store_image_tasks::builders::DescribeStoreImageTasksInputBuilder::default()
  237    235   
    }
  238    236   
}
  239    237   
  240    238   
/// A builder for [`DescribeStoreImageTasksInput`](crate::operation::describe_store_image_tasks::DescribeStoreImageTasksInput).
  241    239   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  242    240   
#[non_exhaustive]