AWS SDK

AWS SDK

rev. ee474c7509d7728618c23068f3741e8e5b339ef9

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/head_object.rs

@@ -233,233 +301,301 @@
  253    253   
                if let ::std::option::Option::Some(inner_9) = &_input.part_number {
  254    254   
                    {
  255    255   
                        query.push_kv("partNumber", ::aws_smithy_types::primitive::Encoder::from(*inner_9).encode());
  256    256   
                    }
  257    257   
                }
  258    258   
                ::std::result::Result::Ok(())
  259    259   
            }
  260    260   
            #[allow(clippy::unnecessary_wraps)]
  261    261   
            fn update_http_builder(
  262    262   
                input: &crate::operation::head_object::HeadObjectInput,
  263         -
                builder: ::http::request::Builder,
  264         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         263  +
                builder: ::http_1x::request::Builder,
         264  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  265    265   
                let mut uri = ::std::string::String::new();
  266    266   
                uri_base(input, &mut uri)?;
  267    267   
                uri_query(input, &mut uri)?;
  268    268   
                let builder = crate::protocol_serde::shape_head_object::ser_head_object_headers(input, builder)?;
  269    269   
                ::std::result::Result::Ok(builder.method("HEAD").uri(uri))
  270    270   
            }
  271         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         271  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  272    272   
            builder
  273    273   
        };
  274    274   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  275    275   
  276    276   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  277    277   
    }
  278    278   
}
  279    279   
#[derive(Debug)]
  280    280   
struct HeadObjectEndpointParamsInterceptor;
  281    281   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_bucket_analytics_configurations.rs

@@ -201,201 +271,271 @@
  221    221   
                if let ::std::option::Option::Some(inner_1) = &_input.continuation_token {
  222    222   
                    {
  223    223   
                        query.push_kv("continuation-token", &::aws_smithy_http::query::fmt_string(inner_1));
  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::list_bucket_analytics_configurations::ListBucketAnalyticsConfigurationsInput,
  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   
                let builder = crate::protocol_serde::shape_list_bucket_analytics_configurations::ser_list_bucket_analytics_configurations_headers(
  237    237   
                    input, builder,
  238    238   
                )?;
  239    239   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  240    240   
            }
  241         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         241  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  242    242   
            builder
  243    243   
        };
  244    244   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  245    245   
  246    246   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  247    247   
    }
  248    248   
}
  249    249   
#[derive(Debug)]
  250    250   
struct ListBucketAnalyticsConfigurationsEndpointParamsInterceptor;
  251    251   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_bucket_intelligent_tiering_configurations.rs

@@ -200,200 +268,268 @@
  220    220   
                if let ::std::option::Option::Some(inner_1) = &_input.continuation_token {
  221    221   
                    {
  222    222   
                        query.push_kv("continuation-token", &::aws_smithy_http::query::fmt_string(inner_1));
  223    223   
                    }
  224    224   
                }
  225    225   
                ::std::result::Result::Ok(())
  226    226   
            }
  227    227   
            #[allow(clippy::unnecessary_wraps)]
  228    228   
            fn update_http_builder(
  229    229   
                input: &crate::operation::list_bucket_intelligent_tiering_configurations::ListBucketIntelligentTieringConfigurationsInput,
  230         -
                builder: ::http::request::Builder,
  231         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         230  +
                builder: ::http_1x::request::Builder,
         231  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  232    232   
                let mut uri = ::std::string::String::new();
  233    233   
                uri_base(input, &mut uri)?;
  234    234   
                uri_query(input, &mut uri)?;
  235    235   
                let builder = crate::protocol_serde::shape_list_bucket_intelligent_tiering_configurations::ser_list_bucket_intelligent_tiering_configurations_headers(input, builder)?;
  236    236   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  237    237   
            }
  238         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         238  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  239    239   
            builder
  240    240   
        };
  241    241   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  242    242   
  243    243   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  244    244   
    }
  245    245   
}
  246    246   
#[derive(Debug)]
  247    247   
struct ListBucketIntelligentTieringConfigurationsEndpointParamsInterceptor;
  248    248   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_bucket_inventory_configurations.rs

@@ -202,202 +272,272 @@
  222    222   
                if let ::std::option::Option::Some(inner_1) = &_input.continuation_token {
  223    223   
                    {
  224    224   
                        query.push_kv("continuation-token", &::aws_smithy_http::query::fmt_string(inner_1));
  225    225   
                    }
  226    226   
                }
  227    227   
                ::std::result::Result::Ok(())
  228    228   
            }
  229    229   
            #[allow(clippy::unnecessary_wraps)]
  230    230   
            fn update_http_builder(
  231    231   
                input: &crate::operation::list_bucket_inventory_configurations::ListBucketInventoryConfigurationsInput,
  232         -
                builder: ::http::request::Builder,
  233         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         232  +
                builder: ::http_1x::request::Builder,
         233  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  234    234   
                let mut uri = ::std::string::String::new();
  235    235   
                uri_base(input, &mut uri)?;
  236    236   
                uri_query(input, &mut uri)?;
  237    237   
                let builder = crate::protocol_serde::shape_list_bucket_inventory_configurations::ser_list_bucket_inventory_configurations_headers(
  238    238   
                    input, builder,
  239    239   
                )?;
  240    240   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  241    241   
            }
  242         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         242  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  243    243   
            builder
  244    244   
        };
  245    245   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  246    246   
  247    247   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  248    248   
    }
  249    249   
}
  250    250   
#[derive(Debug)]
  251    251   
struct ListBucketInventoryConfigurationsEndpointParamsInterceptor;
  252    252   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_bucket_metrics_configurations.rs

@@ -199,199 +268,268 @@
  219    219   
                if let ::std::option::Option::Some(inner_1) = &_input.continuation_token {
  220    220   
                    {
  221    221   
                        query.push_kv("continuation-token", &::aws_smithy_http::query::fmt_string(inner_1));
  222    222   
                    }
  223    223   
                }
  224    224   
                ::std::result::Result::Ok(())
  225    225   
            }
  226    226   
            #[allow(clippy::unnecessary_wraps)]
  227    227   
            fn update_http_builder(
  228    228   
                input: &crate::operation::list_bucket_metrics_configurations::ListBucketMetricsConfigurationsInput,
  229         -
                builder: ::http::request::Builder,
  230         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         229  +
                builder: ::http_1x::request::Builder,
         230  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  231    231   
                let mut uri = ::std::string::String::new();
  232    232   
                uri_base(input, &mut uri)?;
  233    233   
                uri_query(input, &mut uri)?;
  234    234   
                let builder =
  235    235   
                    crate::protocol_serde::shape_list_bucket_metrics_configurations::ser_list_bucket_metrics_configurations_headers(input, builder)?;
  236    236   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  237    237   
            }
  238         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         238  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  239    239   
            builder
  240    240   
        };
  241    241   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  242    242   
  243    243   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  244    244   
    }
  245    245   
}
  246    246   
#[derive(Debug)]
  247    247   
struct ListBucketMetricsConfigurationsEndpointParamsInterceptor;
  248    248   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_buckets.rs

@@ -200,200 +267,267 @@
  220    220   
                if let ::std::option::Option::Some(inner_4) = &_input.bucket_region {
  221    221   
                    {
  222    222   
                        query.push_kv("bucket-region", &::aws_smithy_http::query::fmt_string(inner_4));
  223    223   
                    }
  224    224   
                }
  225    225   
                ::std::result::Result::Ok(())
  226    226   
            }
  227    227   
            #[allow(clippy::unnecessary_wraps)]
  228    228   
            fn update_http_builder(
  229    229   
                input: &crate::operation::list_buckets::ListBucketsInput,
  230         -
                builder: ::http::request::Builder,
  231         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         230  +
                builder: ::http_1x::request::Builder,
         231  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  232    232   
                let mut uri = ::std::string::String::new();
  233    233   
                uri_base(input, &mut uri)?;
  234    234   
                uri_query(input, &mut uri)?;
  235    235   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  236    236   
            }
  237         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         237  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  238    238   
            builder
  239    239   
        };
  240    240   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  241    241   
  242    242   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  243    243   
    }
  244    244   
}
  245    245   
#[derive(Debug)]
  246    246   
struct ListBucketsEndpointParamsInterceptor;
  247    247   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_directory_buckets.rs

@@ -185,185 +252,252 @@
  205    205   
                if let ::std::option::Option::Some(inner_2) = &_input.max_directory_buckets {
  206    206   
                    {
  207    207   
                        query.push_kv("max-directory-buckets", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
  208    208   
                    }
  209    209   
                }
  210    210   
                ::std::result::Result::Ok(())
  211    211   
            }
  212    212   
            #[allow(clippy::unnecessary_wraps)]
  213    213   
            fn update_http_builder(
  214    214   
                input: &crate::operation::list_directory_buckets::ListDirectoryBucketsInput,
  215         -
                builder: ::http::request::Builder,
  216         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         215  +
                builder: ::http_1x::request::Builder,
         216  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  217    217   
                let mut uri = ::std::string::String::new();
  218    218   
                uri_base(input, &mut uri)?;
  219    219   
                uri_query(input, &mut uri)?;
  220    220   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  221    221   
            }
  222         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         222  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  223    223   
            builder
  224    224   
        };
  225    225   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  226    226   
  227    227   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  228    228   
    }
  229    229   
}
  230    230   
#[derive(Debug)]
  231    231   
struct ListDirectoryBucketsEndpointParamsInterceptor;
  232    232   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_multipart_uploads.rs

@@ -205,205 +273,273 @@
  225    225   
                if let ::std::option::Option::Some(inner_6) = &_input.upload_id_marker {
  226    226   
                    {
  227    227   
                        query.push_kv("upload-id-marker", &::aws_smithy_http::query::fmt_string(inner_6));
  228    228   
                    }
  229    229   
                }
  230    230   
                ::std::result::Result::Ok(())
  231    231   
            }
  232    232   
            #[allow(clippy::unnecessary_wraps)]
  233    233   
            fn update_http_builder(
  234    234   
                input: &crate::operation::list_multipart_uploads::ListMultipartUploadsInput,
  235         -
                builder: ::http::request::Builder,
  236         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         235  +
                builder: ::http_1x::request::Builder,
         236  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  237    237   
                let mut uri = ::std::string::String::new();
  238    238   
                uri_base(input, &mut uri)?;
  239    239   
                uri_query(input, &mut uri)?;
  240    240   
                let builder = crate::protocol_serde::shape_list_multipart_uploads::ser_list_multipart_uploads_headers(input, builder)?;
  241    241   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  242    242   
            }
  243         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         243  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  244    244   
            builder
  245    245   
        };
  246    246   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  247    247   
  248    248   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  249    249   
    }
  250    250   
}
  251    251   
#[derive(Debug)]
  252    252   
struct ListMultipartUploadsEndpointParamsInterceptor;
  253    253   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_object_versions.rs

@@ -202,202 +270,270 @@
  222    222   
                if let ::std::option::Option::Some(inner_6) = &_input.version_id_marker {
  223    223   
                    {
  224    224   
                        query.push_kv("version-id-marker", &::aws_smithy_http::query::fmt_string(inner_6));
  225    225   
                    }
  226    226   
                }
  227    227   
                ::std::result::Result::Ok(())
  228    228   
            }
  229    229   
            #[allow(clippy::unnecessary_wraps)]
  230    230   
            fn update_http_builder(
  231    231   
                input: &crate::operation::list_object_versions::ListObjectVersionsInput,
  232         -
                builder: ::http::request::Builder,
  233         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         232  +
                builder: ::http_1x::request::Builder,
         233  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  234    234   
                let mut uri = ::std::string::String::new();
  235    235   
                uri_base(input, &mut uri)?;
  236    236   
                uri_query(input, &mut uri)?;
  237    237   
                let builder = crate::protocol_serde::shape_list_object_versions::ser_list_object_versions_headers(input, builder)?;
  238    238   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  239    239   
            }
  240         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         240  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  241    241   
            builder
  242    242   
        };
  243    243   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  244    244   
  245    245   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  246    246   
    }
  247    247   
}
  248    248   
#[derive(Debug)]
  249    249   
struct ListObjectVersionsEndpointParamsInterceptor;
  250    250   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_objects.rs

@@ -204,204 +272,272 @@
  224    224   
                if let ::std::option::Option::Some(inner_5) = &_input.prefix {
  225    225   
                    {
  226    226   
                        query.push_kv("prefix", &::aws_smithy_http::query::fmt_string(inner_5));
  227    227   
                    }
  228    228   
                }
  229    229   
                ::std::result::Result::Ok(())
  230    230   
            }
  231    231   
            #[allow(clippy::unnecessary_wraps)]
  232    232   
            fn update_http_builder(
  233    233   
                input: &crate::operation::list_objects::ListObjectsInput,
  234         -
                builder: ::http::request::Builder,
  235         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         234  +
                builder: ::http_1x::request::Builder,
         235  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  236    236   
                let mut uri = ::std::string::String::new();
  237    237   
                uri_base(input, &mut uri)?;
  238    238   
                uri_query(input, &mut uri)?;
  239    239   
                let builder = crate::protocol_serde::shape_list_objects::ser_list_objects_headers(input, builder)?;
  240    240   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  241    241   
            }
  242         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         242  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  243    243   
            builder
  244    244   
        };
  245    245   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  246    246   
  247    247   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  248    248   
    }
  249    249   
}
  250    250   
#[derive(Debug)]
  251    251   
struct ListObjectsEndpointParamsInterceptor;
  252    252   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_objects_v2.rs

@@ -215,215 +283,283 @@
  235    235   
                if let ::std::option::Option::Some(inner_7) = &_input.start_after {
  236    236   
                    {
  237    237   
                        query.push_kv("start-after", &::aws_smithy_http::query::fmt_string(inner_7));
  238    238   
                    }
  239    239   
                }
  240    240   
                ::std::result::Result::Ok(())
  241    241   
            }
  242    242   
            #[allow(clippy::unnecessary_wraps)]
  243    243   
            fn update_http_builder(
  244    244   
                input: &crate::operation::list_objects_v2::ListObjectsV2Input,
  245         -
                builder: ::http::request::Builder,
  246         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         245  +
                builder: ::http_1x::request::Builder,
         246  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  247    247   
                let mut uri = ::std::string::String::new();
  248    248   
                uri_base(input, &mut uri)?;
  249    249   
                uri_query(input, &mut uri)?;
  250    250   
                let builder = crate::protocol_serde::shape_list_objects_v2::ser_list_objects_v2_headers(input, builder)?;
  251    251   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  252    252   
            }
  253         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         253  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  254    254   
            builder
  255    255   
        };
  256    256   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  257    257   
  258    258   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  259    259   
    }
  260    260   
}
  261    261   
#[derive(Debug)]
  262    262   
struct ListObjectsV2EndpointParamsInterceptor;
  263    263   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/list_parts.rs

@@ -210,210 +278,278 @@
  230    230   
                        "upload_id",
  231    231   
                        "cannot be empty or unset",
  232    232   
                    ));
  233    233   
                }
  234    234   
                query.push_kv("uploadId", &::aws_smithy_http::query::fmt_string(inner_4));
  235    235   
                ::std::result::Result::Ok(())
  236    236   
            }
  237    237   
            #[allow(clippy::unnecessary_wraps)]
  238    238   
            fn update_http_builder(
  239    239   
                input: &crate::operation::list_parts::ListPartsInput,
  240         -
                builder: ::http::request::Builder,
  241         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         240  +
                builder: ::http_1x::request::Builder,
         241  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  242    242   
                let mut uri = ::std::string::String::new();
  243    243   
                uri_base(input, &mut uri)?;
  244    244   
                uri_query(input, &mut uri)?;
  245    245   
                let builder = crate::protocol_serde::shape_list_parts::ser_list_parts_headers(input, builder)?;
  246    246   
                ::std::result::Result::Ok(builder.method("GET").uri(uri))
  247    247   
            }
  248         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
         248  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
  249    249   
            builder
  250    250   
        };
  251    251   
        let body = ::aws_smithy_types::body::SdkBody::from("");
  252    252   
  253    253   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  254    254   
    }
  255    255   
}
  256    256   
#[derive(Debug)]
  257    257   
struct ListPartsEndpointParamsInterceptor;
  258    258   

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_accelerate_configuration.rs

@@ -252,252 +333,333 @@
  272    272   
                _input: &crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationInput,
  273    273   
                mut output: &mut ::std::string::String,
  274    274   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  275    275   
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  276    276   
                query.push_v("accelerate");
  277    277   
                ::std::result::Result::Ok(())
  278    278   
            }
  279    279   
            #[allow(clippy::unnecessary_wraps)]
  280    280   
            fn update_http_builder(
  281    281   
                input: &crate::operation::put_bucket_accelerate_configuration::PutBucketAccelerateConfigurationInput,
  282         -
                builder: ::http::request::Builder,
  283         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         282  +
                builder: ::http_1x::request::Builder,
         283  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  284    284   
                let mut uri = ::std::string::String::new();
  285    285   
                uri_base(input, &mut uri)?;
  286    286   
                uri_query(input, &mut uri)?;
  287    287   
                let builder = crate::protocol_serde::shape_put_bucket_accelerate_configuration::ser_put_bucket_accelerate_configuration_headers(
  288    288   
                    input, builder,
  289    289   
                )?;
  290    290   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  291    291   
            }
  292         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  293         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
         292  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         293  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
  294    294   
            builder
  295    295   
        };
  296    296   
        let body = ::aws_smithy_types::body::SdkBody::from(
  297    297   
            crate::protocol_serde::shape_put_bucket_accelerate_configuration_input::ser_accelerate_configuration_http_payload(
  298    298   
                &input.accelerate_configuration,
  299    299   
            )?,
  300    300   
        );
  301    301   
        if let Some(content_length) = body.content_length() {
  302    302   
            let content_length = content_length.to_string();
  303         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         303  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  304    304   
        }
  305    305   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  306    306   
    }
  307    307   
}
  308    308   
#[derive(Debug)]
  309    309   
struct PutBucketAccelerateConfigurationEndpointParamsInterceptor;
  310    310   
  311    311   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutBucketAccelerateConfigurationEndpointParamsInterceptor {
  312    312   
    fn name(&self) -> &'static str {
  313    313   
        "PutBucketAccelerateConfigurationEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_acl.rs

@@ -239,239 +316,316 @@
  259    259   
                _input: &crate::operation::put_bucket_acl::PutBucketAclInput,
  260    260   
                mut output: &mut ::std::string::String,
  261    261   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  262    262   
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  263    263   
                query.push_v("acl");
  264    264   
                ::std::result::Result::Ok(())
  265    265   
            }
  266    266   
            #[allow(clippy::unnecessary_wraps)]
  267    267   
            fn update_http_builder(
  268    268   
                input: &crate::operation::put_bucket_acl::PutBucketAclInput,
  269         -
                builder: ::http::request::Builder,
  270         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         269  +
                builder: ::http_1x::request::Builder,
         270  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  271    271   
                let mut uri = ::std::string::String::new();
  272    272   
                uri_base(input, &mut uri)?;
  273    273   
                uri_query(input, &mut uri)?;
  274    274   
                let builder = crate::protocol_serde::shape_put_bucket_acl::ser_put_bucket_acl_headers(input, builder)?;
  275    275   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  276    276   
            }
  277         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  278         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
         277  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         278  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
  279    279   
            builder
  280    280   
        };
  281    281   
        let body = ::aws_smithy_types::body::SdkBody::from(
  282    282   
            crate::protocol_serde::shape_put_bucket_acl_input::ser_access_control_policy_http_payload(&input.access_control_policy)?,
  283    283   
        );
  284    284   
        if let Some(content_length) = body.content_length() {
  285    285   
            let content_length = content_length.to_string();
  286         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         286  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  287    287   
        }
  288    288   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  289    289   
    }
  290    290   
}
  291    291   
#[derive(Debug)]
  292    292   
struct PutBucketAclEndpointParamsInterceptor;
  293    293   
  294    294   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutBucketAclEndpointParamsInterceptor {
  295    295   
    fn name(&self) -> &'static str {
  296    296   
        "PutBucketAclEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_analytics_configuration.rs

@@ -204,204 +284,284 @@
  224    224   
                        "id",
  225    225   
                        "cannot be empty or unset",
  226    226   
                    ));
  227    227   
                }
  228    228   
                query.push_kv("id", &::aws_smithy_http::query::fmt_string(inner_1));
  229    229   
                ::std::result::Result::Ok(())
  230    230   
            }
  231    231   
            #[allow(clippy::unnecessary_wraps)]
  232    232   
            fn update_http_builder(
  233    233   
                input: &crate::operation::put_bucket_analytics_configuration::PutBucketAnalyticsConfigurationInput,
  234         -
                builder: ::http::request::Builder,
  235         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         234  +
                builder: ::http_1x::request::Builder,
         235  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  236    236   
                let mut uri = ::std::string::String::new();
  237    237   
                uri_base(input, &mut uri)?;
  238    238   
                uri_query(input, &mut uri)?;
  239    239   
                let builder =
  240    240   
                    crate::protocol_serde::shape_put_bucket_analytics_configuration::ser_put_bucket_analytics_configuration_headers(input, builder)?;
  241    241   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  242    242   
            }
  243         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  244         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
         243  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         244  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
  245    245   
            builder
  246    246   
        };
  247    247   
        let body = ::aws_smithy_types::body::SdkBody::from(
  248    248   
            crate::protocol_serde::shape_put_bucket_analytics_configuration_input::ser_analytics_configuration_http_payload(
  249    249   
                &input.analytics_configuration,
  250    250   
            )?,
  251    251   
        );
  252    252   
        if let Some(content_length) = body.content_length() {
  253    253   
            let content_length = content_length.to_string();
  254         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         254  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  255    255   
        }
  256    256   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  257    257   
    }
  258    258   
}
  259    259   
#[derive(Debug)]
  260    260   
struct PutBucketAnalyticsConfigurationEndpointParamsInterceptor;
  261    261   
  262    262   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutBucketAnalyticsConfigurationEndpointParamsInterceptor {
  263    263   
    fn name(&self) -> &'static str {
  264    264   
        "PutBucketAnalyticsConfigurationEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/s3/src/operation/put_bucket_cors.rs

@@ -239,239 +316,316 @@
  259    259   
                _input: &crate::operation::put_bucket_cors::PutBucketCorsInput,
  260    260   
                mut output: &mut ::std::string::String,
  261    261   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  262    262   
                let mut query = ::aws_smithy_http::query::Writer::new(output);
  263    263   
                query.push_v("cors");
  264    264   
                ::std::result::Result::Ok(())
  265    265   
            }
  266    266   
            #[allow(clippy::unnecessary_wraps)]
  267    267   
            fn update_http_builder(
  268    268   
                input: &crate::operation::put_bucket_cors::PutBucketCorsInput,
  269         -
                builder: ::http::request::Builder,
  270         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         269  +
                builder: ::http_1x::request::Builder,
         270  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  271    271   
                let mut uri = ::std::string::String::new();
  272    272   
                uri_base(input, &mut uri)?;
  273    273   
                uri_query(input, &mut uri)?;
  274    274   
                let builder = crate::protocol_serde::shape_put_bucket_cors::ser_put_bucket_cors_headers(input, builder)?;
  275    275   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  276    276   
            }
  277         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  278         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/xml");
         277  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         278  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/xml");
  279    279   
            builder
  280    280   
        };
  281    281   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_put_bucket_cors_input::ser_cors_configuration_http_payload(
  282    282   
            &input.cors_configuration,
  283    283   
        )?);
  284    284   
        if let Some(content_length) = body.content_length() {
  285    285   
            let content_length = content_length.to_string();
  286         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         286  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  287    287   
        }
  288    288   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  289    289   
    }
  290    290   
}
  291    291   
#[derive(Debug)]
  292    292   
struct PutBucketCorsEndpointParamsInterceptor;
  293    293   
  294    294   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for PutBucketCorsEndpointParamsInterceptor {
  295    295   
    fn name(&self) -> &'static str {
  296    296   
        "PutBucketCorsEndpointParamsInterceptor"