AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

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

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

@@ -55,55 +215,215 @@
   75     75   
    "com.amazonaws.ec2.synthetic",
   76     76   
    "AuthorizeSecurityGroupEgressInput",
   77     77   
);
   78     78   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   79     79   
    ::aws_smithy_schema::ShapeId::from_static(
   80     80   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$TagSpecifications",
   81     81   
        "com.amazonaws.ec2.synthetic",
   82     82   
        "AuthorizeSecurityGroupEgressInput",
   83     83   
    ),
   84     84   
    ::aws_smithy_schema::ShapeType::List,
   85         -
    "tag_specifications",
          85  +
    "TagSpecifications",
   86     86   
    0,
   87     87   
)
   88     88   
.with_xml_name("TagSpecification");
   89     89   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   90     90   
    ::aws_smithy_schema::ShapeId::from_static(
   91     91   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$DryRun",
   92     92   
        "com.amazonaws.ec2.synthetic",
   93     93   
        "AuthorizeSecurityGroupEgressInput",
   94     94   
    ),
   95     95   
    ::aws_smithy_schema::ShapeType::Boolean,
   96         -
    "dry_run",
          96  +
    "DryRun",
   97     97   
    1,
   98     98   
)
   99     99   
.with_xml_name("dryRun");
  100    100   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_GROUP_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  101    101   
    ::aws_smithy_schema::ShapeId::from_static(
  102    102   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$GroupId",
  103    103   
        "com.amazonaws.ec2.synthetic",
  104    104   
        "AuthorizeSecurityGroupEgressInput",
  105    105   
    ),
  106    106   
    ::aws_smithy_schema::ShapeType::String,
  107         -
    "group_id",
         107  +
    "GroupId",
  108    108   
    2,
  109    109   
)
  110    110   
.with_xml_name("groupId");
  111    111   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_SOURCE_SECURITY_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  112    112   
    ::aws_smithy_schema::ShapeId::from_static(
  113    113   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$SourceSecurityGroupName",
  114    114   
        "com.amazonaws.ec2.synthetic",
  115    115   
        "AuthorizeSecurityGroupEgressInput",
  116    116   
    ),
  117    117   
    ::aws_smithy_schema::ShapeType::String,
  118         -
    "source_security_group_name",
         118  +
    "SourceSecurityGroupName",
  119    119   
    3,
  120    120   
)
  121    121   
.with_xml_name("sourceSecurityGroupName");
  122    122   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_SOURCE_SECURITY_GROUP_OWNER_ID: ::aws_smithy_schema::Schema =
  123    123   
    ::aws_smithy_schema::Schema::new_member(
  124    124   
        ::aws_smithy_schema::ShapeId::from_static(
  125    125   
            "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$SourceSecurityGroupOwnerId",
  126    126   
            "com.amazonaws.ec2.synthetic",
  127    127   
            "AuthorizeSecurityGroupEgressInput",
  128    128   
        ),
  129    129   
        ::aws_smithy_schema::ShapeType::String,
  130         -
        "source_security_group_owner_id",
         130  +
        "SourceSecurityGroupOwnerId",
  131    131   
        4,
  132    132   
    )
  133    133   
    .with_xml_name("sourceSecurityGroupOwnerId");
  134    134   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_IP_PROTOCOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  135    135   
    ::aws_smithy_schema::ShapeId::from_static(
  136    136   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$IpProtocol",
  137    137   
        "com.amazonaws.ec2.synthetic",
  138    138   
        "AuthorizeSecurityGroupEgressInput",
  139    139   
    ),
  140    140   
    ::aws_smithy_schema::ShapeType::String,
  141         -
    "ip_protocol",
         141  +
    "IpProtocol",
  142    142   
    5,
  143    143   
)
  144    144   
.with_xml_name("ipProtocol");
  145    145   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_FROM_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  146    146   
    ::aws_smithy_schema::ShapeId::from_static(
  147    147   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$FromPort",
  148    148   
        "com.amazonaws.ec2.synthetic",
  149    149   
        "AuthorizeSecurityGroupEgressInput",
  150    150   
    ),
  151    151   
    ::aws_smithy_schema::ShapeType::Integer,
  152         -
    "from_port",
         152  +
    "FromPort",
  153    153   
    6,
  154    154   
)
  155    155   
.with_xml_name("fromPort");
  156    156   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_TO_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  157    157   
    ::aws_smithy_schema::ShapeId::from_static(
  158    158   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$ToPort",
  159    159   
        "com.amazonaws.ec2.synthetic",
  160    160   
        "AuthorizeSecurityGroupEgressInput",
  161    161   
    ),
  162    162   
    ::aws_smithy_schema::ShapeType::Integer,
  163         -
    "to_port",
         163  +
    "ToPort",
  164    164   
    7,
  165    165   
)
  166    166   
.with_xml_name("toPort");
  167    167   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_CIDR_IP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  168    168   
    ::aws_smithy_schema::ShapeId::from_static(
  169    169   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$CidrIp",
  170    170   
        "com.amazonaws.ec2.synthetic",
  171    171   
        "AuthorizeSecurityGroupEgressInput",
  172    172   
    ),
  173    173   
    ::aws_smithy_schema::ShapeType::String,
  174         -
    "cidr_ip",
         174  +
    "CidrIp",
  175    175   
    8,
  176    176   
)
  177    177   
.with_xml_name("cidrIp");
  178    178   
static AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_IP_PERMISSIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  179    179   
    ::aws_smithy_schema::ShapeId::from_static(
  180    180   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressInput$IpPermissions",
  181    181   
        "com.amazonaws.ec2.synthetic",
  182    182   
        "AuthorizeSecurityGroupEgressInput",
  183    183   
    ),
  184    184   
    ::aws_smithy_schema::ShapeType::List,
  185         -
    "ip_permissions",
         185  +
    "IpPermissions",
  186    186   
    9,
  187    187   
)
  188    188   
.with_xml_name("ipPermissions");
  189    189   
static AUTHORIZESECURITYGROUPEGRESSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  190    190   
    AUTHORIZESECURITYGROUPEGRESSINPUT_SCHEMA_ID,
  191    191   
    ::aws_smithy_schema::ShapeType::Structure,
  192    192   
    &[
  193    193   
        &AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_TAG_SPECIFICATIONS,
  194    194   
        &AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_DRY_RUN,
  195    195   
        &AUTHORIZESECURITYGROUPEGRESSINPUT_MEMBER_GROUP_ID,
@@ -236,236 +368,374 @@
  256    256   
                    }
  257    257   
                    Ok(())
  258    258   
                },
  259    259   
            )?;
  260    260   
        }
  261    261   
        Ok(())
  262    262   
    }
  263    263   
}
  264    264   
impl AuthorizeSecurityGroupEgressInput {
  265    265   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  266         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  267         -
        deserializer: &mut D,
         266  +
    pub fn deserialize(
         267  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  268    268   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  269    269   
        #[allow(unused_variables, unused_mut)]
  270    270   
        let mut builder = Self::builder();
  271    271   
        #[allow(
  272    272   
            unused_variables,
  273    273   
            unreachable_code,
  274    274   
            clippy::single_match,
  275    275   
            clippy::match_single_binding,
  276    276   
            clippy::diverging_sub_expression
  277    277   
        )]
  278         -
        deserializer.read_struct(&AUTHORIZESECURITYGROUPEGRESSINPUT_SCHEMA, (), |_, member, deser| {
         278  +
        deserializer.read_struct(&AUTHORIZESECURITYGROUPEGRESSINPUT_SCHEMA, &mut |member, deser| {
  279    279   
            match member.member_index() {
  280    280   
                Some(0) => {
  281    281   
                    builder.tag_specifications = Some({
  282         -
                        let container = if let Some(cap) = deser.container_size() {
  283         -
                            Vec::with_capacity(cap)
  284         -
                        } else {
  285         -
                            Vec::new()
  286         -
                        };
  287         -
                        deser.read_list(member, container, |mut list, deser| {
  288         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  289         -
                            Ok(list)
  290         -
                        })?
         282  +
                        let mut container = Vec::new();
         283  +
                        deser.read_list(member, &mut |deser| {
         284  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         285  +
                            Ok(())
         286  +
                        })?;
         287  +
                        container
  291    288   
                    });
  292    289   
                }
  293    290   
                Some(1) => {
  294    291   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  295    292   
                }
  296    293   
                Some(2) => {
  297    294   
                    builder.group_id = Some(deser.read_string(member)?);
  298    295   
                }
  299    296   
                Some(3) => {
  300    297   
                    builder.source_security_group_name = Some(deser.read_string(member)?);
  301    298   
                }
  302    299   
                Some(4) => {
  303    300   
                    builder.source_security_group_owner_id = Some(deser.read_string(member)?);
  304    301   
                }
  305    302   
                Some(5) => {
  306    303   
                    builder.ip_protocol = Some(deser.read_string(member)?);
  307    304   
                }
  308    305   
                Some(6) => {
  309    306   
                    builder.from_port = Some(deser.read_integer(member)?);
  310    307   
                }
  311    308   
                Some(7) => {
  312    309   
                    builder.to_port = Some(deser.read_integer(member)?);
  313    310   
                }
  314    311   
                Some(8) => {
  315    312   
                    builder.cidr_ip = Some(deser.read_string(member)?);
  316    313   
                }
  317    314   
                Some(9) => {
  318    315   
                    builder.ip_permissions = Some({
  319         -
                        let container = if let Some(cap) = deser.container_size() {
  320         -
                            Vec::with_capacity(cap)
  321         -
                        } else {
  322         -
                            Vec::new()
  323         -
                        };
  324         -
                        deser.read_list(member, container, |mut list, deser| {
  325         -
                            list.push(crate::types::IpPermission::deserialize(deser)?);
  326         -
                            Ok(list)
  327         -
                        })?
         316  +
                        let mut container = Vec::new();
         317  +
                        deser.read_list(member, &mut |deser| {
         318  +
                            container.push(crate::types::IpPermission::deserialize(deser)?);
         319  +
                            Ok(())
         320  +
                        })?;
         321  +
                        container
  328    322   
                    });
  329    323   
                }
  330    324   
                _ => {}
  331    325   
            }
  332    326   
            Ok(())
  333    327   
        })?;
         328  +
        builder.group_id = builder.group_id.or(Some(String::new()));
  334    329   
        builder
  335    330   
            .build()
  336    331   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  337    332   
    }
  338    333   
}
         334  +
impl AuthorizeSecurityGroupEgressInput {
         335  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         336  +
    pub fn deserialize_with_response(
         337  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         338  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         339  +
        _status: u16,
         340  +
        _body: &[u8],
         341  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         342  +
        Self::deserialize(deserializer)
         343  +
    }
         344  +
}
  339    345   
impl AuthorizeSecurityGroupEgressInput {
  340    346   
    /// Creates a new builder-style object to manufacture [`AuthorizeSecurityGroupEgressInput`](crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressInput).
  341    347   
    pub fn builder() -> crate::operation::authorize_security_group_egress::builders::AuthorizeSecurityGroupEgressInputBuilder {
  342    348   
        crate::operation::authorize_security_group_egress::builders::AuthorizeSecurityGroupEgressInputBuilder::default()
  343    349   
    }
  344    350   
}
  345    351   
  346    352   
/// A builder for [`AuthorizeSecurityGroupEgressInput`](crate::operation::authorize_security_group_egress::AuthorizeSecurityGroupEgressInput).
  347    353   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  348    354   
#[non_exhaustive]

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

@@ -6,6 +145,197 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "AuthorizeSecurityGroupEgressOutput",
   28     28   
);
   29     29   
static AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER_RETURN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressOutput$Return",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "AuthorizeSecurityGroupEgressOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::Boolean,
   36         -
    "r##return",
          36  +
    "Return",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("return");
   40     40   
static AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER_SECURITY_GROUP_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupEgressOutput$SecurityGroupRules",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "AuthorizeSecurityGroupEgressOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "security_group_rules",
          47  +
    "SecurityGroupRules",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("securityGroupRuleSet");
          51  +
static AUTHORIZESECURITYGROUPEGRESSOUTPUT_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 AUTHORIZESECURITYGROUPEGRESSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    AUTHORIZESECURITYGROUPEGRESSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER_RETURN,
   56     63   
        &AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER_SECURITY_GROUP_RULES,
          64  +
        &AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl AuthorizeSecurityGroupEgressOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &AUTHORIZESECURITYGROUPEGRESSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for AuthorizeSecurityGroupEgressOutput {
   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.r#return {
   70     78   
            ser.write_boolean(&AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER_RETURN, *val)?;
   71     79   
        }
   72     80   
        if let Some(ref val) = self.security_group_rules {
   73     81   
            ser.write_list(
   74     82   
                &AUTHORIZESECURITYGROUPEGRESSOUTPUT_MEMBER_SECURITY_GROUP_RULES,
   75     83   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     84   
                    for item in val {
   77     85   
                        ser.write_struct(crate::types::SecurityGroupRule::SCHEMA, item)?;
   78     86   
                    }
   79     87   
                    Ok(())
   80     88   
                },
   81     89   
            )?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl AuthorizeSecurityGroupEgressOutput {
   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,
   90     98   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   91     99   
        #[allow(unused_variables, unused_mut)]
   92    100   
        let mut builder = Self::builder();
   93    101   
        #[allow(
   94    102   
            unused_variables,
   95    103   
            unreachable_code,
   96    104   
            clippy::single_match,
   97    105   
            clippy::match_single_binding,
   98    106   
            clippy::diverging_sub_expression
   99    107   
        )]
  100         -
        deserializer.read_struct(&AUTHORIZESECURITYGROUPEGRESSOUTPUT_SCHEMA, (), |_, member, deser| {
         108  +
        deserializer.read_struct(&AUTHORIZESECURITYGROUPEGRESSOUTPUT_SCHEMA, &mut |member, deser| {
  101    109   
            match member.member_index() {
  102    110   
                Some(0) => {
  103    111   
                    builder.r#return = Some(deser.read_boolean(member)?);
  104    112   
                }
  105    113   
                Some(1) => {
  106    114   
                    builder.security_group_rules = Some({
  107         -
                        let container = if let Some(cap) = deser.container_size() {
  108         -
                            Vec::with_capacity(cap)
  109         -
                        } else {
  110         -
                            Vec::new()
  111         -
                        };
  112         -
                        deser.read_list(member, container, |mut list, deser| {
  113         -
                            list.push(crate::types::SecurityGroupRule::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         115  +
                        let mut container = Vec::new();
         116  +
                        deser.read_list(member, &mut |deser| {
         117  +
                            container.push(crate::types::SecurityGroupRule::deserialize(deser)?);
         118  +
                            Ok(())
         119  +
                        })?;
         120  +
                        container
         121  +
                    });
         122  +
                }
         123  +
                Some(2) => {
         124  +
                    builder._request_id = Some(deser.read_string(member)?);
         125  +
                }
         126  +
                _ => {}
         127  +
            }
         128  +
            Ok(())
         129  +
        })?;
         130  +
        Ok(builder.build())
         131  +
    }
         132  +
}
         133  +
impl AuthorizeSecurityGroupEgressOutput {
         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],
         142  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         143  +
        #[allow(unused_variables, unused_mut)]
         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  +
        }
         148  +
        #[allow(
         149  +
            unused_variables,
         150  +
            unreachable_code,
         151  +
            clippy::single_match,
         152  +
            clippy::match_single_binding,
         153  +
            clippy::diverging_sub_expression
         154  +
        )]
         155  +
        deserializer.read_struct(&AUTHORIZESECURITYGROUPEGRESSOUTPUT_SCHEMA, &mut |member, deser| {
         156  +
            match member.member_index() {
         157  +
                Some(0) => {
         158  +
                    builder.r#return = Some(deser.read_boolean(member)?);
         159  +
                }
         160  +
                Some(1) => {
         161  +
                    builder.security_group_rules = Some({
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::SecurityGroupRule::deserialize(deser)?);
         165  +
                            Ok(())
         166  +
                        })?;
         167  +
                        container
  116    168   
                    });
  117    169   
                }
  118    170   
                _ => {}
  119    171   
            }
  120    172   
            Ok(())
  121    173   
        })?;
  122    174   
        Ok(builder.build())
  123    175   
    }
  124    176   
}
  125    177   
impl ::aws_types::request_id::RequestId for AuthorizeSecurityGroupEgressOutput {

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

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

@@ -83,83 +245,245 @@
  103    103   
    "com.amazonaws.ec2.synthetic",
  104    104   
    "AuthorizeSecurityGroupIngressInput",
  105    105   
);
  106    106   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_CIDR_IP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  107    107   
    ::aws_smithy_schema::ShapeId::from_static(
  108    108   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$CidrIp",
  109    109   
        "com.amazonaws.ec2.synthetic",
  110    110   
        "AuthorizeSecurityGroupIngressInput",
  111    111   
    ),
  112    112   
    ::aws_smithy_schema::ShapeType::String,
  113         -
    "cidr_ip",
         113  +
    "CidrIp",
  114    114   
    0,
  115    115   
);
  116    116   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_FROM_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  117    117   
    ::aws_smithy_schema::ShapeId::from_static(
  118    118   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$FromPort",
  119    119   
        "com.amazonaws.ec2.synthetic",
  120    120   
        "AuthorizeSecurityGroupIngressInput",
  121    121   
    ),
  122    122   
    ::aws_smithy_schema::ShapeType::Integer,
  123         -
    "from_port",
         123  +
    "FromPort",
  124    124   
    1,
  125    125   
);
  126    126   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_GROUP_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  127    127   
    ::aws_smithy_schema::ShapeId::from_static(
  128    128   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$GroupId",
  129    129   
        "com.amazonaws.ec2.synthetic",
  130    130   
        "AuthorizeSecurityGroupIngressInput",
  131    131   
    ),
  132    132   
    ::aws_smithy_schema::ShapeType::String,
  133         -
    "group_id",
         133  +
    "GroupId",
  134    134   
    2,
  135    135   
);
  136    136   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  137    137   
    ::aws_smithy_schema::ShapeId::from_static(
  138    138   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$GroupName",
  139    139   
        "com.amazonaws.ec2.synthetic",
  140    140   
        "AuthorizeSecurityGroupIngressInput",
  141    141   
    ),
  142    142   
    ::aws_smithy_schema::ShapeType::String,
  143         -
    "group_name",
         143  +
    "GroupName",
  144    144   
    3,
  145    145   
);
  146    146   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_IP_PERMISSIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  147    147   
    ::aws_smithy_schema::ShapeId::from_static(
  148    148   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$IpPermissions",
  149    149   
        "com.amazonaws.ec2.synthetic",
  150    150   
        "AuthorizeSecurityGroupIngressInput",
  151    151   
    ),
  152    152   
    ::aws_smithy_schema::ShapeType::List,
  153         -
    "ip_permissions",
         153  +
    "IpPermissions",
  154    154   
    4,
  155    155   
);
  156    156   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_IP_PROTOCOL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  157    157   
    ::aws_smithy_schema::ShapeId::from_static(
  158    158   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$IpProtocol",
  159    159   
        "com.amazonaws.ec2.synthetic",
  160    160   
        "AuthorizeSecurityGroupIngressInput",
  161    161   
    ),
  162    162   
    ::aws_smithy_schema::ShapeType::String,
  163         -
    "ip_protocol",
         163  +
    "IpProtocol",
  164    164   
    5,
  165    165   
);
  166    166   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_SOURCE_SECURITY_GROUP_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  167    167   
    ::aws_smithy_schema::ShapeId::from_static(
  168    168   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$SourceSecurityGroupName",
  169    169   
        "com.amazonaws.ec2.synthetic",
  170    170   
        "AuthorizeSecurityGroupIngressInput",
  171    171   
    ),
  172    172   
    ::aws_smithy_schema::ShapeType::String,
  173         -
    "source_security_group_name",
         173  +
    "SourceSecurityGroupName",
  174    174   
    6,
  175    175   
);
  176    176   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_SOURCE_SECURITY_GROUP_OWNER_ID: ::aws_smithy_schema::Schema =
  177    177   
    ::aws_smithy_schema::Schema::new_member(
  178    178   
        ::aws_smithy_schema::ShapeId::from_static(
  179    179   
            "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$SourceSecurityGroupOwnerId",
  180    180   
            "com.amazonaws.ec2.synthetic",
  181    181   
            "AuthorizeSecurityGroupIngressInput",
  182    182   
        ),
  183    183   
        ::aws_smithy_schema::ShapeType::String,
  184         -
        "source_security_group_owner_id",
         184  +
        "SourceSecurityGroupOwnerId",
  185    185   
        7,
  186    186   
    );
  187    187   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_TO_PORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  188    188   
    ::aws_smithy_schema::ShapeId::from_static(
  189    189   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$ToPort",
  190    190   
        "com.amazonaws.ec2.synthetic",
  191    191   
        "AuthorizeSecurityGroupIngressInput",
  192    192   
    ),
  193    193   
    ::aws_smithy_schema::ShapeType::Integer,
  194         -
    "to_port",
         194  +
    "ToPort",
  195    195   
    8,
  196    196   
);
  197    197   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_TAG_SPECIFICATIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  198    198   
    ::aws_smithy_schema::ShapeId::from_static(
  199    199   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$TagSpecifications",
  200    200   
        "com.amazonaws.ec2.synthetic",
  201    201   
        "AuthorizeSecurityGroupIngressInput",
  202    202   
    ),
  203    203   
    ::aws_smithy_schema::ShapeType::List,
  204         -
    "tag_specifications",
         204  +
    "TagSpecifications",
  205    205   
    9,
  206    206   
)
  207    207   
.with_xml_name("TagSpecification");
  208    208   
static AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  209    209   
    ::aws_smithy_schema::ShapeId::from_static(
  210    210   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressInput$DryRun",
  211    211   
        "com.amazonaws.ec2.synthetic",
  212    212   
        "AuthorizeSecurityGroupIngressInput",
  213    213   
    ),
  214    214   
    ::aws_smithy_schema::ShapeType::Boolean,
  215         -
    "dry_run",
         215  +
    "DryRun",
  216    216   
    10,
  217    217   
)
  218    218   
.with_xml_name("dryRun");
  219    219   
static AUTHORIZESECURITYGROUPINGRESSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  220    220   
    AUTHORIZESECURITYGROUPINGRESSINPUT_SCHEMA_ID,
  221    221   
    ::aws_smithy_schema::ShapeType::Structure,
  222    222   
    &[
  223    223   
        &AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_CIDR_IP,
  224    224   
        &AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_FROM_PORT,
  225    225   
        &AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_GROUP_ID,
@@ -270,270 +405,410 @@
  290    290   
            )?;
  291    291   
        }
  292    292   
        if let Some(ref val) = self.dry_run {
  293    293   
            ser.write_boolean(&AUTHORIZESECURITYGROUPINGRESSINPUT_MEMBER_DRY_RUN, *val)?;
  294    294   
        }
  295    295   
        Ok(())
  296    296   
    }
  297    297   
}
  298    298   
impl AuthorizeSecurityGroupIngressInput {
  299    299   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  300         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  301         -
        deserializer: &mut D,
         300  +
    pub fn deserialize(
         301  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  302    302   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  303    303   
        #[allow(unused_variables, unused_mut)]
  304    304   
        let mut builder = Self::builder();
  305    305   
        #[allow(
  306    306   
            unused_variables,
  307    307   
            unreachable_code,
  308    308   
            clippy::single_match,
  309    309   
            clippy::match_single_binding,
  310    310   
            clippy::diverging_sub_expression
  311    311   
        )]
  312         -
        deserializer.read_struct(&AUTHORIZESECURITYGROUPINGRESSINPUT_SCHEMA, (), |_, member, deser| {
         312  +
        deserializer.read_struct(&AUTHORIZESECURITYGROUPINGRESSINPUT_SCHEMA, &mut |member, deser| {
  313    313   
            match member.member_index() {
  314    314   
                Some(0) => {
  315    315   
                    builder.cidr_ip = Some(deser.read_string(member)?);
  316    316   
                }
  317    317   
                Some(1) => {
  318    318   
                    builder.from_port = Some(deser.read_integer(member)?);
  319    319   
                }
  320    320   
                Some(2) => {
  321    321   
                    builder.group_id = Some(deser.read_string(member)?);
  322    322   
                }
  323    323   
                Some(3) => {
  324    324   
                    builder.group_name = Some(deser.read_string(member)?);
  325    325   
                }
  326    326   
                Some(4) => {
  327    327   
                    builder.ip_permissions = Some({
  328         -
                        let container = if let Some(cap) = deser.container_size() {
  329         -
                            Vec::with_capacity(cap)
  330         -
                        } else {
  331         -
                            Vec::new()
  332         -
                        };
  333         -
                        deser.read_list(member, container, |mut list, deser| {
  334         -
                            list.push(crate::types::IpPermission::deserialize(deser)?);
  335         -
                            Ok(list)
  336         -
                        })?
         328  +
                        let mut container = Vec::new();
         329  +
                        deser.read_list(member, &mut |deser| {
         330  +
                            container.push(crate::types::IpPermission::deserialize(deser)?);
         331  +
                            Ok(())
         332  +
                        })?;
         333  +
                        container
  337    334   
                    });
  338    335   
                }
  339    336   
                Some(5) => {
  340    337   
                    builder.ip_protocol = Some(deser.read_string(member)?);
  341    338   
                }
  342    339   
                Some(6) => {
  343    340   
                    builder.source_security_group_name = Some(deser.read_string(member)?);
  344    341   
                }
  345    342   
                Some(7) => {
  346    343   
                    builder.source_security_group_owner_id = Some(deser.read_string(member)?);
  347    344   
                }
  348    345   
                Some(8) => {
  349    346   
                    builder.to_port = Some(deser.read_integer(member)?);
  350    347   
                }
  351    348   
                Some(9) => {
  352    349   
                    builder.tag_specifications = Some({
  353         -
                        let container = if let Some(cap) = deser.container_size() {
  354         -
                            Vec::with_capacity(cap)
  355         -
                        } else {
  356         -
                            Vec::new()
  357         -
                        };
  358         -
                        deser.read_list(member, container, |mut list, deser| {
  359         -
                            list.push(crate::types::TagSpecification::deserialize(deser)?);
  360         -
                            Ok(list)
  361         -
                        })?
         350  +
                        let mut container = Vec::new();
         351  +
                        deser.read_list(member, &mut |deser| {
         352  +
                            container.push(crate::types::TagSpecification::deserialize(deser)?);
         353  +
                            Ok(())
         354  +
                        })?;
         355  +
                        container
  362    356   
                    });
  363    357   
                }
  364    358   
                Some(10) => {
  365    359   
                    builder.dry_run = Some(deser.read_boolean(member)?);
  366    360   
                }
  367    361   
                _ => {}
  368    362   
            }
  369    363   
            Ok(())
  370    364   
        })?;
  371    365   
        builder
  372    366   
            .build()
  373    367   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  374    368   
    }
  375    369   
}
         370  +
impl AuthorizeSecurityGroupIngressInput {
         371  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         372  +
    pub fn deserialize_with_response(
         373  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         374  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         375  +
        _status: u16,
         376  +
        _body: &[u8],
         377  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         378  +
        Self::deserialize(deserializer)
         379  +
    }
         380  +
}
  376    381   
impl AuthorizeSecurityGroupIngressInput {
  377    382   
    /// Creates a new builder-style object to manufacture [`AuthorizeSecurityGroupIngressInput`](crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressInput).
  378    383   
    pub fn builder() -> crate::operation::authorize_security_group_ingress::builders::AuthorizeSecurityGroupIngressInputBuilder {
  379    384   
        crate::operation::authorize_security_group_ingress::builders::AuthorizeSecurityGroupIngressInputBuilder::default()
  380    385   
    }
  381    386   
}
  382    387   
  383    388   
/// A builder for [`AuthorizeSecurityGroupIngressInput`](crate::operation::authorize_security_group_ingress::AuthorizeSecurityGroupIngressInput).
  384    389   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  385    390   
#[non_exhaustive]

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

@@ -6,6 +145,197 @@
   26     26   
    "com.amazonaws.ec2.synthetic",
   27     27   
    "AuthorizeSecurityGroupIngressOutput",
   28     28   
);
   29     29   
static AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER_RETURN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   30     30   
    ::aws_smithy_schema::ShapeId::from_static(
   31     31   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressOutput$Return",
   32     32   
        "com.amazonaws.ec2.synthetic",
   33     33   
        "AuthorizeSecurityGroupIngressOutput",
   34     34   
    ),
   35     35   
    ::aws_smithy_schema::ShapeType::Boolean,
   36         -
    "r##return",
          36  +
    "Return",
   37     37   
    0,
   38     38   
)
   39     39   
.with_xml_name("return");
   40     40   
static AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER_SECURITY_GROUP_RULES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   41     41   
    ::aws_smithy_schema::ShapeId::from_static(
   42     42   
        "com.amazonaws.ec2.synthetic#AuthorizeSecurityGroupIngressOutput$SecurityGroupRules",
   43     43   
        "com.amazonaws.ec2.synthetic",
   44     44   
        "AuthorizeSecurityGroupIngressOutput",
   45     45   
    ),
   46     46   
    ::aws_smithy_schema::ShapeType::List,
   47         -
    "security_group_rules",
          47  +
    "SecurityGroupRules",
   48     48   
    1,
   49     49   
)
   50     50   
.with_xml_name("securityGroupRuleSet");
          51  +
static AUTHORIZESECURITYGROUPINGRESSOUTPUT_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 AUTHORIZESECURITYGROUPINGRESSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   52     59   
    AUTHORIZESECURITYGROUPINGRESSOUTPUT_SCHEMA_ID,
   53     60   
    ::aws_smithy_schema::ShapeType::Structure,
   54     61   
    &[
   55     62   
        &AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER_RETURN,
   56     63   
        &AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER_SECURITY_GROUP_RULES,
          64  +
        &AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER__REQUEST_ID,
   57     65   
    ],
   58     66   
);
   59     67   
impl AuthorizeSecurityGroupIngressOutput {
   60     68   
    /// The schema for this shape.
   61     69   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &AUTHORIZESECURITYGROUPINGRESSOUTPUT_SCHEMA;
   62     70   
}
   63     71   
impl ::aws_smithy_schema::serde::SerializableStruct for AuthorizeSecurityGroupIngressOutput {
   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.r#return {
   70     78   
            ser.write_boolean(&AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER_RETURN, *val)?;
   71     79   
        }
   72     80   
        if let Some(ref val) = self.security_group_rules {
   73     81   
            ser.write_list(
   74     82   
                &AUTHORIZESECURITYGROUPINGRESSOUTPUT_MEMBER_SECURITY_GROUP_RULES,
   75     83   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   76     84   
                    for item in val {
   77     85   
                        ser.write_struct(crate::types::SecurityGroupRule::SCHEMA, item)?;
   78     86   
                    }
   79     87   
                    Ok(())
   80     88   
                },
   81     89   
            )?;
   82     90   
        }
   83     91   
        Ok(())
   84     92   
    }
   85     93   
}
   86     94   
impl AuthorizeSecurityGroupIngressOutput {
   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,
   90     98   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   91     99   
        #[allow(unused_variables, unused_mut)]
   92    100   
        let mut builder = Self::builder();
   93    101   
        #[allow(
   94    102   
            unused_variables,
   95    103   
            unreachable_code,
   96    104   
            clippy::single_match,
   97    105   
            clippy::match_single_binding,
   98    106   
            clippy::diverging_sub_expression
   99    107   
        )]
  100         -
        deserializer.read_struct(&AUTHORIZESECURITYGROUPINGRESSOUTPUT_SCHEMA, (), |_, member, deser| {
         108  +
        deserializer.read_struct(&AUTHORIZESECURITYGROUPINGRESSOUTPUT_SCHEMA, &mut |member, deser| {
  101    109   
            match member.member_index() {
  102    110   
                Some(0) => {
  103    111   
                    builder.r#return = Some(deser.read_boolean(member)?);
  104    112   
                }
  105    113   
                Some(1) => {
  106    114   
                    builder.security_group_rules = Some({
  107         -
                        let container = if let Some(cap) = deser.container_size() {
  108         -
                            Vec::with_capacity(cap)
  109         -
                        } else {
  110         -
                            Vec::new()
  111         -
                        };
  112         -
                        deser.read_list(member, container, |mut list, deser| {
  113         -
                            list.push(crate::types::SecurityGroupRule::deserialize(deser)?);
  114         -
                            Ok(list)
  115         -
                        })?
         115  +
                        let mut container = Vec::new();
         116  +
                        deser.read_list(member, &mut |deser| {
         117  +
                            container.push(crate::types::SecurityGroupRule::deserialize(deser)?);
         118  +
                            Ok(())
         119  +
                        })?;
         120  +
                        container
         121  +
                    });
         122  +
                }
         123  +
                Some(2) => {
         124  +
                    builder._request_id = Some(deser.read_string(member)?);
         125  +
                }
         126  +
                _ => {}
         127  +
            }
         128  +
            Ok(())
         129  +
        })?;
         130  +
        Ok(builder.build())
         131  +
    }
         132  +
}
         133  +
impl AuthorizeSecurityGroupIngressOutput {
         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],
         142  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         143  +
        #[allow(unused_variables, unused_mut)]
         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  +
        }
         148  +
        #[allow(
         149  +
            unused_variables,
         150  +
            unreachable_code,
         151  +
            clippy::single_match,
         152  +
            clippy::match_single_binding,
         153  +
            clippy::diverging_sub_expression
         154  +
        )]
         155  +
        deserializer.read_struct(&AUTHORIZESECURITYGROUPINGRESSOUTPUT_SCHEMA, &mut |member, deser| {
         156  +
            match member.member_index() {
         157  +
                Some(0) => {
         158  +
                    builder.r#return = Some(deser.read_boolean(member)?);
         159  +
                }
         160  +
                Some(1) => {
         161  +
                    builder.security_group_rules = Some({
         162  +
                        let mut container = Vec::new();
         163  +
                        deser.read_list(member, &mut |deser| {
         164  +
                            container.push(crate::types::SecurityGroupRule::deserialize(deser)?);
         165  +
                            Ok(())
         166  +
                        })?;
         167  +
                        container
  116    168   
                    });
  117    169   
                }
  118    170   
                _ => {}
  119    171   
            }
  120    172   
            Ok(())
  121    173   
        })?;
  122    174   
        Ok(builder.build())
  123    175   
    }
  124    176   
}
  125    177   
impl ::aws_types::request_id::RequestId for AuthorizeSecurityGroupIngressOutput {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

tmp-codegen-diff/aws-sdk/sdk/ec2/src/operation/cancel_capacity_reservation_fleets.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 `CancelCapacityReservationFleets`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct CancelCapacityReservationFleets;
    6      6   
impl CancelCapacityReservationFleets {
    7      7   
    /// Creates a new `CancelCapacityReservationFleets`
    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::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsOutput::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::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::cancel_capacity_reservation_fleets::CancelCapacityReservationFleetsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -127,133 +186,193 @@
  147    153   
        ::std::borrow::Cow::Owned(rcb)
  148    154   
    }
  149    155   
}
  150    156   
  151    157   
#[derive(Debug)]
  152    158   
struct CancelCapacityReservationFleetsResponseDeserializer;
  153    159   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CancelCapacityReservationFleetsResponseDeserializer {
  154    160   
    fn deserialize_nonstreaming(
  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_cancel_capacity_reservation_fleets::de_cancel_capacity_reservation_fleets_http_error(status, headers, body)
  166    173   
        } else {