AWS SDK

AWS SDK

rev. d06a46cae0f385cdae37a9f8264db3469a090ab5 (ignoring whitespace)

Files changed:

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

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

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

@@ -196,196 +271,271 @@
  216    216   
                    "/{accountId}/vaults/{vaultName}/access-policy",
  217    217   
                    accountId = account_id,
  218    218   
                    vaultName = vault_name
  219    219   
                )
  220    220   
                .expect("formatting should succeed");
  221    221   
                ::std::result::Result::Ok(())
  222    222   
            }
  223    223   
            #[allow(clippy::unnecessary_wraps)]
  224    224   
            fn update_http_builder(
  225    225   
                input: &crate::operation::set_vault_access_policy::SetVaultAccessPolicyInput,
  226         -
                builder: ::http::request::Builder,
  227         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         226  +
                builder: ::http_1x::request::Builder,
         227  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  228    228   
                let mut uri = ::std::string::String::new();
  229    229   
                uri_base(input, &mut uri)?;
  230    230   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  231    231   
            }
  232         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  233         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         232  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         233  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  234    234   
            builder
  235    235   
        };
  236    236   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_set_vault_access_policy_input::ser_policy_http_payload(
  237    237   
            &input.policy,
  238    238   
        )?);
  239    239   
        if let Some(content_length) = body.content_length() {
  240    240   
            let content_length = content_length.to_string();
  241         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         241  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  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 SetVaultAccessPolicyEndpointParamsInterceptor;
  248    248   
  249    249   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SetVaultAccessPolicyEndpointParamsInterceptor {
  250    250   
    fn name(&self) -> &'static str {
  251    251   
        "SetVaultAccessPolicyEndpointParamsInterceptor"

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

@@ -196,196 +271,271 @@
  216    216   
                    "/{accountId}/vaults/{vaultName}/notification-configuration",
  217    217   
                    accountId = account_id,
  218    218   
                    vaultName = vault_name
  219    219   
                )
  220    220   
                .expect("formatting should succeed");
  221    221   
                ::std::result::Result::Ok(())
  222    222   
            }
  223    223   
            #[allow(clippy::unnecessary_wraps)]
  224    224   
            fn update_http_builder(
  225    225   
                input: &crate::operation::set_vault_notifications::SetVaultNotificationsInput,
  226         -
                builder: ::http::request::Builder,
  227         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         226  +
                builder: ::http_1x::request::Builder,
         227  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  228    228   
                let mut uri = ::std::string::String::new();
  229    229   
                uri_base(input, &mut uri)?;
  230    230   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  231    231   
            }
  232         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  233         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         232  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         233  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  234    234   
            builder
  235    235   
        };
  236    236   
        let body = ::aws_smithy_types::body::SdkBody::from(
  237    237   
            crate::protocol_serde::shape_set_vault_notifications_input::ser_vault_notification_config_http_payload(&input.vault_notification_config)?,
  238    238   
        );
  239    239   
        if let Some(content_length) = body.content_length() {
  240    240   
            let content_length = content_length.to_string();
  241         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         241  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  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 SetVaultNotificationsEndpointParamsInterceptor;
  248    248   
  249    249   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for SetVaultNotificationsEndpointParamsInterceptor {
  250    250   
    fn name(&self) -> &'static str {
  251    251   
        "SetVaultNotificationsEndpointParamsInterceptor"

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

@@ -194,194 +268,268 @@
  214    214   
                    "/{accountId}/vaults/{vaultName}/archives",
  215    215   
                    accountId = account_id,
  216    216   
                    vaultName = vault_name
  217    217   
                )
  218    218   
                .expect("formatting should succeed");
  219    219   
                ::std::result::Result::Ok(())
  220    220   
            }
  221    221   
            #[allow(clippy::unnecessary_wraps)]
  222    222   
            fn update_http_builder(
  223    223   
                input: &crate::operation::upload_archive::UploadArchiveInput,
  224         -
                builder: ::http::request::Builder,
  225         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         224  +
                builder: ::http_1x::request::Builder,
         225  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  226    226   
                let mut uri = ::std::string::String::new();
  227    227   
                uri_base(input, &mut uri)?;
  228    228   
                let builder = crate::protocol_serde::shape_upload_archive::ser_upload_archive_headers(input, builder)?;
  229    229   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  230    230   
            }
  231         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  232         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/octet-stream");
         231  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         232  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
  233    233   
            builder
  234    234   
        };
  235    235   
        let body = crate::protocol_serde::shape_upload_archive_input::ser_body_http_payload(input.body)?.into_inner();
  236    236   
        if let Some(content_length) = body.content_length() {
  237    237   
            let content_length = content_length.to_string();
  238         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         238  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  239    239   
        }
  240    240   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  241    241   
    }
  242    242   
}
  243    243   
#[derive(Debug)]
  244    244   
struct UploadArchiveEndpointParamsInterceptor;
  245    245   
  246    246   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UploadArchiveEndpointParamsInterceptor {
  247    247   
    fn name(&self) -> &'static str {
  248    248   
        "UploadArchiveEndpointParamsInterceptor"

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

@@ -209,209 +283,283 @@
  229    229   
                    accountId = account_id,
  230    230   
                    vaultName = vault_name,
  231    231   
                    uploadId = upload_id
  232    232   
                )
  233    233   
                .expect("formatting should succeed");
  234    234   
                ::std::result::Result::Ok(())
  235    235   
            }
  236    236   
            #[allow(clippy::unnecessary_wraps)]
  237    237   
            fn update_http_builder(
  238    238   
                input: &crate::operation::upload_multipart_part::UploadMultipartPartInput,
  239         -
                builder: ::http::request::Builder,
  240         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         239  +
                builder: ::http_1x::request::Builder,
         240  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  241    241   
                let mut uri = ::std::string::String::new();
  242    242   
                uri_base(input, &mut uri)?;
  243    243   
                let builder = crate::protocol_serde::shape_upload_multipart_part::ser_upload_multipart_part_headers(input, builder)?;
  244    244   
                ::std::result::Result::Ok(builder.method("PUT").uri(uri))
  245    245   
            }
  246         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  247         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/octet-stream");
         246  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         247  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/octet-stream");
  248    248   
            builder
  249    249   
        };
  250    250   
        let body = crate::protocol_serde::shape_upload_multipart_part_input::ser_body_http_payload(input.body)?.into_inner();
  251    251   
        if let Some(content_length) = body.content_length() {
  252    252   
            let content_length = content_length.to_string();
  253         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         253  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  254    254   
        }
  255    255   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  256    256   
    }
  257    257   
}
  258    258   
#[derive(Debug)]
  259    259   
struct UploadMultipartPartEndpointParamsInterceptor;
  260    260   
  261    261   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UploadMultipartPartEndpointParamsInterceptor {
  262    262   
    fn name(&self) -> &'static str {
  263    263   
        "UploadMultipartPartEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/glacier/src/protocol_serde/shape_complete_multipart_upload.rs

@@ -110,110 +165,165 @@
  130    130   
                crate::operation::complete_multipart_upload::CompleteMultipartUploadError::unhandled("Failed to parse location from header `Location")
  131    131   
            })?,
  132    132   
        );
  133    133   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  134    134   
        output.build()
  135    135   
    })
  136    136   
}
  137    137   
  138    138   
pub fn ser_complete_multipart_upload_headers(
  139    139   
    input: &crate::operation::complete_multipart_upload::CompleteMultipartUploadInput,
  140         -
    mut builder: ::http::request::Builder,
  141         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         140  +
    mut builder: ::http_1x::request::Builder,
         141  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  142    142   
    if let ::std::option::Option::Some(inner_1) = &input.archive_size {
  143    143   
        let formatted_2 = inner_1.as_str();
  144    144   
        let header_value = formatted_2;
  145         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         145  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  146    146   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  147    147   
                "archive_size",
  148    148   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  149    149   
            )
  150    150   
        })?;
  151    151   
        builder = builder.header("x-amz-archive-size", header_value);
  152    152   
    }
  153    153   
    if let ::std::option::Option::Some(inner_3) = &input.checksum {
  154    154   
        let formatted_4 = inner_3.as_str();
  155    155   
        let header_value = formatted_4;
  156         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         156  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  157    157   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  158    158   
                "checksum",
  159    159   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  160    160   
            )
  161    161   
        })?;
  162    162   
        builder = builder.header("x-amz-sha256-tree-hash", header_value);
  163    163   
    }
  164    164   
    Ok(builder)
  165    165   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/protocol_serde/shape_get_job_output.rs

@@ -110,110 +154,154 @@
  130    130   
                tmp.message = _error_message;
  131    131   
            }
  132    132   
            tmp
  133    133   
        }),
  134    134   
        _ => crate::operation::get_job_output::GetJobOutputError::generic(generic),
  135    135   
    })
  136    136   
}
  137    137   
  138    138   
pub fn ser_get_job_output_headers(
  139    139   
    input: &crate::operation::get_job_output::GetJobOutputInput,
  140         -
    mut builder: ::http::request::Builder,
  141         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         140  +
    mut builder: ::http_1x::request::Builder,
         141  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  142    142   
    if let ::std::option::Option::Some(inner_1) = &input.range {
  143    143   
        let formatted_2 = inner_1.as_str();
  144    144   
        let header_value = formatted_2;
  145         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         145  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  146    146   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  147    147   
                "range",
  148    148   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  149    149   
            )
  150    150   
        })?;
  151    151   
        builder = builder.header("Range", header_value);
  152    152   
    }
  153    153   
    Ok(builder)
  154    154   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/protocol_serde/shape_initiate_multipart_upload.rs

@@ -103,103 +158,158 @@
  123    123   
                )
  124    124   
            })?,
  125    125   
        );
  126    126   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  127    127   
        output.build()
  128    128   
    })
  129    129   
}
  130    130   
  131    131   
pub fn ser_initiate_multipart_upload_headers(
  132    132   
    input: &crate::operation::initiate_multipart_upload::InitiateMultipartUploadInput,
  133         -
    mut builder: ::http::request::Builder,
  134         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         133  +
    mut builder: ::http_1x::request::Builder,
         134  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  135    135   
    if let ::std::option::Option::Some(inner_1) = &input.archive_description {
  136    136   
        let formatted_2 = inner_1.as_str();
  137    137   
        let header_value = formatted_2;
  138         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         138  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  139    139   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  140    140   
                "archive_description",
  141    141   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  142    142   
            )
  143    143   
        })?;
  144    144   
        builder = builder.header("x-amz-archive-description", header_value);
  145    145   
    }
  146    146   
    if let ::std::option::Option::Some(inner_3) = &input.part_size {
  147    147   
        let formatted_4 = inner_3.as_str();
  148    148   
        let header_value = formatted_4;
  149         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         149  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  150    150   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  151    151   
                "part_size",
  152    152   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  153    153   
            )
  154    154   
        })?;
  155    155   
        builder = builder.header("x-amz-part-size", header_value);
  156    156   
    }
  157    157   
    Ok(builder)
  158    158   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/protocol_serde/shape_upload_archive.rs

@@ -106,106 +161,161 @@
  126    126   
            crate::protocol_serde::shape_upload_archive_output::de_location_header(_response_headers)
  127    127   
                .map_err(|_| crate::operation::upload_archive::UploadArchiveError::unhandled("Failed to parse location from header `Location"))?,
  128    128   
        );
  129    129   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  130    130   
        output.build()
  131    131   
    })
  132    132   
}
  133    133   
  134    134   
pub fn ser_upload_archive_headers(
  135    135   
    input: &crate::operation::upload_archive::UploadArchiveInput,
  136         -
    mut builder: ::http::request::Builder,
  137         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         136  +
    mut builder: ::http_1x::request::Builder,
         137  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  138    138   
    if let ::std::option::Option::Some(inner_1) = &input.archive_description {
  139    139   
        let formatted_2 = inner_1.as_str();
  140    140   
        let header_value = formatted_2;
  141         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         141  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  142    142   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  143    143   
                "archive_description",
  144    144   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  145    145   
            )
  146    146   
        })?;
  147    147   
        builder = builder.header("x-amz-archive-description", header_value);
  148    148   
    }
  149    149   
    if let ::std::option::Option::Some(inner_3) = &input.checksum {
  150    150   
        let formatted_4 = inner_3.as_str();
  151    151   
        let header_value = formatted_4;
  152         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         152  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  153    153   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  154    154   
                "checksum",
  155    155   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  156    156   
            )
  157    157   
        })?;
  158    158   
        builder = builder.header("x-amz-sha256-tree-hash", header_value);
  159    159   
    }
  160    160   
    Ok(builder)
  161    161   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/src/protocol_serde/shape_upload_multipart_part.rs

@@ -105,105 +160,160 @@
  125    125   
                )
  126    126   
            })?,
  127    127   
        );
  128    128   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  129    129   
        output.build()
  130    130   
    })
  131    131   
}
  132    132   
  133    133   
pub fn ser_upload_multipart_part_headers(
  134    134   
    input: &crate::operation::upload_multipart_part::UploadMultipartPartInput,
  135         -
    mut builder: ::http::request::Builder,
  136         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         135  +
    mut builder: ::http_1x::request::Builder,
         136  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  137    137   
    if let ::std::option::Option::Some(inner_1) = &input.checksum {
  138    138   
        let formatted_2 = inner_1.as_str();
  139    139   
        let header_value = formatted_2;
  140         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         140  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  141    141   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  142    142   
                "checksum",
  143    143   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  144    144   
            )
  145    145   
        })?;
  146    146   
        builder = builder.header("x-amz-sha256-tree-hash", header_value);
  147    147   
    }
  148    148   
    if let ::std::option::Option::Some(inner_3) = &input.range {
  149    149   
        let formatted_4 = inner_3.as_str();
  150    150   
        let header_value = formatted_4;
  151         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         151  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  152    152   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  153    153   
                "range",
  154    154   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  155    155   
            )
  156    156   
        })?;
  157    157   
        builder = builder.header("Content-Range", header_value);
  158    158   
    }
  159    159   
    Ok(builder)
  160    160   
}

tmp-codegen-diff/aws-sdk/sdk/glacier/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/iam/Cargo.toml

@@ -1,1 +152,153 @@
   14     14   
protocol = "aws.protocols#awsQuery"
   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-smithy-async]
   27     27   
path = "../aws-smithy-async"
   28         -
version = "1.2.7"
          28  +
version = "1.2.8"
   29     29   
   30     30   
[dependencies.aws-smithy-http]
   31     31   
path = "../aws-smithy-http"
   32         -
version = "0.62.6"
          32  +
version = "0.63.0"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36         -
version = "0.61.9"
          36  +
version = "0.62.0"
   37     37   
   38     38   
[dependencies.aws-smithy-observability]
   39     39   
path = "../aws-smithy-observability"
   40         -
version = "0.2.0"
          40  +
version = "0.2.1"
   41     41   
   42     42   
[dependencies.aws-smithy-query]
   43     43   
path = "../aws-smithy-query"
   44         -
version = "0.60.9"
          44  +
version = "0.60.10"
   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"]
          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-smithy-xml]
   61     62   
path = "../aws-smithy-xml"
   62     63   
version = "0.60.13"
   63     64   
   64     65   
[dependencies.aws-types]
   65     66   
path = "../aws-types"
   66     67   
version = "1.3.11"
   67     68   
   68     69   
[dependencies.fastrand]
   69     70   
version = "2.0.0"
   70     71   
   71     72   
[dependencies.http]
   72     73   
version = "0.2.9"
   73     74   
          75  +
[dependencies.http-1x]
          76  +
version = "1"
          77  +
package = "http"
          78  +
   74     79   
[dependencies.regex-lite]
   75     80   
version = "0.1.5"
   76     81   
   77     82   
[dependencies.tracing]
   78     83   
version = "0.1"
   79     84   
[dev-dependencies.aws-config]
   80     85   
path = "../aws-config"
   81     86   
version = "1.8.12"
   82     87   
   83     88   
[dev-dependencies.aws-credential-types]
   84     89   
path = "../aws-credential-types"
   85     90   
features = ["test-util"]
   86     91   
version = "1.2.11"
   87     92   
   88     93   
[dev-dependencies.aws-runtime]
   89     94   
path = "../aws-runtime"
   90     95   
features = ["test-util"]
   91         -
version = "1.5.18"
          96  +
version = "1.6.0"
   92     97   
   93     98   
[dev-dependencies.aws-smithy-async]
   94     99   
path = "../aws-smithy-async"
   95    100   
features = ["test-util"]
   96         -
version = "1.2.7"
         101  +
version = "1.2.8"
   97    102   
   98    103   
[dev-dependencies.aws-smithy-http-client]
   99    104   
path = "../aws-smithy-http-client"
  100    105   
features = ["test-util", "wire-mock"]
  101         -
version = "1.1.5"
         106  +
version = "1.1.6"
  102    107   
  103    108   
[dev-dependencies.aws-smithy-protocol-test]
  104    109   
path = "../aws-smithy-protocol-test"
  105         -
version = "0.63.7"
         110  +
version = "0.63.8"
  106    111   
  107    112   
[dev-dependencies.aws-smithy-runtime]
  108    113   
path = "../aws-smithy-runtime"
  109    114   
features = ["test-util"]
  110         -
version = "1.9.8"
         115  +
version = "1.10.0"
  111    116   
  112    117   
[dev-dependencies.aws-smithy-runtime-api]
  113    118   
path = "../aws-smithy-runtime-api"
  114    119   
features = ["test-util"]
  115         -
version = "1.10.0"
         120  +
version = "1.11.0"
  116    121   
  117    122   
[dev-dependencies.aws-smithy-types]
  118    123   
path = "../aws-smithy-types"
  119         -
features = ["test-util"]
  120         -
version = "1.3.6"
         124  +
features = ["http-body-1-x", "test-util"]
         125  +
version = "1.4.0"
  121    126   
  122    127   
[dev-dependencies.futures-util]
  123    128   
version = "0.3.25"
  124    129   
features = ["alloc"]
  125    130   
default-features = false
  126    131   
  127         -
[dev-dependencies.http-1x]
  128         -
version = "1"
  129         -
package = "http"
  130         -
  131    132   
[dev-dependencies.proptest]
  132    133   
version = "1"
  133    134   
  134    135   
[dev-dependencies.serde_json]
  135    136   
version = "1.0.0"
  136    137   
  137    138   
[dev-dependencies.tokio]
  138    139   
version = "1.23.1"
  139    140   
features = ["macros", "test-util", "rt-multi-thread"]
  140    141   

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/add_client_id_to_open_id_connect_provider.rs

@@ -175,175 +248,249 @@
  195    195   
                _input: &crate::operation::add_client_id_to_open_id_connect_provider::AddClientIdToOpenIdConnectProviderInput,
  196    196   
                output: &mut ::std::string::String,
  197    197   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  198    198   
                use ::std::fmt::Write as _;
  199    199   
                ::std::write!(output, "/").expect("formatting should succeed");
  200    200   
                ::std::result::Result::Ok(())
  201    201   
            }
  202    202   
            #[allow(clippy::unnecessary_wraps)]
  203    203   
            fn update_http_builder(
  204    204   
                input: &crate::operation::add_client_id_to_open_id_connect_provider::AddClientIdToOpenIdConnectProviderInput,
  205         -
                builder: ::http::request::Builder,
  206         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         205  +
                builder: ::http_1x::request::Builder,
         206  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  207    207   
                let mut uri = ::std::string::String::new();
  208    208   
                uri_base(input, &mut uri)?;
  209    209   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  210    210   
            }
  211         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  212         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         211  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         212  +
            builder =
         213  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  213    214   
            builder
  214    215   
        };
  215    216   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_add_client_id_to_open_id_connect_provider_input::ser_add_client_id_to_open_id_connect_provider_input_input_input(&input)?);
  216    217   
        if let Some(content_length) = body.content_length() {
  217    218   
            let content_length = content_length.to_string();
  218         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         219  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  219    220   
        }
  220    221   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  221    222   
    }
  222    223   
}
  223    224   
#[derive(Debug)]
  224    225   
struct AddClientIDToOpenIDConnectProviderEndpointParamsInterceptor;
  225    226   
  226    227   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for AddClientIDToOpenIDConnectProviderEndpointParamsInterceptor {
  227    228   
    fn name(&self) -> &'static str {
  228    229   
        "AddClientIDToOpenIDConnectProviderEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/add_role_to_instance_profile.rs

@@ -165,165 +240,241 @@
  185    185   
                _input: &crate::operation::add_role_to_instance_profile::AddRoleToInstanceProfileInput,
  186    186   
                output: &mut ::std::string::String,
  187    187   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  188    188   
                use ::std::fmt::Write as _;
  189    189   
                ::std::write!(output, "/").expect("formatting should succeed");
  190    190   
                ::std::result::Result::Ok(())
  191    191   
            }
  192    192   
            #[allow(clippy::unnecessary_wraps)]
  193    193   
            fn update_http_builder(
  194    194   
                input: &crate::operation::add_role_to_instance_profile::AddRoleToInstanceProfileInput,
  195         -
                builder: ::http::request::Builder,
  196         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         195  +
                builder: ::http_1x::request::Builder,
         196  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  197    197   
                let mut uri = ::std::string::String::new();
  198    198   
                uri_base(input, &mut uri)?;
  199    199   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  200    200   
            }
  201         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  202         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         201  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         202  +
            builder =
         203  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  203    204   
            builder
  204    205   
        };
  205    206   
        let body = ::aws_smithy_types::body::SdkBody::from(
  206    207   
            crate::protocol_serde::shape_add_role_to_instance_profile_input::ser_add_role_to_instance_profile_input_input_input(&input)?,
  207    208   
        );
  208    209   
        if let Some(content_length) = body.content_length() {
  209    210   
            let content_length = content_length.to_string();
  210         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         211  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  211    212   
        }
  212    213   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  213    214   
    }
  214    215   
}
  215    216   
#[derive(Debug)]
  216    217   
struct AddRoleToInstanceProfileEndpointParamsInterceptor;
  217    218   
  218    219   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for AddRoleToInstanceProfileEndpointParamsInterceptor {
  219    220   
    fn name(&self) -> &'static str {
  220    221   
        "AddRoleToInstanceProfileEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/add_user_to_group.rs

@@ -162,162 +237,238 @@
  182    182   
                _input: &crate::operation::add_user_to_group::AddUserToGroupInput,
  183    183   
                output: &mut ::std::string::String,
  184    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185    185   
                use ::std::fmt::Write as _;
  186    186   
                ::std::write!(output, "/").expect("formatting should succeed");
  187    187   
                ::std::result::Result::Ok(())
  188    188   
            }
  189    189   
            #[allow(clippy::unnecessary_wraps)]
  190    190   
            fn update_http_builder(
  191    191   
                input: &crate::operation::add_user_to_group::AddUserToGroupInput,
  192         -
                builder: ::http::request::Builder,
  193         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         192  +
                builder: ::http_1x::request::Builder,
         193  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194    194   
                let mut uri = ::std::string::String::new();
  195    195   
                uri_base(input, &mut uri)?;
  196    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197    197   
            }
  198         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         198  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         199  +
            builder =
         200  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  200    201   
            builder
  201    202   
        };
  202    203   
        let body = ::aws_smithy_types::body::SdkBody::from(
  203    204   
            crate::protocol_serde::shape_add_user_to_group_input::ser_add_user_to_group_input_input_input(&input)?,
  204    205   
        );
  205    206   
        if let Some(content_length) = body.content_length() {
  206    207   
            let content_length = content_length.to_string();
  207         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         208  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  208    209   
        }
  209    210   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  210    211   
    }
  211    212   
}
  212    213   
#[derive(Debug)]
  213    214   
struct AddUserToGroupEndpointParamsInterceptor;
  214    215   
  215    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for AddUserToGroupEndpointParamsInterceptor {
  216    217   
    fn name(&self) -> &'static str {
  217    218   
        "AddUserToGroupEndpointParamsInterceptor"

tmp-codegen-diff/aws-sdk/sdk/iam/src/operation/attach_group_policy.rs

@@ -162,162 +237,238 @@
  182    182   
                _input: &crate::operation::attach_group_policy::AttachGroupPolicyInput,
  183    183   
                output: &mut ::std::string::String,
  184    184   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  185    185   
                use ::std::fmt::Write as _;
  186    186   
                ::std::write!(output, "/").expect("formatting should succeed");
  187    187   
                ::std::result::Result::Ok(())
  188    188   
            }
  189    189   
            #[allow(clippy::unnecessary_wraps)]
  190    190   
            fn update_http_builder(
  191    191   
                input: &crate::operation::attach_group_policy::AttachGroupPolicyInput,
  192         -
                builder: ::http::request::Builder,
  193         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         192  +
                builder: ::http_1x::request::Builder,
         193  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  194    194   
                let mut uri = ::std::string::String::new();
  195    195   
                uri_base(input, &mut uri)?;
  196    196   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  197    197   
            }
  198         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  199         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
         198  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         199  +
            builder =
         200  +
                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
  200    201   
            builder
  201    202   
        };
  202    203   
        let body = ::aws_smithy_types::body::SdkBody::from(
  203    204   
            crate::protocol_serde::shape_attach_group_policy_input::ser_attach_group_policy_input_input_input(&input)?,
  204    205   
        );
  205    206   
        if let Some(content_length) = body.content_length() {
  206    207   
            let content_length = content_length.to_string();
  207         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         208  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  208    209   
        }
  209    210   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  210    211   
    }
  211    212   
}
  212    213   
#[derive(Debug)]
  213    214   
struct AttachGroupPolicyEndpointParamsInterceptor;
  214    215   
  215    216   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for AttachGroupPolicyEndpointParamsInterceptor {
  216    217   
    fn name(&self) -> &'static str {
  217    218   
        "AttachGroupPolicyEndpointParamsInterceptor"