AWS SDK

AWS SDK

rev. ee474c7509d7728618c23068f3741e8e5b339ef9

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_put_public_access_block.rs

@@ -8,8 +52,52 @@
   28     28   
    Ok({
   29     29   
        #[allow(unused_mut)]
   30     30   
        let mut output = crate::operation::put_public_access_block::builders::PutPublicAccessBlockOutputBuilder::default();
   31     31   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_public_access_block_headers(
   37     37   
    input: &crate::operation::put_public_access_block::PutPublicAccessBlockInput,
   38         -
    mut builder: ::http::request::Builder,
   39         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          38  +
    mut builder: ::http_1x::request::Builder,
          39  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42     42   
        let header_value = formatted_2;
   43         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          43  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   44     44   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   45     45   
                "account_id",
   46     46   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   47     47   
            )
   48     48   
        })?;
   49     49   
        builder = builder.header("x-amz-account-id", header_value);
   50     50   
    }
   51     51   
    Ok(builder)
   52     52   
}

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_put_storage_lens_configuration.rs

@@ -8,8 +67,67 @@
   28     28   
    Ok({
   29     29   
        #[allow(unused_mut)]
   30     30   
        let mut output = crate::operation::put_storage_lens_configuration::builders::PutStorageLensConfigurationOutputBuilder::default();
   31     31   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_storage_lens_configuration_headers(
   37     37   
    input: &crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput,
   38         -
    mut builder: ::http::request::Builder,
   39         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          38  +
    mut builder: ::http_1x::request::Builder,
          39  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42     42   
        let header_value = formatted_2;
   43         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          43  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   44     44   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   45     45   
                "account_id",
   46     46   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   47     47   
            )
   48     48   
        })?;
   49     49   
        builder = builder.header("x-amz-account-id", header_value);
   50     50   
    }
   51     51   
    Ok(builder)
   52     52   
}
   53     53   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_put_storage_lens_configuration_tagging.rs

@@ -9,9 +70,70 @@
   29     29   
        #[allow(unused_mut)]
   30     30   
        let mut output =
   31     31   
            crate::operation::put_storage_lens_configuration_tagging::builders::PutStorageLensConfigurationTaggingOutputBuilder::default();
   32     32   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_put_storage_lens_configuration_tagging_headers(
   38     38   
    input: &crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingInput,
   39         -
    mut builder: ::http::request::Builder,
   40         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          39  +
    mut builder: ::http_1x::request::Builder,
          40  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   41     41   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   42     42   
        let formatted_2 = inner_1.as_str();
   43     43   
        let header_value = formatted_2;
   44         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          44  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   45     45   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   46     46   
                "account_id",
   47     47   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   48     48   
            )
   49     49   
        })?;
   50     50   
        builder = builder.header("x-amz-account-id", header_value);
   51     51   
    }
   52     52   
    Ok(builder)
   53     53   
}
   54     54   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_submit_multi_region_access_point_routes.rs

@@ -9,9 +70,70 @@
   29     29   
        #[allow(unused_mut)]
   30     30   
        let mut output =
   31     31   
            crate::operation::submit_multi_region_access_point_routes::builders::SubmitMultiRegionAccessPointRoutesOutputBuilder::default();
   32     32   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_submit_multi_region_access_point_routes_headers(
   38     38   
    input: &crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesInput,
   39         -
    mut builder: ::http::request::Builder,
   40         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          39  +
    mut builder: ::http_1x::request::Builder,
          40  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   41     41   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   42     42   
        let formatted_2 = inner_1.as_str();
   43     43   
        let header_value = formatted_2;
   44         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          44  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   45     45   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   46     46   
                "account_id",
   47     47   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   48     48   
            )
   49     49   
        })?;
   50     50   
        builder = builder.header("x-amz-account-id", header_value);
   51     51   
    }
   52     52   
    Ok(builder)
   53     53   
}
   54     54   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_tag_resource.rs

@@ -2,2 +61,61 @@
   22     22   
    Ok({
   23     23   
        #[allow(unused_mut)]
   24     24   
        let mut output = crate::operation::tag_resource::builders::TagResourceOutputBuilder::default();
   25     25   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   26     26   
        output.build()
   27     27   
    })
   28     28   
}
   29     29   
   30     30   
pub fn ser_tag_resource_headers(
   31     31   
    input: &crate::operation::tag_resource::TagResourceInput,
   32         -
    mut builder: ::http::request::Builder,
   33         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          32  +
    mut builder: ::http_1x::request::Builder,
          33  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   34     34   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   35     35   
        let formatted_2 = inner_1.as_str();
   36     36   
        let header_value = formatted_2;
   37         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          37  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   38     38   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   39     39   
                "account_id",
   40     40   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   41     41   
            )
   42     42   
        })?;
   43     43   
        builder = builder.header("x-amz-account-id", header_value);
   44     44   
    }
   45     45   
    Ok(builder)
   46     46   
}
   47     47   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_untag_resource.rs

@@ -2,2 +46,46 @@
   22     22   
    Ok({
   23     23   
        #[allow(unused_mut)]
   24     24   
        let mut output = crate::operation::untag_resource::builders::UntagResourceOutputBuilder::default();
   25     25   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   26     26   
        output.build()
   27     27   
    })
   28     28   
}
   29     29   
   30     30   
pub fn ser_untag_resource_headers(
   31     31   
    input: &crate::operation::untag_resource::UntagResourceInput,
   32         -
    mut builder: ::http::request::Builder,
   33         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          32  +
    mut builder: ::http_1x::request::Builder,
          33  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   34     34   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   35     35   
        let formatted_2 = inner_1.as_str();
   36     36   
        let header_value = formatted_2;
   37         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          37  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   38     38   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   39     39   
                "account_id",
   40     40   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   41     41   
            )
   42     42   
        })?;
   43     43   
        builder = builder.header("x-amz-account-id", header_value);
   44     44   
    }
   45     45   
    Ok(builder)
   46     46   
}

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_update_access_grants_location.rs

@@ -12,12 +77,77 @@
   32     32   
        let mut output = crate::operation::update_access_grants_location::builders::UpdateAccessGrantsLocationOutputBuilder::default();
   33     33   
        output = crate::protocol_serde::shape_update_access_grants_location::de_update_access_grants_location(_response_body, output)
   34     34   
            .map_err(crate::operation::update_access_grants_location::UpdateAccessGrantsLocationError::unhandled)?;
   35     35   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_update_access_grants_location_headers(
   41     41   
    input: &crate::operation::update_access_grants_location::UpdateAccessGrantsLocationInput,
   42         -
    mut builder: ::http::request::Builder,
   43         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          42  +
    mut builder: ::http_1x::request::Builder,
          43  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   44     44   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   45     45   
        let formatted_2 = inner_1.as_str();
   46     46   
        let header_value = formatted_2;
   47         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          47  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   48     48   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   49     49   
                "account_id",
   50     50   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   51     51   
            )
   52     52   
        })?;
   53     53   
        builder = builder.header("x-amz-account-id", header_value);
   54     54   
    }
   55     55   
    Ok(builder)
   56     56   
}
   57     57   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_update_job_priority.rs

@@ -76,76 +141,141 @@
   96     96   
            .map_err(crate::operation::update_job_priority::UpdateJobPriorityError::unhandled)?;
   97     97   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   98     98   
        crate::serde_util::update_job_priority_output_output_correct_errors(output)
   99     99   
            .build()
  100    100   
            .map_err(crate::operation::update_job_priority::UpdateJobPriorityError::unhandled)?
  101    101   
    })
  102    102   
}
  103    103   
  104    104   
pub fn ser_update_job_priority_headers(
  105    105   
    input: &crate::operation::update_job_priority::UpdateJobPriorityInput,
  106         -
    mut builder: ::http::request::Builder,
  107         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         106  +
    mut builder: ::http_1x::request::Builder,
         107  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  108    108   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
  109    109   
        let formatted_2 = inner_1.as_str();
  110    110   
        let header_value = formatted_2;
  111         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         111  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  112    112   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  113    113   
                "account_id",
  114    114   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  115    115   
            )
  116    116   
        })?;
  117    117   
        builder = builder.header("x-amz-account-id", header_value);
  118    118   
    }
  119    119   
    Ok(builder)
  120    120   
}
  121    121   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_update_job_status.rs

@@ -87,87 +152,152 @@
  107    107   
        let mut output = crate::operation::update_job_status::builders::UpdateJobStatusOutputBuilder::default();
  108    108   
        output = crate::protocol_serde::shape_update_job_status::de_update_job_status(_response_body, output)
  109    109   
            .map_err(crate::operation::update_job_status::UpdateJobStatusError::unhandled)?;
  110    110   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
  111    111   
        output.build()
  112    112   
    })
  113    113   
}
  114    114   
  115    115   
pub fn ser_update_job_status_headers(
  116    116   
    input: &crate::operation::update_job_status::UpdateJobStatusInput,
  117         -
    mut builder: ::http::request::Builder,
  118         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         117  +
    mut builder: ::http_1x::request::Builder,
         118  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  119    119   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
  120    120   
        let formatted_2 = inner_1.as_str();
  121    121   
        let header_value = formatted_2;
  122         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         122  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
  123    123   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  124    124   
                "account_id",
  125    125   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  126    126   
            )
  127    127   
        })?;
  128    128   
        builder = builder.header("x-amz-account-id", header_value);
  129    129   
    }
  130    130   
    Ok(builder)
  131    131   
}
  132    132   

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_update_storage_lens_group.rs

@@ -8,8 +67,67 @@
   28     28   
    Ok({
   29     29   
        #[allow(unused_mut)]
   30     30   
        let mut output = crate::operation::update_storage_lens_group::builders::UpdateStorageLensGroupOutputBuilder::default();
   31     31   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_update_storage_lens_group_headers(
   37     37   
    input: &crate::operation::update_storage_lens_group::UpdateStorageLensGroupInput,
   38         -
    mut builder: ::http::request::Builder,
   39         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
          38  +
    mut builder: ::http_1x::request::Builder,
          39  +
) -> std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42     42   
        let header_value = formatted_2;
   43         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          43  +
        let header_value: ::http_1x::HeaderValue = header_value.parse().map_err(|err| {
   44     44   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   45     45   
                "account_id",
   46     46   
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   47     47   
            )
   48     48   
        })?;
   49     49   
        builder = builder.header("x-amz-account-id", header_value);
   50     50   
    }
   51     51   
    Ok(builder)
   52     52   
}
   53     53   

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

@@ -1,1 +93,98 @@
   14     14   
protocol = "aws.protocols#restJson1"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.18"
          24  +
version = "1.6.0"
   25     25   
   26     26   
[dependencies.aws-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-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client"]
   45         -
version = "1.9.8"
          45  +
version = "1.10.0"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49         -
features = ["client", "http-02x"]
   50         -
version = "1.10.0"
          49  +
features = ["client", "http-1x"]
          50  +
version = "1.11.0"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54         -
version = "1.3.6"
          54  +
features = ["http-body-1-x"]
          55  +
version = "1.4.0"
   55     56   
   56     57   
[dependencies.aws-types]
   57     58   
path = "../aws-types"
   58     59   
version = "1.3.11"
   59     60   
   60     61   
[dependencies.bytes]
   61     62   
version = "1.4.0"
   62     63   
   63     64   
[dependencies.fastrand]
   64     65   
version = "2.0.0"
   65     66   
   66     67   
[dependencies.http]
   67     68   
version = "0.2.9"
   68     69   
          70  +
[dependencies.http-1x]
          71  +
version = "1"
          72  +
package = "http"
          73  +
   69     74   
[dependencies.regex-lite]
   70     75   
version = "0.1.5"
   71     76   
   72     77   
[dependencies.tracing]
   73     78   
version = "0.1"
   74     79   
[dev-dependencies.aws-credential-types]
   75     80   
path = "../aws-credential-types"
   76     81   
features = ["test-util"]
   77     82   
version = "1.2.11"
   78     83   

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

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

tmp-codegen-diff/aws-sdk/sdk/signin/src/operation/create_o_auth2_token.rs

@@ -156,156 +231,231 @@
  176    176   
                _input: &crate::operation::create_o_auth2_token::CreateOAuth2TokenInput,
  177    177   
                output: &mut ::std::string::String,
  178    178   
            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
  179    179   
                use ::std::fmt::Write as _;
  180    180   
                ::std::write!(output, "/v1/token").expect("formatting should succeed");
  181    181   
                ::std::result::Result::Ok(())
  182    182   
            }
  183    183   
            #[allow(clippy::unnecessary_wraps)]
  184    184   
            fn update_http_builder(
  185    185   
                input: &crate::operation::create_o_auth2_token::CreateOAuth2TokenInput,
  186         -
                builder: ::http::request::Builder,
  187         -
            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
         186  +
                builder: ::http_1x::request::Builder,
         187  +
            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  188    188   
                let mut uri = ::std::string::String::new();
  189    189   
                uri_base(input, &mut uri)?;
  190    190   
                ::std::result::Result::Ok(builder.method("POST").uri(uri))
  191    191   
            }
  192         -
            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
  193         -
            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/json");
         192  +
            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
         193  +
            builder = _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/json");
  194    194   
            builder
  195    195   
        };
  196    196   
        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_o_auth2_token_input::ser_token_input_http_payload(
  197    197   
            &input.token_input,
  198    198   
        )?);
  199    199   
        if let Some(content_length) = body.content_length() {
  200    200   
            let content_length = content_length.to_string();
  201         -
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
         201  +
            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
  202    202   
        }
  203    203   
        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
  204    204   
    }
  205    205   
}
  206    206   
#[derive(Debug)]
  207    207   
struct CreateOAuth2TokenEndpointParamsInterceptor;
  208    208   
  209    209   
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateOAuth2TokenEndpointParamsInterceptor {
  210    210   
    fn name(&self) -> &'static str {
  211    211   
        "CreateOAuth2TokenEndpointParamsInterceptor"

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

@@ -1,1 +93,98 @@
   14     14   
protocol = "aws.protocols#restJson1"
   15     15   
[package.metadata.docs.rs]
   16     16   
all-features = true
   17     17   
targets = ["x86_64-unknown-linux-gnu"]
   18     18   
[dependencies.aws-credential-types]
   19     19   
path = "../aws-credential-types"
   20     20   
version = "1.2.11"
   21     21   
   22     22   
[dependencies.aws-runtime]
   23     23   
path = "../aws-runtime"
   24         -
version = "1.5.18"
          24  +
version = "1.6.0"
   25     25   
   26     26   
[dependencies.aws-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-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client"]
   45         -
version = "1.9.8"
          45  +
version = "1.10.0"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49         -
features = ["client", "http-02x"]
   50         -
version = "1.10.0"
          49  +
features = ["client", "http-1x"]
          50  +
version = "1.11.0"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54         -
version = "1.3.6"
          54  +
features = ["http-body-1-x"]
          55  +
version = "1.4.0"
   55     56   
   56     57   
[dependencies.aws-types]
   57     58   
path = "../aws-types"
   58     59   
version = "1.3.11"
   59     60   
   60     61   
[dependencies.bytes]
   61     62   
version = "1.4.0"
   62     63   
   63     64   
[dependencies.fastrand]
   64     65   
version = "2.0.0"
   65     66   
   66     67   
[dependencies.http]
   67     68   
version = "0.2.9"
   68     69   
          70  +
[dependencies.http-1x]
          71  +
version = "1"
          72  +
package = "http"
          73  +
   69     74   
[dependencies.regex-lite]
   70     75   
version = "0.1.5"
   71     76   
   72     77   
[dependencies.tracing]
   73     78   
version = "0.1"
   74     79   
[dev-dependencies.aws-credential-types]
   75     80   
path = "../aws-credential-types"
   76     81   
features = ["test-util"]
   77     82   
version = "1.2.11"
   78     83