AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36

Files changed:

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/untag_resource/_untag_resource_input.rs

@@ -23,23 +168,171 @@
   43     43   
    "com.amazonaws.kms.synthetic",
   44     44   
    "UntagResourceInput",
   45     45   
);
   46     46   
static UNTAGRESOURCEINPUT_MEMBER_KEY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   47     47   
    ::aws_smithy_schema::ShapeId::from_static(
   48     48   
        "com.amazonaws.kms.synthetic#UntagResourceInput$KeyId",
   49     49   
        "com.amazonaws.kms.synthetic",
   50     50   
        "UntagResourceInput",
   51     51   
    ),
   52     52   
    ::aws_smithy_schema::ShapeType::String,
   53         -
    "key_id",
          53  +
    "KeyId",
   54     54   
    0,
   55     55   
);
   56     56   
static UNTAGRESOURCEINPUT_MEMBER_TAG_KEYS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   57     57   
    ::aws_smithy_schema::ShapeId::from_static(
   58     58   
        "com.amazonaws.kms.synthetic#UntagResourceInput$TagKeys",
   59     59   
        "com.amazonaws.kms.synthetic",
   60     60   
        "UntagResourceInput",
   61     61   
    ),
   62     62   
    ::aws_smithy_schema::ShapeType::List,
   63         -
    "tag_keys",
          63  +
    "TagKeys",
   64     64   
    1,
   65     65   
);
   66     66   
static UNTAGRESOURCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     67   
    UNTAGRESOURCEINPUT_SCHEMA_ID,
   68     68   
    ::aws_smithy_schema::ShapeType::Structure,
   69     69   
    &[&UNTAGRESOURCEINPUT_MEMBER_KEY_ID, &UNTAGRESOURCEINPUT_MEMBER_TAG_KEYS],
   70     70   
);
   71     71   
impl UntagResourceInput {
   72     72   
    /// The schema for this shape.
   73     73   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UNTAGRESOURCEINPUT_SCHEMA;
   74     74   
}
   75     75   
impl ::aws_smithy_schema::serde::SerializableStruct for UntagResourceInput {
   76     76   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   77     77   
    fn serialize_members(
   78     78   
        &self,
   79     79   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   80     80   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   81     81   
        if let Some(ref val) = self.key_id {
   82     82   
            ser.write_string(&UNTAGRESOURCEINPUT_MEMBER_KEY_ID, val)?;
   83     83   
        }
   84     84   
        if let Some(ref val) = self.tag_keys {
   85     85   
            ser.write_list(
   86     86   
                &UNTAGRESOURCEINPUT_MEMBER_TAG_KEYS,
   87     87   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   88     88   
                    for item in val {
   89     89   
                        ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
   90     90   
                    }
   91     91   
                    Ok(())
   92     92   
                },
   93     93   
            )?;
   94     94   
        }
   95     95   
        Ok(())
   96     96   
    }
   97     97   
}
   98     98   
impl UntagResourceInput {
   99     99   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  100         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  101         -
        deserializer: &mut D,
         100  +
    pub fn deserialize(
         101  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  102    102   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  103    103   
        #[allow(unused_variables, unused_mut)]
  104    104   
        let mut builder = Self::builder();
  105    105   
        #[allow(
  106    106   
            unused_variables,
  107    107   
            unreachable_code,
  108    108   
            clippy::single_match,
  109    109   
            clippy::match_single_binding,
  110    110   
            clippy::diverging_sub_expression
  111    111   
        )]
  112         -
        deserializer.read_struct(&UNTAGRESOURCEINPUT_SCHEMA, (), |_, member, deser| {
         112  +
        deserializer.read_struct(&UNTAGRESOURCEINPUT_SCHEMA, &mut |member, deser| {
  113    113   
            match member.member_index() {
  114    114   
                Some(0) => {
  115    115   
                    builder.key_id = Some(deser.read_string(member)?);
  116    116   
                }
  117    117   
                Some(1) => {
  118         -
                    builder.tag_keys = Some({
  119         -
                        let container = if let Some(cap) = deser.container_size() {
  120         -
                            Vec::with_capacity(cap)
  121         -
                        } else {
  122         -
                            Vec::new()
  123         -
                        };
  124         -
                        deser.read_list(member, container, |mut list, deser| {
  125         -
                            list.push(deser.read_string(member)?);
  126         -
                            Ok(list)
  127         -
                        })?
  128         -
                    });
         118  +
                    builder.tag_keys = Some(deser.read_string_list(member)?);
  129    119   
                }
  130    120   
                _ => {}
  131    121   
            }
  132    122   
            Ok(())
  133    123   
        })?;
         124  +
        builder.key_id = builder.key_id.or(Some(String::new()));
         125  +
        builder.tag_keys = builder.tag_keys.or(Some(Vec::new()));
  134    126   
        builder
  135    127   
            .build()
  136    128   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  137    129   
    }
  138    130   
}
         131  +
impl UntagResourceInput {
         132  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         133  +
    pub fn deserialize_with_response(
         134  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         135  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         136  +
        _status: u16,
         137  +
        _body: &[u8],
         138  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         139  +
        Self::deserialize(deserializer)
         140  +
    }
         141  +
}
  139    142   
impl UntagResourceInput {
  140    143   
    /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
  141    144   
    pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceInputBuilder {
  142    145   
        crate::operation::untag_resource::builders::UntagResourceInputBuilder::default()
  143    146   
    }
  144    147   
}
  145    148   
  146    149   
/// A builder for [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
  147    150   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  148    151   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/untag_resource/_untag_resource_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct UntagResourceOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static UNTAGRESOURCEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.kms.synthetic#UntagResourceOutput",
   10     10   
    "com.amazonaws.kms.synthetic",
   11     11   
    "UntagResourceOutput",
   12     12   
);
   13         -
static UNTAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(UNTAGRESOURCEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static UNTAGRESOURCEOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static UNTAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    UNTAGRESOURCEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&UNTAGRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl UntagResourceOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UNTAGRESOURCEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for UntagResourceOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl UntagResourceOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&UNTAGRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&UNTAGRESOURCEOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl UntagResourceOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for UntagResourceOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl UntagResourceOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`UntagResourceOutput`](crate::operation::untag_resource::UntagResourceOutput).
   58     89   
    pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceOutputBuilder {
   59     90   
        crate::operation::untag_resource::builders::UntagResourceOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_alias.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 `UpdateAlias`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateAlias;
    6      6   
impl UpdateAlias {
    7      7   
    /// Creates a new `UpdateAlias`
    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::update_alias::UpdateAliasInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_alias::UpdateAliasOutput::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::update_alias::UpdateAliasInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_alias::UpdateAliasOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_alias::UpdateAliasError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +242,375 @@
  138    142   
        ::std::borrow::Cow::Owned(rcb)
  139    143   
    }
  140    144   
}
  141    145   
  142    146   
#[derive(Debug)]
  143    147   
struct UpdateAliasResponseDeserializer;
  144    148   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateAliasResponseDeserializer {
  145    149   
    fn deserialize_nonstreaming(
  146    150   
        &self,
  147    151   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         152  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  148    153   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  149    154   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  150         -
        let headers = response.headers();
  151         -
        let body = response.body().bytes().expect("body loaded");
  152    155   
        #[allow(unused_mut)]
  153    156   
        let mut force_error = false;
  154    157   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  155         -
        let parse_result = if !success && status != 200 || force_error {
  156         -
            crate::protocol_serde::shape_update_alias::de_update_alias_http_error(status, headers, body)
         158  +
        if !success && status != 200 || force_error {
         159  +
            let headers = response.headers();
         160  +
            let body = response.body().bytes().expect("body loaded");
         161  +
            #[allow(unused_mut)]
         162  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         163  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         164  +
            })?;
         165  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         166  +
            let generic = generic_builder.build();
         167  +
            let error_code = match generic.code() {
         168  +
                ::std::option::Option::Some(code) => code,
         169  +
                ::std::option::Option::None => {
         170  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         171  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::update_alias::UpdateAliasError::unhandled(generic)),
         172  +
                    ))
         173  +
                }
         174  +
            };
         175  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         176  +
            let protocol = _cfg
         177  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         178  +
                .expect("a SharedClientProtocol is required");
         179  +
            let err = match error_code {
         180  +
                "DependencyTimeoutException" => crate::operation::update_alias::UpdateAliasError::DependencyTimeoutException({
         181  +
                    let mut tmp = match protocol
         182  +
                        .deserialize_response(response, crate::types::error::DependencyTimeoutException::SCHEMA, _cfg)
         183  +
                        .and_then(|mut deser| {
         184  +
                            crate::types::error::DependencyTimeoutException::deserialize_with_response(
         185  +
                                &mut *deser,
         186  +
                                response.headers(),
         187  +
                                response.status().into(),
         188  +
                                body,
         189  +
                            )
         190  +
                        }) {
         191  +
                        ::std::result::Result::Ok(val) => val,
         192  +
                        ::std::result::Result::Err(e) => {
         193  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         194  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         195  +
                            ))
         196  +
                        }
         197  +
                    };
         198  +
                    tmp.meta = generic;
         199  +
                    if tmp.message.is_none() {
         200  +
                        tmp.message = _error_message;
         201  +
                    }
         202  +
                    tmp
         203  +
                }),
         204  +
                "KMSInternalException" => crate::operation::update_alias::UpdateAliasError::KmsInternalException({
         205  +
                    let mut tmp = match protocol
         206  +
                        .deserialize_response(response, crate::types::error::KmsInternalException::SCHEMA, _cfg)
         207  +
                        .and_then(|mut deser| {
         208  +
                            crate::types::error::KmsInternalException::deserialize_with_response(
         209  +
                                &mut *deser,
         210  +
                                response.headers(),
         211  +
                                response.status().into(),
         212  +
                                body,
         213  +
                            )
         214  +
                        }) {
         215  +
                        ::std::result::Result::Ok(val) => val,
         216  +
                        ::std::result::Result::Err(e) => {
         217  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         218  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         219  +
                            ))
         220  +
                        }
         221  +
                    };
         222  +
                    tmp.meta = generic;
         223  +
                    if tmp.message.is_none() {
         224  +
                        tmp.message = _error_message;
         225  +
                    }
         226  +
                    tmp
         227  +
                }),
         228  +
                "KMSInvalidStateException" => crate::operation::update_alias::UpdateAliasError::KmsInvalidStateException({
         229  +
                    let mut tmp = match protocol
         230  +
                        .deserialize_response(response, crate::types::error::KmsInvalidStateException::SCHEMA, _cfg)
         231  +
                        .and_then(|mut deser| {
         232  +
                            crate::types::error::KmsInvalidStateException::deserialize_with_response(
         233  +
                                &mut *deser,
         234  +
                                response.headers(),
         235  +
                                response.status().into(),
         236  +
                                body,
         237  +
                            )
         238  +
                        }) {
         239  +
                        ::std::result::Result::Ok(val) => val,
         240  +
                        ::std::result::Result::Err(e) => {
         241  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         242  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         243  +
                            ))
         244  +
                        }
         245  +
                    };
         246  +
                    tmp.meta = generic;
         247  +
                    if tmp.message.is_none() {
         248  +
                        tmp.message = _error_message;
         249  +
                    }
         250  +
                    tmp
         251  +
                }),
         252  +
                "LimitExceededException" => crate::operation::update_alias::UpdateAliasError::LimitExceededException({
         253  +
                    let mut tmp = match protocol
         254  +
                        .deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
         255  +
                        .and_then(|mut deser| {
         256  +
                            crate::types::error::LimitExceededException::deserialize_with_response(
         257  +
                                &mut *deser,
         258  +
                                response.headers(),
         259  +
                                response.status().into(),
         260  +
                                body,
         261  +
                            )
         262  +
                        }) {
         263  +
                        ::std::result::Result::Ok(val) => val,
         264  +
                        ::std::result::Result::Err(e) => {
         265  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         266  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         267  +
                            ))
         268  +
                        }
         269  +
                    };
         270  +
                    tmp.meta = generic;
         271  +
                    if tmp.message.is_none() {
         272  +
                        tmp.message = _error_message;
         273  +
                    }
         274  +
                    tmp
         275  +
                }),
         276  +
                "NotFoundException" => crate::operation::update_alias::UpdateAliasError::NotFoundException({
         277  +
                    let mut tmp = match protocol
         278  +
                        .deserialize_response(response, crate::types::error::NotFoundException::SCHEMA, _cfg)
         279  +
                        .and_then(|mut deser| {
         280  +
                            crate::types::error::NotFoundException::deserialize_with_response(
         281  +
                                &mut *deser,
         282  +
                                response.headers(),
         283  +
                                response.status().into(),
         284  +
                                body,
         285  +
                            )
         286  +
                        }) {
         287  +
                        ::std::result::Result::Ok(val) => val,
         288  +
                        ::std::result::Result::Err(e) => {
         289  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         290  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         291  +
                            ))
         292  +
                        }
         293  +
                    };
         294  +
                    tmp.meta = generic;
         295  +
                    if tmp.message.is_none() {
         296  +
                        tmp.message = _error_message;
         297  +
                    }
         298  +
                    tmp
         299  +
                }),
         300  +
                _ => crate::operation::update_alias::UpdateAliasError::generic(generic),
         301  +
            };
         302  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         303  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         304  +
            ))
  157    305   
        } else {
  158         -
            crate::protocol_serde::shape_update_alias::de_update_alias_http_response(status, headers, body)
  159         -
        };
  160         -
        crate::protocol_serde::type_erase_result(parse_result)
         306  +
            let protocol = _cfg
         307  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         308  +
                .expect("a SharedClientProtocol is required");
         309  +
            let mut deser = protocol.deserialize_response(response, UpdateAlias::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         310  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         311  +
            })?;
         312  +
            let body = response.body().bytes().expect("body loaded");
         313  +
            let output = crate::operation::update_alias::UpdateAliasOutput::deserialize_with_response(
         314  +
                &mut *deser,
         315  +
                response.headers(),
         316  +
                response.status().into(),
         317  +
                body,
         318  +
            )
         319  +
            .map_err(|e| {
         320  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         321  +
            })?;
         322  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         323  +
        }
  161    324   
    }
  162    325   
}
  163    326   
#[derive(Debug)]
  164    327   
struct UpdateAliasRequestSerializer;
  165    328   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateAliasRequestSerializer {
  166    329   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  167    330   
    fn serialize_input(
  168    331   
        &self,
  169    332   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  170    333   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  171    334   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  172    335   
        let input = input
  173    336   
            .downcast::<crate::operation::update_alias::UpdateAliasInput>()
  174    337   
            .expect("correct type");
  175         -
        let _header_serialization_settings = _cfg
  176         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  177         -
            .cloned()
  178         -
            .unwrap_or_default();
  179         -
        let mut request_builder = {
  180         -
            #[allow(clippy::uninlined_format_args)]
  181         -
            fn uri_base(
  182         -
                _input: &crate::operation::update_alias::UpdateAliasInput,
  183         -
                output: &mut ::std::string::String,
  184         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185         -
                use ::std::fmt::Write as _;
  186         -
                ::std::write!(output, "/").expect("formatting should succeed");
  187         -
                ::std::result::Result::Ok(())
  188         -
            }
  189         -
            #[allow(clippy::unnecessary_wraps)]
  190         -
            fn update_http_builder(
  191         -
                input: &crate::operation::update_alias::UpdateAliasInput,
  192         -
                builder: ::http_1x::request::Builder,
  193         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194         -
                let mut uri = ::std::string::String::new();
  195         -
                uri_base(input, &mut uri)?;
  196         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197         -
            }
  198         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  200         -
            builder = _header_serialization_settings.set_default_header(
  201         -
                builder,
  202         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  203         -
                "TrentService.UpdateAlias",
  204         -
            );
  205         -
            builder
  206         -
        };
  207         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_alias::ser_update_alias_input(&input)?);
  208         -
        if let Some(content_length) = body.content_length() {
  209         -
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211         -
        }
  212         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         338  +
        let protocol = _cfg
         339  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         340  +
            .expect("a SharedClientProtocol is required");
         341  +
        let mut request = protocol
         342  +
            .serialize_request(&input, UpdateAlias::INPUT_SCHEMA, "", _cfg)
         343  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         344  +
         345  +
        return ::std::result::Result::Ok(request);
  213    346   
    }
  214    347   
}
  215    348   
#[derive(Debug)]
  216    349   
struct UpdateAliasEndpointParamsInterceptor;
  217    350   
  218    351   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateAliasEndpointParamsInterceptor {
  219    352   
    fn name(&self) -> &'static str {
  220    353   
        "UpdateAliasEndpointParamsInterceptor"
  221    354   
    }
  222    355   

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_alias/_update_alias_input.rs

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

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_alias/_update_alias_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct UpdateAliasOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static UPDATEALIASOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.kms.synthetic#UpdateAliasOutput",
   10     10   
    "com.amazonaws.kms.synthetic",
   11     11   
    "UpdateAliasOutput",
   12     12   
);
   13         -
static UPDATEALIASOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(UPDATEALIASOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static UPDATEALIASOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static UPDATEALIASOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    UPDATEALIASOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&UPDATEALIASOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl UpdateAliasOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATEALIASOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateAliasOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl UpdateAliasOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&UPDATEALIASOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&UPDATEALIASOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl UpdateAliasOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for UpdateAliasOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl UpdateAliasOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`UpdateAliasOutput`](crate::operation::update_alias::UpdateAliasOutput).
   58     89   
    pub fn builder() -> crate::operation::update_alias::builders::UpdateAliasOutputBuilder {
   59     90   
        crate::operation::update_alias::builders::UpdateAliasOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_custom_key_store.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 `UpdateCustomKeyStore`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateCustomKeyStore;
    6      6   
impl UpdateCustomKeyStore {
    7      7   
    /// Creates a new `UpdateCustomKeyStore`
    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::update_custom_key_store::UpdateCustomKeyStoreInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_custom_key_store::UpdateCustomKeyStoreOutput::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::update_custom_key_store::UpdateCustomKeyStoreInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_custom_key_store::UpdateCustomKeyStoreOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +247,708 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct UpdateCustomKeyStoreResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateCustomKeyStoreResponseDeserializer {
  148    152   
    fn deserialize_nonstreaming(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_update_custom_key_store::de_update_custom_key_store_http_error(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "CloudHsmClusterInvalidConfigurationException" => {
         186  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterInvalidConfigurationException({
         187  +
                        let mut tmp = match protocol
         188  +
                            .deserialize_response(response, crate::types::error::CloudHsmClusterInvalidConfigurationException::SCHEMA, _cfg)
         189  +
                            .and_then(|mut deser| {
         190  +
                                crate::types::error::CloudHsmClusterInvalidConfigurationException::deserialize_with_response(
         191  +
                                    &mut *deser,
         192  +
                                    response.headers(),
         193  +
                                    response.status().into(),
         194  +
                                    body,
         195  +
                                )
         196  +
                            }) {
         197  +
                            ::std::result::Result::Ok(val) => val,
         198  +
                            ::std::result::Result::Err(e) => {
         199  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         200  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         201  +
                                ))
         202  +
                            }
         203  +
                        };
         204  +
                        tmp.meta = generic;
         205  +
                        if tmp.message.is_none() {
         206  +
                            tmp.message = _error_message;
         207  +
                        }
         208  +
                        tmp
         209  +
                    })
         210  +
                }
         211  +
                "CloudHsmClusterNotActiveException" => {
         212  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotActiveException({
         213  +
                        let mut tmp = match protocol
         214  +
                            .deserialize_response(response, crate::types::error::CloudHsmClusterNotActiveException::SCHEMA, _cfg)
         215  +
                            .and_then(|mut deser| {
         216  +
                                crate::types::error::CloudHsmClusterNotActiveException::deserialize_with_response(
         217  +
                                    &mut *deser,
         218  +
                                    response.headers(),
         219  +
                                    response.status().into(),
         220  +
                                    body,
         221  +
                                )
         222  +
                            }) {
         223  +
                            ::std::result::Result::Ok(val) => val,
         224  +
                            ::std::result::Result::Err(e) => {
         225  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         226  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         227  +
                                ))
         228  +
                            }
         229  +
                        };
         230  +
                        tmp.meta = generic;
         231  +
                        if tmp.message.is_none() {
         232  +
                            tmp.message = _error_message;
         233  +
                        }
         234  +
                        tmp
         235  +
                    })
         236  +
                }
         237  +
                "CloudHsmClusterNotFoundException" => {
         238  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotFoundException({
         239  +
                        let mut tmp = match protocol
         240  +
                            .deserialize_response(response, crate::types::error::CloudHsmClusterNotFoundException::SCHEMA, _cfg)
         241  +
                            .and_then(|mut deser| {
         242  +
                                crate::types::error::CloudHsmClusterNotFoundException::deserialize_with_response(
         243  +
                                    &mut *deser,
         244  +
                                    response.headers(),
         245  +
                                    response.status().into(),
         246  +
                                    body,
         247  +
                                )
         248  +
                            }) {
         249  +
                            ::std::result::Result::Ok(val) => val,
         250  +
                            ::std::result::Result::Err(e) => {
         251  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         252  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         253  +
                                ))
         254  +
                            }
         255  +
                        };
         256  +
                        tmp.meta = generic;
         257  +
                        if tmp.message.is_none() {
         258  +
                            tmp.message = _error_message;
         259  +
                        }
         260  +
                        tmp
         261  +
                    })
         262  +
                }
         263  +
                "CloudHsmClusterNotRelatedException" => {
         264  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CloudHsmClusterNotRelatedException({
         265  +
                        let mut tmp = match protocol
         266  +
                            .deserialize_response(response, crate::types::error::CloudHsmClusterNotRelatedException::SCHEMA, _cfg)
         267  +
                            .and_then(|mut deser| {
         268  +
                                crate::types::error::CloudHsmClusterNotRelatedException::deserialize_with_response(
         269  +
                                    &mut *deser,
         270  +
                                    response.headers(),
         271  +
                                    response.status().into(),
         272  +
                                    body,
         273  +
                                )
         274  +
                            }) {
         275  +
                            ::std::result::Result::Ok(val) => val,
         276  +
                            ::std::result::Result::Err(e) => {
         277  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         278  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         279  +
                                ))
         280  +
                            }
         281  +
                        };
         282  +
                        tmp.meta = generic;
         283  +
                        if tmp.message.is_none() {
         284  +
                            tmp.message = _error_message;
         285  +
                        }
         286  +
                        tmp
         287  +
                    })
         288  +
                }
         289  +
                "CustomKeyStoreInvalidStateException" => {
         290  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreInvalidStateException({
         291  +
                        let mut tmp = match protocol
         292  +
                            .deserialize_response(response, crate::types::error::CustomKeyStoreInvalidStateException::SCHEMA, _cfg)
         293  +
                            .and_then(|mut deser| {
         294  +
                                crate::types::error::CustomKeyStoreInvalidStateException::deserialize_with_response(
         295  +
                                    &mut *deser,
         296  +
                                    response.headers(),
         297  +
                                    response.status().into(),
         298  +
                                    body,
         299  +
                                )
         300  +
                            }) {
         301  +
                            ::std::result::Result::Ok(val) => val,
         302  +
                            ::std::result::Result::Err(e) => {
         303  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         304  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         305  +
                                ))
         306  +
                            }
         307  +
                        };
         308  +
                        tmp.meta = generic;
         309  +
                        if tmp.message.is_none() {
         310  +
                            tmp.message = _error_message;
         311  +
                        }
         312  +
                        tmp
         313  +
                    })
         314  +
                }
         315  +
                "CustomKeyStoreNameInUseException" => {
         316  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreNameInUseException({
         317  +
                        let mut tmp = match protocol
         318  +
                            .deserialize_response(response, crate::types::error::CustomKeyStoreNameInUseException::SCHEMA, _cfg)
         319  +
                            .and_then(|mut deser| {
         320  +
                                crate::types::error::CustomKeyStoreNameInUseException::deserialize_with_response(
         321  +
                                    &mut *deser,
         322  +
                                    response.headers(),
         323  +
                                    response.status().into(),
         324  +
                                    body,
         325  +
                                )
         326  +
                            }) {
         327  +
                            ::std::result::Result::Ok(val) => val,
         328  +
                            ::std::result::Result::Err(e) => {
         329  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         330  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         331  +
                                ))
         332  +
                            }
         333  +
                        };
         334  +
                        tmp.meta = generic;
         335  +
                        if tmp.message.is_none() {
         336  +
                            tmp.message = _error_message;
         337  +
                        }
         338  +
                        tmp
         339  +
                    })
         340  +
                }
         341  +
                "CustomKeyStoreNotFoundException" => {
         342  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::CustomKeyStoreNotFoundException({
         343  +
                        let mut tmp = match protocol
         344  +
                            .deserialize_response(response, crate::types::error::CustomKeyStoreNotFoundException::SCHEMA, _cfg)
         345  +
                            .and_then(|mut deser| {
         346  +
                                crate::types::error::CustomKeyStoreNotFoundException::deserialize_with_response(
         347  +
                                    &mut *deser,
         348  +
                                    response.headers(),
         349  +
                                    response.status().into(),
         350  +
                                    body,
         351  +
                                )
         352  +
                            }) {
         353  +
                            ::std::result::Result::Ok(val) => val,
         354  +
                            ::std::result::Result::Err(e) => {
         355  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         356  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         357  +
                                ))
         358  +
                            }
         359  +
                        };
         360  +
                        tmp.meta = generic;
         361  +
                        if tmp.message.is_none() {
         362  +
                            tmp.message = _error_message;
         363  +
                        }
         364  +
                        tmp
         365  +
                    })
         366  +
                }
         367  +
                "KMSInternalException" => crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::KmsInternalException({
         368  +
                    let mut tmp = match protocol
         369  +
                        .deserialize_response(response, crate::types::error::KmsInternalException::SCHEMA, _cfg)
         370  +
                        .and_then(|mut deser| {
         371  +
                            crate::types::error::KmsInternalException::deserialize_with_response(
         372  +
                                &mut *deser,
         373  +
                                response.headers(),
         374  +
                                response.status().into(),
         375  +
                                body,
         376  +
                            )
         377  +
                        }) {
         378  +
                        ::std::result::Result::Ok(val) => val,
         379  +
                        ::std::result::Result::Err(e) => {
         380  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         381  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         382  +
                            ))
         383  +
                        }
         384  +
                    };
         385  +
                    tmp.meta = generic;
         386  +
                    if tmp.message.is_none() {
         387  +
                        tmp.message = _error_message;
         388  +
                    }
         389  +
                    tmp
         390  +
                }),
         391  +
                "XksProxyIncorrectAuthenticationCredentialException" => {
         392  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyIncorrectAuthenticationCredentialException({
         393  +
                        let mut tmp = match protocol
         394  +
                            .deserialize_response(
         395  +
                                response,
         396  +
                                crate::types::error::XksProxyIncorrectAuthenticationCredentialException::SCHEMA,
         397  +
                                _cfg,
         398  +
                            )
         399  +
                            .and_then(|mut deser| {
         400  +
                                crate::types::error::XksProxyIncorrectAuthenticationCredentialException::deserialize_with_response(
         401  +
                                    &mut *deser,
         402  +
                                    response.headers(),
         403  +
                                    response.status().into(),
         404  +
                                    body,
         405  +
                                )
         406  +
                            }) {
         407  +
                            ::std::result::Result::Ok(val) => val,
         408  +
                            ::std::result::Result::Err(e) => {
         409  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         410  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         411  +
                                ))
         412  +
                            }
         413  +
                        };
         414  +
                        tmp.meta = generic;
         415  +
                        if tmp.message.is_none() {
         416  +
                            tmp.message = _error_message;
         417  +
                        }
         418  +
                        tmp
         419  +
                    })
         420  +
                }
         421  +
                "XksProxyInvalidConfigurationException" => {
         422  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyInvalidConfigurationException({
         423  +
                        let mut tmp = match protocol
         424  +
                            .deserialize_response(response, crate::types::error::XksProxyInvalidConfigurationException::SCHEMA, _cfg)
         425  +
                            .and_then(|mut deser| {
         426  +
                                crate::types::error::XksProxyInvalidConfigurationException::deserialize_with_response(
         427  +
                                    &mut *deser,
         428  +
                                    response.headers(),
         429  +
                                    response.status().into(),
         430  +
                                    body,
         431  +
                                )
         432  +
                            }) {
         433  +
                            ::std::result::Result::Ok(val) => val,
         434  +
                            ::std::result::Result::Err(e) => {
         435  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         436  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         437  +
                                ))
         438  +
                            }
         439  +
                        };
         440  +
                        tmp.meta = generic;
         441  +
                        if tmp.message.is_none() {
         442  +
                            tmp.message = _error_message;
         443  +
                        }
         444  +
                        tmp
         445  +
                    })
         446  +
                }
         447  +
                "XksProxyInvalidResponseException" => {
         448  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyInvalidResponseException({
         449  +
                        let mut tmp = match protocol
         450  +
                            .deserialize_response(response, crate::types::error::XksProxyInvalidResponseException::SCHEMA, _cfg)
         451  +
                            .and_then(|mut deser| {
         452  +
                                crate::types::error::XksProxyInvalidResponseException::deserialize_with_response(
         453  +
                                    &mut *deser,
         454  +
                                    response.headers(),
         455  +
                                    response.status().into(),
         456  +
                                    body,
         457  +
                                )
         458  +
                            }) {
         459  +
                            ::std::result::Result::Ok(val) => val,
         460  +
                            ::std::result::Result::Err(e) => {
         461  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         462  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         463  +
                                ))
         464  +
                            }
         465  +
                        };
         466  +
                        tmp.meta = generic;
         467  +
                        if tmp.message.is_none() {
         468  +
                            tmp.message = _error_message;
         469  +
                        }
         470  +
                        tmp
         471  +
                    })
         472  +
                }
         473  +
                "XksProxyUriEndpointInUseException" => {
         474  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriEndpointInUseException({
         475  +
                        let mut tmp = match protocol
         476  +
                            .deserialize_response(response, crate::types::error::XksProxyUriEndpointInUseException::SCHEMA, _cfg)
         477  +
                            .and_then(|mut deser| {
         478  +
                                crate::types::error::XksProxyUriEndpointInUseException::deserialize_with_response(
         479  +
                                    &mut *deser,
         480  +
                                    response.headers(),
         481  +
                                    response.status().into(),
         482  +
                                    body,
         483  +
                                )
         484  +
                            }) {
         485  +
                            ::std::result::Result::Ok(val) => val,
         486  +
                            ::std::result::Result::Err(e) => {
         487  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         488  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         489  +
                                ))
         490  +
                            }
         491  +
                        };
         492  +
                        tmp.meta = generic;
         493  +
                        if tmp.message.is_none() {
         494  +
                            tmp.message = _error_message;
         495  +
                        }
         496  +
                        tmp
         497  +
                    })
         498  +
                }
         499  +
                "XksProxyUriInUseException" => crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriInUseException({
         500  +
                    let mut tmp = match protocol
         501  +
                        .deserialize_response(response, crate::types::error::XksProxyUriInUseException::SCHEMA, _cfg)
         502  +
                        .and_then(|mut deser| {
         503  +
                            crate::types::error::XksProxyUriInUseException::deserialize_with_response(
         504  +
                                &mut *deser,
         505  +
                                response.headers(),
         506  +
                                response.status().into(),
         507  +
                                body,
         508  +
                            )
         509  +
                        }) {
         510  +
                        ::std::result::Result::Ok(val) => val,
         511  +
                        ::std::result::Result::Err(e) => {
         512  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         513  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         514  +
                            ))
         515  +
                        }
         516  +
                    };
         517  +
                    tmp.meta = generic;
         518  +
                    if tmp.message.is_none() {
         519  +
                        tmp.message = _error_message;
         520  +
                    }
         521  +
                    tmp
         522  +
                }),
         523  +
                "XksProxyUriUnreachableException" => {
         524  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyUriUnreachableException({
         525  +
                        let mut tmp = match protocol
         526  +
                            .deserialize_response(response, crate::types::error::XksProxyUriUnreachableException::SCHEMA, _cfg)
         527  +
                            .and_then(|mut deser| {
         528  +
                                crate::types::error::XksProxyUriUnreachableException::deserialize_with_response(
         529  +
                                    &mut *deser,
         530  +
                                    response.headers(),
         531  +
                                    response.status().into(),
         532  +
                                    body,
         533  +
                                )
         534  +
                            }) {
         535  +
                            ::std::result::Result::Ok(val) => val,
         536  +
                            ::std::result::Result::Err(e) => {
         537  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         538  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         539  +
                                ))
         540  +
                            }
         541  +
                        };
         542  +
                        tmp.meta = generic;
         543  +
                        if tmp.message.is_none() {
         544  +
                            tmp.message = _error_message;
         545  +
                        }
         546  +
                        tmp
         547  +
                    })
         548  +
                }
         549  +
                "XksProxyVpcEndpointServiceInUseException" => {
         550  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceInUseException({
         551  +
                        let mut tmp = match protocol
         552  +
                            .deserialize_response(response, crate::types::error::XksProxyVpcEndpointServiceInUseException::SCHEMA, _cfg)
         553  +
                            .and_then(|mut deser| {
         554  +
                                crate::types::error::XksProxyVpcEndpointServiceInUseException::deserialize_with_response(
         555  +
                                    &mut *deser,
         556  +
                                    response.headers(),
         557  +
                                    response.status().into(),
         558  +
                                    body,
         559  +
                                )
         560  +
                            }) {
         561  +
                            ::std::result::Result::Ok(val) => val,
         562  +
                            ::std::result::Result::Err(e) => {
         563  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         564  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         565  +
                                ))
         566  +
                            }
         567  +
                        };
         568  +
                        tmp.meta = generic;
         569  +
                        if tmp.message.is_none() {
         570  +
                            tmp.message = _error_message;
         571  +
                        }
         572  +
                        tmp
         573  +
                    })
         574  +
                }
         575  +
                "XksProxyVpcEndpointServiceInvalidConfigurationException" => {
         576  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceInvalidConfigurationException({
         577  +
                        let mut tmp = match protocol
         578  +
                            .deserialize_response(
         579  +
                                response,
         580  +
                                crate::types::error::XksProxyVpcEndpointServiceInvalidConfigurationException::SCHEMA,
         581  +
                                _cfg,
         582  +
                            )
         583  +
                            .and_then(|mut deser| {
         584  +
                                crate::types::error::XksProxyVpcEndpointServiceInvalidConfigurationException::deserialize_with_response(
         585  +
                                    &mut *deser,
         586  +
                                    response.headers(),
         587  +
                                    response.status().into(),
         588  +
                                    body,
         589  +
                                )
         590  +
                            }) {
         591  +
                            ::std::result::Result::Ok(val) => val,
         592  +
                            ::std::result::Result::Err(e) => {
         593  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         594  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         595  +
                                ))
         596  +
                            }
         597  +
                        };
         598  +
                        tmp.meta = generic;
         599  +
                        if tmp.message.is_none() {
         600  +
                            tmp.message = _error_message;
         601  +
                        }
         602  +
                        tmp
         603  +
                    })
         604  +
                }
         605  +
                "XksProxyVpcEndpointServiceNotFoundException" => {
         606  +
                    crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::XksProxyVpcEndpointServiceNotFoundException({
         607  +
                        let mut tmp = match protocol
         608  +
                            .deserialize_response(response, crate::types::error::XksProxyVpcEndpointServiceNotFoundException::SCHEMA, _cfg)
         609  +
                            .and_then(|mut deser| {
         610  +
                                crate::types::error::XksProxyVpcEndpointServiceNotFoundException::deserialize_with_response(
         611  +
                                    &mut *deser,
         612  +
                                    response.headers(),
         613  +
                                    response.status().into(),
         614  +
                                    body,
         615  +
                                )
         616  +
                            }) {
         617  +
                            ::std::result::Result::Ok(val) => val,
         618  +
                            ::std::result::Result::Err(e) => {
         619  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         620  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         621  +
                                ))
         622  +
                            }
         623  +
                        };
         624  +
                        tmp.meta = generic;
         625  +
                        if tmp.message.is_none() {
         626  +
                            tmp.message = _error_message;
         627  +
                        }
         628  +
                        tmp
         629  +
                    })
         630  +
                }
         631  +
                _ => crate::operation::update_custom_key_store::UpdateCustomKeyStoreError::generic(generic),
         632  +
            };
         633  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         634  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         635  +
            ))
  160    636   
        } else {
  161         -
            crate::protocol_serde::shape_update_custom_key_store::de_update_custom_key_store_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         637  +
            let protocol = _cfg
         638  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         639  +
                .expect("a SharedClientProtocol is required");
         640  +
            let mut deser = protocol
         641  +
                .deserialize_response(response, UpdateCustomKeyStore::OUTPUT_SCHEMA, _cfg)
         642  +
                .map_err(|e| {
         643  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         644  +
                })?;
         645  +
            let body = response.body().bytes().expect("body loaded");
         646  +
            let output = crate::operation::update_custom_key_store::UpdateCustomKeyStoreOutput::deserialize_with_response(
         647  +
                &mut *deser,
         648  +
                response.headers(),
         649  +
                response.status().into(),
         650  +
                body,
         651  +
            )
         652  +
            .map_err(|e| {
         653  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         654  +
            })?;
         655  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         656  +
        }
  164    657   
    }
  165    658   
}
  166    659   
#[derive(Debug)]
  167    660   
struct UpdateCustomKeyStoreRequestSerializer;
  168    661   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateCustomKeyStoreRequestSerializer {
  169    662   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    663   
    fn serialize_input(
  171    664   
        &self,
  172    665   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    666   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    667   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    668   
        let input = input
  176    669   
            .downcast::<crate::operation::update_custom_key_store::UpdateCustomKeyStoreInput>()
  177    670   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::update_custom_key_store::UpdateCustomKeyStoreInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::update_custom_key_store::UpdateCustomKeyStoreInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "TrentService.UpdateCustomKeyStore",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_custom_key_store::ser_update_custom_key_store_input(
  211         -
            &input,
  212         -
        )?);
  213         -
        if let Some(content_length) = body.content_length() {
  214         -
            let content_length = content_length.to_string();
  215         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  216         -
        }
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         671  +
        let protocol = _cfg
         672  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         673  +
            .expect("a SharedClientProtocol is required");
         674  +
        let mut request = protocol
         675  +
            .serialize_request(&input, UpdateCustomKeyStore::INPUT_SCHEMA, "", _cfg)
         676  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         677  +
         678  +
        return ::std::result::Result::Ok(request);
  218    679   
    }
  219    680   
}
  220    681   
#[derive(Debug)]
  221    682   
struct UpdateCustomKeyStoreEndpointParamsInterceptor;
  222    683   
  223    684   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateCustomKeyStoreEndpointParamsInterceptor {
  224    685   
    fn name(&self) -> &'static str {
  225    686   
        "UpdateCustomKeyStoreEndpointParamsInterceptor"
  226    687   
    }
  227    688   

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_custom_key_store/_update_custom_key_store_input.rs

@@ -102,102 +351,363 @@
  122    122   
    "com.amazonaws.kms.synthetic",
  123    123   
    "UpdateCustomKeyStoreInput",
  124    124   
);
  125    125   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_CUSTOM_KEY_STORE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  126    126   
    ::aws_smithy_schema::ShapeId::from_static(
  127    127   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$CustomKeyStoreId",
  128    128   
        "com.amazonaws.kms.synthetic",
  129    129   
        "UpdateCustomKeyStoreInput",
  130    130   
    ),
  131    131   
    ::aws_smithy_schema::ShapeType::String,
  132         -
    "custom_key_store_id",
         132  +
    "CustomKeyStoreId",
  133    133   
    0,
  134    134   
);
  135    135   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_NEW_CUSTOM_KEY_STORE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  136    136   
    ::aws_smithy_schema::ShapeId::from_static(
  137    137   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$NewCustomKeyStoreName",
  138    138   
        "com.amazonaws.kms.synthetic",
  139    139   
        "UpdateCustomKeyStoreInput",
  140    140   
    ),
  141    141   
    ::aws_smithy_schema::ShapeType::String,
  142         -
    "new_custom_key_store_name",
         142  +
    "NewCustomKeyStoreName",
  143    143   
    1,
  144    144   
);
  145    145   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_KEY_STORE_PASSWORD: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  146    146   
    ::aws_smithy_schema::ShapeId::from_static(
  147    147   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$KeyStorePassword",
  148    148   
        "com.amazonaws.kms.synthetic",
  149    149   
        "UpdateCustomKeyStoreInput",
  150    150   
    ),
  151    151   
    ::aws_smithy_schema::ShapeType::String,
  152         -
    "key_store_password",
         152  +
    "KeyStorePassword",
  153    153   
    2,
  154    154   
);
  155    155   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_CLOUD_HSM_CLUSTER_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  156    156   
    ::aws_smithy_schema::ShapeId::from_static(
  157    157   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$CloudHsmClusterId",
  158    158   
        "com.amazonaws.kms.synthetic",
  159    159   
        "UpdateCustomKeyStoreInput",
  160    160   
    ),
  161    161   
    ::aws_smithy_schema::ShapeType::String,
  162         -
    "cloud_hsm_cluster_id",
         162  +
    "CloudHsmClusterId",
  163    163   
    3,
  164    164   
);
  165    165   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_URI_ENDPOINT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  166    166   
    ::aws_smithy_schema::ShapeId::from_static(
  167    167   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$XksProxyUriEndpoint",
  168    168   
        "com.amazonaws.kms.synthetic",
  169    169   
        "UpdateCustomKeyStoreInput",
  170    170   
    ),
  171    171   
    ::aws_smithy_schema::ShapeType::String,
  172         -
    "xks_proxy_uri_endpoint",
         172  +
    "XksProxyUriEndpoint",
  173    173   
    4,
  174    174   
);
  175    175   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_URI_PATH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  176    176   
    ::aws_smithy_schema::ShapeId::from_static(
  177    177   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$XksProxyUriPath",
  178    178   
        "com.amazonaws.kms.synthetic",
  179    179   
        "UpdateCustomKeyStoreInput",
  180    180   
    ),
  181    181   
    ::aws_smithy_schema::ShapeType::String,
  182         -
    "xks_proxy_uri_path",
         182  +
    "XksProxyUriPath",
  183    183   
    5,
  184    184   
);
  185    185   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  186    186   
    ::aws_smithy_schema::ShapeId::from_static(
  187    187   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$XksProxyVpcEndpointServiceName",
  188    188   
        "com.amazonaws.kms.synthetic",
  189    189   
        "UpdateCustomKeyStoreInput",
  190    190   
    ),
  191    191   
    ::aws_smithy_schema::ShapeType::String,
  192         -
    "xks_proxy_vpc_endpoint_service_name",
         192  +
    "XksProxyVpcEndpointServiceName",
  193    193   
    6,
  194    194   
);
  195    195   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_AUTHENTICATION_CREDENTIAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  196    196   
    ::aws_smithy_schema::ShapeId::from_static(
  197    197   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$XksProxyAuthenticationCredential",
  198    198   
        "com.amazonaws.kms.synthetic",
  199    199   
        "UpdateCustomKeyStoreInput",
  200    200   
    ),
  201    201   
    ::aws_smithy_schema::ShapeType::Structure,
  202         -
    "xks_proxy_authentication_credential",
         202  +
    "XksProxyAuthenticationCredential",
  203    203   
    7,
  204    204   
);
  205    205   
static UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_CONNECTIVITY: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  206    206   
    ::aws_smithy_schema::ShapeId::from_static(
  207    207   
        "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreInput$XksProxyConnectivity",
  208    208   
        "com.amazonaws.kms.synthetic",
  209    209   
        "UpdateCustomKeyStoreInput",
  210    210   
    ),
  211    211   
    ::aws_smithy_schema::ShapeType::String,
  212         -
    "xks_proxy_connectivity",
         212  +
    "XksProxyConnectivity",
  213    213   
    8,
  214    214   
);
  215    215   
static UPDATECUSTOMKEYSTOREINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  216    216   
    UPDATECUSTOMKEYSTOREINPUT_SCHEMA_ID,
  217    217   
    ::aws_smithy_schema::ShapeType::Structure,
  218    218   
    &[
  219    219   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_CUSTOM_KEY_STORE_ID,
  220    220   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_NEW_CUSTOM_KEY_STORE_NAME,
  221    221   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_KEY_STORE_PASSWORD,
  222    222   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_CLOUD_HSM_CLUSTER_ID,
  223    223   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_URI_ENDPOINT,
  224    224   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_URI_PATH,
  225    225   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME,
  226    226   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_AUTHENTICATION_CREDENTIAL,
  227    227   
        &UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_CONNECTIVITY,
  228    228   
    ],
  229    229   
);
  230    230   
impl UpdateCustomKeyStoreInput {
  231    231   
    /// The schema for this shape.
  232    232   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATECUSTOMKEYSTOREINPUT_SCHEMA;
  233    233   
}
  234    234   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateCustomKeyStoreInput {
  235    235   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  236    236   
    fn serialize_members(
  237    237   
        &self,
  238    238   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  239    239   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  240    240   
        if let Some(ref val) = self.custom_key_store_id {
  241    241   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_CUSTOM_KEY_STORE_ID, val)?;
  242    242   
        }
  243    243   
        if let Some(ref val) = self.new_custom_key_store_name {
  244    244   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_NEW_CUSTOM_KEY_STORE_NAME, val)?;
  245    245   
        }
  246    246   
        if let Some(ref val) = self.key_store_password {
  247    247   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_KEY_STORE_PASSWORD, val)?;
  248    248   
        }
  249    249   
        if let Some(ref val) = self.cloud_hsm_cluster_id {
  250    250   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_CLOUD_HSM_CLUSTER_ID, val)?;
  251    251   
        }
  252    252   
        if let Some(ref val) = self.xks_proxy_uri_endpoint {
  253    253   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_URI_ENDPOINT, val)?;
  254    254   
        }
  255    255   
        if let Some(ref val) = self.xks_proxy_uri_path {
  256    256   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_URI_PATH, val)?;
  257    257   
        }
  258    258   
        if let Some(ref val) = self.xks_proxy_vpc_endpoint_service_name {
  259    259   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_VPC_ENDPOINT_SERVICE_NAME, val)?;
  260    260   
        }
  261    261   
        if let Some(ref val) = self.xks_proxy_authentication_credential {
  262    262   
            ser.write_struct(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_AUTHENTICATION_CREDENTIAL, val)?;
  263    263   
        }
  264    264   
        if let Some(ref val) = self.xks_proxy_connectivity {
  265    265   
            ser.write_string(&UPDATECUSTOMKEYSTOREINPUT_MEMBER_XKS_PROXY_CONNECTIVITY, val.as_str())?;
  266    266   
        }
  267    267   
        Ok(())
  268    268   
    }
  269    269   
}
  270    270   
impl UpdateCustomKeyStoreInput {
  271    271   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  272         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  273         -
        deserializer: &mut D,
         272  +
    pub fn deserialize(
         273  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  274    274   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  275    275   
        #[allow(unused_variables, unused_mut)]
  276    276   
        let mut builder = Self::builder();
  277    277   
        #[allow(
  278    278   
            unused_variables,
  279    279   
            unreachable_code,
  280    280   
            clippy::single_match,
  281    281   
            clippy::match_single_binding,
  282    282   
            clippy::diverging_sub_expression
  283    283   
        )]
  284         -
        deserializer.read_struct(&UPDATECUSTOMKEYSTOREINPUT_SCHEMA, (), |_, member, deser| {
         284  +
        deserializer.read_struct(&UPDATECUSTOMKEYSTOREINPUT_SCHEMA, &mut |member, deser| {
  285    285   
            match member.member_index() {
  286    286   
                Some(0) => {
  287    287   
                    builder.custom_key_store_id = Some(deser.read_string(member)?);
  288    288   
                }
  289    289   
                Some(1) => {
  290    290   
                    builder.new_custom_key_store_name = Some(deser.read_string(member)?);
  291    291   
                }
  292    292   
                Some(2) => {
  293    293   
                    builder.key_store_password = Some(deser.read_string(member)?);
  294    294   
                }
  295    295   
                Some(3) => {
  296    296   
                    builder.cloud_hsm_cluster_id = Some(deser.read_string(member)?);
  297    297   
                }
  298    298   
                Some(4) => {
  299    299   
                    builder.xks_proxy_uri_endpoint = Some(deser.read_string(member)?);
  300    300   
                }
  301    301   
                Some(5) => {
  302    302   
                    builder.xks_proxy_uri_path = Some(deser.read_string(member)?);
  303    303   
                }
  304    304   
                Some(6) => {
  305    305   
                    builder.xks_proxy_vpc_endpoint_service_name = Some(deser.read_string(member)?);
  306    306   
                }
  307    307   
                Some(7) => {
  308    308   
                    builder.xks_proxy_authentication_credential = Some(crate::types::XksProxyAuthenticationCredentialType::deserialize(deser)?);
  309    309   
                }
  310    310   
                Some(8) => {
  311    311   
                    builder.xks_proxy_connectivity = Some(crate::types::XksProxyConnectivityType::from(deser.read_string(member)?.as_str()));
  312    312   
                }
  313    313   
                _ => {}
  314    314   
            }
  315    315   
            Ok(())
  316    316   
        })?;
         317  +
        builder.custom_key_store_id = builder.custom_key_store_id.or(Some(String::new()));
  317    318   
        builder
  318    319   
            .build()
  319    320   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  320    321   
    }
  321    322   
}
         323  +
impl UpdateCustomKeyStoreInput {
         324  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         325  +
    pub fn deserialize_with_response(
         326  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         327  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         328  +
        _status: u16,
         329  +
        _body: &[u8],
         330  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         331  +
        Self::deserialize(deserializer)
         332  +
    }
         333  +
}
  322    334   
impl UpdateCustomKeyStoreInput {
  323    335   
    /// Creates a new builder-style object to manufacture [`UpdateCustomKeyStoreInput`](crate::operation::update_custom_key_store::UpdateCustomKeyStoreInput).
  324    336   
    pub fn builder() -> crate::operation::update_custom_key_store::builders::UpdateCustomKeyStoreInputBuilder {
  325    337   
        crate::operation::update_custom_key_store::builders::UpdateCustomKeyStoreInputBuilder::default()
  326    338   
    }
  327    339   
}
  328    340   
  329    341   
/// A builder for [`UpdateCustomKeyStoreInput`](crate::operation::update_custom_key_store::UpdateCustomKeyStoreInput).
  330    342   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  331    343   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_custom_key_store/_update_custom_key_store_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct UpdateCustomKeyStoreOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.kms.synthetic#UpdateCustomKeyStoreOutput",
   10     10   
    "com.amazonaws.kms.synthetic",
   11     11   
    "UpdateCustomKeyStoreOutput",
   12     12   
);
   13         -
static UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static UPDATECUSTOMKEYSTOREOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
          14  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
          15  +
    ::aws_smithy_schema::ShapeType::String,
          16  +
    "request_id",
          17  +
    0,
          18  +
)
          19  +
.with_http_header("x-amzn-requestid");
          20  +
static UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&UPDATECUSTOMKEYSTOREOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl UpdateCustomKeyStoreOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for UpdateCustomKeyStoreOutput {
   20     30   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   21     31   
    fn serialize_members(
   22     32   
        &self,
   23     33   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   24     34   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   25     35   
        Ok(())
   26     36   
    }
   27     37   
}
   28     38   
impl UpdateCustomKeyStoreOutput {
   29     39   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   30         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   31         -
        deserializer: &mut D,
          40  +
    pub fn deserialize(
          41  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   32     42   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   33     43   
        #[allow(unused_variables, unused_mut)]
   34     44   
        let mut builder = Self::builder();
   35     45   
        #[allow(
   36     46   
            unused_variables,
   37     47   
            unreachable_code,
   38     48   
            clippy::single_match,
   39     49   
            clippy::match_single_binding,
   40     50   
            clippy::diverging_sub_expression
   41     51   
        )]
   42         -
        deserializer.read_struct(&UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&UPDATECUSTOMKEYSTOREOUTPUT_SCHEMA, &mut |member, deser| {
   43     53   
            match member.member_index() {
          54  +
                Some(0) => {
          55  +
                    builder._request_id = Some(deser.read_string(member)?);
          56  +
                }
   44     57   
                _ => {}
   45     58   
            }
   46     59   
            Ok(())
   47     60   
        })?;
   48     61   
        Ok(builder.build())
   49     62   
    }
   50     63   
}
          64  +
impl UpdateCustomKeyStoreOutput {
          65  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          66  +
    /// Header-bound members are read directly from headers, avoiding runtime
          67  +
    /// member iteration overhead. Body members are read via the deserializer.
          68  +
    pub fn deserialize_with_response(
          69  +
        _deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          70  +
        headers: &::aws_smithy_runtime_api::http::Headers,
          71  +
        _status: u16,
          72  +
        _body: &[u8],
          73  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          74  +
        #[allow(unused_variables, unused_mut)]
          75  +
        let mut builder = Self::builder();
          76  +
        if let Some(val) = headers.get("x-amzn-requestid") {
          77  +
            builder._request_id = Some(val.to_string());
          78  +
        }
          79  +
        Ok(builder.build())
          80  +
    }
          81  +
}
   51     82   
impl ::aws_types::request_id::RequestId for UpdateCustomKeyStoreOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl UpdateCustomKeyStoreOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`UpdateCustomKeyStoreOutput`](crate::operation::update_custom_key_store::UpdateCustomKeyStoreOutput).
   58     89   
    pub fn builder() -> crate::operation::update_custom_key_store::builders::UpdateCustomKeyStoreOutputBuilder {
   59     90   
        crate::operation::update_custom_key_store::builders::UpdateCustomKeyStoreOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/kms/src/operation/update_key_description.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 `UpdateKeyDescription`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UpdateKeyDescription;
    6      6   
impl UpdateKeyDescription {
    7      7   
    /// Creates a new `UpdateKeyDescription`
    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::update_key_description::UpdateKeyDescriptionInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_key_description::UpdateKeyDescriptionOutput::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::update_key_description::UpdateKeyDescriptionInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::update_key_description::UpdateKeyDescriptionOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::update_key_description::UpdateKeyDescriptionError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +247,382 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct UpdateKeyDescriptionResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateKeyDescriptionResponseDeserializer {
  148    152   
    fn deserialize_nonstreaming(
  149    153   
        &self,
  150    154   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         155  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  151    156   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  152    157   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  153         -
        let headers = response.headers();
  154         -
        let body = response.body().bytes().expect("body loaded");
  155    158   
        #[allow(unused_mut)]
  156    159   
        let mut force_error = false;
  157    160   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  158         -
        let parse_result = if !success && status != 200 || force_error {
  159         -
            crate::protocol_serde::shape_update_key_description::de_update_key_description_http_error(status, headers, body)
         161  +
        if !success && status != 200 || force_error {
         162  +
            let headers = response.headers();
         163  +
            let body = response.body().bytes().expect("body loaded");
         164  +
            #[allow(unused_mut)]
         165  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         166  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         167  +
            })?;
         168  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         169  +
            let generic = generic_builder.build();
         170  +
            let error_code = match generic.code() {
         171  +
                ::std::option::Option::Some(code) => code,
         172  +
                ::std::option::Option::None => {
         173  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         174  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         175  +
                            crate::operation::update_key_description::UpdateKeyDescriptionError::unhandled(generic),
         176  +
                        ),
         177  +
                    ))
         178  +
                }
         179  +
            };
         180  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         181  +
            let protocol = _cfg
         182  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         183  +
                .expect("a SharedClientProtocol is required");
         184  +
            let err = match error_code {
         185  +
                "DependencyTimeoutException" => crate::operation::update_key_description::UpdateKeyDescriptionError::DependencyTimeoutException({
         186  +
                    let mut tmp = match protocol
         187  +
                        .deserialize_response(response, crate::types::error::DependencyTimeoutException::SCHEMA, _cfg)
         188  +
                        .and_then(|mut deser| {
         189  +
                            crate::types::error::DependencyTimeoutException::deserialize_with_response(
         190  +
                                &mut *deser,
         191  +
                                response.headers(),
         192  +
                                response.status().into(),
         193  +
                                body,
         194  +
                            )
         195  +
                        }) {
         196  +
                        ::std::result::Result::Ok(val) => val,
         197  +
                        ::std::result::Result::Err(e) => {
         198  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         199  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         200  +
                            ))
         201  +
                        }
         202  +
                    };
         203  +
                    tmp.meta = generic;
         204  +
                    if tmp.message.is_none() {
         205  +
                        tmp.message = _error_message;
         206  +
                    }
         207  +
                    tmp
         208  +
                }),
         209  +
                "InvalidArnException" => crate::operation::update_key_description::UpdateKeyDescriptionError::InvalidArnException({
         210  +
                    let mut tmp = match protocol
         211  +
                        .deserialize_response(response, crate::types::error::InvalidArnException::SCHEMA, _cfg)
         212  +
                        .and_then(|mut deser| {
         213  +
                            crate::types::error::InvalidArnException::deserialize_with_response(
         214  +
                                &mut *deser,
         215  +
                                response.headers(),
         216  +
                                response.status().into(),
         217  +
                                body,
         218  +
                            )
         219  +
                        }) {
         220  +
                        ::std::result::Result::Ok(val) => val,
         221  +
                        ::std::result::Result::Err(e) => {
         222  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         223  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         224  +
                            ))
         225  +
                        }
         226  +
                    };
         227  +
                    tmp.meta = generic;
         228  +
                    if tmp.message.is_none() {
         229  +
                        tmp.message = _error_message;
         230  +
                    }
         231  +
                    tmp
         232  +
                }),
         233  +
                "KMSInternalException" => crate::operation::update_key_description::UpdateKeyDescriptionError::KmsInternalException({
         234  +
                    let mut tmp = match protocol
         235  +
                        .deserialize_response(response, crate::types::error::KmsInternalException::SCHEMA, _cfg)
         236  +
                        .and_then(|mut deser| {
         237  +
                            crate::types::error::KmsInternalException::deserialize_with_response(
         238  +
                                &mut *deser,
         239  +
                                response.headers(),
         240  +
                                response.status().into(),
         241  +
                                body,
         242  +
                            )
         243  +
                        }) {
         244  +
                        ::std::result::Result::Ok(val) => val,
         245  +
                        ::std::result::Result::Err(e) => {
         246  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         247  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         248  +
                            ))
         249  +
                        }
         250  +
                    };
         251  +
                    tmp.meta = generic;
         252  +
                    if tmp.message.is_none() {
         253  +
                        tmp.message = _error_message;
         254  +
                    }
         255  +
                    tmp
         256  +
                }),
         257  +
                "KMSInvalidStateException" => crate::operation::update_key_description::UpdateKeyDescriptionError::KmsInvalidStateException({
         258  +
                    let mut tmp = match protocol
         259  +
                        .deserialize_response(response, crate::types::error::KmsInvalidStateException::SCHEMA, _cfg)
         260  +
                        .and_then(|mut deser| {
         261  +
                            crate::types::error::KmsInvalidStateException::deserialize_with_response(
         262  +
                                &mut *deser,
         263  +
                                response.headers(),
         264  +
                                response.status().into(),
         265  +
                                body,
         266  +
                            )
         267  +
                        }) {
         268  +
                        ::std::result::Result::Ok(val) => val,
         269  +
                        ::std::result::Result::Err(e) => {
         270  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         271  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         272  +
                            ))
         273  +
                        }
         274  +
                    };
         275  +
                    tmp.meta = generic;
         276  +
                    if tmp.message.is_none() {
         277  +
                        tmp.message = _error_message;
         278  +
                    }
         279  +
                    tmp
         280  +
                }),
         281  +
                "NotFoundException" => crate::operation::update_key_description::UpdateKeyDescriptionError::NotFoundException({
         282  +
                    let mut tmp = match protocol
         283  +
                        .deserialize_response(response, crate::types::error::NotFoundException::SCHEMA, _cfg)
         284  +
                        .and_then(|mut deser| {
         285  +
                            crate::types::error::NotFoundException::deserialize_with_response(
         286  +
                                &mut *deser,
         287  +
                                response.headers(),
         288  +
                                response.status().into(),
         289  +
                                body,
         290  +
                            )
         291  +
                        }) {
         292  +
                        ::std::result::Result::Ok(val) => val,
         293  +
                        ::std::result::Result::Err(e) => {
         294  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         295  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         296  +
                            ))
         297  +
                        }
         298  +
                    };
         299  +
                    tmp.meta = generic;
         300  +
                    if tmp.message.is_none() {
         301  +
                        tmp.message = _error_message;
         302  +
                    }
         303  +
                    tmp
         304  +
                }),
         305  +
                _ => crate::operation::update_key_description::UpdateKeyDescriptionError::generic(generic),
         306  +
            };
         307  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         308  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         309  +
            ))
  160    310   
        } else {
  161         -
            crate::protocol_serde::shape_update_key_description::de_update_key_description_http_response(status, headers, body)
  162         -
        };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         311  +
            let protocol = _cfg
         312  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         313  +
                .expect("a SharedClientProtocol is required");
         314  +
            let mut deser = protocol
         315  +
                .deserialize_response(response, UpdateKeyDescription::OUTPUT_SCHEMA, _cfg)
         316  +
                .map_err(|e| {
         317  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         318  +
                })?;
         319  +
            let body = response.body().bytes().expect("body loaded");
         320  +
            let output = crate::operation::update_key_description::UpdateKeyDescriptionOutput::deserialize_with_response(
         321  +
                &mut *deser,
         322  +
                response.headers(),
         323  +
                response.status().into(),
         324  +
                body,
         325  +
            )
         326  +
            .map_err(|e| {
         327  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         328  +
            })?;
         329  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         330  +
        }
  164    331   
    }
  165    332   
}
  166    333   
#[derive(Debug)]
  167    334   
struct UpdateKeyDescriptionRequestSerializer;
  168    335   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateKeyDescriptionRequestSerializer {
  169    336   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    337   
    fn serialize_input(
  171    338   
        &self,
  172    339   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    340   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    341   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    342   
        let input = input
  176    343   
            .downcast::<crate::operation::update_key_description::UpdateKeyDescriptionInput>()
  177    344   
            .expect("correct type");
  178         -
        let _header_serialization_settings = _cfg
  179         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  180         -
            .cloned()
  181         -
            .unwrap_or_default();
  182         -
        let mut request_builder = {
  183         -
            #[allow(clippy::uninlined_format_args)]
  184         -
            fn uri_base(
  185         -
                _input: &crate::operation::update_key_description::UpdateKeyDescriptionInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::update_key_description::UpdateKeyDescriptionInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.1");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "TrentService.UpdateKeyDescription",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_key_description::ser_update_key_description_input(
  211         -
            &input,
  212         -
        )?);
  213         -
        if let Some(content_length) = body.content_length() {
  214         -
            let content_length = content_length.to_string();
  215         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  216         -
        }
  217         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         345  +
        let protocol = _cfg
         346  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         347  +
            .expect("a SharedClientProtocol is required");
         348  +
        let mut request = protocol
         349  +
            .serialize_request(&input, UpdateKeyDescription::INPUT_SCHEMA, "", _cfg)
         350  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         351  +
         352  +
        return ::std::result::Result::Ok(request);
  218    353   
    }
  219    354   
}
  220    355   
#[derive(Debug)]
  221    356   
struct UpdateKeyDescriptionEndpointParamsInterceptor;
  222    357   
  223    358   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateKeyDescriptionEndpointParamsInterceptor {
  224    359   
    fn name(&self) -> &'static str {
  225    360   
        "UpdateKeyDescriptionEndpointParamsInterceptor"
  226    361   
    }
  227    362