AWS SDK

AWS SDK

rev. 32b1b3c3761061baed26023be3219639e42d7d12 (ignoring whitespace)

Files changed:

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

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/query/_query_input.rs

@@ -100,100 +281,293 @@
  120    120   
    "com.amazonaws.timestreamquery.synthetic",
  121    121   
    "QueryInput",
  122    122   
);
  123    123   
static QUERYINPUT_MEMBER_QUERY_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  124    124   
    ::aws_smithy_schema::ShapeId::from_static(
  125    125   
        "com.amazonaws.timestreamquery.synthetic#QueryInput$QueryString",
  126    126   
        "com.amazonaws.timestreamquery.synthetic",
  127    127   
        "QueryInput",
  128    128   
    ),
  129    129   
    ::aws_smithy_schema::ShapeType::String,
  130         -
    "query_string",
         130  +
    "QueryString",
  131    131   
    0,
  132    132   
);
  133    133   
static QUERYINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  134    134   
    ::aws_smithy_schema::ShapeId::from_static(
  135    135   
        "com.amazonaws.timestreamquery.synthetic#QueryInput$ClientToken",
  136    136   
        "com.amazonaws.timestreamquery.synthetic",
  137    137   
        "QueryInput",
  138    138   
    ),
  139    139   
    ::aws_smithy_schema::ShapeType::String,
  140         -
    "client_token",
         140  +
    "ClientToken",
  141    141   
    1,
  142    142   
);
  143    143   
static QUERYINPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  144    144   
    ::aws_smithy_schema::ShapeId::from_static(
  145    145   
        "com.amazonaws.timestreamquery.synthetic#QueryInput$NextToken",
  146    146   
        "com.amazonaws.timestreamquery.synthetic",
  147    147   
        "QueryInput",
  148    148   
    ),
  149    149   
    ::aws_smithy_schema::ShapeType::String,
  150         -
    "next_token",
         150  +
    "NextToken",
  151    151   
    2,
  152    152   
);
  153    153   
static QUERYINPUT_MEMBER_MAX_ROWS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  154    154   
    ::aws_smithy_schema::ShapeId::from_static(
  155    155   
        "com.amazonaws.timestreamquery.synthetic#QueryInput$MaxRows",
  156    156   
        "com.amazonaws.timestreamquery.synthetic",
  157    157   
        "QueryInput",
  158    158   
    ),
  159    159   
    ::aws_smithy_schema::ShapeType::Integer,
  160         -
    "max_rows",
         160  +
    "MaxRows",
  161    161   
    3,
  162    162   
);
  163    163   
static QUERYINPUT_MEMBER_QUERY_INSIGHTS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  164    164   
    ::aws_smithy_schema::ShapeId::from_static(
  165    165   
        "com.amazonaws.timestreamquery.synthetic#QueryInput$QueryInsights",
  166    166   
        "com.amazonaws.timestreamquery.synthetic",
  167    167   
        "QueryInput",
  168    168   
    ),
  169    169   
    ::aws_smithy_schema::ShapeType::Structure,
  170         -
    "query_insights",
         170  +
    "QueryInsights",
  171    171   
    4,
  172    172   
);
  173    173   
static QUERYINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  174    174   
    QUERYINPUT_SCHEMA_ID,
  175    175   
    ::aws_smithy_schema::ShapeType::Structure,
  176    176   
    &[
  177    177   
        &QUERYINPUT_MEMBER_QUERY_STRING,
  178    178   
        &QUERYINPUT_MEMBER_CLIENT_TOKEN,
  179    179   
        &QUERYINPUT_MEMBER_NEXT_TOKEN,
  180    180   
        &QUERYINPUT_MEMBER_MAX_ROWS,
  181    181   
        &QUERYINPUT_MEMBER_QUERY_INSIGHTS,
  182    182   
    ],
  183    183   
);
  184    184   
impl QueryInput {
  185    185   
    /// The schema for this shape.
  186    186   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &QUERYINPUT_SCHEMA;
  187    187   
}
  188    188   
impl ::aws_smithy_schema::serde::SerializableStruct for QueryInput {
  189    189   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  190    190   
    fn serialize_members(
  191    191   
        &self,
  192    192   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  193    193   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  194    194   
        if let Some(ref val) = self.query_string {
  195    195   
            ser.write_string(&QUERYINPUT_MEMBER_QUERY_STRING, val)?;
  196    196   
        }
  197    197   
        if let Some(ref val) = self.client_token {
  198    198   
            ser.write_string(&QUERYINPUT_MEMBER_CLIENT_TOKEN, val)?;
  199    199   
        }
  200    200   
        if let Some(ref val) = self.next_token {
  201    201   
            ser.write_string(&QUERYINPUT_MEMBER_NEXT_TOKEN, val)?;
  202    202   
        }
  203    203   
        if let Some(ref val) = self.max_rows {
  204    204   
            ser.write_integer(&QUERYINPUT_MEMBER_MAX_ROWS, *val)?;
  205    205   
        }
  206    206   
        if let Some(ref val) = self.query_insights {
  207    207   
            ser.write_struct(&QUERYINPUT_MEMBER_QUERY_INSIGHTS, val)?;
  208    208   
        }
  209    209   
        Ok(())
  210    210   
    }
  211    211   
}
  212    212   
impl QueryInput {
  213    213   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  214         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  215         -
        deserializer: &mut D,
         214  +
    pub fn deserialize(
         215  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  216    216   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  217    217   
        #[allow(unused_variables, unused_mut)]
  218    218   
        let mut builder = Self::builder();
  219    219   
        #[allow(
  220    220   
            unused_variables,
  221    221   
            unreachable_code,
  222    222   
            clippy::single_match,
  223    223   
            clippy::match_single_binding,
  224    224   
            clippy::diverging_sub_expression
  225    225   
        )]
  226         -
        deserializer.read_struct(&QUERYINPUT_SCHEMA, (), |_, member, deser| {
         226  +
        deserializer.read_struct(&QUERYINPUT_SCHEMA, &mut |member, deser| {
  227    227   
            match member.member_index() {
  228    228   
                Some(0) => {
  229    229   
                    builder.query_string = Some(deser.read_string(member)?);
  230    230   
                }
  231    231   
                Some(1) => {
  232    232   
                    builder.client_token = Some(deser.read_string(member)?);
  233    233   
                }
  234    234   
                Some(2) => {
  235    235   
                    builder.next_token = Some(deser.read_string(member)?);
  236    236   
                }
  237    237   
                Some(3) => {
  238    238   
                    builder.max_rows = Some(deser.read_integer(member)?);
  239    239   
                }
  240    240   
                Some(4) => {
  241    241   
                    builder.query_insights = Some(crate::types::QueryInsights::deserialize(deser)?);
  242    242   
                }
  243    243   
                _ => {}
  244    244   
            }
  245    245   
            Ok(())
  246    246   
        })?;
         247  +
        builder.query_string = builder.query_string.or(Some(String::new()));
  247    248   
        builder
  248    249   
            .build()
  249    250   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  250    251   
    }
  251    252   
}
         253  +
impl QueryInput {
         254  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         255  +
    pub fn deserialize_with_response(
         256  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         257  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         258  +
        _status: u16,
         259  +
        _body: &[u8],
         260  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         261  +
        Self::deserialize(deserializer)
         262  +
    }
         263  +
}
  252    264   
impl QueryInput {
  253    265   
    /// Creates a new builder-style object to manufacture [`QueryInput`](crate::operation::query::QueryInput).
  254    266   
    pub fn builder() -> crate::operation::query::builders::QueryInputBuilder {
  255    267   
        crate::operation::query::builders::QueryInputBuilder::default()
  256    268   
    }
  257    269   
}
  258    270   
  259    271   
/// A builder for [`QueryInput`](crate::operation::query::QueryInput).
  260    272   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
  261    273   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/query/_query_output.rs

@@ -31,31 +250,323 @@
   51     51   
    "com.amazonaws.timestreamquery.synthetic",
   52     52   
    "QueryOutput",
   53     53   
);
   54     54   
static QUERYOUTPUT_MEMBER_QUERY_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   55     55   
    ::aws_smithy_schema::ShapeId::from_static(
   56     56   
        "com.amazonaws.timestreamquery.synthetic#QueryOutput$QueryId",
   57     57   
        "com.amazonaws.timestreamquery.synthetic",
   58     58   
        "QueryOutput",
   59     59   
    ),
   60     60   
    ::aws_smithy_schema::ShapeType::String,
   61         -
    "query_id",
          61  +
    "QueryId",
   62     62   
    0,
   63     63   
);
   64     64   
static QUERYOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   65     65   
    ::aws_smithy_schema::ShapeId::from_static(
   66     66   
        "com.amazonaws.timestreamquery.synthetic#QueryOutput$NextToken",
   67     67   
        "com.amazonaws.timestreamquery.synthetic",
   68     68   
        "QueryOutput",
   69     69   
    ),
   70     70   
    ::aws_smithy_schema::ShapeType::String,
   71         -
    "next_token",
          71  +
    "NextToken",
   72     72   
    1,
   73     73   
);
   74     74   
static QUERYOUTPUT_MEMBER_ROWS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   75     75   
    ::aws_smithy_schema::ShapeId::from_static(
   76     76   
        "com.amazonaws.timestreamquery.synthetic#QueryOutput$Rows",
   77     77   
        "com.amazonaws.timestreamquery.synthetic",
   78     78   
        "QueryOutput",
   79     79   
    ),
   80     80   
    ::aws_smithy_schema::ShapeType::List,
   81         -
    "rows",
          81  +
    "Rows",
   82     82   
    2,
   83     83   
);
   84     84   
static QUERYOUTPUT_MEMBER_COLUMN_INFO: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   85     85   
    ::aws_smithy_schema::ShapeId::from_static(
   86     86   
        "com.amazonaws.timestreamquery.synthetic#QueryOutput$ColumnInfo",
   87     87   
        "com.amazonaws.timestreamquery.synthetic",
   88     88   
        "QueryOutput",
   89     89   
    ),
   90     90   
    ::aws_smithy_schema::ShapeType::List,
   91         -
    "column_info",
          91  +
    "ColumnInfo",
   92     92   
    3,
   93     93   
);
   94     94   
static QUERYOUTPUT_MEMBER_QUERY_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   95     95   
    ::aws_smithy_schema::ShapeId::from_static(
   96     96   
        "com.amazonaws.timestreamquery.synthetic#QueryOutput$QueryStatus",
   97     97   
        "com.amazonaws.timestreamquery.synthetic",
   98     98   
        "QueryOutput",
   99     99   
    ),
  100    100   
    ::aws_smithy_schema::ShapeType::Structure,
  101         -
    "query_status",
         101  +
    "QueryStatus",
  102    102   
    4,
  103    103   
);
  104    104   
static QUERYOUTPUT_MEMBER_QUERY_INSIGHTS_RESPONSE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
  105    105   
    ::aws_smithy_schema::ShapeId::from_static(
  106    106   
        "com.amazonaws.timestreamquery.synthetic#QueryOutput$QueryInsightsResponse",
  107    107   
        "com.amazonaws.timestreamquery.synthetic",
  108    108   
        "QueryOutput",
  109    109   
    ),
  110    110   
    ::aws_smithy_schema::ShapeType::Structure,
  111         -
    "query_insights_response",
         111  +
    "QueryInsightsResponse",
  112    112   
    5,
  113    113   
);
         114  +
static QUERYOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
         115  +
    ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
         116  +
    ::aws_smithy_schema::ShapeType::String,
         117  +
    "request_id",
         118  +
    6,
         119  +
)
         120  +
.with_http_header("x-amzn-requestid");
  114    121   
static QUERYOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
  115    122   
    QUERYOUTPUT_SCHEMA_ID,
  116    123   
    ::aws_smithy_schema::ShapeType::Structure,
  117    124   
    &[
  118    125   
        &QUERYOUTPUT_MEMBER_QUERY_ID,
  119    126   
        &QUERYOUTPUT_MEMBER_NEXT_TOKEN,
  120    127   
        &QUERYOUTPUT_MEMBER_ROWS,
  121    128   
        &QUERYOUTPUT_MEMBER_COLUMN_INFO,
  122    129   
        &QUERYOUTPUT_MEMBER_QUERY_STATUS,
  123    130   
        &QUERYOUTPUT_MEMBER_QUERY_INSIGHTS_RESPONSE,
         131  +
        &QUERYOUTPUT_MEMBER__REQUEST_ID,
  124    132   
    ],
  125    133   
);
  126    134   
impl QueryOutput {
  127    135   
    /// The schema for this shape.
  128    136   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &QUERYOUTPUT_SCHEMA;
  129    137   
}
  130    138   
impl ::aws_smithy_schema::serde::SerializableStruct for QueryOutput {
  131    139   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
  132    140   
    fn serialize_members(
  133    141   
        &self,
  134    142   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
  135    143   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
  136    144   
        {
  137    145   
            let val = &self.query_id;
  138    146   
            ser.write_string(&QUERYOUTPUT_MEMBER_QUERY_ID, val)?;
  139    147   
        }
  140    148   
        if let Some(ref val) = self.next_token {
  141    149   
            ser.write_string(&QUERYOUTPUT_MEMBER_NEXT_TOKEN, val)?;
  142    150   
        }
  143    151   
        {
  144    152   
            let val = &self.rows;
  145    153   
  146    154   
            ser.write_list(&QUERYOUTPUT_MEMBER_ROWS, &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  147    155   
                for item in val {
  148    156   
                    ser.write_struct(crate::types::Row::SCHEMA, item)?;
  149    157   
                }
  150    158   
                Ok(())
  151    159   
            })?;
  152    160   
        }
  153    161   
        {
  154    162   
            let val = &self.column_info;
  155    163   
  156    164   
            ser.write_list(
  157    165   
                &QUERYOUTPUT_MEMBER_COLUMN_INFO,
  158    166   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
  159    167   
                    for item in val {
  160    168   
                        ser.write_struct(crate::types::ColumnInfo::SCHEMA, item)?;
  161    169   
                    }
  162    170   
                    Ok(())
  163    171   
                },
  164    172   
            )?;
  165    173   
        }
  166    174   
        if let Some(ref val) = self.query_status {
  167    175   
            ser.write_struct(&QUERYOUTPUT_MEMBER_QUERY_STATUS, val)?;
  168    176   
        }
  169    177   
        if let Some(ref val) = self.query_insights_response {
  170    178   
            ser.write_struct(&QUERYOUTPUT_MEMBER_QUERY_INSIGHTS_RESPONSE, val)?;
  171    179   
        }
  172    180   
        Ok(())
  173    181   
    }
  174    182   
}
  175    183   
impl QueryOutput {
  176    184   
    /// Deserializes this structure from a [`ShapeDeserializer`].
  177         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
  178         -
        deserializer: &mut D,
         185  +
    pub fn deserialize(
         186  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
  179    187   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
  180    188   
        #[allow(unused_variables, unused_mut)]
  181    189   
        let mut builder = Self::builder();
  182    190   
        #[allow(
  183    191   
            unused_variables,
  184    192   
            unreachable_code,
  185    193   
            clippy::single_match,
  186    194   
            clippy::match_single_binding,
  187    195   
            clippy::diverging_sub_expression
  188    196   
        )]
  189         -
        deserializer.read_struct(&QUERYOUTPUT_SCHEMA, (), |_, member, deser| {
         197  +
        deserializer.read_struct(&QUERYOUTPUT_SCHEMA, &mut |member, deser| {
  190    198   
            match member.member_index() {
  191    199   
                Some(0) => {
  192    200   
                    builder.query_id = Some(deser.read_string(member)?);
  193    201   
                }
  194    202   
                Some(1) => {
  195    203   
                    builder.next_token = Some(deser.read_string(member)?);
  196    204   
                }
  197    205   
                Some(2) => {
  198    206   
                    builder.rows = Some({
  199         -
                        let container = if let Some(cap) = deser.container_size() {
  200         -
                            Vec::with_capacity(cap)
  201         -
                        } else {
  202         -
                            Vec::new()
  203         -
                        };
  204         -
                        deser.read_list(member, container, |mut list, deser| {
  205         -
                            list.push(crate::types::Row::deserialize(deser)?);
  206         -
                            Ok(list)
  207         -
                        })?
         207  +
                        let mut container = Vec::new();
         208  +
                        deser.read_list(member, &mut |deser| {
         209  +
                            container.push(crate::types::Row::deserialize(deser)?);
         210  +
                            Ok(())
         211  +
                        })?;
         212  +
                        container
  208    213   
                    });
  209    214   
                }
  210    215   
                Some(3) => {
  211    216   
                    builder.column_info = Some({
  212         -
                        let container = if let Some(cap) = deser.container_size() {
  213         -
                            Vec::with_capacity(cap)
  214         -
                        } else {
  215         -
                            Vec::new()
  216         -
                        };
  217         -
                        deser.read_list(member, container, |mut list, deser| {
  218         -
                            list.push(crate::types::ColumnInfo::deserialize(deser)?);
  219         -
                            Ok(list)
  220         -
                        })?
         217  +
                        let mut container = Vec::new();
         218  +
                        deser.read_list(member, &mut |deser| {
         219  +
                            container.push(crate::types::ColumnInfo::deserialize(deser)?);
         220  +
                            Ok(())
         221  +
                        })?;
         222  +
                        container
         223  +
                    });
         224  +
                }
         225  +
                Some(4) => {
         226  +
                    builder.query_status = Some(crate::types::QueryStatus::deserialize(deser)?);
         227  +
                }
         228  +
                Some(5) => {
         229  +
                    builder.query_insights_response = Some(crate::types::QueryInsightsResponse::deserialize(deser)?);
         230  +
                }
         231  +
                Some(6) => {
         232  +
                    builder._request_id = Some(deser.read_string(member)?);
         233  +
                }
         234  +
                _ => {}
         235  +
            }
         236  +
            Ok(())
         237  +
        })?;
         238  +
        builder.query_id = builder.query_id.or(Some(String::new()));
         239  +
        builder.rows = builder.rows.or(Some(Vec::new()));
         240  +
        builder.column_info = builder.column_info.or(Some(Vec::new()));
         241  +
        builder
         242  +
            .build()
         243  +
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
         244  +
    }
         245  +
}
         246  +
impl QueryOutput {
         247  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         248  +
    /// Header-bound members are read directly from headers, avoiding runtime
         249  +
    /// member iteration overhead. Body members are read via the deserializer.
         250  +
    pub fn deserialize_with_response(
         251  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         252  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         253  +
        _status: u16,
         254  +
        _body: &[u8],
         255  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         256  +
        #[allow(unused_variables, unused_mut)]
         257  +
        let mut builder = Self::builder();
         258  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         259  +
            builder._request_id = Some(val.to_string());
         260  +
        }
         261  +
        #[allow(
         262  +
            unused_variables,
         263  +
            unreachable_code,
         264  +
            clippy::single_match,
         265  +
            clippy::match_single_binding,
         266  +
            clippy::diverging_sub_expression
         267  +
        )]
         268  +
        deserializer.read_struct(&QUERYOUTPUT_SCHEMA, &mut |member, deser| {
         269  +
            match member.member_index() {
         270  +
                Some(0) => {
         271  +
                    builder.query_id = Some(deser.read_string(member)?);
         272  +
                }
         273  +
                Some(1) => {
         274  +
                    builder.next_token = Some(deser.read_string(member)?);
         275  +
                }
         276  +
                Some(2) => {
         277  +
                    builder.rows = Some({
         278  +
                        let mut container = Vec::new();
         279  +
                        deser.read_list(member, &mut |deser| {
         280  +
                            container.push(crate::types::Row::deserialize(deser)?);
         281  +
                            Ok(())
         282  +
                        })?;
         283  +
                        container
         284  +
                    });
         285  +
                }
         286  +
                Some(3) => {
         287  +
                    builder.column_info = Some({
         288  +
                        let mut container = Vec::new();
         289  +
                        deser.read_list(member, &mut |deser| {
         290  +
                            container.push(crate::types::ColumnInfo::deserialize(deser)?);
         291  +
                            Ok(())
         292  +
                        })?;
         293  +
                        container
  221    294   
                    });
  222    295   
                }
  223    296   
                Some(4) => {
  224    297   
                    builder.query_status = Some(crate::types::QueryStatus::deserialize(deser)?);
  225    298   
                }
  226    299   
                Some(5) => {
  227    300   
                    builder.query_insights_response = Some(crate::types::QueryInsightsResponse::deserialize(deser)?);
  228    301   
                }
  229    302   
                _ => {}
  230    303   
            }

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/tag_resource.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 `TagResource`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct TagResource;
    6      6   
impl TagResource {
    7      7   
    /// Creates a new `TagResource`
    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::tag_resource::TagResourceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::tag_resource::TagResourceOutput::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::tag_resource::TagResourceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::tag_resource::TagResourceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::tag_resource::TagResourceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,378 @@
  138    142   
                crate::operation::tag_resource::TagResourceError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct TagResourceResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for TagResourceResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  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_tag_resource::de_tag_resource_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_tag_resource::de_tag_resource_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::tag_resource::TagResourceError::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  +
                "InvalidEndpointException" => crate::operation::tag_resource::TagResourceError::InvalidEndpointException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::InvalidEndpointException::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  +
                        }
  162    200   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         201  +
                    tmp.meta = generic;
         202  +
                    if tmp.message.is_none() {
         203  +
                        tmp.message = _error_message;
         204  +
                    }
         205  +
                    tmp
         206  +
                }),
         207  +
                "ResourceNotFoundException" => crate::operation::tag_resource::TagResourceError::ResourceNotFoundException({
         208  +
                    let mut tmp = match protocol
         209  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| {
         211  +
                            crate::types::error::ResourceNotFoundException::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  +
                "ServiceQuotaExceededException" => crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException({
         232  +
                    let mut tmp = match protocol
         233  +
                        .deserialize_response(response, crate::types::error::ServiceQuotaExceededException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| {
         235  +
                            crate::types::error::ServiceQuotaExceededException::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  +
                "ThrottlingException" => crate::operation::tag_resource::TagResourceError::ThrottlingException({
         256  +
                    let mut tmp = match protocol
         257  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         258  +
                        .and_then(|mut deser| {
         259  +
                            crate::types::error::ThrottlingException::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  +
                "ValidationException" => crate::operation::tag_resource::TagResourceError::ValidationException({
         280  +
                    let mut tmp = match protocol
         281  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         282  +
                        .and_then(|mut deser| {
         283  +
                            crate::types::error::ValidationException::deserialize_with_response(
         284  +
                                &mut *deser,
         285  +
                                response.headers(),
         286  +
                                response.status().into(),
         287  +
                                body,
         288  +
                            )
         289  +
                        }) {
         290  +
                        ::std::result::Result::Ok(val) => val,
         291  +
                        ::std::result::Result::Err(e) => {
         292  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         293  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         294  +
                            ))
         295  +
                        }
         296  +
                    };
         297  +
                    tmp.meta = generic;
         298  +
                    if tmp.message.is_none() {
         299  +
                        tmp.message = _error_message;
         300  +
                    }
         301  +
                    tmp
         302  +
                }),
         303  +
                _ => crate::operation::tag_resource::TagResourceError::generic(generic),
         304  +
            };
         305  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         306  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         307  +
            ))
         308  +
        } else {
         309  +
            let protocol = _cfg
         310  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         311  +
                .expect("a SharedClientProtocol is required");
         312  +
            let mut deser = protocol.deserialize_response(response, TagResource::OUTPUT_SCHEMA, _cfg).map_err(|e| {
         313  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         314  +
            })?;
         315  +
            let body = response.body().bytes().expect("body loaded");
         316  +
            let output = crate::operation::tag_resource::TagResourceOutput::deserialize_with_response(
         317  +
                &mut *deser,
         318  +
                response.headers(),
         319  +
                response.status().into(),
         320  +
                body,
         321  +
            )
         322  +
            .map_err(|e| {
         323  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         324  +
            })?;
         325  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         326  +
        }
  164    327   
    }
  165    328   
}
  166    329   
#[derive(Debug)]
  167    330   
struct TagResourceRequestSerializer;
  168    331   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for TagResourceRequestSerializer {
  169    332   
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
  170    333   
    fn serialize_input(
  171    334   
        &self,
  172    335   
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
  173    336   
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  174    337   
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
  175    338   
        let input = input
  176    339   
            .downcast::<crate::operation::tag_resource::TagResourceInput>()
  177    340   
            .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::tag_resource::TagResourceInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::tag_resource::TagResourceInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "Timestream_20181101.TagResource",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_tag_resource::ser_tag_resource_input(&input)?);
  211         -
        if let Some(content_length) = body.content_length() {
  212         -
            let content_length = content_length.to_string();
  213         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  214         -
        }
  215         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         341  +
        let protocol = _cfg
         342  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         343  +
            .expect("a SharedClientProtocol is required");
         344  +
        let mut request = protocol
         345  +
            .serialize_request(&input, TagResource::INPUT_SCHEMA, "", _cfg)
         346  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         347  +
         348  +
        return ::std::result::Result::Ok(request);
  216    349   
    }
  217    350   
}
  218    351   
#[derive(Debug)]
  219    352   
struct TagResourceEndpointParamsInterceptor;
  220    353   
  221    354   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for TagResourceEndpointParamsInterceptor {
  222    355   
    fn name(&self) -> &'static str {
  223    356   
        "TagResourceEndpointParamsInterceptor"
  224    357   
    }
  225    358   

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/tag_resource/_tag_resource_input.rs

@@ -5,5 +150,160 @@
   25     25   
    "com.amazonaws.timestreamquery.synthetic",
   26     26   
    "TagResourceInput",
   27     27   
);
   28     28   
static TAGRESOURCEINPUT_MEMBER_RESOURCE_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   29     29   
    ::aws_smithy_schema::ShapeId::from_static(
   30     30   
        "com.amazonaws.timestreamquery.synthetic#TagResourceInput$ResourceARN",
   31     31   
        "com.amazonaws.timestreamquery.synthetic",
   32     32   
        "TagResourceInput",
   33     33   
    ),
   34     34   
    ::aws_smithy_schema::ShapeType::String,
   35         -
    "resource_arn",
          35  +
    "ResourceARN",
   36     36   
    0,
   37     37   
);
   38     38   
static TAGRESOURCEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
   39     39   
    ::aws_smithy_schema::ShapeId::from_static(
   40     40   
        "com.amazonaws.timestreamquery.synthetic#TagResourceInput$Tags",
   41     41   
        "com.amazonaws.timestreamquery.synthetic",
   42     42   
        "TagResourceInput",
   43     43   
    ),
   44     44   
    ::aws_smithy_schema::ShapeType::List,
   45         -
    "tags",
          45  +
    "Tags",
   46     46   
    1,
   47     47   
);
   48     48   
static TAGRESOURCEINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
   49     49   
    TAGRESOURCEINPUT_SCHEMA_ID,
   50     50   
    ::aws_smithy_schema::ShapeType::Structure,
   51     51   
    &[&TAGRESOURCEINPUT_MEMBER_RESOURCE_ARN, &TAGRESOURCEINPUT_MEMBER_TAGS],
   52     52   
);
   53     53   
impl TagResourceInput {
   54     54   
    /// The schema for this shape.
   55     55   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGRESOURCEINPUT_SCHEMA;
   56     56   
}
   57     57   
impl ::aws_smithy_schema::serde::SerializableStruct for TagResourceInput {
   58     58   
    #[allow(unused_variables, clippy::diverging_sub_expression)]
   59     59   
    fn serialize_members(
   60     60   
        &self,
   61     61   
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
   62     62   
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
   63     63   
        if let Some(ref val) = self.resource_arn {
   64     64   
            ser.write_string(&TAGRESOURCEINPUT_MEMBER_RESOURCE_ARN, val)?;
   65     65   
        }
   66     66   
        if let Some(ref val) = self.tags {
   67     67   
            ser.write_list(
   68     68   
                &TAGRESOURCEINPUT_MEMBER_TAGS,
   69     69   
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
   70     70   
                    for item in val {
   71     71   
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
   72     72   
                    }
   73     73   
                    Ok(())
   74     74   
                },
   75     75   
            )?;
   76     76   
        }
   77     77   
        Ok(())
   78     78   
    }
   79     79   
}
   80     80   
impl TagResourceInput {
   81     81   
    /// Deserializes this structure from a [`ShapeDeserializer`].
   82         -
    pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
   83         -
        deserializer: &mut D,
          82  +
    pub fn deserialize(
          83  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
   84     84   
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
   85     85   
        #[allow(unused_variables, unused_mut)]
   86     86   
        let mut builder = Self::builder();
   87     87   
        #[allow(
   88     88   
            unused_variables,
   89     89   
            unreachable_code,
   90     90   
            clippy::single_match,
   91     91   
            clippy::match_single_binding,
   92     92   
            clippy::diverging_sub_expression
   93     93   
        )]
   94         -
        deserializer.read_struct(&TAGRESOURCEINPUT_SCHEMA, (), |_, member, deser| {
          94  +
        deserializer.read_struct(&TAGRESOURCEINPUT_SCHEMA, &mut |member, deser| {
   95     95   
            match member.member_index() {
   96     96   
                Some(0) => {
   97     97   
                    builder.resource_arn = Some(deser.read_string(member)?);
   98     98   
                }
   99     99   
                Some(1) => {
  100    100   
                    builder.tags = Some({
  101         -
                        let container = if let Some(cap) = deser.container_size() {
  102         -
                            Vec::with_capacity(cap)
  103         -
                        } else {
  104         -
                            Vec::new()
  105         -
                        };
  106         -
                        deser.read_list(member, container, |mut list, deser| {
  107         -
                            list.push(crate::types::Tag::deserialize(deser)?);
  108         -
                            Ok(list)
  109         -
                        })?
         101  +
                        let mut container = Vec::new();
         102  +
                        deser.read_list(member, &mut |deser| {
         103  +
                            container.push(crate::types::Tag::deserialize(deser)?);
         104  +
                            Ok(())
         105  +
                        })?;
         106  +
                        container
  110    107   
                    });
  111    108   
                }
  112    109   
                _ => {}
  113    110   
            }
  114    111   
            Ok(())
  115    112   
        })?;
         113  +
        builder.resource_arn = builder.resource_arn.or(Some(String::new()));
         114  +
        builder.tags = builder.tags.or(Some(Vec::new()));
  116    115   
        builder
  117    116   
            .build()
  118    117   
            .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
  119    118   
    }
  120    119   
}
         120  +
impl TagResourceInput {
         121  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         122  +
    pub fn deserialize_with_response(
         123  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         124  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         125  +
        _status: u16,
         126  +
        _body: &[u8],
         127  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         128  +
        Self::deserialize(deserializer)
         129  +
    }
         130  +
}
  121    131   
impl TagResourceInput {
  122    132   
    /// Creates a new builder-style object to manufacture [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput).
  123    133   
    pub fn builder() -> crate::operation::tag_resource::builders::TagResourceInputBuilder {
  124    134   
        crate::operation::tag_resource::builders::TagResourceInputBuilder::default()
  125    135   
    }
  126    136   
}
  127    137   
  128    138   
/// A builder for [`TagResourceInput`](crate::operation::tag_resource::TagResourceInput).
  129    139   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
  130    140   
#[non_exhaustive]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/tag_resource/_tag_resource_output.rs

@@ -1,1 +80,111 @@
    3      3   
#[non_exhaustive]
    4      4   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    5      5   
pub struct TagResourceOutput {
    6      6   
    _request_id: Option<String>,
    7      7   
}
    8      8   
static TAGRESOURCEOUTPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
    9      9   
    "com.amazonaws.timestreamquery.synthetic#TagResourceOutput",
   10     10   
    "com.amazonaws.timestreamquery.synthetic",
   11     11   
    "TagResourceOutput",
   12     12   
);
   13         -
static TAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema =
   14         -
    ::aws_smithy_schema::Schema::new_struct(TAGRESOURCEOUTPUT_SCHEMA_ID, ::aws_smithy_schema::ShapeType::Structure, &[]);
          13  +
static TAGRESOURCEOUTPUT_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 TAGRESOURCEOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
          21  +
    TAGRESOURCEOUTPUT_SCHEMA_ID,
          22  +
    ::aws_smithy_schema::ShapeType::Structure,
          23  +
    &[&TAGRESOURCEOUTPUT_MEMBER__REQUEST_ID],
          24  +
);
   15     25   
impl TagResourceOutput {
   16     26   
    /// The schema for this shape.
   17     27   
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &TAGRESOURCEOUTPUT_SCHEMA;
   18     28   
}
   19     29   
impl ::aws_smithy_schema::serde::SerializableStruct for TagResourceOutput {
   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 TagResourceOutput {
   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(&TAGRESOURCEOUTPUT_SCHEMA, (), |_, member, deser| {
          52  +
        deserializer.read_struct(&TAGRESOURCEOUTPUT_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 TagResourceOutput {
          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 TagResourceOutput {
   52     83   
    fn request_id(&self) -> Option<&str> {
   53     84   
        self._request_id.as_deref()
   54     85   
    }
   55     86   
}
   56     87   
impl TagResourceOutput {
   57     88   
    /// Creates a new builder-style object to manufacture [`TagResourceOutput`](crate::operation::tag_resource::TagResourceOutput).
   58     89   
    pub fn builder() -> crate::operation::tag_resource::builders::TagResourceOutputBuilder {
   59     90   
        crate::operation::tag_resource::builders::TagResourceOutputBuilder::default()
   60     91   
    }

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/operation/untag_resource.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 `UntagResource`.
    3      3   
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
    4      4   
#[non_exhaustive]
    5      5   
pub struct UntagResource;
    6      6   
impl UntagResource {
    7      7   
    /// Creates a new `UntagResource`
    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::untag_resource::UntagResourceInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::untag_resource::UntagResourceOutput::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::untag_resource::UntagResourceInput,
   14     18   
    ) -> ::std::result::Result<
   15     19   
        crate::operation::untag_resource::UntagResourceOutput,
   16     20   
        ::aws_smithy_runtime_api::client::result::SdkError<
   17     21   
            crate::operation::untag_resource::UntagResourceError,
   18     22   
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
   19     23   
        >,
   20     24   
    > {
@@ -118,122 +245,354 @@
  138    142   
                crate::operation::untag_resource::UntagResourceError,
  139    143   
            >::new());
  140    144   
  141    145   
        ::std::borrow::Cow::Owned(rcb)
  142    146   
    }
  143    147   
}
  144    148   
  145    149   
#[derive(Debug)]
  146    150   
struct UntagResourceResponseDeserializer;
  147    151   
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UntagResourceResponseDeserializer {
  148         -
    fn deserialize_nonstreaming(
         152  +
    fn deserialize_nonstreaming_with_config(
  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_untag_resource::de_untag_resource_http_error(status, headers, body)
  160         -
        } else {
  161         -
            crate::protocol_serde::shape_untag_resource::de_untag_resource_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::untag_resource::UntagResourceError::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  +
                "InvalidEndpointException" => crate::operation::untag_resource::UntagResourceError::InvalidEndpointException({
         184  +
                    let mut tmp = match protocol
         185  +
                        .deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
         186  +
                        .and_then(|mut deser| {
         187  +
                            crate::types::error::InvalidEndpointException::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  +
                "ResourceNotFoundException" => crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException({
         208  +
                    let mut tmp = match protocol
         209  +
                        .deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
         210  +
                        .and_then(|mut deser| {
         211  +
                            crate::types::error::ResourceNotFoundException::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  +
                        }
  162    224   
                    };
  163         -
        crate::protocol_serde::type_erase_result(parse_result)
         225  +
                    tmp.meta = generic;
         226  +
                    if tmp.message.is_none() {
         227  +
                        tmp.message = _error_message;
         228  +
                    }
         229  +
                    tmp
         230  +
                }),
         231  +
                "ThrottlingException" => crate::operation::untag_resource::UntagResourceError::ThrottlingException({
         232  +
                    let mut tmp = match protocol
         233  +
                        .deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
         234  +
                        .and_then(|mut deser| {
         235  +
                            crate::types::error::ThrottlingException::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  +
                "ValidationException" => crate::operation::untag_resource::UntagResourceError::ValidationException({
         256  +
                    let mut tmp = match protocol
         257  +
                        .deserialize_response(response, crate::types::error::ValidationException::SCHEMA, _cfg)
         258  +
                        .and_then(|mut deser| {
         259  +
                            crate::types::error::ValidationException::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::untag_resource::UntagResourceError::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, UntagResource::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::untag_resource::UntagResourceOutput::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 UntagResourceRequestSerializer;
  168    307   
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UntagResourceRequestSerializer {
  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::untag_resource::UntagResourceInput>()
  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::untag_resource::UntagResourceInput,
  186         -
                output: &mut ::std::string::String,
  187         -
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188         -
                use ::std::fmt::Write as _;
  189         -
                ::std::write!(output, "/").expect("formatting should succeed");
  190         -
                ::std::result::Result::Ok(())
  191         -
            }
  192         -
            #[allow(clippy::unnecessary_wraps)]
  193         -
            fn update_http_builder(
  194         -
                input: &crate::operation::untag_resource::UntagResourceInput,
  195         -
                builder: ::http_1x::request::Builder,
  196         -
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197         -
                let mut uri = ::std::string::String::new();
  198         -
                uri_base(input, &mut uri)?;
  199         -
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200         -
            }
  201         -
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-amz-json-1.0");
  203         -
            builder = _header_serialization_settings.set_default_header(
  204         -
                builder,
  205         -
                ::http_1x::header::HeaderName::from_static("x-amz-target"),
  206         -
                "Timestream_20181101.UntagResource",
  207         -
            );
  208         -
            builder
  209         -
        };
  210         -
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_untag_resource::ser_untag_resource_input(&input)?);
  211         -
        if let Some(content_length) = body.content_length() {
  212         -
            let content_length = content_length.to_string();
  213         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  214         -
        }
  215         -
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
         317  +
        let protocol = _cfg
         318  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         319  +
            .expect("a SharedClientProtocol is required");
         320  +
        let mut request = protocol
         321  +
            .serialize_request(&input, UntagResource::INPUT_SCHEMA, "", _cfg)
         322  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         323  +
         324  +
        return ::std::result::Result::Ok(request);
  216    325   
    }
  217    326   
}
  218    327   
#[derive(Debug)]
  219    328   
struct UntagResourceEndpointParamsInterceptor;
  220    329   
  221    330   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UntagResourceEndpointParamsInterceptor {
  222    331   
    fn name(&self) -> &'static str {
  223    332   
        "UntagResourceEndpointParamsInterceptor"
  224    333   
    }
  225    334   

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

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

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

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