AWS SDK

AWS SDK

rev. 163d4d6410694aaf071424777ecbecd050925f36 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/delete_vault_access_policy/_delete_vault_access_policy_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 DeleteVaultAccessPolicyOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.glacier.synthetic#DeleteVaultAccessPolicyOutput",
   10     10   
    "com.amazonaws.glacier.synthetic",
   11     11   
    "DeleteVaultAccessPolicyOutput",
   12     12   
);
   13         -
static DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEVAULTACCESSPOLICYOUTPUT_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 DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEVAULTACCESSPOLICYOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteVaultAccessPolicyOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteVaultAccessPolicyOutput {
   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 DeleteVaultAccessPolicyOutput {
   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(&DELETEVAULTACCESSPOLICYOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEVAULTACCESSPOLICYOUTPUT_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 DeleteVaultAccessPolicyOutput {
          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 DeleteVaultAccessPolicyOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteVaultAccessPolicyOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteVaultAccessPolicyOutput`](crate::operation::delete_vault_access_policy::DeleteVaultAccessPolicyOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_vault_access_policy::builders::DeleteVaultAccessPolicyOutputBuilder {
   59     90   
        crate::operation::delete_vault_access_policy::builders::DeleteVaultAccessPolicyOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/delete_vault_notifications.rs

@@ -1,1 +40,46 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/// Orchestration and serialization glue logic for `DeleteVaultNotifications`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DeleteVaultNotifications;
    6      6   
impl DeleteVaultNotifications {
    7      7   
    /// Creates a new `DeleteVaultNotifications`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          13  +
        crate::operation::delete_vault_notifications::DeleteVaultNotificationsInput::SCHEMA;
          14  +
    /// The schema for this operation's output shape.
          15  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema =
          16  +
        crate::operation::delete_vault_notifications::DeleteVaultNotificationsOutput::SCHEMA;
   11     17   
    pub(crate) async fn orchestrate(
   12     18   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     19   
        input: crate::operation::delete_vault_notifications::DeleteVaultNotificationsInput,
   14     20   
    ) -> ::std::result::Result<
   15     21   
        crate::operation::delete_vault_notifications::DeleteVaultNotificationsOutput,
   16     22   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     23   
            crate::operation::delete_vault_notifications::DeleteVaultNotificationsError,
   18     24   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     25   
        >,
   20     26   
    > {
@@ -124,130 +267,404 @@
  144    150   
        ::std::borrow::Cow::Owned(rcb)
  145    151   
    }
  146    152   
}
  147    153   
  148    154   
#[derive(Debug)]
  149    155   
struct DeleteVaultNotificationsResponseDeserializer;
  150    156   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteVaultNotificationsResponseDeserializer {
  151    157   
    fn deserialize_nonstreaming(
  152    158   
        &self,
  153    159   
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         160  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
  154    161   
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
  155    162   
        let (success, status) = (response.status().is_success(), response.status().as_u16());
  156         -
        let headers = response.headers();
  157         -
        let body = response.body().bytes().expect("body loaded");
  158    163   
        #[allow(unused_mut)]
  159    164   
        let mut force_error = false;
  160    165   
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
  161         -
        let parse_result = if !success && status != 204 || force_error {
  162         -
            crate::protocol_serde::shape_delete_vault_notifications::de_delete_vault_notifications_http_error(status, headers, body)
  163         -
        } else {
  164         -
            crate::protocol_serde::shape_delete_vault_notifications::de_delete_vault_notifications_http_response(status, headers, body)
         166  +
        if !success && status != 204 || force_error {
         167  +
            let headers = response.headers();
         168  +
            let body = response.body().bytes().expect("body loaded");
         169  +
            #[allow(unused_mut)]
         170  +
            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body).map_err(|e| {
         171  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         172  +
            })?;
         173  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         174  +
            let generic = generic_builder.build();
         175  +
            let error_code = match generic.code() {
         176  +
                ::std::option::Option::Some(code) => code,
         177  +
                ::std::option::Option::None => {
         178  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         179  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(
         180  +
                            crate::operation::delete_vault_notifications::DeleteVaultNotificationsError::unhandled(generic),
         181  +
                        ),
         182  +
                    ))
         183  +
                }
         184  +
            };
         185  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         186  +
            let protocol = _cfg
         187  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         188  +
                .expect("a SharedClientProtocol is required");
         189  +
            let err = match error_code {
         190  +
                "InvalidParameterValueException" => {
         191  +
                    crate::operation::delete_vault_notifications::DeleteVaultNotificationsError::InvalidParameterValueException({
         192  +
                        let mut tmp = match protocol
         193  +
                            .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         194  +
                            .and_then(|mut deser| {
         195  +
                                crate::types::error::InvalidParameterValueException::deserialize_with_response(
         196  +
                                    &mut *deser,
         197  +
                                    response.headers(),
         198  +
                                    response.status().into(),
         199  +
                                    body,
         200  +
                                )
         201  +
                            }) {
         202  +
                            ::std::result::Result::Ok(val) => val,
         203  +
                            ::std::result::Result::Err(e) => {
         204  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         205  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         206  +
                                ))
         207  +
                            }
         208  +
                        };
         209  +
                        tmp.meta = generic;
         210  +
                        if tmp.message.is_none() {
         211  +
                            tmp.message = _error_message;
         212  +
                        }
         213  +
                        tmp
         214  +
                    })
         215  +
                }
         216  +
                "MissingParameterValueException" => {
         217  +
                    crate::operation::delete_vault_notifications::DeleteVaultNotificationsError::MissingParameterValueException({
         218  +
                        let mut tmp = match protocol
         219  +
                            .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         220  +
                            .and_then(|mut deser| {
         221  +
                                crate::types::error::MissingParameterValueException::deserialize_with_response(
         222  +
                                    &mut *deser,
         223  +
                                    response.headers(),
         224  +
                                    response.status().into(),
         225  +
                                    body,
         226  +
                                )
         227  +
                            }) {
         228  +
                            ::std::result::Result::Ok(val) => val,
         229  +
                            ::std::result::Result::Err(e) => {
         230  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         231  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         232  +
                                ))
         233  +
                            }
         234  +
                        };
         235  +
                        tmp.meta = generic;
         236  +
                        if tmp.message.is_none() {
         237  +
                            tmp.message = _error_message;
         238  +
                        }
         239  +
                        tmp
         240  +
                    })
         241  +
                }
         242  +
                "ResourceNotFoundException" => {
         243  +
                    crate::operation::delete_vault_notifications::DeleteVaultNotificationsError::ResourceNotFoundException({
         244  +
                        let mut tmp = match protocol
         245  +
                            .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         246  +
                            .and_then(|mut deser| {
         247  +
                                crate::types::error::ResourceNotFoundException::deserialize_with_response(
         248  +
                                    &mut *deser,
         249  +
                                    response.headers(),
         250  +
                                    response.status().into(),
         251  +
                                    body,
         252  +
                                )
         253  +
                            }) {
         254  +
                            ::std::result::Result::Ok(val) => val,
         255  +
                            ::std::result::Result::Err(e) => {
         256  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         257  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         258  +
                                ))
         259  +
                            }
         260  +
                        };
         261  +
                        tmp.meta = generic;
         262  +
                        if tmp.message.is_none() {
         263  +
                            tmp.message = _error_message;
         264  +
                        }
         265  +
                        tmp
         266  +
                    })
         267  +
                }
         268  +
                "ServiceUnavailableException" => {
         269  +
                    crate::operation::delete_vault_notifications::DeleteVaultNotificationsError::ServiceUnavailableException({
         270  +
                        let mut tmp = match protocol
         271  +
                            .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         272  +
                            .and_then(|mut deser| {
         273  +
                                crate::types::error::ServiceUnavailableException::deserialize_with_response(
         274  +
                                    &mut *deser,
         275  +
                                    response.headers(),
         276  +
                                    response.status().into(),
         277  +
                                    body,
         278  +
                                )
         279  +
                            }) {
         280  +
                            ::std::result::Result::Ok(val) => val,
         281  +
                            ::std::result::Result::Err(e) => {
         282  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         283  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         284  +
                                ))
         285  +
                            }
         286  +
                        };
         287  +
                        tmp.meta = generic;
         288  +
                        if tmp.message.is_none() {
         289  +
                            tmp.message = _error_message;
         290  +
                        }
         291  +
                        tmp
         292  +
                    })
         293  +
                }
         294  +
                _ => crate::operation::delete_vault_notifications::DeleteVaultNotificationsError::generic(generic),
  165    295   
            };
  166         -
        crate::protocol_serde::type_erase_result(parse_result)
         296  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         297  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         298  +
            ))
         299  +
        } else {
         300  +
            let protocol = _cfg
         301  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         302  +
                .expect("a SharedClientProtocol is required");
         303  +
            let mut deser = protocol
         304  +
                .deserialize_response(response, DeleteVaultNotifications::OUTPUT_SCHEMA, _cfg)
         305  +
                .map_err(|e| {
         306  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         307  +
                })?;
         308  +
            let body = response.body().bytes().expect("body loaded");
         309  +
            let output = crate::operation::delete_vault_notifications::DeleteVaultNotificationsOutput::deserialize_with_response(
         310  +
                &mut *deser,
         311  +
                response.headers(),
         312  +
                response.status().into(),
         313  +
                body,
         314  +
            )
         315  +
            .map_err(|e| {
         316  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         317  +
            })?;
         318  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         319  +
        }
  167    320   
    }
  168    321   
}
  169    322   
#[derive(Debug)]
  170    323   
struct DeleteVaultNotificationsRequestSerializer;
  171    324   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteVaultNotificationsRequestSerializer {
  172    325   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  173    326   
    fn serialize_input(
  174    327   
        &self,
  175    328   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  176    329   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  177    330   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  178    331   
        let input = input
  179    332   
            .downcast::<crate::operation::delete_vault_notifications::DeleteVaultNotificationsInput>()
  180    333   
            .expect("correct type");
  181         -
        let _header_serialization_settings = _cfg
  182         -
            .load::<crate::serialization_settings::HeaderSerializationSettings>()
  183         -
            .cloned()
  184         -
            .unwrap_or_default();
  185         -
        let mut request_builder = {
  186         -
            #[allow(clippy::uninlined_format_args)]
  187         -
            fn uri_base(
  188         -
                _input: &crate::operation::delete_vault_notifications::DeleteVaultNotificationsInput,
  189         -
                output: &mut ::std::string::String,
  190         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  191         -
                use ::std::fmt::Write as _;
  192         -
                let input_1 = &_input.account_id;
  193         -
                let input_1 = input_1
  194         -
                    .as_ref()
  195         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  196         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  197         -
                if account_id.is_empty() {
  198         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  199         -
                        "account_id",
  200         -
                        "cannot be empty or unset",
  201         -
                    ));
  202         -
                }
  203         -
                let input_2 = &_input.vault_name;
  204         -
                let input_2 = input_2
  205         -
                    .as_ref()
  206         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  207         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  208         -
                if vault_name.is_empty() {
  209         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  210         -
                        "vault_name",
  211         -
                        "cannot be empty or unset",
  212         -
                    ));
  213         -
                }
  214         -
                ::std::write!(
  215         -
                    output,
  216         -
                    "/{accountId}/vaults/{vaultName}/notification-configuration",
  217         -
                    accountId = account_id,
  218         -
                    vaultName = vault_name
         334  +
        let protocol = _cfg
         335  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         336  +
            .expect("a SharedClientProtocol is required");
         337  +
        if protocol.supports_http_bindings() {
         338  +
            let mut request = protocol
         339  +
                .serialize_body(&input, DeleteVaultNotifications::INPUT_SCHEMA, "", _cfg)
         340  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         341  +
            {
         342  +
                let mut uri = "/{accountId}/vaults/{vaultName}/notification-configuration".to_string();
         343  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         344  +
                if let Some(ref val) = input.account_id {
         345  +
                    uri = uri.replace("{accountId}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         346  +
                }
         347  +
                if let Some(ref val) = input.vault_name {
         348  +
                    uri = uri.replace("{vaultName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         349  +
                }
         350  +
                if !query_params.is_empty() {
         351  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         352  +
                    let pairs: Vec<String> = query_params
         353  +
                        .iter()
         354  +
                        .map(|(k, v)| {
         355  +
                            format!(
         356  +
                                "{}={}",
         357  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         358  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
  219    359   
                            )
  220         -
                .expect("formatting should succeed");
  221         -
                ::std::result::Result::Ok(())
         360  +
                        })
         361  +
                        .collect();
         362  +
                    uri.push_str(&pairs.join("&"));
         363  +
                }
         364  +
                request.set_uri(uri.as_str()).expect("valid URI");
  222    365   
            }
  223         -
            #[allow(clippy::unnecessary_wraps)]
  224         -
            fn update_http_builder(
  225         -
                input: &crate::operation::delete_vault_notifications::DeleteVaultNotificationsInput,
  226         -
                builder: ::http_1x::request::Builder,
  227         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  228         -
                let mut uri = ::std::string::String::new();
  229         -
                uri_base(input, &mut uri)?;
  230         -
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  231         -
            }
  232         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  233         -
            builder
  234         -
        };
  235         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  236    366   
  237         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         367  +
            return ::std::result::Result::Ok(request);
         368  +
        } else {
         369  +
            let mut request = protocol
         370  +
                .serialize_request(&input, DeleteVaultNotifications::INPUT_SCHEMA, "", _cfg)
         371  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         372  +
         373  +
            return ::std::result::Result::Ok(request);
         374  +
        }
  238    375   
    }
  239    376   
}
  240    377   
#[derive(Debug)]
  241    378   
struct DeleteVaultNotificationsEndpointParamsInterceptor;
  242    379   
  243    380   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteVaultNotificationsEndpointParamsInterceptor {
  244    381   
    fn name(&self) -> &'static str {
  245    382   
        "DeleteVaultNotificationsEndpointParamsInterceptor"
  246    383   
    }
  247    384   

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/delete_vault_notifications/_delete_vault_notifications_input.rs

@@ -4,4 +136,154 @@
   24     24   
    "com.amazonaws.glacier.synthetic",
   25     25   
    "DeleteVaultNotificationsInput",
   26     26   
);
   27     27   
static DELETEVAULTNOTIFICATIONSINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   28     28   
    ::aws_smithy_schema::ShapeId::from_static(
   29     29   
        "com.amazonaws.glacier.synthetic#DeleteVaultNotificationsInput$accountId",
   30     30   
        "com.amazonaws.glacier.synthetic",
   31     31   
        "DeleteVaultNotificationsInput",
   32     32   
    ),
   33     33   
    ::aws_smithy_schema::ShapeType::String,
   34         -
    "account_id",
          34  +
    "accountId",
   35     35   
    0,
   36     36   
)
   37     37   
.with_http_label();
   38     38   
static DELETEVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.glacier.synthetic#DeleteVaultNotificationsInput$vaultName",
   41     41   
        "com.amazonaws.glacier.synthetic",
   42     42   
        "DeleteVaultNotificationsInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::String,
   45         -
    "vault_name",
          45  +
    "vaultName",
   46     46   
    1,
   47     47   
)
   48     48   
.with_http_label();
   49     49   
static DELETEVAULTNOTIFICATIONSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   50     50   
    DELETEVAULTNOTIFICATIONSINPUT_SCHEMA_ID,
   51     51   
    ::aws_smithy_schema::ShapeType::Structure,
   52     52   
    &[
   53     53   
        &DELETEVAULTNOTIFICATIONSINPUT_MEMBER_ACCOUNT_ID,
   54     54   
        &DELETEVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NAME,
   55     55   
    ],
   56         -
);
          56  +
)
          57  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          58  +
    "DELETE",
          59  +
    "/{accountId}/vaults/{vaultName}/notification-configuration",
          60  +
    Some(204),
          61  +
));
   57     62   
impl DeleteVaultNotificationsInput {
   58     63   
    /// The schema for this shape.
   59     64   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEVAULTNOTIFICATIONSINPUT_SCHEMA;
   60     65   
}
   61     66   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteVaultNotificationsInput {
   62     67   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   63     68   
    fn serialize_members(
   64     69   
        &self,
   65     70   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   66     71   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   67     72   
        if let Some(ref val) = self.account_id {
   68     73   
            ser.write_string(&DELETEVAULTNOTIFICATIONSINPUT_MEMBER_ACCOUNT_ID, val)?;
   69     74   
        }
   70     75   
        if let Some(ref val) = self.vault_name {
   71     76   
            ser.write_string(&DELETEVAULTNOTIFICATIONSINPUT_MEMBER_VAULT_NAME, val)?;
   72     77   
        }
   73     78   
        Ok(())
   74     79   
    }
   75     80   
}
   76     81   
impl DeleteVaultNotificationsInput {
   77     82   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   78         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   79         -
        deserializer: &mut D,
          83  +
    pub fn deserialize(
          84  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   80     85   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   81     86   
        #[allow(unused_variables, unused_mut)]
   82     87   
        let mut builder = Self::builder();
   83     88   
        #[allow(
   84     89   
            unused_variables,
   85     90   
            unreachable_code,
   86     91   
            clippy::single_match,
   87     92   
            clippy::match_single_binding,
   88     93   
            clippy::diverging_sub_expression
   89     94   
        )]
   90         -
        deserializer.read_struct(&DELETEVAULTNOTIFICATIONSINPUT_SCHEMA, (), |_, member, deser| {
          95  +
        deserializer.read_struct(&DELETEVAULTNOTIFICATIONSINPUT_SCHEMA, &mut |member, deser| {
   91     96   
            match member.member_index() {
   92     97   
                Some(0) => {
   93     98   
                    builder.account_id = Some(deser.read_string(member)?);
   94     99   
                }
   95    100   
                Some(1) => {
   96    101   
                    builder.vault_name = Some(deser.read_string(member)?);
   97    102   
                }
   98    103   
                _ => {}
   99    104   
            }
  100    105   
            Ok(())
  101    106   
        })?;
         107  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         108  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
  102    109   
        builder
  103    110   
            .build()
  104    111   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  105    112   
    }
  106    113   
}
         114  +
impl DeleteVaultNotificationsInput {
         115  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         116  +
    pub fn deserialize_with_response(
         117  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         118  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         119  +
        _status: u16,
         120  +
        _body: &[u8],
         121  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         122  +
        Self::deserialize(deserializer)
         123  +
    }
         124  +
}
  107    125   
impl crate::glacier_interceptors::GlacierAccountId for DeleteVaultNotificationsInput {
  108    126   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  109    127   
        &mut self.account_id
  110    128   
    }
  111    129   
}
  112    130   
impl DeleteVaultNotificationsInput {
  113    131   
    /// Creates a new builder-style object to manufacture [`DeleteVaultNotificationsInput`](crate::operation::delete_vault_notifications::DeleteVaultNotificationsInput).
  114    132   
    pub fn builder() -> crate::operation::delete_vault_notifications::builders::DeleteVaultNotificationsInputBuilder {
  115    133   
        crate::operation::delete_vault_notifications::builders::DeleteVaultNotificationsInputBuilder::default()
  116    134   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/delete_vault_notifications/_delete_vault_notifications_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 DeleteVaultNotificationsOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.glacier.synthetic#DeleteVaultNotificationsOutput",
   10     10   
    "com.amazonaws.glacier.synthetic",
   11     11   
    "DeleteVaultNotificationsOutput",
   12     12   
);
   13         -
static DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static DELETEVAULTNOTIFICATIONSOUTPUT_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 DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&DELETEVAULTNOTIFICATIONSOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl DeleteVaultNotificationsOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for DeleteVaultNotificationsOutput {
   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 DeleteVaultNotificationsOutput {
   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(&DELETEVAULTNOTIFICATIONSOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&DELETEVAULTNOTIFICATIONSOUTPUT_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 DeleteVaultNotificationsOutput {
          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 DeleteVaultNotificationsOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl DeleteVaultNotificationsOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`DeleteVaultNotificationsOutput`](crate::operation::delete_vault_notifications::DeleteVaultNotificationsOutput).
   58     89   
    pub fn builder() -> crate::operation::delete_vault_notifications::builders::DeleteVaultNotificationsOutputBuilder {
   59     90   
        crate::operation::delete_vault_notifications::builders::DeleteVaultNotificationsOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/describe_job.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 `DescribeJob`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeJob;
    6      6   
impl DescribeJob {
    7      7   
    /// Creates a new `DescribeJob`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_job::DescribeJobInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_job::DescribeJobOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_job::DescribeJobInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_job::DescribeJobOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_job::DescribeJobError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +276,390 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DescribeJobResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeJobResponseDeserializer {
  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_describe_job::de_describe_job_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_describe_job::de_describe_job_http_response(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(crate::operation::describe_job::DescribeJobError::unhandled(generic)),
         175  +
                    ))
         176  +
                }
         177  +
            };
         178  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         179  +
            let protocol = _cfg
         180  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         181  +
                .expect("a SharedClientProtocol is required");
         182  +
            let err = match error_code {
         183  +
                "InvalidParameterValueException" => crate::operation::describe_job::DescribeJobError::InvalidParameterValueException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         188  +
                                &mut *deser,
         189  +
                                response.headers(),
         190  +
                                response.status().into(),
         191  +
                                body,
         192  +
                            )
         193  +
                        }) {
         194  +
                        ::std::result::Result::Ok(val) => val,
         195  +
                        ::std::result::Result::Err(e) => {
         196  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         197  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         198  +
                            ))
         199  +
                        }
         200  +
                    };
         201  +
                    tmp.meta = generic;
         202  +
                    if tmp.message.is_none() {
         203  +
                        tmp.message = _error_message;
         204  +
                    }
         205  +
                    tmp
         206  +
                }),
         207  +
                "MissingParameterValueException" => crate::operation::describe_job::DescribeJobError::MissingParameterValueException({
         208  +
                    let mut tmp = match protocol
         209  +
                        .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| {
         211  +
                            crate::types::error::MissingParameterValueException::deserialize_with_response(
         212  +
                                &mut *deser,
         213  +
                                response.headers(),
         214  +
                                response.status().into(),
         215  +
                                body,
         216  +
                            )
         217  +
                        }) {
         218  +
                        ::std::result::Result::Ok(val) => val,
         219  +
                        ::std::result::Result::Err(e) => {
         220  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         221  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         222  +
                            ))
         223  +
                        }
         224  +
                    };
         225  +
                    tmp.meta = generic;
         226  +
                    if tmp.message.is_none() {
         227  +
                        tmp.message = _error_message;
         228  +
                    }
         229  +
                    tmp
         230  +
                }),
         231  +
                "ResourceNotFoundException" => crate::operation::describe_job::DescribeJobError::ResourceNotFoundException({
         232  +
                    let mut tmp = match protocol
         233  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| {
         235  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         236  +
                                &mut *deser,
         237  +
                                response.headers(),
         238  +
                                response.status().into(),
         239  +
                                body,
         240  +
                            )
         241  +
                        }) {
         242  +
                        ::std::result::Result::Ok(val) => val,
         243  +
                        ::std::result::Result::Err(e) => {
         244  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         245  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         246  +
                            ))
         247  +
                        }
  162    248   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         249  +
                    tmp.meta = generic;
         250  +
                    if tmp.message.is_none() {
         251  +
                        tmp.message = _error_message;
         252  +
                    }
         253  +
                    tmp
         254  +
                }),
         255  +
                "ServiceUnavailableException" => crate::operation::describe_job::DescribeJobError::ServiceUnavailableException({
         256  +
                    let mut tmp = match protocol
         257  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         258  +
                        .and_then(|mut deser| {
         259  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         260  +
                                &mut *deser,
         261  +
                                response.headers(),
         262  +
                                response.status().into(),
         263  +
                                body,
         264  +
                            )
         265  +
                        }) {
         266  +
                        ::std::result::Result::Ok(val) => val,
         267  +
                        ::std::result::Result::Err(e) => {
         268  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         269  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         270  +
                            ))
         271  +
                        }
         272  +
                    };
         273  +
                    tmp.meta = generic;
         274  +
                    if tmp.message.is_none() {
         275  +
                        tmp.message = _error_message;
         276  +
                    }
         277  +
                    tmp
         278  +
                }),
         279  +
                _ => crate::operation::describe_job::DescribeJobError::generic(generic),
         280  +
            };
         281  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         282  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         283  +
            ))
         284  +
        } else {
         285  +
            let protocol = _cfg
         286  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         287  +
                .expect("a SharedClientProtocol is required");
         288  +
            let mut deser = protocol.deserialize_response(response, DescribeJob::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         289  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         290  +
            })?;
         291  +
            let body = response.body().bytes().expect("body loaded");
         292  +
            let output = crate::operation::describe_job::DescribeJobOutput::deserialize_with_response(
         293  +
                &mut *deser,
         294  +
                response.headers(),
         295  +
                response.status().into(),
         296  +
                body,
         297  +
            )
         298  +
            .map_err(|e| {
         299  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         300  +
            })?;
         301  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         302  +
        }
  164    303   
    }
  165    304   
}
  166    305   
#[derive(Debug)]
  167    306   
struct DescribeJobRequestSerializer;
  168    307   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeJobRequestSerializer {
  169    308   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    309   
    fn serialize_input(
  171    310   
        &self,
  172    311   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    312   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    313   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    314   
        let input = input
  176    315   
            .downcast::<crate::operation::describe_job::DescribeJobInput>()
  177    316   
            .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::describe_job::DescribeJobInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                let input_1 = &_input.account_id;
  190         -
                let input_1 = input_1
  191         -
                    .as_ref()
  192         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  193         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  194         -
                if account_id.is_empty() {
  195         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                        "account_id",
  197         -
                        "cannot be empty or unset",
  198         -
                    ));
  199         -
                }
  200         -
                let input_2 = &_input.vault_name;
  201         -
                let input_2 = input_2
  202         -
                    .as_ref()
  203         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  204         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  205         -
                if vault_name.is_empty() {
  206         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  207         -
                        "vault_name",
  208         -
                        "cannot be empty or unset",
  209         -
                    ));
  210         -
                }
  211         -
                let input_3 = &_input.job_id;
  212         -
                let input_3 = input_3
  213         -
                    .as_ref()
  214         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("job_id", "cannot be empty or unset"))?;
  215         -
                let job_id = ::aws_smithy_http::label::fmt_string(input_3, ::aws_smithy_http::label::EncodingStrategy::Default);
  216         -
                if job_id.is_empty() {
  217         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  218         -
                        "job_id",
  219         -
                        "cannot be empty or unset",
  220         -
                    ));
  221         -
                }
  222         -
                ::std::write!(
  223         -
                    output,
  224         -
                    "/{accountId}/vaults/{vaultName}/jobs/{jobId}",
  225         -
                    accountId = account_id,
  226         -
                    vaultName = vault_name,
  227         -
                    jobId = job_id
         317  +
        let protocol = _cfg
         318  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         319  +
            .expect("a SharedClientProtocol is required");
         320  +
        if protocol.supports_http_bindings() {
         321  +
            let mut request = protocol
         322  +
                .serialize_body(&input, DescribeJob::INPUT_SCHEMA, "", _cfg)
         323  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         324  +
            {
         325  +
                let mut uri = "/{accountId}/vaults/{vaultName}/jobs/{jobId}".to_string();
         326  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         327  +
                if let Some(ref val) = input.account_id {
         328  +
                    uri = uri.replace("{accountId}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         329  +
                }
         330  +
                if let Some(ref val) = input.vault_name {
         331  +
                    uri = uri.replace("{vaultName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         332  +
                }
         333  +
                if let Some(ref val) = input.job_id {
         334  +
                    uri = uri.replace("{jobId}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         335  +
                }
         336  +
                if !query_params.is_empty() {
         337  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         338  +
                    let pairs: Vec<String> = query_params
         339  +
                        .iter()
         340  +
                        .map(|(k, v)| {
         341  +
                            format!(
         342  +
                                "{}={}",
         343  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         344  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
  228    345   
                            )
  229         -
                .expect("formatting should succeed");
  230         -
                ::std::result::Result::Ok(())
         346  +
                        })
         347  +
                        .collect();
         348  +
                    uri.push_str(&pairs.join("&"));
         349  +
                }
         350  +
                request.set_uri(uri.as_str()).expect("valid URI");
  231    351   
            }
  232         -
            #[allow(clippy::unnecessary_wraps)]
  233         -
            fn update_http_builder(
  234         -
                input: &crate::operation::describe_job::DescribeJobInput,
  235         -
                builder: ::http_1x::request::Builder,
  236         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  237         -
                let mut uri = ::std::string::String::new();
  238         -
                uri_base(input, &mut uri)?;
  239         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  240         -
            }
  241         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  242         -
            builder
  243         -
        };
  244         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  245    352   
  246         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         353  +
            return ::std::result::Result::Ok(request);
         354  +
        } else {
         355  +
            let mut request = protocol
         356  +
                .serialize_request(&input, DescribeJob::INPUT_SCHEMA, "", _cfg)
         357  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         358  +
         359  +
            return ::std::result::Result::Ok(request);
         360  +
        }
  247    361   
    }
  248    362   
}
  249    363   
#[derive(Debug)]
  250    364   
struct DescribeJobEndpointParamsInterceptor;
  251    365   
  252    366   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeJobEndpointParamsInterceptor {
  253    367   
    fn name(&self) -> &'static str {
  254    368   
        "DescribeJobEndpointParamsInterceptor"
  255    369   
    }
  256    370   

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/describe_job/_describe_job_input.rs

@@ -10,10 +160,179 @@
   30     30   
    "com.amazonaws.glacier.synthetic",
   31     31   
    "DescribeJobInput",
   32     32   
);
   33     33   
static DESCRIBEJOBINPUT_MEMBER_ACCOUNT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   34     34   
    ::aws_smithy_schema::ShapeId::from_static(
   35     35   
        "com.amazonaws.glacier.synthetic#DescribeJobInput$accountId",
   36     36   
        "com.amazonaws.glacier.synthetic",
   37     37   
        "DescribeJobInput",
   38     38   
    ),
   39     39   
    ::aws_smithy_schema::ShapeType::String,
   40         -
    "account_id",
          40  +
    "accountId",
   41     41   
    0,
   42     42   
)
   43     43   
.with_http_label();
   44     44   
static DESCRIBEJOBINPUT_MEMBER_VAULT_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   45     45   
    ::aws_smithy_schema::ShapeId::from_static(
   46     46   
        "com.amazonaws.glacier.synthetic#DescribeJobInput$vaultName",
   47     47   
        "com.amazonaws.glacier.synthetic",
   48     48   
        "DescribeJobInput",
   49     49   
    ),
   50     50   
    ::aws_smithy_schema::ShapeType::String,
   51         -
    "vault_name",
          51  +
    "vaultName",
   52     52   
    1,
   53     53   
)
   54     54   
.with_http_label();
   55     55   
static DESCRIBEJOBINPUT_MEMBER_JOB_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   56     56   
    ::aws_smithy_schema::ShapeId::from_static(
   57     57   
        "com.amazonaws.glacier.synthetic#DescribeJobInput$jobId",
   58     58   
        "com.amazonaws.glacier.synthetic",
   59     59   
        "DescribeJobInput",
   60     60   
    ),
   61     61   
    ::aws_smithy_schema::ShapeType::String,
   62         -
    "job_id",
          62  +
    "jobId",
   63     63   
    2,
   64     64   
)
   65     65   
.with_http_label();
   66     66   
static DESCRIBEJOBINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   67     67   
    DESCRIBEJOBINPUT_SCHEMA_ID,
   68     68   
    ::aws_smithy_schema::ShapeType::Structure,
   69     69   
    &[
   70     70   
        &DESCRIBEJOBINPUT_MEMBER_ACCOUNT_ID,
   71     71   
        &DESCRIBEJOBINPUT_MEMBER_VAULT_NAME,
   72     72   
        &DESCRIBEJOBINPUT_MEMBER_JOB_ID,
   73     73   
    ],
   74         -
);
          74  +
)
          75  +
.with_http(aws_smithy_schema::traits::HttpTrait::new(
          76  +
    "GET",
          77  +
    "/{accountId}/vaults/{vaultName}/jobs/{jobId}",
          78  +
    None,
          79  +
));
   75     80   
impl DescribeJobInput {
   76     81   
    /// The schema for this shape.
   77     82   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEJOBINPUT_SCHEMA;
   78     83   
}
   79     84   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeJobInput {
   80     85   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   81     86   
    fn serialize_members(
   82     87   
        &self,
   83     88   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   84     89   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   85     90   
        if let Some(ref val) = self.account_id {
   86     91   
            ser.write_string(&DESCRIBEJOBINPUT_MEMBER_ACCOUNT_ID, val)?;
   87     92   
        }
   88     93   
        if let Some(ref val) = self.vault_name {
   89     94   
            ser.write_string(&DESCRIBEJOBINPUT_MEMBER_VAULT_NAME, val)?;
   90     95   
        }
   91     96   
        if let Some(ref val) = self.job_id {
   92     97   
            ser.write_string(&DESCRIBEJOBINPUT_MEMBER_JOB_ID, val)?;
   93     98   
        }
   94     99   
        Ok(())
   95    100   
    }
   96    101   
}
   97    102   
impl DescribeJobInput {
   98    103   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   99         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  100         -
        deserializer: &mut D,
         104  +
    pub fn deserialize(
         105  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  101    106   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  102    107   
        #[allow(unused_variables, unused_mut)]
  103    108   
        let mut builder = Self::builder();
  104    109   
        #[allow(
  105    110   
            unused_variables,
  106    111   
            unreachable_code,
  107    112   
            clippy::single_match,
  108    113   
            clippy::match_single_binding,
  109    114   
            clippy::diverging_sub_expression
  110    115   
        )]
  111         -
        deserializer.read_struct(&DESCRIBEJOBINPUT_SCHEMA, (), |_, member, deser| {
         116  +
        deserializer.read_struct(&DESCRIBEJOBINPUT_SCHEMA, &mut |member, deser| {
  112    117   
            match member.member_index() {
  113    118   
                Some(0) => {
  114    119   
                    builder.account_id = Some(deser.read_string(member)?);
  115    120   
                }
  116    121   
                Some(1) => {
  117    122   
                    builder.vault_name = Some(deser.read_string(member)?);
  118    123   
                }
  119    124   
                Some(2) => {
  120    125   
                    builder.job_id = Some(deser.read_string(member)?);
  121    126   
                }
  122    127   
                _ => {}
  123    128   
            }
  124    129   
            Ok(())
  125    130   
        })?;
         131  +
        builder.account_id = builder.account_id.or(Some(String::new()));
         132  +
        builder.vault_name = builder.vault_name.or(Some(String::new()));
         133  +
        builder.job_id = builder.job_id.or(Some(String::new()));
  126    134   
        builder
  127    135   
            .build()
  128    136   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  129    137   
    }
  130    138   
}
         139  +
impl DescribeJobInput {
         140  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         141  +
    pub fn deserialize_with_response(
         142  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         143  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         144  +
        _status: u16,
         145  +
        _body: &[u8],
         146  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         147  +
        Self::deserialize(deserializer)
         148  +
    }
         149  +
}
  131    150   
impl crate::glacier_interceptors::GlacierAccountId for DescribeJobInput {
  132    151   
    fn account_id_mut(&mut self) -> &mut Option<String> {
  133    152   
        &mut self.account_id
  134    153   
    }
  135    154   
}
  136    155   
impl DescribeJobInput {
  137    156   
    /// Creates a new builder-style object to manufacture [`DescribeJobInput`](crate::operation::describe_job::DescribeJobInput).
  138    157   
    pub fn builder() -> crate::operation::describe_job::builders::DescribeJobInputBuilder {
  139    158   
        crate::operation::describe_job::builders::DescribeJobInputBuilder::default()
  140    159   
    }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/describe_job/_describe_job_output.rs

@@ -153,153 +440,448 @@
  173    173   
    "com.amazonaws.glacier.synthetic",
  174    174   
    "DescribeJobOutput",
  175    175   
);
  176    176   
static DESCRIBEJOBOUTPUT_MEMBER_JOB_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  177    177   
    ::aws_smithy_schema::ShapeId::from_static(
  178    178   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$JobId",
  179    179   
        "com.amazonaws.glacier.synthetic",
  180    180   
        "DescribeJobOutput",
  181    181   
    ),
  182    182   
    ::aws_smithy_schema::ShapeType::String,
  183         -
    "job_id",
         183  +
    "JobId",
  184    184   
    0,
  185    185   
);
  186    186   
static DESCRIBEJOBOUTPUT_MEMBER_JOB_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  187    187   
    ::aws_smithy_schema::ShapeId::from_static(
  188    188   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$JobDescription",
  189    189   
        "com.amazonaws.glacier.synthetic",
  190    190   
        "DescribeJobOutput",
  191    191   
    ),
  192    192   
    ::aws_smithy_schema::ShapeType::String,
  193         -
    "job_description",
         193  +
    "JobDescription",
  194    194   
    1,
  195    195   
);
  196    196   
static DESCRIBEJOBOUTPUT_MEMBER_ACTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  197    197   
    ::aws_smithy_schema::ShapeId::from_static(
  198    198   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$Action",
  199    199   
        "com.amazonaws.glacier.synthetic",
  200    200   
        "DescribeJobOutput",
  201    201   
    ),
  202    202   
    ::aws_smithy_schema::ShapeType::String,
  203         -
    "action",
         203  +
    "Action",
  204    204   
    2,
  205    205   
);
  206    206   
static DESCRIBEJOBOUTPUT_MEMBER_ARCHIVE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  207    207   
    ::aws_smithy_schema::ShapeId::from_static(
  208    208   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$ArchiveId",
  209    209   
        "com.amazonaws.glacier.synthetic",
  210    210   
        "DescribeJobOutput",
  211    211   
    ),
  212    212   
    ::aws_smithy_schema::ShapeType::String,
  213         -
    "archive_id",
         213  +
    "ArchiveId",
  214    214   
    3,
  215    215   
);
  216    216   
static DESCRIBEJOBOUTPUT_MEMBER_VAULT_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  217    217   
    ::aws_smithy_schema::ShapeId::from_static(
  218    218   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$VaultARN",
  219    219   
        "com.amazonaws.glacier.synthetic",
  220    220   
        "DescribeJobOutput",
  221    221   
    ),
  222    222   
    ::aws_smithy_schema::ShapeType::String,
  223         -
    "vault_arn",
         223  +
    "VaultARN",
  224    224   
    4,
  225    225   
);
  226    226   
static DESCRIBEJOBOUTPUT_MEMBER_CREATION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  227    227   
    ::aws_smithy_schema::ShapeId::from_static(
  228    228   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$CreationDate",
  229    229   
        "com.amazonaws.glacier.synthetic",
  230    230   
        "DescribeJobOutput",
  231    231   
    ),
  232    232   
    ::aws_smithy_schema::ShapeType::String,
  233         -
    "creation_date",
         233  +
    "CreationDate",
  234    234   
    5,
  235    235   
);
  236    236   
static DESCRIBEJOBOUTPUT_MEMBER_COMPLETED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  237    237   
    ::aws_smithy_schema::ShapeId::from_static(
  238    238   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$Completed",
  239    239   
        "com.amazonaws.glacier.synthetic",
  240    240   
        "DescribeJobOutput",
  241    241   
    ),
  242    242   
    ::aws_smithy_schema::ShapeType::Boolean,
  243         -
    "completed",
         243  +
    "Completed",
  244    244   
    6,
  245    245   
);
  246    246   
static DESCRIBEJOBOUTPUT_MEMBER_STATUS_CODE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  247    247   
    ::aws_smithy_schema::ShapeId::from_static(
  248    248   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$StatusCode",
  249    249   
        "com.amazonaws.glacier.synthetic",
  250    250   
        "DescribeJobOutput",
  251    251   
    ),
  252    252   
    ::aws_smithy_schema::ShapeType::String,
  253         -
    "status_code",
         253  +
    "StatusCode",
  254    254   
    7,
  255    255   
);
  256    256   
static DESCRIBEJOBOUTPUT_MEMBER_STATUS_MESSAGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  257    257   
    ::aws_smithy_schema::ShapeId::from_static(
  258    258   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$StatusMessage",
  259    259   
        "com.amazonaws.glacier.synthetic",
  260    260   
        "DescribeJobOutput",
  261    261   
    ),
  262    262   
    ::aws_smithy_schema::ShapeType::String,
  263         -
    "status_message",
         263  +
    "StatusMessage",
  264    264   
    8,
  265    265   
);
  266    266   
static DESCRIBEJOBOUTPUT_MEMBER_ARCHIVE_SIZE_IN_BYTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  267    267   
    ::aws_smithy_schema::ShapeId::from_static(
  268    268   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$ArchiveSizeInBytes",
  269    269   
        "com.amazonaws.glacier.synthetic",
  270    270   
        "DescribeJobOutput",
  271    271   
    ),
  272    272   
    ::aws_smithy_schema::ShapeType::Long,
  273         -
    "archive_size_in_bytes",
         273  +
    "ArchiveSizeInBytes",
  274    274   
    9,
  275    275   
);
  276    276   
static DESCRIBEJOBOUTPUT_MEMBER_INVENTORY_SIZE_IN_BYTES: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  277    277   
    ::aws_smithy_schema::ShapeId::from_static(
  278    278   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$InventorySizeInBytes",
  279    279   
        "com.amazonaws.glacier.synthetic",
  280    280   
        "DescribeJobOutput",
  281    281   
    ),
  282    282   
    ::aws_smithy_schema::ShapeType::Long,
  283         -
    "inventory_size_in_bytes",
         283  +
    "InventorySizeInBytes",
  284    284   
    10,
  285    285   
);
  286    286   
static DESCRIBEJOBOUTPUT_MEMBER_SNS_TOPIC: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  287    287   
    ::aws_smithy_schema::ShapeId::from_static(
  288    288   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$SNSTopic",
  289    289   
        "com.amazonaws.glacier.synthetic",
  290    290   
        "DescribeJobOutput",
  291    291   
    ),
  292    292   
    ::aws_smithy_schema::ShapeType::String,
  293         -
    "sns_topic",
         293  +
    "SNSTopic",
  294    294   
    11,
  295    295   
);
  296    296   
static DESCRIBEJOBOUTPUT_MEMBER_COMPLETION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  297    297   
    ::aws_smithy_schema::ShapeId::from_static(
  298    298   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$CompletionDate",
  299    299   
        "com.amazonaws.glacier.synthetic",
  300    300   
        "DescribeJobOutput",
  301    301   
    ),
  302    302   
    ::aws_smithy_schema::ShapeType::String,
  303         -
    "completion_date",
         303  +
    "CompletionDate",
  304    304   
    12,
  305    305   
);
  306    306   
static DESCRIBEJOBOUTPUT_MEMBER_SHA256_TREE_HASH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  307    307   
    ::aws_smithy_schema::ShapeId::from_static(
  308    308   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$SHA256TreeHash",
  309    309   
        "com.amazonaws.glacier.synthetic",
  310    310   
        "DescribeJobOutput",
  311    311   
    ),
  312    312   
    ::aws_smithy_schema::ShapeType::String,
  313         -
    "sha256_tree_hash",
         313  +
    "SHA256TreeHash",
  314    314   
    13,
  315    315   
);
  316    316   
static DESCRIBEJOBOUTPUT_MEMBER_ARCHIVE_SHA256_TREE_HASH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  317    317   
    ::aws_smithy_schema::ShapeId::from_static(
  318    318   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$ArchiveSHA256TreeHash",
  319    319   
        "com.amazonaws.glacier.synthetic",
  320    320   
        "DescribeJobOutput",
  321    321   
    ),
  322    322   
    ::aws_smithy_schema::ShapeType::String,
  323         -
    "archive_sha256_tree_hash",
         323  +
    "ArchiveSHA256TreeHash",
  324    324   
    14,
  325    325   
);
  326    326   
static DESCRIBEJOBOUTPUT_MEMBER_RETRIEVAL_BYTE_RANGE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  327    327   
    ::aws_smithy_schema::ShapeId::from_static(
  328    328   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$RetrievalByteRange",
  329    329   
        "com.amazonaws.glacier.synthetic",
  330    330   
        "DescribeJobOutput",
  331    331   
    ),
  332    332   
    ::aws_smithy_schema::ShapeType::String,
  333         -
    "retrieval_byte_range",
         333  +
    "RetrievalByteRange",
  334    334   
    15,
  335    335   
);
  336    336   
static DESCRIBEJOBOUTPUT_MEMBER_TIER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  337    337   
    ::aws_smithy_schema::ShapeId::from_static(
  338    338   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$Tier",
  339    339   
        "com.amazonaws.glacier.synthetic",
  340    340   
        "DescribeJobOutput",
  341    341   
    ),
  342    342   
    ::aws_smithy_schema::ShapeType::String,
  343         -
    "tier",
         343  +
    "Tier",
  344    344   
    16,
  345    345   
);
  346    346   
static DESCRIBEJOBOUTPUT_MEMBER_INVENTORY_RETRIEVAL_PARAMETERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  347    347   
    ::aws_smithy_schema::ShapeId::from_static(
  348    348   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$InventoryRetrievalParameters",
  349    349   
        "com.amazonaws.glacier.synthetic",
  350    350   
        "DescribeJobOutput",
  351    351   
    ),
  352    352   
    ::aws_smithy_schema::ShapeType::Structure,
  353         -
    "inventory_retrieval_parameters",
         353  +
    "InventoryRetrievalParameters",
  354    354   
    17,
  355    355   
);
  356    356   
static DESCRIBEJOBOUTPUT_MEMBER_JOB_OUTPUT_PATH: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  357    357   
    ::aws_smithy_schema::ShapeId::from_static(
  358    358   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$JobOutputPath",
  359    359   
        "com.amazonaws.glacier.synthetic",
  360    360   
        "DescribeJobOutput",
  361    361   
    ),
  362    362   
    ::aws_smithy_schema::ShapeType::String,
  363         -
    "job_output_path",
         363  +
    "JobOutputPath",
  364    364   
    18,
  365    365   
);
  366    366   
static DESCRIBEJOBOUTPUT_MEMBER_SELECT_PARAMETERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  367    367   
    ::aws_smithy_schema::ShapeId::from_static(
  368    368   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$SelectParameters",
  369    369   
        "com.amazonaws.glacier.synthetic",
  370    370   
        "DescribeJobOutput",
  371    371   
    ),
  372    372   
    ::aws_smithy_schema::ShapeType::Structure,
  373         -
    "select_parameters",
         373  +
    "SelectParameters",
  374    374   
    19,
  375    375   
);
  376    376   
static DESCRIBEJOBOUTPUT_MEMBER_OUTPUT_LOCATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  377    377   
    ::aws_smithy_schema::ShapeId::from_static(
  378    378   
        "com.amazonaws.glacier.synthetic#DescribeJobOutput$OutputLocation",
  379    379   
        "com.amazonaws.glacier.synthetic",
  380    380   
        "DescribeJobOutput",
  381    381   
    ),
  382    382   
    ::aws_smithy_schema::ShapeType::Structure,
  383         -
    "output_location",
         383  +
    "OutputLocation",
  384    384   
    20,
  385    385   
);
         386  +
static DESCRIBEJOBOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         387  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         388  +
    ::aws_smithy_schema::ShapeType::String,
         389  +
    "request_id",
         390  +
    21,
         391  +
)
         392  +
.with_http_header("x-amzn-requestid");
  386    393   
static DESCRIBEJOBOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  387    394   
    DESCRIBEJOBOUTPUT_SCHEMA_ID,
  388    395   
    ::aws_smithy_schema::ShapeType::Structure,
  389    396   
    &[
  390    397   
        &DESCRIBEJOBOUTPUT_MEMBER_JOB_ID,
  391    398   
        &DESCRIBEJOBOUTPUT_MEMBER_JOB_DESCRIPTION,
  392    399   
        &DESCRIBEJOBOUTPUT_MEMBER_ACTION,
  393    400   
        &DESCRIBEJOBOUTPUT_MEMBER_ARCHIVE_ID,
  394    401   
        &DESCRIBEJOBOUTPUT_MEMBER_VAULT_ARN,
  395    402   
        &DESCRIBEJOBOUTPUT_MEMBER_CREATION_DATE,
  396    403   
        &DESCRIBEJOBOUTPUT_MEMBER_COMPLETED,
  397    404   
        &DESCRIBEJOBOUTPUT_MEMBER_STATUS_CODE,
  398    405   
        &DESCRIBEJOBOUTPUT_MEMBER_STATUS_MESSAGE,
  399    406   
        &DESCRIBEJOBOUTPUT_MEMBER_ARCHIVE_SIZE_IN_BYTES,
  400    407   
        &DESCRIBEJOBOUTPUT_MEMBER_INVENTORY_SIZE_IN_BYTES,
  401    408   
        &DESCRIBEJOBOUTPUT_MEMBER_SNS_TOPIC,
  402    409   
        &DESCRIBEJOBOUTPUT_MEMBER_COMPLETION_DATE,
  403    410   
        &DESCRIBEJOBOUTPUT_MEMBER_SHA256_TREE_HASH,
  404    411   
        &DESCRIBEJOBOUTPUT_MEMBER_ARCHIVE_SHA256_TREE_HASH,
  405    412   
        &DESCRIBEJOBOUTPUT_MEMBER_RETRIEVAL_BYTE_RANGE,
  406    413   
        &DESCRIBEJOBOUTPUT_MEMBER_TIER,
  407    414   
        &DESCRIBEJOBOUTPUT_MEMBER_INVENTORY_RETRIEVAL_PARAMETERS,
  408    415   
        &DESCRIBEJOBOUTPUT_MEMBER_JOB_OUTPUT_PATH,
  409    416   
        &DESCRIBEJOBOUTPUT_MEMBER_SELECT_PARAMETERS,
  410    417   
        &DESCRIBEJOBOUTPUT_MEMBER_OUTPUT_LOCATION,
         418  +
        &DESCRIBEJOBOUTPUT_MEMBER__REQUEST_ID,
  411    419   
    ],
  412    420   
);
  413    421   
impl DescribeJobOutput {
  414    422   
    /// The schema for this shape.
  415    423   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &DESCRIBEJOBOUTPUT_SCHEMA;
  416    424   
}
  417    425   
impl ::aws_smithy_schema::serde::SerializableStruct for DescribeJobOutput {
  418    426   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  419    427   
    fn serialize_members(
  420    428   
        &self,
@@ -462,470 +534,639 @@
  482    490   
            ser.write_struct(&DESCRIBEJOBOUTPUT_MEMBER_SELECT_PARAMETERS, val)?;
  483    491   
        }
  484    492   
        if let Some(ref val) = self.output_location {
  485    493   
            ser.write_struct(&DESCRIBEJOBOUTPUT_MEMBER_OUTPUT_LOCATION, val)?;
  486    494   
        }
  487    495   
        Ok(())
  488    496   
    }
  489    497   
}
  490    498   
impl DescribeJobOutput {
  491    499   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  492         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  493         -
        deserializer: &mut D,
         500  +
    pub fn deserialize(
         501  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  494    502   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  495    503   
        #[allow(unused_variables, unused_mut)]
  496    504   
        let mut builder = Self::builder();
  497    505   
        #[allow(
  498    506   
            unused_variables,
  499    507   
            unreachable_code,
  500    508   
            clippy::single_match,
  501    509   
            clippy::match_single_binding,
  502    510   
            clippy::diverging_sub_expression
  503    511   
        )]
  504         -
        deserializer.read_struct(&DESCRIBEJOBOUTPUT_SCHEMA, (), |_, member, deser| {
         512  +
        deserializer.read_struct(&DESCRIBEJOBOUTPUT_SCHEMA, &mut |member, deser| {
         513  +
            match member.member_index() {
         514  +
                Some(0) => {
         515  +
                    builder.job_id = Some(deser.read_string(member)?);
         516  +
                }
         517  +
                Some(1) => {
         518  +
                    builder.job_description = Some(deser.read_string(member)?);
         519  +
                }
         520  +
                Some(2) => {
         521  +
                    builder.action = Some(crate::types::ActionCode::from(deser.read_string(member)?.as_str()));
         522  +
                }
         523  +
                Some(3) => {
         524  +
                    builder.archive_id = Some(deser.read_string(member)?);
         525  +
                }
         526  +
                Some(4) => {
         527  +
                    builder.vault_arn = Some(deser.read_string(member)?);
         528  +
                }
         529  +
                Some(5) => {
         530  +
                    builder.creation_date = Some(deser.read_string(member)?);
         531  +
                }
         532  +
                Some(6) => {
         533  +
                    builder.completed = Some(deser.read_boolean(member)?);
         534  +
                }
         535  +
                Some(7) => {
         536  +
                    builder.status_code = Some(crate::types::StatusCode::from(deser.read_string(member)?.as_str()));
         537  +
                }
         538  +
                Some(8) => {
         539  +
                    builder.status_message = Some(deser.read_string(member)?);
         540  +
                }
         541  +
                Some(9) => {
         542  +
                    builder.archive_size_in_bytes = Some(deser.read_long(member)?);
         543  +
                }
         544  +
                Some(10) => {
         545  +
                    builder.inventory_size_in_bytes = Some(deser.read_long(member)?);
         546  +
                }
         547  +
                Some(11) => {
         548  +
                    builder.sns_topic = Some(deser.read_string(member)?);
         549  +
                }
         550  +
                Some(12) => {
         551  +
                    builder.completion_date = Some(deser.read_string(member)?);
         552  +
                }
         553  +
                Some(13) => {
         554  +
                    builder.sha256_tree_hash = Some(deser.read_string(member)?);
         555  +
                }
         556  +
                Some(14) => {
         557  +
                    builder.archive_sha256_tree_hash = Some(deser.read_string(member)?);
         558  +
                }
         559  +
                Some(15) => {
         560  +
                    builder.retrieval_byte_range = Some(deser.read_string(member)?);
         561  +
                }
         562  +
                Some(16) => {
         563  +
                    builder.tier = Some(deser.read_string(member)?);
         564  +
                }
         565  +
                Some(17) => {
         566  +
                    builder.inventory_retrieval_parameters = Some(crate::types::InventoryRetrievalJobDescription::deserialize(deser)?);
         567  +
                }
         568  +
                Some(18) => {
         569  +
                    builder.job_output_path = Some(deser.read_string(member)?);
         570  +
                }
         571  +
                Some(19) => {
         572  +
                    builder.select_parameters = Some(crate::types::SelectParameters::deserialize(deser)?);
         573  +
                }
         574  +
                Some(20) => {
         575  +
                    builder.output_location = Some(crate::types::OutputLocation::deserialize(deser)?);
         576  +
                }
         577  +
                Some(21) => {
         578  +
                    builder._request_id = Some(deser.read_string(member)?);
         579  +
                }
         580  +
                _ => {}
         581  +
            }
         582  +
            Ok(())
         583  +
        })?;
         584  +
        Ok(builder.build())
         585  +
    }
         586  +
}
         587  +
impl DescribeJobOutput {
         588  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         589  +
    /// Header-bound members are read directly from headers, avoiding runtime
         590  +
    /// member iteration overhead. Body members are read via the deserializer.
         591  +
    pub fn deserialize_with_response(
         592  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         593  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         594  +
        _status: u16,
         595  +
        _body: &[u8],
         596  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         597  +
        #[allow(unused_variables, unused_mut)]
         598  +
        let mut builder = Self::builder();
         599  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         600  +
            builder._request_id = Some(val.to_string());
         601  +
        }
         602  +
        #[allow(
         603  +
            unused_variables,
         604  +
            unreachable_code,
         605  +
            clippy::single_match,
         606  +
            clippy::match_single_binding,
         607  +
            clippy::diverging_sub_expression
         608  +
        )]
         609  +
        deserializer.read_struct(&DESCRIBEJOBOUTPUT_SCHEMA, &mut |member, deser| {
  505    610   
            match member.member_index() {
  506    611   
                Some(0) => {
  507    612   
                    builder.job_id = Some(deser.read_string(member)?);
  508    613   
                }
  509    614   
                Some(1) => {
  510    615   
                    builder.job_description = Some(deser.read_string(member)?);
  511    616   
                }
  512    617   
                Some(2) => {
  513    618   
                    builder.action = Some(crate::types::ActionCode::from(deser.read_string(member)?.as_str()));
  514    619   
                }

tmp-codegen-diff/aws-sdk/sdk/glacier/src/operation/describe_vault.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 `DescribeVault`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct DescribeVault;
    6      6   
impl DescribeVault {
    7      7   
    /// Creates a new `DescribeVault`
    8      8   
    pub fn new() -> Self {
    9      9   
        Self
   10     10   
    }
          11  +
    /// The schema for this operation's input shape.
          12  +
    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_vault::DescribeVaultInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::describe_vault::DescribeVaultOutput::SCHEMA;
   11     15   
    pub(crate) async fn orchestrate(
   12     16   
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
   13     17   
        input: crate::operation::describe_vault::DescribeVaultInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::describe_vault::DescribeVaultOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::describe_vault::DescribeVaultError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -121,125 +259,387 @@
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct DescribeVaultResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DescribeVaultResponseDeserializer {
  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_describe_vault::de_describe_vault_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_describe_vault::de_describe_vault_http_response(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(crate::operation::describe_vault::DescribeVaultError::unhandled(generic)),
         175  +
                    ))
         176  +
                }
         177  +
            };
         178  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         179  +
            let protocol = _cfg
         180  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         181  +
                .expect("a SharedClientProtocol is required");
         182  +
            let err = match error_code {
         183  +
                "InvalidParameterValueException" => crate::operation::describe_vault::DescribeVaultError::InvalidParameterValueException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::InvalidParameterValueException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::InvalidParameterValueException::deserialize_with_response(
         188  +
                                &mut *deser,
         189  +
                                response.headers(),
         190  +
                                response.status().into(),
         191  +
                                body,
         192  +
                            )
         193  +
                        }) {
         194  +
                        ::std::result::Result::Ok(val) => val,
         195  +
                        ::std::result::Result::Err(e) => {
         196  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         197  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         198  +
                            ))
         199  +
                        }
         200  +
                    };
         201  +
                    tmp.meta = generic;
         202  +
                    if tmp.message.is_none() {
         203  +
                        tmp.message = _error_message;
         204  +
                    }
         205  +
                    tmp
         206  +
                }),
         207  +
                "MissingParameterValueException" => crate::operation::describe_vault::DescribeVaultError::MissingParameterValueException({
         208  +
                    let mut tmp = match protocol
         209  +
                        .deserialize_response(response, crate::types::error::MissingParameterValueException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| {
         211  +
                            crate::types::error::MissingParameterValueException::deserialize_with_response(
         212  +
                                &mut *deser,
         213  +
                                response.headers(),
         214  +
                                response.status().into(),
         215  +
                                body,
         216  +
                            )
         217  +
                        }) {
         218  +
                        ::std::result::Result::Ok(val) => val,
         219  +
                        ::std::result::Result::Err(e) => {
         220  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         221  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         222  +
                            ))
         223  +
                        }
         224  +
                    };
         225  +
                    tmp.meta = generic;
         226  +
                    if tmp.message.is_none() {
         227  +
                        tmp.message = _error_message;
         228  +
                    }
         229  +
                    tmp
         230  +
                }),
         231  +
                "ResourceNotFoundException" => crate::operation::describe_vault::DescribeVaultError::ResourceNotFoundException({
         232  +
                    let mut tmp = match protocol
         233  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| {
         235  +
                            crate::types::error::ResourceNotFoundException::deserialize_with_response(
         236  +
                                &mut *deser,
         237  +
                                response.headers(),
         238  +
                                response.status().into(),
         239  +
                                body,
         240  +
                            )
         241  +
                        }) {
         242  +
                        ::std::result::Result::Ok(val) => val,
         243  +
                        ::std::result::Result::Err(e) => {
         244  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         245  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         246  +
                            ))
         247  +
                        }
         248  +
                    };
         249  +
                    tmp.meta = generic;
         250  +
                    if tmp.message.is_none() {
         251  +
                        tmp.message = _error_message;
         252  +
                    }
         253  +
                    tmp
         254  +
                }),
         255  +
                "ServiceUnavailableException" => crate::operation::describe_vault::DescribeVaultError::ServiceUnavailableException({
         256  +
                    let mut tmp = match protocol
         257  +
                        .deserialize_response(response, crate::types::error::ServiceUnavailableException::SCHEMA, _cfg)
         258  +
                        .and_then(|mut deser| {
         259  +
                            crate::types::error::ServiceUnavailableException::deserialize_with_response(
         260  +
                                &mut *deser,
         261  +
                                response.headers(),
         262  +
                                response.status().into(),
         263  +
                                body,
         264  +
                            )
         265  +
                        }) {
         266  +
                        ::std::result::Result::Ok(val) => val,
         267  +
                        ::std::result::Result::Err(e) => {
         268  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         269  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         270  +
                            ))
         271  +
                        }
  162    272   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         273  +
                    tmp.meta = generic;
         274  +
                    if tmp.message.is_none() {
         275  +
                        tmp.message = _error_message;
         276  +
                    }
         277  +
                    tmp
         278  +
                }),
         279  +
                _ => crate::operation::describe_vault::DescribeVaultError::generic(generic),
         280  +
            };
         281  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         282  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         283  +
            ))
         284  +
        } else {
         285  +
            let protocol = _cfg
         286  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         287  +
                .expect("a SharedClientProtocol is required");
         288  +
            let mut deser = protocol.deserialize_response(response, DescribeVault::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         289  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         290  +
            })?;
         291  +
            let body = response.body().bytes().expect("body loaded");
         292  +
            let output = crate::operation::describe_vault::DescribeVaultOutput::deserialize_with_response(
         293  +
                &mut *deser,
         294  +
                response.headers(),
         295  +
                response.status().into(),
         296  +
                body,
         297  +
            )
         298  +
            .map_err(|e| {
         299  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         300  +
            })?;
         301  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         302  +
        }
  164    303   
    }
  165    304   
}
  166    305   
#[derive(Debug)]
  167    306   
struct DescribeVaultRequestSerializer;
  168    307   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DescribeVaultRequestSerializer {
  169    308   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    309   
    fn serialize_input(
  171    310   
        &self,
  172    311   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    312   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    313   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    314   
        let input = input
  176    315   
            .downcast::<crate::operation::describe_vault::DescribeVaultInput>()
  177    316   
            .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::describe_vault::DescribeVaultInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                let input_1 = &_input.account_id;
  190         -
                let input_1 = input_1
  191         -
                    .as_ref()
  192         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
  193         -
                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
  194         -
                if account_id.is_empty() {
  195         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  196         -
                        "account_id",
  197         -
                        "cannot be empty or unset",
  198         -
                    ));
         317  +
        let protocol = _cfg
         318  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         319  +
            .expect("a SharedClientProtocol is required");
         320  +
        if protocol.supports_http_bindings() {
         321  +
            let mut request = protocol
         322  +
                .serialize_body(&input, DescribeVault::INPUT_SCHEMA, "", _cfg)
         323  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         324  +
            {
         325  +
                let mut uri = "/{accountId}/vaults/{vaultName}".to_string();
         326  +
                let mut query_params: Vec<(String, String)> = Vec::new();
         327  +
                if let Some(ref val) = input.account_id {
         328  +
                    uri = uri.replace("{accountId}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         329  +
                }
         330  +
                if let Some(ref val) = input.vault_name {
         331  +
                    uri = uri.replace("{vaultName}", &::aws_smithy_schema::http_protocol::percent_encode(&val.to_string()));
         332  +
                }
         333  +
                if !query_params.is_empty() {
         334  +
                    uri.push(if uri.contains('?') { '&' } else { '?' });
         335  +
                    let pairs: Vec<String> = query_params
         336  +
                        .iter()
         337  +
                        .map(|(k, v)| {
         338  +
                            format!(
         339  +
                                "{}={}",
         340  +
                                ::aws_smithy_schema::http_protocol::percent_encode(k),
         341  +
                                ::aws_smithy_schema::http_protocol::percent_encode(v)
         342  +
                            )
         343  +
                        })
         344  +
                        .collect();
         345  +
                    uri.push_str(&pairs.join("&"));
  199    346   
                }
  200         -
                let input_2 = &_input.vault_name;
  201         -
                let input_2 = input_2
  202         -
                    .as_ref()
  203         -
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("vault_name", "cannot be empty or unset"))?;
  204         -
                let vault_name = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
  205         -
                if vault_name.is_empty() {
  206         -
                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
  207         -
                        "vault_name",
  208         -
                        "cannot be empty or unset",
  209         -
                    ));
         347  +
                request.set_uri(uri.as_str()).expect("valid URI");
  210    348   
            }
  211         -
                ::std::write!(output, "/{accountId}/vaults/{vaultName}", accountId = account_id, vaultName = vault_name)
  212         -
                    .expect("formatting should succeed");
  213         -
                ::std::result::Result::Ok(())
  214         -
            }
  215         -
            #[allow(clippy::unnecessary_wraps)]
  216         -
            fn update_http_builder(
  217         -
                input: &crate::operation::describe_vault::DescribeVaultInput,
  218         -
                builder: ::http_1x::request::Builder,
  219         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  220         -
                let mut uri = ::std::string::String::new();
  221         -
                uri_base(input, &mut uri)?;
  222         -
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  223         -
            }
  224         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  225         -
            builder
  226         -
        };
  227         -
        let body = ::aws_smithy_types::body::SdkBody::from("");
  228    349   
  229         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         350  +
            return ::std::result::Result::Ok(request);
         351  +
        } else {
         352  +
            let mut request = protocol
         353  +
                .serialize_request(&input, DescribeVault::INPUT_SCHEMA, "", _cfg)
         354  +
                .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         355  +
         356  +
            return ::std::result::Result::Ok(request);
         357  +
        }
  230    358   
    }
  231    359   
}
  232    360   
#[derive(Debug)]
  233    361   
struct DescribeVaultEndpointParamsInterceptor;
  234    362   
  235    363   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DescribeVaultEndpointParamsInterceptor {
  236    364   
    fn name(&self) -> &'static str {
  237    365   
        "DescribeVaultEndpointParamsInterceptor"
  238    366   
    }
  239    367