AWS SDK

AWS SDK

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5

Files changed:

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

@@ -187,187 +254,254 @@
  207    207   
                    .as_ref()
  208    208   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("tag_keys", "cannot be empty or unset"))?;
  209    209   
                for inner_3 in inner_2 {
  210    210   
                    query.push_kv("tagKeys", &::aws_smithy_http::query::fmt_string(inner_3));
  211    211   
                }
  212    212   
                ::std::result::Result::Ok(())
  213    213   
            }
  214    214   
            #[allow(clippy::unnecessary_wraps)]
  215    215   
            fn update_http_builder(
  216    216   
                input: &crate::operation::untag_resource::UntagResourceInput,
  217         -
                builder: ::http::request::Builder,
  218         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         217  +
                builder: ::http_1x::request::Builder,
         218  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  219    219   
                let mut uri = ::std::string::String::new();
  220    220   
                uri_base(input, &mut uri)?;
  221    221   
                uri_query(input, &mut uri)?;
  222    222   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  223    223   
            }
  224         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         224  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  225    225   
            builder
  226    226   
        };
  227    227   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  228    228   
  229    229   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  230    230   
    }
  231    231   
}
  232    232   
#[derive(Debug)]
  233    233   
struct UntagResourceEndpointParamsInterceptor;
  234    234   

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

@@ -190,190 +263,263 @@
  210    210   
                    "/2015-03-31/functions/{FunctionName}/aliases/{Name}",
  211    211   
                    FunctionName = function_name,
  212    212   
                    Name = name
  213    213   
                )
  214    214   
                .expect("formatting should succeed");
  215    215   
                ::std::result::Result::Ok(())
  216    216   
            }
  217    217   
            #[allow(clippy::unnecessary_wraps)]
  218    218   
            fn update_http_builder(
  219    219   
                input: &crate::operation::update_alias::UpdateAliasInput,
  220         -
                builder: ::http::request::Builder,
  221         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         220  +
                builder: ::http_1x::request::Builder,
         221  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  222    222   
                let mut uri = ::std::string::String::new();
  223    223   
                uri_base(input, &mut uri)?;
  224    224   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  225    225   
            }
  226         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  227         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         226  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         227  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  228    228   
            builder
  229    229   
        };
  230    230   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_alias::ser_update_alias_input(&input)?);
  231    231   
        if let Some(content_length) = body.content_length() {
  232    232   
            let content_length = content_length.to_string();
  233         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         233  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  234    234   
        }
  235    235   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  236    236   
    }
  237    237   
}
  238    238   
#[derive(Debug)]
  239    239   
struct UpdateAliasEndpointParamsInterceptor;
  240    240   
  241    241   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateAliasEndpointParamsInterceptor {
  242    242   
    fn name(&self) -> &'static str {
  243    243   
        "UpdateAliasEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_code_signing_config.rs

@@ -181,181 +256,256 @@
  201    201   
                    output,
  202    202   
                    "/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",
  203    203   
                    CodeSigningConfigArn = code_signing_config_arn
  204    204   
                )
  205    205   
                .expect("formatting should succeed");
  206    206   
                ::std::result::Result::Ok(())
  207    207   
            }
  208    208   
            #[allow(clippy::unnecessary_wraps)]
  209    209   
            fn update_http_builder(
  210    210   
                input: &crate::operation::update_code_signing_config::UpdateCodeSigningConfigInput,
  211         -
                builder: ::http::request::Builder,
  212         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         211  +
                builder: ::http_1x::request::Builder,
         212  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  213    213   
                let mut uri = ::std::string::String::new();
  214    214   
                uri_base(input, &mut uri)?;
  215    215   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  216    216   
            }
  217         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  218         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         217  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         218  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  219    219   
            builder
  220    220   
        };
  221    221   
        let body = ::aws_smithy_types::body::SdkBody::from(
  222    222   
            crate::protocol_serde::shape_update_code_signing_config::ser_update_code_signing_config_input(&input)?,
  223    223   
        );
  224    224   
        if let Some(content_length) = body.content_length() {
  225    225   
            let content_length = content_length.to_string();
  226         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         226  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  227    227   
        }
  228    228   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  229    229   
    }
  230    230   
}
  231    231   
#[derive(Debug)]
  232    232   
struct UpdateCodeSigningConfigEndpointParamsInterceptor;
  233    233   
  234    234   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateCodeSigningConfigEndpointParamsInterceptor {
  235    235   
    fn name(&self) -> &'static str {
  236    236   
        "UpdateCodeSigningConfigEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_event_source_mapping.rs

@@ -176,176 +251,251 @@
  196    196   
                        "uuid",
  197    197   
                        "cannot be empty or unset",
  198    198   
                    ));
  199    199   
                }
  200    200   
                ::std::write!(output, "/2015-03-31/event-source-mappings/{UUID}", UUID = uuid).expect("formatting should succeed");
  201    201   
                ::std::result::Result::Ok(())
  202    202   
            }
  203    203   
            #[allow(clippy::unnecessary_wraps)]
  204    204   
            fn update_http_builder(
  205    205   
                input: &crate::operation::update_event_source_mapping::UpdateEventSourceMappingInput,
  206         -
                builder: ::http::request::Builder,
  207         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         206  +
                builder: ::http_1x::request::Builder,
         207  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  208    208   
                let mut uri = ::std::string::String::new();
  209    209   
                uri_base(input, &mut uri)?;
  210    210   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  211    211   
            }
  212         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  213         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         212  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         213  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  214    214   
            builder
  215    215   
        };
  216    216   
        let body = ::aws_smithy_types::body::SdkBody::from(
  217    217   
            crate::protocol_serde::shape_update_event_source_mapping::ser_update_event_source_mapping_input(&input)?,
  218    218   
        );
  219    219   
        if let Some(content_length) = body.content_length() {
  220    220   
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         221  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222    222   
        }
  223    223   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  224    224   
    }
  225    225   
}
  226    226   
#[derive(Debug)]
  227    227   
struct UpdateEventSourceMappingEndpointParamsInterceptor;
  228    228   
  229    229   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateEventSourceMappingEndpointParamsInterceptor {
  230    230   
    fn name(&self) -> &'static str {
  231    231   
        "UpdateEventSourceMappingEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_function_code.rs

@@ -177,177 +251,251 @@
  197    197   
                        "function_name",
  198    198   
                        "cannot be empty or unset",
  199    199   
                    ));
  200    200   
                }
  201    201   
                ::std::write!(output, "/2015-03-31/functions/{FunctionName}/code", FunctionName = function_name).expect("formatting should succeed");
  202    202   
                ::std::result::Result::Ok(())
  203    203   
            }
  204    204   
            #[allow(clippy::unnecessary_wraps)]
  205    205   
            fn update_http_builder(
  206    206   
                input: &crate::operation::update_function_code::UpdateFunctionCodeInput,
  207         -
                builder: ::http::request::Builder,
  208         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         207  +
                builder: ::http_1x::request::Builder,
         208  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  209    209   
                let mut uri = ::std::string::String::new();
  210    210   
                uri_base(input, &mut uri)?;
  211    211   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  212    212   
            }
  213         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  214         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         213  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         214  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  215    215   
            builder
  216    216   
        };
  217    217   
        let body =
  218    218   
            ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_update_function_code::ser_update_function_code_input(&input)?);
  219    219   
        if let Some(content_length) = body.content_length() {
  220    220   
            let content_length = content_length.to_string();
  221         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         221  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  222    222   
        }
  223    223   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  224    224   
    }
  225    225   
}
  226    226   
#[derive(Debug)]
  227    227   
struct UpdateFunctionCodeEndpointParamsInterceptor;
  228    228   
  229    229   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateFunctionCodeEndpointParamsInterceptor {
  230    230   
    fn name(&self) -> &'static str {
  231    231   
        "UpdateFunctionCodeEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_function_configuration.rs

@@ -184,184 +259,259 @@
  204    204   
                        "cannot be empty or unset",
  205    205   
                    ));
  206    206   
                }
  207    207   
                ::std::write!(output, "/2015-03-31/functions/{FunctionName}/configuration", FunctionName = function_name)
  208    208   
                    .expect("formatting should succeed");
  209    209   
                ::std::result::Result::Ok(())
  210    210   
            }
  211    211   
            #[allow(clippy::unnecessary_wraps)]
  212    212   
            fn update_http_builder(
  213    213   
                input: &crate::operation::update_function_configuration::UpdateFunctionConfigurationInput,
  214         -
                builder: ::http::request::Builder,
  215         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         214  +
                builder: ::http_1x::request::Builder,
         215  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  216    216   
                let mut uri = ::std::string::String::new();
  217    217   
                uri_base(input, &mut uri)?;
  218    218   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  219    219   
            }
  220         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  221         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         220  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         221  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  222    222   
            builder
  223    223   
        };
  224    224   
        let body = ::aws_smithy_types::body::SdkBody::from(
  225    225   
            crate::protocol_serde::shape_update_function_configuration::ser_update_function_configuration_input(&input)?,
  226    226   
        );
  227    227   
        if let Some(content_length) = body.content_length() {
  228    228   
            let content_length = content_length.to_string();
  229         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         229  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  230    230   
        }
  231    231   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  232    232   
    }
  233    233   
}
  234    234   
#[derive(Debug)]
  235    235   
struct UpdateFunctionConfigurationEndpointParamsInterceptor;
  236    236   
  237    237   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateFunctionConfigurationEndpointParamsInterceptor {
  238    238   
    fn name(&self) -> &'static str {
  239    239   
        "UpdateFunctionConfigurationEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_function_event_invoke_config.rs

@@ -201,201 +277,277 @@
  221    221   
                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
  222    222   
                    {
  223    223   
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  224    224   
                    }
  225    225   
                }
  226    226   
                ::std::result::Result::Ok(())
  227    227   
            }
  228    228   
            #[allow(clippy::unnecessary_wraps)]
  229    229   
            fn update_http_builder(
  230    230   
                input: &crate::operation::update_function_event_invoke_config::UpdateFunctionEventInvokeConfigInput,
  231         -
                builder: ::http::request::Builder,
  232         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         231  +
                builder: ::http_1x::request::Builder,
         232  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  233    233   
                let mut uri = ::std::string::String::new();
  234    234   
                uri_base(input, &mut uri)?;
  235    235   
                uri_query(input, &mut uri)?;
  236    236   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  237    237   
            }
  238         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  239         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         238  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         239  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  240    240   
            builder
  241    241   
        };
  242    242   
        let body = ::aws_smithy_types::body::SdkBody::from(
  243    243   
            crate::protocol_serde::shape_update_function_event_invoke_config::ser_update_function_event_invoke_config_input(&input)?,
  244    244   
        );
  245    245   
        if let Some(content_length) = body.content_length() {
  246    246   
            let content_length = content_length.to_string();
  247         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         247  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  248    248   
        }
  249    249   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  250    250   
    }
  251    251   
}
  252    252   
#[derive(Debug)]
  253    253   
struct UpdateFunctionEventInvokeConfigEndpointParamsInterceptor;
  254    254   
  255    255   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateFunctionEventInvokeConfigEndpointParamsInterceptor {
  256    256   
    fn name(&self) -> &'static str {
  257    257   
        "UpdateFunctionEventInvokeConfigEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/operation/update_function_url_config.rs

@@ -188,188 +264,264 @@
  208    208   
                if let ::std::option::Option::Some(inner_2) = &_input.qualifier {
  209    209   
                    {
  210    210   
                        query.push_kv("Qualifier", &::aws_smithy_http::query::fmt_string(inner_2));
  211    211   
                    }
  212    212   
                }
  213    213   
                ::std::result::Result::Ok(())
  214    214   
            }
  215    215   
            #[allow(clippy::unnecessary_wraps)]
  216    216   
            fn update_http_builder(
  217    217   
                input: &crate::operation::update_function_url_config::UpdateFunctionUrlConfigInput,
  218         -
                builder: ::http::request::Builder,
  219         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         218  +
                builder: ::http_1x::request::Builder,
         219  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  220    220   
                let mut uri = ::std::string::String::new();
  221    221   
                uri_base(input, &mut uri)?;
  222    222   
                uri_query(input, &mut uri)?;
  223    223   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  224    224   
            }
  225         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  226         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         225  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         226  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  227    227   
            builder
  228    228   
        };
  229    229   
        let body = ::aws_smithy_types::body::SdkBody::from(
  230    230   
            crate::protocol_serde::shape_update_function_url_config::ser_update_function_url_config_input(&input)?,
  231    231   
        );
  232    232   
        if let Some(content_length) = body.content_length() {
  233    233   
            let content_length = content_length.to_string();
  234         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         234  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  235    235   
        }
  236    236   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  237    237   
    }
  238    238   
}
  239    239   
#[derive(Debug)]
  240    240   
struct UpdateFunctionUrlConfigEndpointParamsInterceptor;
  241    241   
  242    242   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateFunctionUrlConfigEndpointParamsInterceptor {
  243    243   
    fn name(&self) -> &'static str {
  244    244   
        "UpdateFunctionUrlConfigEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_invoke.rs

@@ -498,498 +564,564 @@
  518    518   
        );
  519    519   
        output = output.set_payload(crate::protocol_serde::shape_invoke_output::de_payload_payload(_response_body)?);
  520    520   
        output = output.set_status_code(Some(_response_status as _));
  521    521   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  522    522   
        output.build()
  523    523   
    })
  524    524   
}
  525    525   
  526    526   
pub fn ser_invoke_headers(
  527    527   
    input: &crate::operation::invoke::InvokeInput,
  528         -
    mut builder: ::http::request::Builder,
  529         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         528  +
    mut builder: ::http_1x::request::Builder,
         529  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  530    530   
    if let ::std::option::Option::Some(inner_1) = &input.invocation_type {
  531    531   
        let formatted_2 = inner_1.as_str();
  532    532   
        let header_value = formatted_2;
  533         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         533  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  534    534   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  535    535   
                "invocation_type",
  536    536   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  537    537   
            )
  538    538   
        })?;
  539    539   
        builder = builder.header("X-Amz-Invocation-Type", header_value);
  540    540   
    }
  541    541   
    if let ::std::option::Option::Some(inner_3) = &input.log_type {
  542    542   
        let formatted_4 = inner_3.as_str();
  543    543   
        let header_value = formatted_4;
  544         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         544  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  545    545   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  546    546   
                "log_type",
  547    547   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  548    548   
            )
  549    549   
        })?;
  550    550   
        builder = builder.header("X-Amz-Log-Type", header_value);
  551    551   
    }
  552    552   
    if let ::std::option::Option::Some(inner_5) = &input.client_context {
  553    553   
        let formatted_6 = inner_5.as_str();
  554    554   
        let header_value = formatted_6;
  555         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         555  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  556    556   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  557    557   
                "client_context",
  558    558   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  559    559   
            )
  560    560   
        })?;
  561    561   
        builder = builder.header("X-Amz-Client-Context", header_value);
  562    562   
    }
  563    563   
    Ok(builder)
  564    564   
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/protocol_serde/shape_invoke_with_response_stream.rs

@@ -535,535 +601,601 @@
  555    555   
                }
  556    556   
                tmp
  557    557   
            })
  558    558   
        }
  559    559   
        _ => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::generic(generic),
  560    560   
    })
  561    561   
}
  562    562   
  563    563   
pub fn ser_invoke_with_response_stream_headers(
  564    564   
    input: &crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
  565         -
    mut builder: ::http::request::Builder,
  566         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         565  +
    mut builder: ::http_1x::request::Builder,
         566  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  567    567   
    if let ::std::option::Option::Some(inner_1) = &input.invocation_type {
  568    568   
        let formatted_2 = inner_1.as_str();
  569    569   
        let header_value = formatted_2;
  570         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         570  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  571    571   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  572    572   
                "invocation_type",
  573    573   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  574    574   
            )
  575    575   
        })?;
  576    576   
        builder = builder.header("X-Amz-Invocation-Type", header_value);
  577    577   
    }
  578    578   
    if let ::std::option::Option::Some(inner_3) = &input.log_type {
  579    579   
        let formatted_4 = inner_3.as_str();
  580    580   
        let header_value = formatted_4;
  581         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         581  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  582    582   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  583    583   
                "log_type",
  584    584   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  585    585   
            )
  586    586   
        })?;
  587    587   
        builder = builder.header("X-Amz-Log-Type", header_value);
  588    588   
    }
  589    589   
    if let ::std::option::Option::Some(inner_5) = &input.client_context {
  590    590   
        let formatted_6 = inner_5.as_str();
  591    591   
        let header_value = formatted_6;
  592         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         592  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  593    593   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  594    594   
                "client_context",
  595    595   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  596    596   
            )
  597    597   
        })?;
  598    598   
        builder = builder.header("X-Amz-Client-Context", header_value);
  599    599   
    }
  600    600   
    Ok(builder)
  601    601   
}

tmp-codegen-diff/aws-sdk/sdk/lambda/src/serialization_settings.rs

@@ -1,1 +78,83 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 * SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
#![allow(dead_code)]
    8      8   
    9      9   
use aws_smithy_http::header::set_request_header_if_absent;
   10     10   
use aws_smithy_types::config_bag::{Storable, StoreReplace};
   11         -
use http::header::{HeaderName, CONTENT_LENGTH, CONTENT_TYPE};
          11  +
use http_1x::header::{HeaderName, CONTENT_LENGTH, CONTENT_TYPE};
   12     12   
   13     13   
/// Configuration for how default protocol headers are serialized
   14     14   
#[derive(Clone, Debug, Default)]
   15     15   
pub(crate) struct HeaderSerializationSettings {
   16     16   
    omit_default_content_length: bool,
   17     17   
    omit_default_content_type: bool,
   18     18   
}
   19     19   
   20     20   
impl HeaderSerializationSettings {
   21     21   
    /// Creates new [`HeaderSerializationSettings`]
   22     22   
    pub(crate) fn new() -> Self {
   23     23   
        Default::default()
   24     24   
    }
   25     25   
   26     26   
    /// Omit the default `Content-Length` header during serialization
   27     27   
    pub(crate) fn omit_default_content_length(self) -> Self {
   28     28   
        Self {
   29     29   
            omit_default_content_length: true,
   30     30   
            ..self
   31     31   
        }
   32     32   
    }
   33     33   
   34     34   
    /// Omit the default `Content-Type` header during serialization
   35     35   
    pub(crate) fn omit_default_content_type(self) -> Self {
   36     36   
        Self {
   37     37   
            omit_default_content_type: true,
   38     38   
            ..self
   39     39   
        }
   40     40   
    }
   41     41   
   42     42   
    /// Returns true if the given default header name should be serialized
   43     43   
    fn include_header(&self, header: &HeaderName) -> bool {
   44     44   
        (!self.omit_default_content_length || header != CONTENT_LENGTH) && (!self.omit_default_content_type || header != CONTENT_TYPE)
   45     45   
    }
   46     46   
   47     47   
    /// Sets a default header on the given request builder if it should be serialized
   48         -
    pub(crate) fn set_default_header(&self, mut request: http::request::Builder, header_name: HeaderName, value: &str) -> http::request::Builder {
          48  +
    pub(crate) fn set_default_header(
          49  +
        &self,
          50  +
        mut request: http_1x::request::Builder,
          51  +
        header_name: HeaderName,
          52  +
        value: &str,
          53  +
    ) -> http_1x::request::Builder {
   49     54   
        if self.include_header(&header_name) {
   50     55   
            request = set_request_header_if_absent(request, header_name, value);
   51     56   
        }
   52     57   
        request
   53     58   
    }
   54     59   
}
   55     60   
   56     61   
impl Storable for HeaderSerializationSettings {
   57     62   
    type Storer = StoreReplace<Self>;
   58     63   
}

tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml

@@ -1,1 +0,157 @@
   14     14   
protocol = "aws.protocols#restJson1"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.18"
          24  +
version = "1.6.0"
   25     25   
   26     26   
[dependencies.aws-sigv4]
   27     27   
path = "../aws-sigv4"
   28         -
version = "1.3.7"
          28  +
version = "1.3.8"
   29     29   
   30     30   
[dependencies.aws-smithy-async]
   31     31   
path = "../aws-smithy-async"
   32         -
version = "1.2.7"
          32  +
version = "1.2.8"
   33     33   
   34     34   
[dependencies.aws-smithy-http]
   35     35   
path = "../aws-smithy-http"
   36         -
version = "0.62.6"
          36  +
version = "0.63.0"
   37     37   
   38     38   
[dependencies.aws-smithy-json]
   39     39   
path = "../aws-smithy-json"
   40         -
version = "0.61.9"
          40  +
version = "0.62.0"
   41     41   
   42     42   
[dependencies.aws-smithy-observability]
   43     43   
path = "../aws-smithy-observability"
   44         -
version = "0.2.0"
          44  +
version = "0.2.1"
   45     45   
   46     46   
[dependencies.aws-smithy-runtime]
   47     47   
path = "../aws-smithy-runtime"
   48     48   
features = ["client"]
   49         -
version = "1.9.8"
          49  +
version = "1.10.0"
   50     50   
   51     51   
[dependencies.aws-smithy-runtime-api]
   52     52   
path = "../aws-smithy-runtime-api"
   53         -
features = ["client", "http-02x"]
   54         -
version = "1.10.0"
          53  +
features = ["client", "http-1x", "http-02x"]
          54  +
version = "1.11.0"
   55     55   
   56     56   
[dependencies.aws-smithy-types]
   57     57   
path = "../aws-smithy-types"
   58         -
version = "1.3.6"
          58  +
features = ["http-body-1-x"]
          59  +
version = "1.4.0"
   59     60   
   60     61   
[dependencies.aws-types]
   61     62   
path = "../aws-types"
   62     63   
version = "1.3.11"
   63     64   
   64     65   
[dependencies.bytes]
   65     66   
version = "1.4.0"
   66     67   
   67     68   
[dependencies.fastrand]
   68     69   
version = "2.0.0"
   69     70   
   70     71   
[dependencies.http]
   71     72   
version = "0.2.9"
   72     73   
   73     74   
[dependencies.http-1x]
   74     75   
version = "1"
   75     76   
package = "http"
   76     77   
   77     78   
[dependencies.http-body-1x]
   78     79   
version = "1"
   79         -
optional = true
   80     80   
package = "http-body"
   81     81   
   82     82   
[dependencies.regex-lite]
   83     83   
version = "0.1.5"
   84     84   
   85     85   
[dependencies.tracing]
   86     86   
version = "0.1"
   87     87   
[dev-dependencies.aws-config]
   88     88   
path = "../aws-config"
   89     89   
version = "1.8.12"
   90     90   
   91     91   
[dev-dependencies.aws-credential-types]
   92     92   
path = "../aws-credential-types"
   93     93   
features = ["test-util"]
   94     94   
version = "1.2.11"
   95     95   
   96     96   
[dev-dependencies.aws-runtime]
   97     97   
path = "../aws-runtime"
   98     98   
features = ["test-util"]
   99         -
version = "1.5.18"
          99  +
version = "1.6.0"
  100    100   
  101    101   
[dev-dependencies.aws-smithy-async]
  102    102   
path = "../aws-smithy-async"
  103    103   
features = ["test-util"]
  104         -
version = "1.2.7"
         104  +
version = "1.2.8"
  105    105   
  106    106   
[dev-dependencies.aws-smithy-http-client]
  107    107   
path = "../aws-smithy-http-client"
  108    108   
features = ["test-util", "wire-mock"]
  109         -
version = "1.1.5"
         109  +
version = "1.1.6"
  110    110   
  111    111   
[dev-dependencies.aws-smithy-protocol-test]
  112    112   
path = "../aws-smithy-protocol-test"
  113         -
version = "0.63.7"
         113  +
version = "0.63.8"
  114    114   
  115    115   
[dev-dependencies.aws-smithy-runtime]
  116    116   
path = "../aws-smithy-runtime"
  117    117   
features = ["test-util"]
  118         -
version = "1.9.8"
         118  +
version = "1.10.0"
  119    119   
  120    120   
[dev-dependencies.aws-smithy-runtime-api]
  121    121   
path = "../aws-smithy-runtime-api"
  122    122   
features = ["test-util"]
  123         -
version = "1.10.0"
         123  +
version = "1.11.0"
  124    124   
  125    125   
[dev-dependencies.aws-smithy-types]
  126    126   
path = "../aws-smithy-types"
  127         -
features = ["test-util"]
  128         -
version = "1.3.6"
         127  +
features = ["http-body-1-x", "test-util"]
         128  +
version = "1.4.0"
  129    129   
  130    130   
[dev-dependencies.futures-util]
  131    131   
version = "0.3.25"
  132    132   
features = ["alloc"]
  133    133   
default-features = false
  134    134   
  135    135   
[dev-dependencies.proptest]
  136    136   
version = "1"
  137    137   
  138    138   
[dev-dependencies.serde_json]
  139    139   
version = "1.0.0"
  140    140   
  141    141   
[dev-dependencies.tokio]
  142    142   
version = "1.23.1"
  143    143   
features = ["macros", "test-util", "rt-multi-thread"]
  144    144   
  145    145   
[dev-dependencies.tracing-subscriber]
  146    146   
version = "0.3.16"
  147    147   
features = ["env-filter", "json"]
  148    148   
  149    149   
[features]
  150         -
http-1x = ["dep:http-body-1x", "aws-smithy-runtime-api/http-1x"]
         150  +
http-1x = ["aws-smithy-runtime-api/http-1x"]
  151    151   
behavior-version-latest = []
  152    152   
rustls = ["aws-smithy-runtime/tls-rustls"]
  153    153   
default-https-client = ["aws-smithy-runtime/default-https-client"]
  154    154   
test-util = ["aws-credential-types/test-util", "aws-smithy-runtime/test-util"]
  155         -
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
         155  +
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/http-body-1-x", "aws-smithy-types/rt-tokio"]
  156    156   
gated-tests = []
  157         -
default = ["rustls", "default-https-client", "rt-tokio"]
         157  +
default = ["http-1x", "rustls", "default-https-client", "rt-tokio"]

tmp-codegen-diff/aws-sdk/sdk/polly/src/json_errors.rs

@@ -1,1 +45,45 @@
    5      5   
 */
    6      6   
    7      7   
use aws_smithy_json::deserialize::token::skip_value;
    8      8   
use aws_smithy_json::deserialize::{error::DeserializeError, json_token_iter, Token};
    9      9   
use aws_smithy_runtime_api::http::Headers;
   10     10   
use aws_smithy_types::error::metadata::{Builder as ErrorMetadataBuilder, ErrorMetadata};
   11     11   
use std::borrow::Cow;
   12     12   
   13     13   
// currently only used by AwsJson
   14     14   
#[allow(unused)]
   15         -
pub fn is_error<B>(response: &http::Response<B>) -> bool {
          15  +
pub fn is_error<B>(response: &http_1x::Response<B>) -> bool {
   16     16   
    !response.status().is_success()
   17     17   
}
   18     18   
   19     19   
fn sanitize_error_code(error_code: &str) -> &str {
   20     20   
    // Trim a trailing URL from the error code, which is done by removing the longest suffix
   21     21   
    // beginning with a `:`
   22     22   
    let error_code = match error_code.find(':') {
   23     23   
        Some(idx) => &error_code[..idx],
   24     24   
        None => error_code,
   25     25   
    };
@@ -60,60 +120,120 @@
   80     80   
#[cfg(test)]
   81     81   
mod test {
   82     82   
    use crate::json_errors::{parse_error_body, parse_error_metadata, sanitize_error_code};
   83     83   
    use aws_smithy_runtime_api::client::orchestrator::HttpResponse;
   84     84   
    use aws_smithy_types::{body::SdkBody, error::ErrorMetadata};
   85     85   
    use std::borrow::Cow;
   86     86   
   87     87   
    #[test]
   88     88   
    fn error_metadata() {
   89     89   
        let response = HttpResponse::try_from(
   90         -
            http::Response::builder()
          90  +
            http_1x::Response::builder()
   91     91   
                .body(SdkBody::from(r#"{ "__type": "FooError", "message": "Go to foo" }"#))
   92     92   
                .unwrap(),
   93     93   
        )
   94     94   
        .unwrap();
   95     95   
        assert_eq!(
   96     96   
            parse_error_metadata(response.body().bytes().unwrap(), response.headers())
   97     97   
                .unwrap()
   98     98   
                .build(),
   99     99   
            ErrorMetadata::builder().code("FooError").message("Go to foo").build()
  100    100   
        )
@@ -129,129 +180,180 @@
  149    149   
  150    150   
    #[test]
  151    151   
    fn sanitize_namespace() {
  152    152   
        assert_eq!(sanitize_error_code("aws.protocoltests.restjson#FooError"), "FooError");
  153    153   
    }
  154    154   
  155    155   
    // services like lambda use an alternate `Message` instead of `message`
  156    156   
    #[test]
  157    157   
    fn alternative_error_message_names() {
  158    158   
        let response = HttpResponse::try_from(
  159         -
            http::Response::builder()
         159  +
            http_1x::Response::builder()
  160    160   
                .header("x-amzn-errortype", "ResourceNotFoundException")
  161    161   
                .body(SdkBody::from(
  162    162   
                    r#"{
  163    163   
                    "Type": "User",
  164    164   
                    "Message": "Functions from 'us-west-2' are not reachable from us-east-1"
  165    165   
                }"#,
  166    166   
                ))
  167    167   
                .unwrap(),
  168    168   
        )
  169    169   
        .unwrap();

tmp-codegen-diff/aws-sdk/sdk/polly/src/operation/delete_lexicon.rs

@@ -173,173 +239,239 @@
  193    193   
                        "name",
  194    194   
                        "cannot be empty or unset",
  195    195   
                    ));
  196    196   
                }
  197    197   
                ::std::write!(output, "/v1/lexicons/{Name}", Name = name).expect("formatting should succeed");
  198    198   
                ::std::result::Result::Ok(())
  199    199   
            }
  200    200   
            #[allow(clippy::unnecessary_wraps)]
  201    201   
            fn update_http_builder(
  202    202   
                input: &crate::operation::delete_lexicon::DeleteLexiconInput,
  203         -
                builder: ::http::request::Builder,
  204         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         203  +
                builder: ::http_1x::request::Builder,
         204  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  205    205   
                let mut uri = ::std::string::String::new();
  206    206   
                uri_base(input, &mut uri)?;
  207    207   
                ::std::result::Result::Ok(builder.method("DELETE").uri(uri))
  208    208   
            }
  209         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         209  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  210    210   
            builder
  211    211   
        };
  212    212   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  213    213   
  214    214   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  215    215   
    }
  216    216   
}
  217    217   
#[derive(Debug)]
  218    218   
struct DeleteLexiconEndpointParamsInterceptor;
  219    219   

tmp-codegen-diff/aws-sdk/sdk/polly/src/operation/describe_voices.rs

@@ -192,192 +259,259 @@
  212    212   
                if let ::std::option::Option::Some(inner_4) = &_input.next_token {
  213    213   
                    {
  214    214   
                        query.push_kv("NextToken", &::aws_smithy_http::query::fmt_string(inner_4));
  215    215   
                    }
  216    216   
                }
  217    217   
                ::std::result::Result::Ok(())
  218    218   
            }
  219    219   
            #[allow(clippy::unnecessary_wraps)]
  220    220   
            fn update_http_builder(
  221    221   
                input: &crate::operation::describe_voices::DescribeVoicesInput,
  222         -
                builder: ::http::request::Builder,
  223         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         222  +
                builder: ::http_1x::request::Builder,
         223  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  224    224   
                let mut uri = ::std::string::String::new();
  225    225   
                uri_base(input, &mut uri)?;
  226    226   
                uri_query(input, &mut uri)?;
  227    227   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  228    228   
            }
  229         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         229  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  230    230   
            builder
  231    231   
        };
  232    232   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  233    233   
  234    234   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  235    235   
    }
  236    236   
}
  237    237   
#[derive(Debug)]
  238    238   
struct DescribeVoicesEndpointParamsInterceptor;
  239    239   

tmp-codegen-diff/aws-sdk/sdk/polly/src/operation/get_lexicon.rs

@@ -172,172 +238,238 @@
  192    192   
                        "name",
  193    193   
                        "cannot be empty or unset",
  194    194   
                    ));
  195    195   
                }
  196    196   
                ::std::write!(output, "/v1/lexicons/{Name}", Name = name).expect("formatting should succeed");
  197    197   
                ::std::result::Result::Ok(())
  198    198   
            }
  199    199   
            #[allow(clippy::unnecessary_wraps)]
  200    200   
            fn update_http_builder(
  201    201   
                input: &crate::operation::get_lexicon::GetLexiconInput,
  202         -
                builder: ::http::request::Builder,
  203         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         202  +
                builder: ::http_1x::request::Builder,
         203  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  204    204   
                let mut uri = ::std::string::String::new();
  205    205   
                uri_base(input, &mut uri)?;
  206    206   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  207    207   
            }
  208         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         208  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  209    209   
            builder
  210    210   
        };
  211    211   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  212    212   
  213    213   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  214    214   
    }
  215    215   
}
  216    216   
#[derive(Debug)]
  217    217   
struct GetLexiconEndpointParamsInterceptor;
  218    218