AWS SDK

AWS SDK

rev. e063993ca0ab793f44c575dbe707d50a5e3e2406

Files changed:

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

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

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

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

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

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

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

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

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

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

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

@@ -6,6 +139,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeByoipCidrsOutput",
   28     28   
);
   29     29   
static DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_BYOIP_CIDRS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeByoipCidrsOutput$ByoipCidrs",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeByoipCidrsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "byoip_cidrs",
          36  +
    "ByoipCidrs",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("byoipCidrSet");
   40     40   
static DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeByoipCidrsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeByoipCidrsOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("nextToken");
          51  +
static DESCRIBEBYOIPCIDRSOUTPUT_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 DESCRIBEBYOIPCIDRSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBEBYOIPCIDRSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54         -
    &[&DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_BYOIP_CIDRS, &DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_NEXT_TOKEN],
          61  +
    &[
          62  +
        &DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_BYOIP_CIDRS,
          63  +
        &DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBEBYOIPCIDRSOUTPUT_MEMBER__REQUEST_ID,
          65  +
    ],
   55     66   
);
   56     67   
impl DescribeByoipCidrsOutput {
   57     68   
    /// The schema for this shape.
   58     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEBYOIPCIDRSOUTPUT_SCHEMA;
   59     70   
}
   60     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeByoipCidrsOutput {
   61     72   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   62     73   
    fn serialize_members(
   63     74   
        &self,
   64     75   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   65     76   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   66     77   
        if let Some(ref val) = self.byoip_cidrs {
   67     78   
            ser.write_list(
   68     79   
                &DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_BYOIP_CIDRS,
   69     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     81   
                    for item in val {
   71     82   
                        ser.write_struct(crate::types::ByoipCidr::SCHEMA, item)?;
   72     83   
                    }
   73     84   
                    Ok(())
   74     85   
                },
   75     86   
            )?;
   76     87   
        }
   77     88   
        if let Some(ref val) = self.next_token {
   78     89   
            ser.write_string(&DESCRIBEBYOIPCIDRSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   79     90   
        }
   80     91   
        Ok(())
   81     92   
    }
   82     93   
}
   83     94   
impl DescribeByoipCidrsOutput {
   84     95   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   85         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   86         -
        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(&DESCRIBEBYOIPCIDRSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.byoip_cidrs = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::ByoipCidr::deserialize(deser)?);
         115  +
                            Ok(())
         116  +
                        })?;
         117  +
                        container
         118  +
                    });
         119  +
                }
         120  +
                Some(1) => {
         121  +
                    builder.next_token = Some(deser.read_string(member)?);
         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 DescribeByoipCidrsOutput {
         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],
   87    142   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   88    143   
        #[allow(unused_variables, unused_mut)]
   89    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  +
        }
   90    148   
        #[allow(
   91    149   
            unused_variables,
   92    150   
            unreachable_code,
   93    151   
            clippy::single_match,
   94    152   
            clippy::match_single_binding,
   95    153   
            clippy::diverging_sub_expression
   96    154   
        )]
   97         -
        deserializer.read_struct(&DESCRIBEBYOIPCIDRSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBEBYOIPCIDRSOUTPUT_SCHEMA, &mut |member, deser| {
   98    156   
            match member.member_index() {
   99    157   
                Some(0) => {
  100    158   
                    builder.byoip_cidrs = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(crate::types::ByoipCidr::deserialize(deser)?);
  108         -
                            Ok(list)
  109         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::ByoipCidr::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  110    165   
                    });
  111    166   
                }
  112    167   
                Some(1) => {
  113    168   
                    builder.next_token = Some(deser.read_string(member)?);
  114    169   
                }
  115    170   
                _ => {}
  116    171   
            }
  117    172   
            Ok(())
  118    173   
        })?;
  119    174   
        Ok(builder.build())

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

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

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

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

@@ -7,7 +143,195 @@
   27     27   
    "DescribeCapacityBlockExtensionHistoryOutput",
   28     28   
);
   29     29   
static DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_MEMBER_CAPACITY_BLOCK_EXTENSIONS: ::aws_smithy_schema::Schema =
   30     30   
    ::aws_smithy_schema::Schema::new_member(
   31     31   
        ::aws_smithy_schema::ShapeId::from_static(
   32     32   
            "com.amazonaws.ec2.synthetic#DescribeCapacityBlockExtensionHistoryOutput$CapacityBlockExtensions",
   33     33   
            "com.amazonaws.ec2.synthetic",
   34     34   
            "DescribeCapacityBlockExtensionHistoryOutput",
   35     35   
        ),
   36     36   
        ::aws_smithy_schema::ShapeType::List,
   37         -
        "capacity_block_extensions",
          37  +
        "CapacityBlockExtensions",
   38     38   
        0,
   39     39   
    )
   40     40   
    .with_xml_name("capacityBlockExtensionSet");
   41     41   
static DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_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#DescribeCapacityBlockExtensionHistoryOutput$NextToken",
   44     44   
        "com.amazonaws.ec2.synthetic",
   45     45   
        "DescribeCapacityBlockExtensionHistoryOutput",
   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 DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_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 DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     60   
    DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_SCHEMA_ID,
   54     61   
    ::aws_smithy_schema::ShapeType::Structure,
   55     62   
    &[
   56     63   
        &DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_MEMBER_CAPACITY_BLOCK_EXTENSIONS,
   57     64   
        &DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_MEMBER_NEXT_TOKEN,
          65  +
        &DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_MEMBER__REQUEST_ID,
   58     66   
    ],
   59     67   
);
   60     68   
impl DescribeCapacityBlockExtensionHistoryOutput {
   61     69   
    /// The schema for this shape.
   62     70   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_SCHEMA;
   63     71   
}
   64     72   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeCapacityBlockExtensionHistoryOutput {
   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.capacity_block_extensions {
   71     79   
            ser.write_list(
   72     80   
                &DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_MEMBER_CAPACITY_BLOCK_EXTENSIONS,
   73     81   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   74     82   
                    for item in val {
   75     83   
                        ser.write_struct(crate::types::CapacityBlockExtension::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(&DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   83     91   
        }
   84     92   
        Ok(())
   85     93   
    }
   86     94   
}
   87     95   
impl DescribeCapacityBlockExtensionHistoryOutput {
   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(&DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_SCHEMA, &mut |member, deser| {
         110  +
            match member.member_index() {
         111  +
                Some(0) => {
         112  +
                    builder.capacity_block_extensions = Some({
         113  +
                        let mut container = Vec::new();
         114  +
                        deser.read_list(member, &mut |deser| {
         115  +
                            container.push(crate::types::CapacityBlockExtension::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 DescribeCapacityBlockExtensionHistoryOutput {
         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(&DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_SCHEMA, (), |_, member, deser| {
         156  +
        deserializer.read_struct(&DESCRIBECAPACITYBLOCKEXTENSIONHISTORYOUTPUT_SCHEMA, &mut |member, deser| {
  102    157   
            match member.member_index() {
  103    158   
                Some(0) => {
  104    159   
                    builder.capacity_block_extensions = 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::CapacityBlockExtension::deserialize(deser)?);
  112         -
                            Ok(list)
  113         -
                        })?
         160  +
                        let mut container = Vec::new();
         161  +
                        deser.read_list(member, &mut |deser| {
         162  +
                            container.push(crate::types::CapacityBlockExtension::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_capacity_block_extension_offerings.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 `DescribeCapacityBlockExtensionOfferings`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeCapacityBlockExtensionOfferings;
    6      6   
impl DescribeCapacityBlockExtensionOfferings {
    7      7   
    /// Creates a new `DescribeCapacityBlockExtensionOfferings`
    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_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsOutput::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_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_capacity_block_extension_offerings::DescribeCapacityBlockExtensionOfferingsError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeCapacityBlockExtensionOfferingsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeCapacityBlockExtensionOfferingsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_describe_capacity_block_extension_offerings::de_describe_capacity_block_extension_offerings_http_error(
  166    173   
                status, headers, body,

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

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

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

@@ -7,7 +143,195 @@
   27     27   
    "DescribeCapacityBlockExtensionOfferingsOutput",
   28     28   
);
   29     29   
static DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_MEMBER_CAPACITY_BLOCK_EXTENSION_OFFERINGS: ::aws_smithy_schema::Schema =
   30     30   
    ::aws_smithy_schema::Schema::new_member(
   31     31   
        ::aws_smithy_schema::ShapeId::from_static(
   32     32   
            "com.amazonaws.ec2.synthetic#DescribeCapacityBlockExtensionOfferingsOutput$CapacityBlockExtensionOfferings",
   33     33   
            "com.amazonaws.ec2.synthetic",
   34     34   
            "DescribeCapacityBlockExtensionOfferingsOutput",
   35     35   
        ),
   36     36   
        ::aws_smithy_schema::ShapeType::List,
   37         -
        "capacity_block_extension_offerings",
          37  +
        "CapacityBlockExtensionOfferings",
   38     38   
        0,
   39     39   
    )
   40     40   
    .with_xml_name("capacityBlockExtensionOfferingSet");
   41     41   
static DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_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#DescribeCapacityBlockExtensionOfferingsOutput$NextToken",
   44     44   
        "com.amazonaws.ec2.synthetic",
   45     45   
        "DescribeCapacityBlockExtensionOfferingsOutput",
   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 DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_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 DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   53     60   
    DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_SCHEMA_ID,
   54     61   
    ::aws_smithy_schema::ShapeType::Structure,
   55     62   
    &[
   56     63   
        &DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_MEMBER_CAPACITY_BLOCK_EXTENSION_OFFERINGS,
   57     64   
        &DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN,
          65  +
        &DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_MEMBER__REQUEST_ID,
   58     66   
    ],
   59     67   
);
   60     68   
impl DescribeCapacityBlockExtensionOfferingsOutput {
   61     69   
    /// The schema for this shape.
   62     70   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_SCHEMA;
   63     71   
}
   64     72   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeCapacityBlockExtensionOfferingsOutput {
   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.capacity_block_extension_offerings {
   71     79   
            ser.write_list(
   72     80   
                &DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_MEMBER_CAPACITY_BLOCK_EXTENSION_OFFERINGS,
   73     81   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   74     82   
                    for item in val {
   75     83   
                        ser.write_struct(crate::types::CapacityBlockExtensionOffering::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(&DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   83     91   
        }
   84     92   
        Ok(())
   85     93   
    }
   86     94   
}
   87     95   
impl DescribeCapacityBlockExtensionOfferingsOutput {
   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(&DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_SCHEMA, &mut |member, deser| {
         110  +
            match member.member_index() {
         111  +
                Some(0) => {
         112  +
                    builder.capacity_block_extension_offerings = Some({
         113  +
                        let mut container = Vec::new();
         114  +
                        deser.read_list(member, &mut |deser| {
         115  +
                            container.push(crate::types::CapacityBlockExtensionOffering::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 DescribeCapacityBlockExtensionOfferingsOutput {
         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(&DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_SCHEMA, (), |_, member, deser| {
         156  +
        deserializer.read_struct(&DESCRIBECAPACITYBLOCKEXTENSIONOFFERINGSOUTPUT_SCHEMA, &mut |member, deser| {
  102    157   
            match member.member_index() {
  103    158   
                Some(0) => {
  104    159   
                    builder.capacity_block_extension_offerings = 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::CapacityBlockExtensionOffering::deserialize(deser)?);
  112         -
                            Ok(list)
  113         -
                        })?
         160  +
                        let mut container = Vec::new();
         161  +
                        deser.read_list(member, &mut |deser| {
         162  +
                            container.push(crate::types::CapacityBlockExtensionOffering::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_capacity_block_offerings.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 `DescribeCapacityBlockOfferings`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeCapacityBlockOfferings;
    6      6   
impl DescribeCapacityBlockOfferings {
    7      7   
    /// Creates a new `DescribeCapacityBlockOfferings`
    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_capacity_block_offerings::DescribeCapacityBlockOfferingsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsOutput::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_capacity_block_offerings::DescribeCapacityBlockOfferingsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +186,193 @@
  144    150   
                crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsError,
  145    151   
            >::new());
  146    152   
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct DescribeCapacityBlockOfferingsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeCapacityBlockOfferingsResponseDeserializer {
  154         -
    fn deserialize_nonstreaming(
         160  +
    fn deserialize_nonstreaming_with_config(
  155    161   
        &self,
  156    162   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         163  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  157    164   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  158    165   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  159    166   
        let headers = response.headers();
  160    167   
        let body = response.body().bytes().expect("body loaded");
  161    168   
        #[allow(unused_mut)]
  162    169   
        let mut force_error = false;
  163    170   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  164    171   
        let parse_result = if !success && status != 200 || force_error {
  165    172   
            crate::protocol_serde::shape_describe_capacity_block_offerings::de_describe_capacity_block_offerings_http_error(status, headers, body)
  166    173   
        } else {

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

@@ -51,51 +201,201 @@
   71     71   
    "com.amazonaws.ec2.synthetic",
   72     72   
    "DescribeCapacityBlockOfferingsInput",
   73     73   
);
   74     74   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$DryRun",
   77     77   
        "com.amazonaws.ec2.synthetic",
   78     78   
        "DescribeCapacityBlockOfferingsInput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::Boolean,
   81         -
    "dry_run",
          81  +
    "DryRun",
   82     82   
    0,
   83     83   
);
   84     84   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_INSTANCE_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$InstanceType",
   87     87   
        "com.amazonaws.ec2.synthetic",
   88     88   
        "DescribeCapacityBlockOfferingsInput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::String,
   91         -
    "instance_type",
          91  +
    "InstanceType",
   92     92   
    1,
   93     93   
);
   94     94   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_INSTANCE_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$InstanceCount",
   97     97   
        "com.amazonaws.ec2.synthetic",
   98     98   
        "DescribeCapacityBlockOfferingsInput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::Integer,
  101         -
    "instance_count",
         101  +
    "InstanceCount",
  102    102   
    2,
  103    103   
);
  104    104   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_START_DATE_RANGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$StartDateRange",
  107    107   
        "com.amazonaws.ec2.synthetic",
  108    108   
        "DescribeCapacityBlockOfferingsInput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::Timestamp,
  111         -
    "start_date_range",
         111  +
    "StartDateRange",
  112    112   
    3,
  113    113   
);
  114    114   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_END_DATE_RANGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  115    115   
    ::aws_smithy_schema::ShapeId::from_static(
  116    116   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$EndDateRange",
  117    117   
        "com.amazonaws.ec2.synthetic",
  118    118   
        "DescribeCapacityBlockOfferingsInput",
  119    119   
    ),
  120    120   
    ::aws_smithy_schema::ShapeType::Timestamp,
  121         -
    "end_date_range",
         121  +
    "EndDateRange",
  122    122   
    4,
  123    123   
);
  124    124   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_CAPACITY_DURATION_HOURS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  125    125   
    ::aws_smithy_schema::ShapeId::from_static(
  126    126   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$CapacityDurationHours",
  127    127   
        "com.amazonaws.ec2.synthetic",
  128    128   
        "DescribeCapacityBlockOfferingsInput",
  129    129   
    ),
  130    130   
    ::aws_smithy_schema::ShapeType::Integer,
  131         -
    "capacity_duration_hours",
         131  +
    "CapacityDurationHours",
  132    132   
    5,
  133    133   
);
  134    134   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  135    135   
    ::aws_smithy_schema::ShapeId::from_static(
  136    136   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$NextToken",
  137    137   
        "com.amazonaws.ec2.synthetic",
  138    138   
        "DescribeCapacityBlockOfferingsInput",
  139    139   
    ),
  140    140   
    ::aws_smithy_schema::ShapeType::String,
  141         -
    "next_token",
         141  +
    "NextToken",
  142    142   
    6,
  143    143   
);
  144    144   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_MAX_RESULTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  145    145   
    ::aws_smithy_schema::ShapeId::from_static(
  146    146   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$MaxResults",
  147    147   
        "com.amazonaws.ec2.synthetic",
  148    148   
        "DescribeCapacityBlockOfferingsInput",
  149    149   
    ),
  150    150   
    ::aws_smithy_schema::ShapeType::Integer,
  151         -
    "max_results",
         151  +
    "MaxResults",
  152    152   
    7,
  153    153   
);
  154    154   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_ULTRASERVER_TYPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  155    155   
    ::aws_smithy_schema::ShapeId::from_static(
  156    156   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$UltraserverType",
  157    157   
        "com.amazonaws.ec2.synthetic",
  158    158   
        "DescribeCapacityBlockOfferingsInput",
  159    159   
    ),
  160    160   
    ::aws_smithy_schema::ShapeType::String,
  161         -
    "ultraserver_type",
         161  +
    "UltraserverType",
  162    162   
    8,
  163    163   
);
  164    164   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_ULTRASERVER_COUNT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  165    165   
    ::aws_smithy_schema::ShapeId::from_static(
  166    166   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsInput$UltraserverCount",
  167    167   
        "com.amazonaws.ec2.synthetic",
  168    168   
        "DescribeCapacityBlockOfferingsInput",
  169    169   
    ),
  170    170   
    ::aws_smithy_schema::ShapeType::Integer,
  171         -
    "ultraserver_count",
         171  +
    "UltraserverCount",
  172    172   
    9,
  173    173   
);
  174    174   
static DESCRIBECAPACITYBLOCKOFFERINGSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  175    175   
    DESCRIBECAPACITYBLOCKOFFERINGSINPUT_SCHEMA_ID,
  176    176   
    ::aws_smithy_schema::ShapeType::Structure,
  177    177   
    &[
  178    178   
        &DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_DRY_RUN,
  179    179   
        &DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_INSTANCE_TYPE,
  180    180   
        &DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_INSTANCE_COUNT,
  181    181   
        &DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_START_DATE_RANGE,
@@ -205,205 +317,329 @@
  225    225   
            ser.write_string(&DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_ULTRASERVER_TYPE, val)?;
  226    226   
        }
  227    227   
        if let Some(ref val) = self.ultraserver_count {
  228    228   
            ser.write_integer(&DESCRIBECAPACITYBLOCKOFFERINGSINPUT_MEMBER_ULTRASERVER_COUNT, *val)?;
  229    229   
        }
  230    230   
        Ok(())
  231    231   
    }
  232    232   
}
  233    233   
impl DescribeCapacityBlockOfferingsInput {
  234    234   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  235         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  236         -
        deserializer: &mut D,
         235  +
    pub fn deserialize(
         236  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  237    237   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  238    238   
        #[allow(unused_variables, unused_mut)]
  239    239   
        let mut builder = Self::builder();
  240    240   
        #[allow(
  241    241   
            unused_variables,
  242    242   
            unreachable_code,
  243    243   
            clippy::single_match,
  244    244   
            clippy::match_single_binding,
  245    245   
            clippy::diverging_sub_expression
  246    246   
        )]
  247         -
        deserializer.read_struct(&DESCRIBECAPACITYBLOCKOFFERINGSINPUT_SCHEMA, (), |_, member, deser| {
         247  +
        deserializer.read_struct(&DESCRIBECAPACITYBLOCKOFFERINGSINPUT_SCHEMA, &mut |member, deser| {
  248    248   
            match member.member_index() {
  249    249   
                Some(0) => {
  250    250   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  251    251   
                }
  252    252   
                Some(1) => {
  253    253   
                    builder.instance_type = Some(deser.read_string(member)?);
  254    254   
                }
  255    255   
                Some(2) => {
  256    256   
                    builder.instance_count = Some(deser.read_integer(member)?);
  257    257   
                }
  258    258   
                Some(3) => {
  259    259   
                    builder.start_date_range = Some(deser.read_timestamp(member)?);
  260    260   
                }
  261    261   
                Some(4) => {
  262    262   
                    builder.end_date_range = Some(deser.read_timestamp(member)?);
  263    263   
                }
  264    264   
                Some(5) => {
  265    265   
                    builder.capacity_duration_hours = Some(deser.read_integer(member)?);
  266    266   
                }
  267    267   
                Some(6) => {
  268    268   
                    builder.next_token = Some(deser.read_string(member)?);
  269    269   
                }
  270    270   
                Some(7) => {
  271    271   
                    builder.max_results = Some(deser.read_integer(member)?);
  272    272   
                }
  273    273   
                Some(8) => {
  274    274   
                    builder.ultraserver_type = Some(deser.read_string(member)?);
  275    275   
                }
  276    276   
                Some(9) => {
  277    277   
                    builder.ultraserver_count = Some(deser.read_integer(member)?);
  278    278   
                }
  279    279   
                _ => {}
  280    280   
            }
  281    281   
            Ok(())
  282    282   
        })?;
         283  +
        builder.capacity_duration_hours = builder.capacity_duration_hours.or(Some(0i32));
  283    284   
        builder
  284    285   
            .build()
  285    286   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  286    287   
    }
  287    288   
}
         289  +
impl DescribeCapacityBlockOfferingsInput {
         290  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         291  +
    pub fn deserialize_with_response(
         292  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         293  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         294  +
        _status: u16,
         295  +
        _body: &[u8],
         296  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         297  +
        Self::deserialize(deserializer)
         298  +
    }
         299  +
}
  288    300   
impl DescribeCapacityBlockOfferingsInput {
  289    301   
    /// Creates a new builder-style object to manufacture [`DescribeCapacityBlockOfferingsInput`](crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsInput).
  290    302   
    pub fn builder() -> crate::operation::describe_capacity_block_offerings::builders::DescribeCapacityBlockOfferingsInputBuilder {
  291    303   
        crate::operation::describe_capacity_block_offerings::builders::DescribeCapacityBlockOfferingsInputBuilder::default()
  292    304   
    }
  293    305   
}
  294    306   
  295    307   
/// A builder for [`DescribeCapacityBlockOfferingsInput`](crate::operation::describe_capacity_block_offerings::DescribeCapacityBlockOfferingsInput).
  296    308   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  297    309   
#[non_exhaustive]

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

@@ -6,6 +142,194 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "DescribeCapacityBlockOfferingsOutput",
   28     28   
);
   29     29   
static DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER_CAPACITY_BLOCK_OFFERINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsOutput$CapacityBlockOfferings",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "DescribeCapacityBlockOfferingsOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::List,
   36         -
    "capacity_block_offerings",
          36  +
    "CapacityBlockOfferings",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("capacityBlockOfferingSet");
   40     40   
static DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#DescribeCapacityBlockOfferingsOutput$NextToken",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "DescribeCapacityBlockOfferingsOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::String,
   47         -
    "next_token",
          47  +
    "NextToken",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("nextToken");
          51  +
static DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_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 DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER_CAPACITY_BLOCK_OFFERINGS,
   56     63   
        &DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN,
          64  +
        &DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl DescribeCapacityBlockOfferingsOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeCapacityBlockOfferingsOutput {
   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.capacity_block_offerings {
   70     78   
            ser.write_list(
   71     79   
                &DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER_CAPACITY_BLOCK_OFFERINGS,
   72     80   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   73     81   
                    for item in val {
   74     82   
                        ser.write_struct(crate::types::CapacityBlockOffering::SCHEMA, item)?;
   75     83   
                    }
   76     84   
                    Ok(())
   77     85   
                },
   78     86   
            )?;
   79     87   
        }
   80     88   
        if let Some(ref val) = self.next_token {
   81     89   
            ser.write_string(&DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl DescribeCapacityBlockOfferingsOutput {
   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(&DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_SCHEMA, &mut |member, deser| {
         109  +
            match member.member_index() {
         110  +
                Some(0) => {
         111  +
                    builder.capacity_block_offerings = Some({
         112  +
                        let mut container = Vec::new();
         113  +
                        deser.read_list(member, &mut |deser| {
         114  +
                            container.push(crate::types::CapacityBlockOffering::deserialize(deser)?);
         115  +
                            Ok(())
         116  +
                        })?;
         117  +
                        container
         118  +
                    });
         119  +
                }
         120  +
                Some(1) => {
         121  +
                    builder.next_token = Some(deser.read_string(member)?);
         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 DescribeCapacityBlockOfferingsOutput {
         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(&DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_SCHEMA, (), |_, member, deser| {
         155  +
        deserializer.read_struct(&DESCRIBECAPACITYBLOCKOFFERINGSOUTPUT_SCHEMA, &mut |member, deser| {
  101    156   
            match member.member_index() {
  102    157   
                Some(0) => {
  103    158   
                    builder.capacity_block_offerings = Some({
  104         -
                        let container = if let Some(cap) = deser.container_size() {
  105         -
                            Vec::with_capacity(cap)
  106         -
                        } else {
  107         -
                            Vec::new()
  108         -
                        };
  109         -
                        deser.read_list(member, container, |mut list, deser| {
  110         -
                            list.push(crate::types::CapacityBlockOffering::deserialize(deser)?);
  111         -
                            Ok(list)
  112         -
                        })?
         159  +
                        let mut container = Vec::new();
         160  +
                        deser.read_list(member, &mut |deser| {
         161  +
                            container.push(crate::types::CapacityBlockOffering::deserialize(deser)?);
         162  +
                            Ok(())
         163  +
                        })?;
         164  +
                        container
  113    165   
                    });
  114    166   
                }
  115    167   
                Some(1) => {
  116    168   
                    builder.next_token = Some(deser.read_string(member)?);
  117    169   
                }
  118    170   
                _ => {}
  119    171   
            }
  120    172   
            Ok(())
  121    173   
        })?;
  122    174   
        Ok(builder.build())

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