AWS SDK

AWS SDK

rev. 3964b40d6806bc3f52bd311e2c791030c3325f2c

Files changed:

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-signed-request.txt

@@ -0,1 +0,10 @@
           1  +
POST / HTTP/1.1
           2  +
Content-Type:application/x-www-form-urlencoded
           3  +
Host:example.amazonaws.com
           4  +
Content-Length:13
           5  +
X-Amz-Date:20150830T123600Z
           6  +
X-Amz-Region-Set:us-east-1
           7  +
x-amz-content-sha256:9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
           8  +
Authorization:AWS4-ECDSA-P256-SHA256 Credential=AKIDEXAMPLE/20150830/service/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date;x-amz-region-set, Signature=3045022100955bbc0f0b9d4284719808642167f7d5ea4a72f8c296b75b442898c8b81cd7e502202425fb97620fa9a20344d22b248dd00db07524fc39b5ad77533e00b277331241
           9  +
          10  +
Param1=value1

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/header-string-to-sign.txt

@@ -0,1 +0,4 @@
           1  +
AWS4-ECDSA-P256-SHA256
           2  +
20150830T123600Z
           3  +
20150830/service/aws4_request
           4  +
ba7fa291aefad463b308fdc89b33d852aea9fbcfa151d820117bd8189066cb91

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/public-key.json

@@ -0,1 +0,4 @@
           1  +
{
           2  +
  "X":"b6618f6a65740a99e650b33b6b4b5bd0d43b176d721a3edfea7e7d2d56d936b1",
           3  +
  "Y":"865ed22a7eadc9c5cb9d2cbaca1b3699139fedc5043dc6661864218330c8e518"
           4  +
}

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-canonical-request.txt

Renamed from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-canonical-request.txt

@@ -1,1 +0,9 @@
    1      1   
POST
    2      2   
/
    3      3   
X-Amz-Algorithm=AWS4-ECDSA-P256-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-Expires=3600&X-Amz-Region-Set=us-east-1&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost
    4      4   
content-length:13
    5      5   
content-type:application/x-www-form-urlencoded
    6      6   
host:example.amazonaws.com
    7      7   
    8      8   
content-length;content-type;host
    9         -
9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e
           9  +
9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signature.txt

@@ -0,1 +3009,3364 @@
           1  +
304402205e21d399153f879b0f32c38742d12941299467bfdc213224cc76a97acffd6ec6022035a9be37a38c19e98e5cfc536fabe885e82fbf999081234b364cab5cacff8733
              \
 No newline at end of file
    0      2   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signed-request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signed-request.txt
    1      3   
new file mode 100644
    2      4   
index 0000000..71d6de9
    3         -
-- /dev/null
           5  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-signed-request.txt
    4      6   
@@ -0,0 +1,6 @@
           7  +
POST /?X-Amz-Algorithm=AWS4-ECDSA-P256-SHA256&X-Amz-Credential=AKIDEXAMPLE%2F20150830%2Fservice%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-SignedHeaders=content-length%3Bcontent-type%3Bhost&X-Amz-Expires=3600&X-Amz-Region-Set=us-east-1&X-Amz-Signature=30450221008d8a6aa0bc3f651e6c14c52e9e24dbca58964641c9cb6e55169f9dc74766ae3d022016126756ce1523ac972f66f6bf6e981f44572d3c8916f1f43d428fb2caa0e1ea HTTP/1.1
           8  +
Content-Type:application/x-www-form-urlencoded
           9  +
Host:example.amazonaws.com
          10  +
Content-Length:13
          11  +
          12  +
Param1=value1
              \
 No newline at end of file
    5     13   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-string-to-sign.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-string-to-sign.txt
    6     14   
similarity index 99%
    7     15   
rename from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-string-to-sign.txt
    8     16   
rename to tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-string-to-sign.txt
    9     17   
index bef3143..cc7a224 100644
   10         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded/query-string-to-sign.txt
          18  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/query-string-to-sign.txt
   11     19   
@@ -1,4 +1,4 @@
   12     20   
AWS4-ECDSA-P256-SHA256
   13     21   
20150830T123600Z
   14     22   
20150830/service/aws4_request
   15         -
4e4122984d30d13170a298ece62cc30f8da12578fb3b482616b1f11036b13934
          23  +
4e4122984d30d13170a298ece62cc30f8da12578fb3b482616b1f11036b13934
              \
 No newline at end of file
   16     24   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/request.txt b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/request.txt
   17     25   
new file mode 100644
   18     26   
index 0000000..760b2d3
   19         -
-- /dev/null
          27  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded/request.txt
   20     28   
@@ -0,0 +1,6 @@
          29  +
POST / HTTP/1.1
          30  +
Content-Type:application/x-www-form-urlencoded
          31  +
Host:example.amazonaws.com
          32  +
Content-Length:13
          33  +
          34  +
Param1=value1
              \
 No newline at end of file
   21     35   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs
   22     36   
index 9bd636f..b53f33f 100644
   23         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs
          37  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/canonical_request.rs
   24     38   
@@ -346,67 +346,78 @@ impl CanonicalRequest<'_> {
   25     39   
            params.push((Cow::Borrowed(k), Cow::Borrowed(v)));
   26     40   
        }
   27     41   
   28     42   
        if let SignatureValues::QueryParams(values) = values {
   29     43   
            add_param(&mut params, param::X_AMZ_DATE, &values.date_time);
   30     44   
            add_param(&mut params, param::X_AMZ_EXPIRES, &values.expires);
   31     45   
   32     46   
            #[cfg(feature = "sigv4a")]
   33     47   
            if let Some(regions) = values.region_set {
   34     48   
                add_param(&mut params, sigv4a::param::X_AMZ_REGION_SET, regions);
   35     49   
            }
   36     50   
   37     51   
            add_param(&mut params, param::X_AMZ_ALGORITHM, values.algorithm);
   38     52   
            add_param(&mut params, param::X_AMZ_CREDENTIAL, &values.credential);
   39     53   
            add_param(
   40     54   
                &mut params,
   41     55   
                param::X_AMZ_SIGNED_HEADERS,
   42     56   
                values.signed_headers.as_str(),
   43     57   
            );
   44     58   
   45     59   
            if let Some(security_token) = values.security_token {
   46     60   
                add_param(
   47     61   
                    &mut params,
   48     62   
                    settings
   49     63   
                        .session_token_name_override
   50     64   
                        .unwrap_or(param::X_AMZ_SECURITY_TOKEN),
   51     65   
                    security_token,
   52     66   
                );
   53     67   
            }
   54     68   
        }
   55         -
        // Sort by param name, and then by param value
          69  +
          70  +
        // Sort on the _encoded_ key/value pairs
          71  +
        let mut params: Vec<(String, String)> = params
          72  +
            .into_iter()
          73  +
            .map(|x| {
          74  +
                use aws_smithy_http::query::fmt_string;
          75  +
                let enc_k = fmt_string(&x.0);
          76  +
                let enc_v = fmt_string(&x.1);
          77  +
                (enc_k, enc_v)
          78  +
            })
          79  +
            .collect();
          80  +
   56     81   
        params.sort();
   57     82   
   58     83   
        let mut query = QueryWriter::new(uri);
   59     84   
        query.clear_params();
   60     85   
        for (key, value) in params {
   61         -
            query.insert(&key, &value);
          86  +
            query.insert_encoded(&key, &value);
   62     87   
        }
   63     88   
   64     89   
        let query = query.build_query();
   65     90   
        if query.is_empty() {
   66     91   
            None
   67     92   
        } else {
   68     93   
            Some(query)
   69     94   
        }
   70     95   
    }
   71     96   
   72     97   
    fn insert_host_header(
   73     98   
        canonical_headers: &mut HeaderMap<HeaderValue>,
   74     99   
        uri: &Uri,
   75    100   
    ) -> HeaderValue {
   76    101   
        match canonical_headers.get(&HOST) {
   77    102   
            Some(header) => header.clone(),
   78    103   
            None => {
   79    104   
                let port = uri.port();
   80    105   
                let scheme = uri.scheme();
   81    106   
                let authority = uri
   82    107   
                    .authority()
   83    108   
                    .expect("request uri authority must be set for signing")
   84    109   
                    .as_str();
   85    110   
                let host = uri
   86    111   
                    .host()
   87    112   
                    .expect("request uri host must be set for signing");
   88    113   
   89    114   
                // Check if port is default (80 for HTTP, 443 for HTTPS) and if so exclude it from the
   90    115   
                // Host header when signing since RFC 2616 indicates that the default port should not be
   91    116   
                // sent in the Host header (and Hyper strips default ports if they are present)
   92    117   
@@ -642,310 +653,320 @@ impl<'a> StringToSign<'a> {
   93    118   
            service,
   94    119   
            hashed_creq,
   95    120   
            signature_version: SignatureVersion::V4a,
   96    121   
        }
   97    122   
    }
   98    123   
}
   99    124   
  100    125   
impl fmt::Display for StringToSign<'_> {
  101    126   
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
  102    127   
        write!(
  103    128   
            f,
  104    129   
            "{}\n{}\n{}\n{}",
  105    130   
            self.algorithm,
  106    131   
            format_date_time(self.time),
  107    132   
            match self.signature_version {
  108    133   
                SignatureVersion::V4 => self.scope.to_string(),
  109    134   
                SignatureVersion::V4a => self.scope.v4a_display(),
  110    135   
            },
  111    136   
            self.hashed_creq
  112    137   
        )
  113    138   
    }
  114    139   
}
  115    140   
  116    141   
#[cfg(test)]
  117    142   
mod tests {
  118    143   
    use crate::date_time::test_parsers::parse_date_time;
  119    144   
    use crate::http_request::canonical_request::{
  120    145   
        normalize_header_value, trim_all, CanonicalRequest, SigningScope, StringToSign,
  121    146   
    };
  122    147   
    use crate::http_request::test;
         148  +
    use crate::http_request::test::SigningSuiteTest;
  123    149   
    use crate::http_request::{
  124    150   
        PayloadChecksumKind, SessionTokenMode, SignableBody, SignableRequest, SignatureLocation,
  125    151   
        SigningParams, SigningSettings,
  126    152   
    };
  127    153   
    use crate::sign::v4;
  128    154   
    use crate::sign::v4::sha256_hex_string;
  129    155   
    use aws_credential_types::Credentials;
  130    156   
    use aws_smithy_http::query_writer::QueryWriter;
  131    157   
    use aws_smithy_runtime_api::client::identity::Identity;
  132    158   
    use http0::{HeaderValue, Uri};
  133    159   
    use pretty_assertions::assert_eq;
  134    160   
    use proptest::{prelude::*, proptest};
  135    161   
    use std::borrow::Cow;
  136    162   
    use std::time::Duration;
  137    163   
  138    164   
    fn signing_params(identity: &Identity, settings: SigningSettings) -> SigningParams<'_> {
  139    165   
        v4::signing_params::Builder::default()
  140    166   
            .identity(identity)
  141    167   
            .region("test-region")
  142    168   
            .name("testservicename")
  143    169   
            .time(parse_date_time("20210511T154045Z").unwrap())
  144    170   
            .settings(settings)
  145    171   
            .build()
  146    172   
            .unwrap()
  147    173   
            .into()
  148    174   
    }
  149    175   
  150    176   
    #[test]
  151    177   
    fn test_repeated_header() {
  152         -
        let mut req = test::v4::test_request("get-vanilla-query-order-key-case");
         178  +
        let test = test::SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         179  +
        let mut req = test.request();
  153    180   
        req.headers.push((
  154    181   
            "x-amz-object-attributes".to_string(),
  155    182   
            "Checksum".to_string(),
  156    183   
        ));
  157    184   
        req.headers.push((
  158    185   
            "x-amz-object-attributes".to_string(),
  159    186   
            "ObjectSize".to_string(),
  160    187   
        ));
  161    188   
        let req = SignableRequest::from(&req);
  162    189   
        let settings = SigningSettings {
  163    190   
            payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
  164    191   
            session_token_mode: SessionTokenMode::Exclude,
  165    192   
            ..Default::default()
  166    193   
        };
  167    194   
        let identity = Credentials::for_tests().into();
  168    195   
        let signing_params = signing_params(&identity, settings);
  169    196   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  170    197   
  171    198   
        assert_eq!(
  172    199   
            creq.values.signed_headers().to_string(),
  173    200   
            "host;x-amz-content-sha256;x-amz-date;x-amz-object-attributes"
  174    201   
        );
  175    202   
        assert_eq!(
  176    203   
            creq.header_values_for("x-amz-object-attributes"),
  177    204   
            "Checksum,ObjectSize",
  178    205   
        );
  179    206   
    }
  180    207   
  181    208   
    #[test]
  182    209   
    fn test_host_header_properly_handles_ports() {
  183    210   
        fn host_header_test_setup(endpoint: String) -> String {
  184         -
            let mut req = test::v4::test_request("get-vanilla");
         211  +
            let test = SigningSuiteTest::v4("get-vanilla");
         212  +
            let mut req = test.request();
  185    213   
            req.uri = endpoint;
  186    214   
            let req = SignableRequest::from(&req);
  187    215   
            let settings = SigningSettings {
  188    216   
                payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
  189    217   
                session_token_mode: SessionTokenMode::Exclude,
  190    218   
                ..Default::default()
  191    219   
            };
  192    220   
            let identity = Credentials::for_tests().into();
  193    221   
            let signing_params = signing_params(&identity, settings);
  194    222   
            let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  195    223   
            creq.header_values_for("host")
  196    224   
        }
  197    225   
  198    226   
        // HTTP request with 80 port should not be signed with that port
  199    227   
        let http_80_host_header = host_header_test_setup("http://localhost:80".into());
  200    228   
        assert_eq!(http_80_host_header, "localhost",);
  201    229   
  202    230   
        // HTTP request with non-80 port should be signed with that port
  203    231   
        let http_1234_host_header = host_header_test_setup("http://localhost:1234".into());
  204    232   
        assert_eq!(http_1234_host_header, "localhost:1234",);
  205    233   
  206    234   
        // HTTPS request with 443 port should not be signed with that port
  207    235   
        let https_443_host_header = host_header_test_setup("https://localhost:443".into());
  208    236   
        assert_eq!(https_443_host_header, "localhost",);
  209    237   
  210    238   
        // HTTPS request with non-443 port should be signed with that port
  211    239   
        let https_1234_host_header = host_header_test_setup("https://localhost:1234".into());
  212    240   
        assert_eq!(https_1234_host_header, "localhost:1234",);
  213    241   
    }
  214    242   
  215    243   
    #[test]
  216    244   
    fn test_set_xamz_sha_256() {
  217         -
        let req = test::v4::test_request("get-vanilla-query-order-key-case");
         245  +
        let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         246  +
        let req = test.request();
  218    247   
        let req = SignableRequest::from(&req);
  219    248   
        let settings = SigningSettings {
  220    249   
            payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
  221    250   
            session_token_mode: SessionTokenMode::Exclude,
  222    251   
            ..Default::default()
  223    252   
        };
  224    253   
        let identity = Credentials::for_tests().into();
  225    254   
        let mut signing_params = signing_params(&identity, settings);
  226    255   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  227    256   
        assert_eq!(
  228    257   
            creq.values.content_sha256(),
  229    258   
            "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
  230    259   
        );
  231    260   
        // assert that the sha256 header was added
  232    261   
        assert_eq!(
  233    262   
            creq.values.signed_headers().as_str(),
  234    263   
            "host;x-amz-content-sha256;x-amz-date"
  235    264   
        );
  236    265   
  237    266   
        signing_params.set_payload_checksum_kind(PayloadChecksumKind::NoHeader);
  238    267   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  239    268   
        assert_eq!(creq.values.signed_headers().as_str(), "host;x-amz-date");
  240    269   
    }
  241    270   
  242    271   
    #[test]
  243    272   
    fn test_unsigned_payload() {
  244         -
        let mut req = test::v4::test_request("get-vanilla-query-order-key-case");
         273  +
        let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         274  +
        let mut req = test.request();
  245    275   
        req.set_body(SignableBody::UnsignedPayload);
  246    276   
        let req: SignableRequest<'_> = SignableRequest::from(&req);
  247    277   
  248    278   
        let settings = SigningSettings {
  249    279   
            payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
  250    280   
            ..Default::default()
  251    281   
        };
  252    282   
        let identity = Credentials::for_tests().into();
  253    283   
        let signing_params = signing_params(&identity, settings);
  254    284   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  255    285   
        assert_eq!(creq.values.content_sha256(), "UNSIGNED-PAYLOAD");
  256    286   
        assert!(creq.to_string().ends_with("UNSIGNED-PAYLOAD"));
  257    287   
    }
  258    288   
  259    289   
    #[test]
  260    290   
    fn test_precomputed_payload() {
  261    291   
        let payload_hash = "44ce7dd67c959e0d3524ffac1771dfbba87d2b6b4b4e99e42034a8b803f8b072";
  262         -
        let mut req = test::v4::test_request("get-vanilla-query-order-key-case");
         292  +
        let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         293  +
        let mut req = test.request();
  263    294   
        req.set_body(SignableBody::Precomputed(String::from(payload_hash)));
  264    295   
        let req = SignableRequest::from(&req);
  265    296   
        let settings = SigningSettings {
  266    297   
            payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
  267    298   
            ..Default::default()
  268    299   
        };
  269    300   
        let identity = Credentials::for_tests().into();
  270    301   
        let signing_params = signing_params(&identity, settings);
  271    302   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  272    303   
        assert_eq!(creq.values.content_sha256(), payload_hash);
  273    304   
        assert!(creq.to_string().ends_with(payload_hash));
  274    305   
    }
  275    306   
  276    307   
    #[test]
  277    308   
    fn test_generate_scope() {
  278    309   
        let expected = "20150830/us-east-1/iam/aws4_request\n";
  279    310   
        let scope = SigningScope {
  280    311   
            time: parse_date_time("20150830T123600Z").unwrap(),
  281    312   
            region: "us-east-1",
  282    313   
            service: "iam",
  283    314   
        };
  284    315   
        assert_eq!(format!("{}\n", scope), expected);
  285    316   
    }
  286    317   
  287    318   
    #[test]
  288    319   
    fn test_string_to_sign() {
  289    320   
        let time = parse_date_time("20150830T123600Z").unwrap();
  290         -
        let creq = test::v4::test_canonical_request("get-vanilla-query-order-key-case");
  291         -
        let expected_sts = test::v4::test_sts("get-vanilla-query-order-key-case");
         321  +
        let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         322  +
        let creq = test.canonical_request(SignatureLocation::Headers);
         323  +
        let expected_sts = test.string_to_sign(SignatureLocation::Headers);
  292    324   
        let encoded = sha256_hex_string(creq.as_bytes());
  293    325   
  294    326   
        let actual = StringToSign::new_v4(time, "us-east-1", "service", &encoded);
  295    327   
        assert_eq!(expected_sts, actual.to_string());
  296    328   
    }
  297    329   
  298    330   
    #[test]
  299    331   
    fn test_digest_of_canonical_request() {
  300         -
        let creq = test::v4::test_canonical_request("get-vanilla-query-order-key-case");
         332  +
        let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         333  +
        let creq = test.canonical_request(SignatureLocation::Headers);
  301    334   
        let expected = "816cd5b414d056048ba4f7c5386d6e0533120fb1fcfa93762cf0fc39e2cf19e0";
  302    335   
        let actual = sha256_hex_string(creq.as_bytes());
  303    336   
        assert_eq!(expected, actual);
  304    337   
    }
  305    338   
  306    339   
    #[test]
  307    340   
    fn test_double_url_encode_path() {
  308         -
        let req = test::v4::test_request("double-encode-path");
         341  +
        let test = SigningSuiteTest::v4("double-encode-path");
         342  +
        let req = test.request();
  309    343   
        let req = SignableRequest::from(&req);
  310    344   
        let identity = Credentials::for_tests().into();
  311    345   
        let signing_params = signing_params(&identity, SigningSettings::default());
  312    346   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  313    347   
  314         -
        let expected = test::v4::test_canonical_request("double-encode-path");
         348  +
        let expected = test.canonical_request(SignatureLocation::Headers);
  315    349   
        let actual = format!("{}", creq);
  316    350   
        assert_eq!(actual, expected);
  317    351   
    }
  318    352   
  319    353   
    #[test]
  320    354   
    fn test_double_url_encode() {
  321         -
        let req = test::v4::test_request("double-url-encode");
         355  +
        let test = SigningSuiteTest::v4("double-url-encode");
         356  +
        let req = test.request();
  322    357   
        let req = SignableRequest::from(&req);
  323    358   
        let identity = Credentials::for_tests().into();
  324    359   
        let signing_params = signing_params(&identity, SigningSettings::default());
  325    360   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  326         -
  327         -
        let expected = test::v4::test_canonical_request("double-url-encode");
         361  +
        let expected = test.canonical_request(SignatureLocation::Headers);
  328    362   
        let actual = format!("{}", creq);
  329    363   
        assert_eq!(actual, expected);
  330    364   
    }
  331    365   
  332    366   
    #[test]
  333    367   
    fn test_tilde_in_uri() {
  334    368   
        let req = http0::Request::builder()
  335    369   
            .uri("https://s3.us-east-1.amazonaws.com/my-bucket?list-type=2&prefix=~objprefix&single&k=&unreserved=-_.~").body("").unwrap().into();
  336    370   
        let req = SignableRequest::from(&req);
  337    371   
        let identity = Credentials::for_tests().into();
  338    372   
        let signing_params = signing_params(&identity, SigningSettings::default());
  339    373   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  340    374   
        assert_eq!(
  341    375   
            Some("k=&list-type=2&prefix=~objprefix&single=&unreserved=-_.~"),
  342    376   
            creq.params.as_deref(),
  343    377   
        );
  344    378   
    }
  345    379   
  346    380   
    #[test]
  347    381   
    fn test_signing_urls_with_percent_encoded_query_strings() {
  348    382   
        let all_printable_ascii_chars: String = (32u8..127).map(char::from).collect();
  349    383   
        let uri = Uri::from_static("https://s3.us-east-1.amazonaws.com/my-bucket");
  350    384   
  351    385   
        let mut query_writer = QueryWriter::new(&uri);
  352    386   
        query_writer.insert("list-type", "2");
  353    387   
        query_writer.insert("prefix", &all_printable_ascii_chars);
  354    388   
  355    389   
        let req = http0::Request::builder()
  356    390   
            .uri(query_writer.build_uri())
  357    391   
            .body("")
  358    392   
            .unwrap()
  359    393   
            .into();
  360    394   
        let req = SignableRequest::from(&req);
  361    395   
        let identity = Credentials::for_tests().into();
  362    396   
        let signing_params = signing_params(&identity, SigningSettings::default());
  363    397   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  364    398   
  365    399   
        let expected = "list-type=2&prefix=%20%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~";
  366    400   
        let actual = creq.params.unwrap();
  367    401   
        assert_eq!(expected, actual);
  368    402   
    }
  369    403   
  370    404   
    #[test]
  371    405   
    fn test_omit_session_token() {
  372         -
        let req = test::v4::test_request("get-vanilla-query-order-key-case");
         406  +
        let test = SigningSuiteTest::v4("get-vanilla-query-order-key-case");
         407  +
        let req = test.request();
  373    408   
        let req = SignableRequest::from(&req);
  374    409   
        let settings = SigningSettings {
  375    410   
            session_token_mode: SessionTokenMode::Include,
  376    411   
            ..Default::default()
  377    412   
        };
  378    413   
        let identity = Credentials::for_tests_with_session_token().into();
  379    414   
        let mut signing_params = signing_params(&identity, settings);
  380    415   
  381    416   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  382    417   
        assert_eq!(
  383    418   
            creq.values.signed_headers().as_str(),
  384    419   
            "host;x-amz-date;x-amz-security-token"
  385    420   
        );
  386    421   
        assert_eq!(
  387    422   
            creq.headers.get("x-amz-security-token").unwrap(),
  388    423   
            "notarealsessiontoken"
  389    424   
        );
  390    425   
  391    426   
        signing_params.set_session_token_mode(SessionTokenMode::Exclude);
  392    427   
        let creq = CanonicalRequest::from(&req, &signing_params).unwrap();
  393    428   
        assert_eq!(
  394    429   
            creq.headers.get("x-amz-security-token").unwrap(),
  395    430   
            "notarealsessiontoken"
  396    431   
        );
  397    432   
        assert_eq!(creq.values.signed_headers().as_str(), "host;x-amz-date");
  398    433   
    }
  399    434   
  400    435   
    // It should exclude authorization, user-agent, x-amzn-trace-id, and transfer-encoding headers from presigning
  401    436   
    #[test]
  402    437   
    fn non_presigning_header_exclusion() {
  403    438   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs
  404    439   
index c4bbbee..30b4743 100644
  405         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs
         440  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/sign.rs
  406    441   
@@ -478,436 +478,324 @@ fn add_header(map: &mut Vec<Header>, key: &'static str, value: &str, sensitive:
  407    442   
        sensitive,
  408    443   
    });
  409    444   
}
  410    445   
  411    446   
// add signature to authorization header
  412    447   
// Authorization: algorithm Credential=access key ID/credential scope, SignedHeaders=SignedHeaders, Signature=signature
  413    448   
fn build_authorization_header(
  414    449   
    access_key: &str,
  415    450   
    creq: &CanonicalRequest<'_>,
  416    451   
    sts: StringToSign<'_>,
  417    452   
    signature: &str,
  418    453   
    signature_version: SignatureVersion,
  419    454   
) -> String {
  420    455   
    let scope = match signature_version {
  421    456   
        SignatureVersion::V4 => sts.scope.to_string(),
  422    457   
        SignatureVersion::V4a => sts.scope.v4a_display(),
  423    458   
    };
  424    459   
    format!(
  425    460   
        "{} Credential={}/{}, SignedHeaders={}, Signature={}",
  426    461   
        sts.algorithm,
  427    462   
        access_key,
  428    463   
        scope,
  429    464   
        creq.values.signed_headers().as_str(),
  430    465   
        signature
  431    466   
    )
  432    467   
}
  433    468   
#[cfg(test)]
  434    469   
mod tests {
  435    470   
    use crate::date_time::test_parsers::parse_date_time;
  436    471   
    use crate::http_request::sign::{add_header, SignableRequest};
         472  +
    use crate::http_request::test::SigningSuiteTest;
  437    473   
    use crate::http_request::{
  438         -
        sign, test, SessionTokenMode, SignableBody, SignatureLocation, SigningInstructions,
         474  +
        sign, SessionTokenMode, SignableBody, SignatureLocation, SigningInstructions,
  439    475   
        SigningSettings,
  440    476   
    };
  441    477   
    use crate::sign::v4;
  442    478   
    use aws_credential_types::Credentials;
  443    479   
    use http0::{HeaderValue, Request};
  444    480   
    use pretty_assertions::assert_eq;
  445    481   
    use proptest::proptest;
  446    482   
    use std::borrow::Cow;
  447    483   
    use std::iter;
  448         -
    use std::time::Duration;
  449    484   
  450    485   
    macro_rules! assert_req_eq {
  451    486   
        (http: $expected:expr, $actual:expr) => {
  452    487   
            let mut expected = ($expected).map(|_b|"body");
  453    488   
            let mut actual = ($actual).map(|_b|"body");
  454    489   
            make_headers_comparable(&mut expected);
  455    490   
            make_headers_comparable(&mut actual);
  456    491   
            assert_eq!(format!("{:?}", expected), format!("{:?}", actual));
  457    492   
        };
  458    493   
        ($expected:tt, $actual:tt) => {
  459    494   
            assert_req_eq!(http: ($expected).as_http_request(), $actual);
  460    495   
        };
  461    496   
    }
  462    497   
  463    498   
    pub(crate) fn make_headers_comparable<B>(request: &mut Request<B>) {
  464    499   
        for (_name, value) in request.headers_mut() {
  465    500   
            value.set_sensitive(false);
  466    501   
        }
  467    502   
    }
  468    503   
  469         -
    #[test]
  470         -
    fn test_sign_vanilla_with_headers() {
  471         -
        let settings = SigningSettings::default();
  472         -
        let identity = &Credentials::for_tests().into();
  473         -
        let params = v4::SigningParams {
  474         -
            identity,
  475         -
            region: "us-east-1",
  476         -
            name: "service",
  477         -
            time: parse_date_time("20150830T123600Z").unwrap(),
  478         -
            settings,
  479         -
        }
  480         -
        .into();
  481         -
  482         -
        let original = test::v4::test_request("get-vanilla-query-order-key-case");
  483         -
        let signable = SignableRequest::from(&original);
  484         -
        let out = sign(signable, &params).unwrap();
  485         -
        assert_eq!(
  486         -
            "5557820e7380d585310524bd93d51a08d7757fb5efd7344ee12088f2b0860947",
  487         -
            out.signature
  488         -
        );
  489         -
  490         -
        let mut signed = original.as_http_request();
  491         -
        out.output.apply_to_request_http0x(&mut signed);
  492         -
  493         -
        let expected = test::v4::test_signed_request("get-vanilla-query-order-key-case");
  494         -
        assert_req_eq!(expected, signed);
  495         -
    }
  496         -
         504  +
    // Sigv4A suite tests
  497    505   
    #[cfg(feature = "sigv4a")]
  498         -
    mod sigv4a_tests {
  499         -
        use super::*;
  500         -
        use crate::http_request::canonical_request::{CanonicalRequest, StringToSign};
  501         -
        use crate::http_request::{sign, test, SigningParams};
  502         -
        use crate::sign::v4a;
  503         -
        use p256::ecdsa::signature::{Signature, Verifier};
  504         -
        use p256::ecdsa::{DerSignature, SigningKey};
  505         -
        use pretty_assertions::assert_eq;
  506         -
  507         -
        fn new_v4a_signing_params_from_context(
  508         -
            test_context: &'_ test::v4a::TestContext,
  509         -
            signature_location: SignatureLocation,
  510         -
        ) -> SigningParams<'_> {
  511         -
            let mut params = v4a::SigningParams::from(test_context);
  512         -
            params.settings.signature_location = signature_location;
  513         -
  514         -
            params.into()
  515         -
        }
  516         -
  517         -
        fn run_v4a_test_suite(test_name: &str, signature_location: SignatureLocation) {
  518         -
            let tc = test::v4a::test_context(test_name);
  519         -
            let params = new_v4a_signing_params_from_context(&tc, signature_location);
  520         -
  521         -
            let req = test::v4a::test_request(test_name);
  522         -
            let expected_creq = test::v4a::test_canonical_request(test_name, signature_location);
  523         -
            let signable_req = SignableRequest::from(&req);
  524         -
            let actual_creq = CanonicalRequest::from(&signable_req, &params).unwrap();
  525         -
  526         -
            assert_eq!(expected_creq, actual_creq.to_string(), "creq didn't match");
  527         -
  528         -
            let expected_string_to_sign =
  529         -
                test::v4a::test_string_to_sign(test_name, signature_location);
  530         -
            let hashed_creq = &v4::sha256_hex_string(actual_creq.to_string().as_bytes());
  531         -
            let actual_string_to_sign = StringToSign::new_v4a(
  532         -
                *params.time(),
  533         -
                params.region_set().unwrap(),
  534         -
                params.name(),
  535         -
                hashed_creq,
  536         -
            )
  537         -
            .to_string();
  538         -
  539         -
            assert_eq!(
  540         -
                expected_string_to_sign, actual_string_to_sign,
  541         -
                "'string to sign' didn't match"
  542         -
            );
         506  +
    mod v4a_suite {
         507  +
        use crate::http_request::test::v4a::run_test_suite_v4a;
  543    508   
  544         -
            let out = sign(signable_req, &params).unwrap();
  545         -
            // Sigv4a signatures are non-deterministic, so we can't compare the signature directly.
  546         -
            out.output
  547         -
                .apply_to_request_http0x(&mut req.as_http_request());
  548         -
  549         -
            let creds = params.credentials().unwrap();
  550         -
            let signing_key =
  551         -
                v4a::generate_signing_key(creds.access_key_id(), creds.secret_access_key());
  552         -
            let sig = DerSignature::from_bytes(&hex::decode(out.signature).unwrap()).unwrap();
  553         -
            let sig = sig
  554         -
                .try_into()
  555         -
                .expect("DER-style signatures are always convertible into fixed-size signatures");
  556         -
  557         -
            let signing_key = SigningKey::from_bytes(signing_key.as_ref()).unwrap();
  558         -
            let peer_public_key = signing_key.verifying_key();
  559         -
            let sts = actual_string_to_sign.as_bytes();
  560         -
            peer_public_key.verify(sts, &sig).unwrap();
         509  +
        #[test]
         510  +
        fn test_get_header_key_duplicate() {
         511  +
            run_test_suite_v4a("get-header-key-duplicate")
  561    512   
        }
  562    513   
  563    514   
        #[test]
  564         -
        fn test_get_header_key_duplicate() {
  565         -
            run_v4a_test_suite("get-header-key-duplicate", SignatureLocation::Headers);
         515  +
        #[ignore = "httpparse doesn't support parsing multiline headers since they are deprecated in RFC7230"]
         516  +
        fn test_get_header_value_multiline() {
         517  +
            run_test_suite_v4a("get-header-value-multiline")
  566    518   
        }
  567    519   
  568    520   
        #[test]
  569    521   
        fn test_get_header_value_order() {
  570         -
            run_v4a_test_suite("get-header-value-order", SignatureLocation::Headers);
         522  +
            run_test_suite_v4a("get-header-value-order")
  571    523   
        }
  572    524   
  573    525   
        #[test]
  574    526   
        fn test_get_header_value_trim() {
  575         -
            run_v4a_test_suite("get-header-value-trim", SignatureLocation::Headers);
         527  +
            run_test_suite_v4a("get-header-value-trim");
  576    528   
        }
  577    529   
  578    530   
        #[test]
  579    531   
        fn test_get_relative_normalized() {
  580         -
            run_v4a_test_suite("get-relative-normalized", SignatureLocation::Headers);
         532  +
            run_test_suite_v4a("get-relative-normalized");
  581    533   
        }
  582    534   
  583    535   
        #[test]
  584    536   
        fn test_get_relative_relative_normalized() {
  585         -
            run_v4a_test_suite(
  586         -
                "get-relative-relative-normalized",
  587         -
                SignatureLocation::Headers,
  588         -
            );
         537  +
            run_test_suite_v4a("get-relative-relative-normalized");
  589    538   
        }
  590    539   
  591    540   
        #[test]
  592    541   
        fn test_get_relative_relative_unnormalized() {
  593         -
            run_v4a_test_suite(
  594         -
                "get-relative-relative-unnormalized",
  595         -
                SignatureLocation::Headers,
  596         -
            );
         542  +
            run_test_suite_v4a("get-relative-relative-unnormalized");
  597    543   
        }
  598    544   
  599    545   
        #[test]
  600    546   
        fn test_get_relative_unnormalized() {
  601         -
            run_v4a_test_suite("get-relative-unnormalized", SignatureLocation::Headers);
         547  +
            run_test_suite_v4a("get-relative-unnormalized");
  602    548   
        }
  603    549   
  604    550   
        #[test]
  605    551   
        fn test_get_slash_dot_slash_normalized() {
  606         -
            run_v4a_test_suite("get-slash-dot-slash-normalized", SignatureLocation::Headers);
         552  +
            run_test_suite_v4a("get-slash-dot-slash-normalized");
  607    553   
        }
  608    554   
  609    555   
        #[test]
  610    556   
        fn test_get_slash_dot_slash_unnormalized() {
  611         -
            run_v4a_test_suite(
  612         -
                "get-slash-dot-slash-unnormalized",
  613         -
                SignatureLocation::Headers,
  614         -
            );
         557  +
            run_test_suite_v4a("get-slash-dot-slash-unnormalized");
  615    558   
        }
  616    559   
  617    560   
        #[test]
  618    561   
        fn test_get_slash_normalized() {
  619         -
            run_v4a_test_suite("get-slash-normalized", SignatureLocation::Headers);
         562  +
            run_test_suite_v4a("get-slash-normalized");
  620    563   
        }
  621    564   
  622    565   
        #[test]
  623    566   
        fn test_get_slash_pointless_dot_normalized() {
  624         -
            run_v4a_test_suite(
  625         -
                "get-slash-pointless-dot-normalized",
  626         -
                SignatureLocation::Headers,
  627         -
            );
         567  +
            run_test_suite_v4a("get-slash-pointless-dot-normalized");
  628    568   
        }
  629    569   
  630    570   
        #[test]
  631    571   
        fn test_get_slash_pointless_dot_unnormalized() {
  632         -
            run_v4a_test_suite(
  633         -
                "get-slash-pointless-dot-unnormalized",
  634         -
                SignatureLocation::Headers,
  635         -
            );
         572  +
            run_test_suite_v4a("get-slash-pointless-dot-unnormalized");
  636    573   
        }
  637    574   
  638    575   
        #[test]
  639    576   
        fn test_get_slash_unnormalized() {
  640         -
            run_v4a_test_suite("get-slash-unnormalized", SignatureLocation::Headers);
         577  +
            run_test_suite_v4a("get-slash-unnormalized");
  641    578   
        }
  642    579   
  643    580   
        #[test]
  644    581   
        fn test_get_slashes_normalized() {
  645         -
            run_v4a_test_suite("get-slashes-normalized", SignatureLocation::Headers);
         582  +
            run_test_suite_v4a("get-slashes-normalized");
  646    583   
        }
  647    584   
  648    585   
        #[test]
  649    586   
        fn test_get_slashes_unnormalized() {
  650         -
            run_v4a_test_suite("get-slashes-unnormalized", SignatureLocation::Headers);
         587  +
            run_test_suite_v4a("get-slashes-unnormalized");
         588  +
        }
         589  +
         590  +
        #[test]
         591  +
        #[ignore = "relies on single encode of path segments"]
         592  +
        // rely on single encoding of path segments, i.e. string-to-sign contains %20 for spaces rather than %25%20 as it should.
         593  +
        // skipped until we add control over double_uri_encode in context.json
         594  +
        fn test_get_space_normalized() {
         595  +
            run_test_suite_v4a("get-space-normalized");
         596  +
        }
         597  +
         598  +
        #[test]
         599  +
        #[ignore = "httpparse fails on unencoded spaces in path"]
         600  +
        // the input request has unencoded space ' ' in the path which fails to parse
         601  +
        fn test_get_space_unnormalized() {
         602  +
            run_test_suite_v4a("get-space-unnormalized");
  651    603   
        }
  652    604   
  653    605   
        #[test]
  654    606   
        fn test_get_unreserved() {
  655         -
            run_v4a_test_suite("get-unreserved", SignatureLocation::Headers);
         607  +
            run_test_suite_v4a("get-unreserved");
         608  +
        }
         609  +
         610  +
        #[test]
         611  +
        #[ignore = "httparse fails on invalid uri character"]
         612  +
        // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
         613  +
        fn test_get_utf8() {
         614  +
            run_test_suite_v4a("get-utf8");
  656    615   
        }
  657    616   
  658    617   
        #[test]
  659    618   
        fn test_get_vanilla() {
  660         -
            run_v4a_test_suite("get-vanilla", SignatureLocation::Headers);
         619  +
            run_test_suite_v4a("get-vanilla");
  661    620   
        }
  662    621   
  663    622   
        #[test]
  664    623   
        fn test_get_vanilla_empty_query_key() {
  665         -
            run_v4a_test_suite(
  666         -
                "get-vanilla-empty-query-key",
  667         -
                SignatureLocation::QueryParams,
  668         -
            );
         624  +
            run_test_suite_v4a("get-vanilla-empty-query-key");
  669    625   
        }
  670    626   
  671    627   
        #[test]
  672    628   
        fn test_get_vanilla_query() {
  673         -
            run_v4a_test_suite("get-vanilla-query", SignatureLocation::QueryParams);
         629  +
            run_test_suite_v4a("get-vanilla-query");
         630  +
        }
         631  +
         632  +
        #[test]
         633  +
        fn test_get_vanilla_query_order_encoded() {
         634  +
            run_test_suite_v4a("get-vanilla-query-order-encoded");
  674    635   
        }
  675    636   
  676    637   
        #[test]
  677    638   
        fn test_get_vanilla_query_order_key_case() {
  678         -
            run_v4a_test_suite(
  679         -
                "get-vanilla-query-order-key-case",
  680         -
                SignatureLocation::QueryParams,
  681         -
            );
         639  +
            run_test_suite_v4a("get-vanilla-query-order-key-case");
  682    640   
        }
  683    641   
  684    642   
        #[test]
  685    643   
        fn test_get_vanilla_query_unreserved() {
  686         -
            run_v4a_test_suite(
  687         -
                "get-vanilla-query-unreserved",
  688         -
                SignatureLocation::QueryParams,
  689         -
            );
         644  +
            run_test_suite_v4a("get-vanilla-query-unreserved");
         645  +
        }
         646  +
         647  +
        #[test]
         648  +
        #[ignore = "httparse fails on invalid uri character"]
         649  +
        // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
         650  +
        fn test_get_vanilla_utf8_query() {
         651  +
            run_test_suite_v4a("get-vanilla-utf8-query");
  690    652   
        }
  691    653   
  692    654   
        #[test]
  693    655   
        fn test_get_vanilla_with_session_token() {
  694         -
            run_v4a_test_suite("get-vanilla-with-session-token", SignatureLocation::Headers);
         656  +
            run_test_suite_v4a("get-vanilla-with-session-token")
  695    657   
        }
  696    658   
  697    659   
        #[test]
  698    660   
        fn test_post_header_key_case() {
  699         -
            run_v4a_test_suite("post-header-key-case", SignatureLocation::Headers);
         661  +
            run_test_suite_v4a("post-header-key-case");
  700    662   
        }
  701    663   
  702    664   
        #[test]
  703    665   
        fn test_post_header_key_sort() {
  704         -
            run_v4a_test_suite("post-header-key-sort", SignatureLocation::Headers);
         666  +
            run_test_suite_v4a("post-header-key-sort");
  705    667   
        }
  706    668   
  707    669   
        #[test]
  708    670   
        fn test_post_header_value_case() {
  709         -
            run_v4a_test_suite("post-header-value-case", SignatureLocation::Headers);
         671  +
            run_test_suite_v4a("post-header-value-case");
  710    672   
        }
  711    673   
  712    674   
        #[test]
  713    675   
        fn test_post_sts_header_after() {
  714         -
            run_v4a_test_suite("post-sts-header-after", SignatureLocation::Headers);
         676  +
            run_test_suite_v4a("post-sts-header-after");
  715    677   
        }
  716    678   
  717    679   
        #[test]
  718    680   
        fn test_post_sts_header_before() {
  719         -
            run_v4a_test_suite("post-sts-header-before", SignatureLocation::Headers);
         681  +
            run_test_suite_v4a("post-sts-header-before");
  720    682   
        }
  721    683   
  722    684   
        #[test]
  723    685   
        fn test_post_vanilla() {
  724         -
            run_v4a_test_suite("post-vanilla", SignatureLocation::Headers);
         686  +
            run_test_suite_v4a("post-vanilla");
  725    687   
        }
  726    688   
  727    689   
        #[test]
  728    690   
        fn test_post_vanilla_empty_query_value() {
  729         -
            run_v4a_test_suite(
  730         -
                "post-vanilla-empty-query-value",
  731         -
                SignatureLocation::QueryParams,
  732         -
            );
         691  +
            run_test_suite_v4a("post-vanilla-empty-query-value");
  733    692   
        }
  734    693   
  735    694   
        #[test]
  736    695   
        fn test_post_vanilla_query() {
  737         -
            run_v4a_test_suite("post-vanilla-query", SignatureLocation::QueryParams);
         696  +
            run_test_suite_v4a("post-vanilla-query");
  738    697   
        }
  739    698   
  740    699   
        #[test]
  741    700   
        fn test_post_x_www_form_urlencoded() {
  742         -
            run_v4a_test_suite("post-x-www-form-urlencoded", SignatureLocation::Headers);
         701  +
            run_test_suite_v4a("post-x-www-form-urlencoded");
  743    702   
        }
  744    703   
  745    704   
        #[test]
  746    705   
        fn test_post_x_www_form_urlencoded_parameters() {
  747         -
            run_v4a_test_suite(
  748         -
                "post-x-www-form-urlencoded-parameters",
  749         -
                SignatureLocation::QueryParams,
  750         -
            );
         706  +
            run_test_suite_v4a("post-x-www-form-urlencoded-parameters");
  751    707   
        }
  752    708   
    }
  753    709   
  754    710   
    #[test]
  755    711   
    fn test_sign_url_escape() {
  756         -
        let test = "double-encode-path";
         712  +
        let test = SigningSuiteTest::v4("double-encode-path");
  757    713   
        let settings = SigningSettings::default();
  758    714   
        let identity = &Credentials::for_tests().into();
  759    715   
        let params = v4::SigningParams {
  760    716   
            identity,
  761    717   
            region: "us-east-1",
  762    718   
            name: "service",
  763    719   
            time: parse_date_time("20150830T123600Z").unwrap(),
  764    720   
            settings,
  765    721   
        }
  766    722   
        .into();
  767    723   
  768         -
        let original = test::v4::test_request(test);
         724  +
        let original = test.request();
  769    725   
        let signable = SignableRequest::from(&original);
  770    726   
        let out = sign(signable, &params).unwrap();
  771    727   
        assert_eq!(
  772    728   
            "57d157672191bac40bae387e48bbe14b15303c001fdbb01f4abf295dccb09705",
  773    729   
            out.signature
  774    730   
        );
  775    731   
  776    732   
        let mut signed = original.as_http_request();
  777    733   
        out.output.apply_to_request_http0x(&mut signed);
  778    734   
  779         -
        let expected = test::v4::test_signed_request(test);
  780         -
        assert_req_eq!(expected, signed);
  781         -
    }
  782         -
  783         -
    #[test]
  784         -
    fn test_sign_vanilla_with_query_params() {
  785         -
        let settings = SigningSettings {
  786         -
            signature_location: SignatureLocation::QueryParams,
  787         -
            expires_in: Some(Duration::from_secs(35)),
  788         -
            ..Default::default()
  789         -
        };
  790         -
        let identity = &Credentials::for_tests().into();
  791         -
        let params = v4::SigningParams {
  792         -
            identity,
  793         -
            region: "us-east-1",
  794         -
            name: "service",
  795         -
            time: parse_date_time("20150830T123600Z").unwrap(),
  796         -
            settings,
  797         -
        }
  798         -
        .into();
  799         -
  800         -
        let original = test::v4::test_request("get-vanilla-query-order-key-case");
  801         -
        let signable = SignableRequest::from(&original);
  802         -
        let out = sign(signable, &params).unwrap();
  803         -
        assert_eq!(
  804         -
            "ecce208e4b4f7d7e3a4cc22ced6acc2ad1d170ee8ba87d7165f6fa4b9aff09ab",
  805         -
            out.signature
  806         -
        );
  807         -
  808         -
        let mut signed = original.as_http_request();
  809         -
        out.output.apply_to_request_http0x(&mut signed);
  810         -
  811         -
        let expected =
  812         -
            test::v4::test_signed_request_query_params("get-vanilla-query-order-key-case");
         735  +
        let expected = test.signed_request(SignatureLocation::Headers);
  813    736   
        assert_req_eq!(expected, signed);
  814    737   
    }
  815    738   
  816    739   
    #[test]
  817    740   
    fn test_sign_headers_utf8() {
  818    741   
        let settings = SigningSettings::default();
  819    742   
        let identity = &Credentials::for_tests().into();
  820    743   
        let params = v4::SigningParams {
  821    744   
            identity,
  822    745   
            region: "us-east-1",
  823    746   
            name: "service",
  824    747   
            time: parse_date_time("20150830T123600Z").unwrap(),
  825    748   
            settings,
  826    749   
        }
  827    750   
        .into();
  828    751   
  829    752   
        let original = http0::Request::builder()
  830    753   
            .uri("https://some-endpoint.some-region.amazonaws.com")
  831    754   
            .header("some-header", HeaderValue::from_str("テスト").unwrap())
  832    755   
            .body("")
  833    756   
            .unwrap()
  834    757   
            .into();
  835    758   
        let signable = SignableRequest::from(&original);
  836    759   
        let out = sign(signable, &params).unwrap();
  837    760   
        assert_eq!(
  838    761   
            "55e16b31f9bde5fd04f9d3b780dd2b5e5f11a5219001f91a8ca9ec83eaf1618f",
  839    762   
            out.signature
  840    763   
        );
  841    764   
  842    765   
        let mut signed = original.as_http_request();
  843    766   
@@ -1138,31 +1026,236 @@ mod tests {
  844    767   
        let mut request = http::Request::builder()
  845    768   
            .uri("https://some-endpoint.some-region.amazonaws.com/some/path")
  846    769   
            .body("")
  847    770   
            .unwrap();
  848    771   
  849    772   
        instructions.apply_to_request_http1x(&mut request);
  850    773   
  851    774   
        assert_eq!(
  852    775   
            "/some/path?some-param=f%26o%3Fo&some-other-param%3F=bar",
  853    776   
            request.uri().path_and_query().unwrap().to_string()
  854    777   
        );
  855    778   
    }
  856    779   
  857    780   
    #[test]
  858    781   
    fn test_debug_signable_body() {
  859    782   
        let sut = SignableBody::Bytes(b"hello signable body");
  860    783   
        assert_eq!(
  861    784   
            "Bytes(\"** REDACTED **. To print 19 bytes of raw data, set environment variable `LOG_SIGNABLE_BODY=true`\")",
  862    785   
            format!("{sut:?}")
  863    786   
        );
  864    787   
  865    788   
        let sut = SignableBody::UnsignedPayload;
  866    789   
        assert_eq!("UnsignedPayload", format!("{sut:?}"));
  867    790   
  868    791   
        let sut = SignableBody::Precomputed("precomputed".to_owned());
  869    792   
        assert_eq!("Precomputed(\"precomputed\")", format!("{sut:?}"));
  870    793   
  871    794   
        let sut = SignableBody::StreamingUnsignedPayloadTrailer;
  872    795   
        assert_eq!("StreamingUnsignedPayloadTrailer", format!("{sut:?}"));
  873    796   
    }
         797  +
         798  +
    // v4 test suite
         799  +
    mod v4_suite {
         800  +
        use crate::http_request::test::run_test_suite_v4;
         801  +
         802  +
        #[test]
         803  +
        fn test_get_header_key_duplicate() {
         804  +
            run_test_suite_v4("get-header-key-duplicate");
         805  +
        }
         806  +
         807  +
        #[test]
         808  +
        #[ignore = "httpparse doesn't support parsing multiline headers since they are deprecated in RFC7230"]
         809  +
        fn test_get_header_value_multiline() {
         810  +
            run_test_suite_v4("get-header-value-multiline");
         811  +
        }
         812  +
         813  +
        #[test]
         814  +
        fn test_get_header_value_order() {
         815  +
            run_test_suite_v4("get-header-value-order");
         816  +
        }
         817  +
         818  +
        #[test]
         819  +
        fn test_get_header_value_trim() {
         820  +
            run_test_suite_v4("get-header-value-trim");
         821  +
        }
         822  +
         823  +
        #[test]
         824  +
        fn test_get_relative_normalized() {
         825  +
            run_test_suite_v4("get-relative-normalized");
         826  +
        }
         827  +
         828  +
        #[test]
         829  +
        fn test_get_relative_relative_normalized() {
         830  +
            run_test_suite_v4("get-relative-relative-normalized");
         831  +
        }
         832  +
         833  +
        #[test]
         834  +
        fn test_get_relative_relative_unnormalized() {
         835  +
            run_test_suite_v4("get-relative-relative-unnormalized");
         836  +
        }
         837  +
         838  +
        #[test]
         839  +
        fn test_get_relative_unnormalized() {
         840  +
            run_test_suite_v4("get-relative-unnormalized");
         841  +
        }
         842  +
         843  +
        #[test]
         844  +
        fn test_get_slash_dot_slash_normalized() {
         845  +
            run_test_suite_v4("get-slash-dot-slash-normalized");
         846  +
        }
         847  +
         848  +
        #[test]
         849  +
        fn test_get_slash_dot_slash_unnormalized() {
         850  +
            run_test_suite_v4("get-slash-dot-slash-unnormalized");
         851  +
        }
         852  +
         853  +
        #[test]
         854  +
        fn test_get_slash_normalized() {
         855  +
            run_test_suite_v4("get-slash-normalized");
         856  +
        }
         857  +
         858  +
        #[test]
         859  +
        fn test_get_slash_pointless_dot_normalized() {
         860  +
            run_test_suite_v4("get-slash-pointless-dot-normalized");
         861  +
        }
         862  +
         863  +
        #[test]
         864  +
        fn test_get_slash_pointless_dot_unnormalized() {
         865  +
            run_test_suite_v4("get-slash-pointless-dot-unnormalized");
         866  +
        }
         867  +
         868  +
        #[test]
         869  +
        fn test_get_slash_unnormalized() {
         870  +
            run_test_suite_v4("get-slash-unnormalized");
         871  +
        }
         872  +
         873  +
        #[test]
         874  +
        fn test_get_slashes_normalized() {
         875  +
            run_test_suite_v4("get-slashes-normalized");
         876  +
        }
         877  +
         878  +
        #[test]
         879  +
        fn test_get_slashes_unnormalized() {
         880  +
            run_test_suite_v4("get-slashes-unnormalized");
         881  +
        }
         882  +
         883  +
        #[test]
         884  +
        #[ignore = "relies on single encode of path segments"]
         885  +
        // rely on single encoding of path segments, i.e. string-to-sign contains %20 for spaces rather than %25%20 as it should.
         886  +
        // skipped until we add control over double_uri_encode in context.json
         887  +
        fn test_get_space_normalized() {
         888  +
            run_test_suite_v4("get-space-normalized");
         889  +
        }
         890  +
         891  +
        #[test]
         892  +
        #[ignore = "httpparse fails on unencoded spaces in path"]
         893  +
        // the input request has unencoded space ' ' in the path which fails to parse
         894  +
        fn test_get_space_unnormalized() {
         895  +
            run_test_suite_v4("get-space-unnormalized");
         896  +
        }
         897  +
         898  +
        #[test]
         899  +
        fn test_get_unreserved() {
         900  +
            run_test_suite_v4("get-unreserved");
         901  +
        }
         902  +
         903  +
        #[test]
         904  +
        #[ignore = "httparse fails on invalid uri character"]
         905  +
        // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
         906  +
        fn test_get_utf8() {
         907  +
            run_test_suite_v4("get-utf8");
         908  +
        }
         909  +
         910  +
        #[test]
         911  +
        fn test_get_vanilla() {
         912  +
            run_test_suite_v4("get-vanilla");
         913  +
        }
         914  +
         915  +
        #[test]
         916  +
        fn test_get_vanilla_empty_query_key() {
         917  +
            run_test_suite_v4("get-vanilla-empty-query-key");
         918  +
        }
         919  +
         920  +
        #[test]
         921  +
        fn test_get_vanilla_query() {
         922  +
            run_test_suite_v4("get-vanilla-query");
         923  +
        }
         924  +
         925  +
        #[test]
         926  +
        fn test_get_vanilla_query_order_encoded() {
         927  +
            run_test_suite_v4("get-vanilla-query-order-encoded");
         928  +
        }
         929  +
         930  +
        #[test]
         931  +
        fn test_get_vanilla_query_order_key_case() {
         932  +
            run_test_suite_v4("get-vanilla-query-order-key-case");
         933  +
        }
         934  +
         935  +
        #[test]
         936  +
        fn test_get_vanilla_query_unreserved() {
         937  +
            run_test_suite_v4("get-vanilla-query-unreserved");
         938  +
        }
         939  +
         940  +
        #[test]
         941  +
        #[ignore = "httparse fails on invalid uri character"]
         942  +
        // relies on /ሴ canonicalized as /%E1%88%B4 when it should be /%25%E1%25%88%25%B4
         943  +
        fn test_get_vanilla_utf8_query() {
         944  +
            run_test_suite_v4("get-vanilla-utf8-query");
         945  +
        }
         946  +
         947  +
        #[test]
         948  +
        fn test_get_vanilla_with_session_token() {
         949  +
            run_test_suite_v4("get-vanilla-with-session-token");
         950  +
        }
         951  +
         952  +
        #[test]
         953  +
        fn test_post_header_key_case() {
         954  +
            run_test_suite_v4("post-header-key-case");
         955  +
        }
         956  +
         957  +
        #[test]
         958  +
        fn test_post_header_key_sort() {
         959  +
            run_test_suite_v4("post-header-key-sort");
         960  +
        }
         961  +
         962  +
        #[test]
         963  +
        fn test_post_header_value_case() {
         964  +
            run_test_suite_v4("post-header-value-case");
         965  +
        }
         966  +
         967  +
        #[test]
         968  +
        fn test_post_sts_header_after() {
         969  +
            run_test_suite_v4("post-sts-header-after");
         970  +
        }
         971  +
         972  +
        #[test]
         973  +
        fn test_post_sts_header_before() {
         974  +
            run_test_suite_v4("post-sts-header-before");
         975  +
        }
         976  +
         977  +
        #[test]
         978  +
        fn test_post_vanilla() {
         979  +
            run_test_suite_v4("post-vanilla");
         980  +
        }
         981  +
         982  +
        #[test]
         983  +
        fn test_post_vanilla_empty_query_value() {
         984  +
            run_test_suite_v4("post-vanilla-empty-query-value");
         985  +
        }
         986  +
         987  +
        #[test]
         988  +
        fn test_post_vanilla_query() {
         989  +
            run_test_suite_v4("post-vanilla-query");
         990  +
        }
         991  +
         992  +
        #[test]
         993  +
        fn test_post_x_www_form_urlencoded() {
         994  +
            run_test_suite_v4("post-x-www-form-urlencoded");
         995  +
        }
         996  +
         997  +
        #[test]
         998  +
        fn test_post_x_www_form_urlencoded_parameters() {
         999  +
            run_test_suite_v4("post-x-www-form-urlencoded-parameters");
        1000  +
        }
        1001  +
    }
  874   1002   
}
  875   1003   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs
  876   1004   
index be6c496..86eec20 100644
  877         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs
        1005  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/http_request/test.rs
  878   1006   
@@ -1,242 +1,453 @@
  879   1007   
/*
  880   1008   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  881   1009   
 * SPDX-License-Identifier: Apache-2.0
  882   1010   
 */
  883   1011   
  884   1012   
//! Functions shared between the tests of several modules.
  885   1013   
  886         -
use crate::http_request::{SignableBody, SignableRequest};
        1014  +
use crate::http_request::canonical_request::{CanonicalRequest, StringToSign};
        1015  +
use crate::http_request::{
        1016  +
    PayloadChecksumKind, SessionTokenMode, SignableBody, SignableRequest, SignatureLocation,
        1017  +
    SigningSettings,
        1018  +
};
        1019  +
use aws_credential_types::Credentials;
        1020  +
use aws_smithy_runtime_api::client::identity::Identity;
  887   1021   
use http0::{Method, Uri};
        1022  +
use std::borrow::Cow;
  888   1023   
use std::error::Error as StdError;
        1024  +
use std::time::{Duration, SystemTime};
        1025  +
use time::format_description::well_known::Rfc3339;
        1026  +
use time::OffsetDateTime;
        1027  +
        1028  +
/// Common test suite collection
        1029  +
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
        1030  +
enum Collection {
        1031  +
    V4,
        1032  +
    V4A,
        1033  +
}
  889   1034   
  890         -
pub(crate) mod v4 {
  891         -
    use super::*;
        1035  +
/// A test from the common CRT test suite
        1036  +
#[derive(Debug, Clone)]
        1037  +
pub(crate) struct SigningSuiteTest {
        1038  +
    test_name: &'static str,
        1039  +
    collection: Collection,
        1040  +
}
  892   1041   
  893         -
    fn path(name: &str, ext: &str) -> String {
  894         -
        format!("aws-sig-v4-test-suite/{}/{}.{}", name, name, ext)
        1042  +
impl SigningSuiteTest {
        1043  +
    /// Create a new test from the V4 test suite
        1044  +
    pub(crate) fn v4(test_name: &'static str) -> Self {
        1045  +
        Self {
        1046  +
            test_name,
        1047  +
            collection: Collection::V4,
        1048  +
        }
  895   1049   
    }
  896   1050   
  897         -
    pub(crate) fn test_canonical_request(name: &str) -> String {
  898         -
        // Tests fail if there's a trailing newline in the file, and pre-commit requires trailing newlines
  899         -
        read(&path(name, "creq")).trim().to_string()
        1051  +
    /// Create a new test from the V4a test suite
        1052  +
    pub(crate) fn v4a(test_name: &'static str) -> Self {
        1053  +
        Self {
        1054  +
            test_name,
        1055  +
            collection: Collection::V4A,
        1056  +
        }
  900   1057   
    }
  901   1058   
  902         -
    pub(crate) fn test_sts(name: &str) -> String {
  903         -
        read(&path(name, "sts"))
        1059  +
    /// Get the path to a file in this test suite directory
        1060  +
    fn path(&self, filename: &str) -> String {
        1061  +
        let dir = match self.collection {
        1062  +
            Collection::V4 => "v4",
        1063  +
            Collection::V4A => "v4a",
        1064  +
        };
        1065  +
        format!("aws-signing-test-suite/{dir}/{}/{filename}", self.test_name)
  904   1066   
    }
  905   1067   
  906         -
    pub(crate) fn test_request(name: &str) -> TestRequest {
  907         -
        test_parsed_request(name, "req")
        1068  +
    /// Get the HTTP request for the test
        1069  +
    pub(crate) fn request(&self) -> TestRequest {
        1070  +
        test_parsed_request(&self.path("request.txt"))
  908   1071   
    }
  909   1072   
  910         -
    pub(crate) fn test_signed_request(name: &str) -> TestRequest {
  911         -
        test_parsed_request(name, "sreq")
        1073  +
    /// Get the signed HTTP request for the test
        1074  +
    pub(crate) fn signed_request(&self, signature_location: SignatureLocation) -> TestRequest {
        1075  +
        match signature_location {
        1076  +
            SignatureLocation::QueryParams => {
        1077  +
                test_parsed_request(&self.path("query-signed-request.txt"))
        1078  +
            }
        1079  +
            SignatureLocation::Headers => {
        1080  +
                test_parsed_request(&self.path("header-signed-request.txt"))
        1081  +
            }
        1082  +
        }
  912   1083   
    }
  913   1084   
  914         -
    pub(crate) fn test_signed_request_query_params(name: &str) -> TestRequest {
  915         -
        test_parsed_request(name, "qpsreq")
        1085  +
    /// Get the canonical request for the test
        1086  +
    pub(crate) fn canonical_request(&self, signature_location: SignatureLocation) -> String {
        1087  +
        match signature_location {
        1088  +
            SignatureLocation::QueryParams => read(&self.path("query-canonical-request.txt")),
        1089  +
            SignatureLocation::Headers => read(&self.path("header-canonical-request.txt")),
        1090  +
        }
  916   1091   
    }
  917   1092   
  918         -
    fn test_parsed_request(name: &str, ext: &str) -> TestRequest {
  919         -
        let path = path(name, ext);
  920         -
        match parse_request(read(&path).as_bytes()) {
  921         -
            Ok(parsed) => parsed,
  922         -
            Err(err) => panic!("Failed to parse {}: {}", path, err),
        1093  +
    /// Get the string to sign for the test
        1094  +
    pub(crate) fn string_to_sign(&self, signature_location: SignatureLocation) -> String {
        1095  +
        match signature_location {
        1096  +
            SignatureLocation::QueryParams => read(&self.path("query-string-to-sign.txt")),
        1097  +
            SignatureLocation::Headers => read(&self.path("header-string-to-sign.txt")),
  923   1098   
        }
  924   1099   
    }
  925   1100   
  926         -
    #[test]
  927         -
    fn test_parse() {
  928         -
        test_request("post-header-key-case");
        1101  +
    /// Get the signature for the test
        1102  +
    pub(crate) fn signature(&self, signature_location: SignatureLocation) -> String {
        1103  +
        match signature_location {
        1104  +
            SignatureLocation::QueryParams => read(&self.path("query-signature.txt")),
        1105  +
            SignatureLocation::Headers => read(&self.path("header-signature.txt")),
        1106  +
        }
  929   1107   
    }
  930   1108   
  931         -
    #[test]
  932         -
    fn test_read_query_params() {
  933         -
        test_request("get-vanilla-query-order-key-case");
        1109  +
    /// Get the test context for the test
        1110  +
    pub(crate) fn context(&self) -> TestContext {
        1111  +
        let context = read(&self.path("context.json"));
        1112  +
        let tc_builder: TestContextBuilder = serde_json::from_str(&context).unwrap();
        1113  +
        tc_builder.build()
  934   1114   
    }
  935   1115   
}
  936   1116   
  937         -
#[cfg(feature = "sigv4a")]
  938         -
pub(crate) mod v4a {
  939         -
    use super::*;
  940         -
    use crate::http_request::{
  941         -
        PayloadChecksumKind, SessionTokenMode, SignatureLocation, SigningSettings,
  942         -
    };
  943         -
    use aws_credential_types::Credentials;
  944         -
    use aws_smithy_runtime_api::client::identity::Identity;
  945         -
    use serde_derive::Deserialize;
  946         -
    use std::time::{Duration, SystemTime};
  947         -
    use time::format_description::well_known::Rfc3339;
  948         -
    use time::OffsetDateTime;
  949         -
  950         -
    fn path(test_name: &str, definition_name: &str) -> String {
  951         -
        format!("aws-sig-v4a-test-suite/{test_name}/{definition_name}.txt")
        1117  +
fn test_parsed_request(path: &str) -> TestRequest {
        1118  +
    match parse_request(read(path).as_bytes()) {
        1119  +
        Ok(parsed) => parsed,
        1120  +
        Err(err) => panic!("Failed to parse {}: {}", path, err),
  952   1121   
    }
        1122  +
}
  953   1123   
  954         -
    pub(crate) fn test_request(name: &str) -> TestRequest {
  955         -
        test_parsed_request(&path(name, "request"))
  956         -
    }
        1124  +
fn new_v4_signing_params_from_context(
        1125  +
    test_context: &'_ TestContext,
        1126  +
    signature_location: SignatureLocation,
        1127  +
) -> crate::http_request::SigningParams<'_> {
        1128  +
    let mut params = crate::sign::v4::SigningParams::from(test_context);
        1129  +
    params.settings.signature_location = signature_location;
        1130  +
    params.into()
        1131  +
}
  957   1132   
  958         -
    pub(crate) fn test_canonical_request(
  959         -
        name: &str,
  960         -
        signature_location: SignatureLocation,
  961         -
    ) -> String {
  962         -
        match signature_location {
  963         -
            SignatureLocation::QueryParams => read(&path(name, "query-canonical-request")),
  964         -
            SignatureLocation::Headers => read(&path(name, "header-canonical-request")),
        1133  +
/// Run the given test from the v4 suite for both header and query
        1134  +
/// signature locations
        1135  +
pub(crate) fn run_test_suite_v4(test_name: &'static str) {
        1136  +
    run_v4_test(test_name, SignatureLocation::Headers);
        1137  +
    run_v4_test(test_name, SignatureLocation::QueryParams);
        1138  +
}
        1139  +
        1140  +
fn assert_uri_eq(expected: &Uri, actual: &Uri) {
        1141  +
    assert_eq!(expected.scheme(), actual.scheme());
        1142  +
    assert_eq!(expected.authority(), actual.authority());
        1143  +
    assert_eq!(expected.path(), actual.path());
        1144  +
        1145  +
    // query params may be out of order
        1146  +
    let mut expected_params: Vec<(Cow<'_, str>, Cow<'_, str>)> =
        1147  +
        form_urlencoded::parse(expected.query().unwrap_or_default().as_bytes()).collect();
        1148  +
    expected_params.sort();
        1149  +
        1150  +
    let mut actual_params: Vec<(Cow<'_, str>, Cow<'_, str>)> =
        1151  +
        form_urlencoded::parse(actual.query().unwrap_or_default().as_bytes()).collect();
        1152  +
    actual_params.sort();
        1153  +
        1154  +
    assert_eq!(expected_params, actual_params);
        1155  +
}
        1156  +
        1157  +
fn assert_requests_eq(expected: TestRequest, actual: http0::Request<&str>) {
        1158  +
    let expected = expected.as_http_request();
        1159  +
    let actual = actual;
        1160  +
    assert_eq!(expected.method(), actual.method());
        1161  +
    assert_eq!(
        1162  +
        expected.headers().len(),
        1163  +
        actual.headers().len(),
        1164  +
        "extra or missing headers"
        1165  +
    );
        1166  +
    assert_eq!(expected.headers(), actual.headers(), "headers mismatch");
        1167  +
    assert_uri_eq(expected.uri(), actual.uri());
        1168  +
    assert_eq!(*expected.body(), *actual.body(), "body mismatch");
        1169  +
}
        1170  +
        1171  +
/// Run the given test from the v4 suite for the given signature location
        1172  +
pub(crate) fn run_v4_test(test_name: &'static str, signature_location: SignatureLocation) {
        1173  +
    let test = SigningSuiteTest::v4(test_name);
        1174  +
    let tc = test.context();
        1175  +
    let params = new_v4_signing_params_from_context(&tc, signature_location);
        1176  +
        1177  +
    let req = test.request();
        1178  +
    let expected_creq = test.canonical_request(signature_location);
        1179  +
    let signable_req = SignableRequest::from(&req);
        1180  +
    let actual_creq = CanonicalRequest::from(&signable_req, &params).unwrap();
        1181  +
        1182  +
    // check canonical request
        1183  +
    assert_eq!(
        1184  +
        expected_creq,
        1185  +
        actual_creq.to_string(),
        1186  +
        "canonical request didn't match (signature location: {signature_location:?})"
        1187  +
    );
        1188  +
        1189  +
    let expected_string_to_sign = test.string_to_sign(signature_location);
        1190  +
    let hashed_creq = &crate::sign::v4::sha256_hex_string(actual_creq.to_string().as_bytes());
        1191  +
    let actual_string_to_sign = StringToSign::new_v4(
        1192  +
        *params.time(),
        1193  +
        params.region().unwrap(),
        1194  +
        params.name(),
        1195  +
        hashed_creq,
        1196  +
    )
        1197  +
    .to_string();
        1198  +
        1199  +
    // check string to sign
        1200  +
    assert_eq!(
        1201  +
        expected_string_to_sign, actual_string_to_sign,
        1202  +
        "'string to sign' didn't match (signature location: {signature_location:?})"
        1203  +
    );
        1204  +
        1205  +
    let out = crate::http_request::sign(signable_req, &params).unwrap();
        1206  +
    let mut signed = req.as_http_request();
        1207  +
    out.output.apply_to_request_http0x(&mut signed);
        1208  +
        1209  +
    // check signature
        1210  +
    assert_eq!(
        1211  +
        test.signature(signature_location),
        1212  +
        out.signature,
        1213  +
        "signature didn't match (signature location: {signature_location:?})"
        1214  +
    );
        1215  +
        1216  +
    let expected = test.signed_request(signature_location);
        1217  +
    assert_requests_eq(expected, signed);
        1218  +
}
        1219  +
        1220  +
/// Test suite context.json
        1221  +
pub(crate) struct TestContext {
        1222  +
    pub(crate) identity: Identity,
        1223  +
    pub(crate) expiration_in_seconds: u64,
        1224  +
    pub(crate) normalize: bool,
        1225  +
    pub(crate) region: String,
        1226  +
    pub(crate) service: String,
        1227  +
    pub(crate) timestamp: String,
        1228  +
    pub(crate) omit_session_token: bool,
        1229  +
    pub(crate) sign_body: bool,
        1230  +
}
        1231  +
        1232  +
// Serde has limitations requiring this odd workaround.
        1233  +
// See https://github.com/serde-rs/serde/issues/368 for more info.
        1234  +
fn return_true() -> bool {
        1235  +
    true
        1236  +
}
        1237  +
        1238  +
#[derive(serde_derive::Deserialize)]
        1239  +
pub(crate) struct TestContextBuilder {
        1240  +
    credentials: TestContextCreds,
        1241  +
    expiration_in_seconds: u64,
        1242  +
    normalize: bool,
        1243  +
    region: String,
        1244  +
    service: String,
        1245  +
    timestamp: String,
        1246  +
    #[serde(default)]
        1247  +
    omit_session_token: bool,
        1248  +
    #[serde(default = "return_true")]
        1249  +
    sign_body: bool,
        1250  +
}
        1251  +
        1252  +
impl TestContextBuilder {
        1253  +
    pub(crate) fn build(self) -> TestContext {
        1254  +
        let identity = Identity::new(
        1255  +
            Credentials::from_keys(
        1256  +
                &self.credentials.access_key_id,
        1257  +
                &self.credentials.secret_access_key,
        1258  +
                self.credentials.token.clone(),
        1259  +
            ),
        1260  +
            Some(SystemTime::UNIX_EPOCH + Duration::from_secs(self.expiration_in_seconds)),
        1261  +
        );
        1262  +
        1263  +
        TestContext {
        1264  +
            identity,
        1265  +
            expiration_in_seconds: self.expiration_in_seconds,
        1266  +
            normalize: self.normalize,
        1267  +
            region: self.region,
        1268  +
            service: self.service,
        1269  +
            timestamp: self.timestamp,
        1270  +
            omit_session_token: self.omit_session_token,
        1271  +
            sign_body: self.sign_body,
  965   1272   
        }
  966   1273   
    }
        1274  +
}
  967   1275   
  968         -
    pub(crate) fn test_string_to_sign(name: &str, signature_location: SignatureLocation) -> String {
  969         -
        match signature_location {
  970         -
            SignatureLocation::QueryParams => read(&path(name, "query-string-to-sign")),
  971         -
            SignatureLocation::Headers => read(&path(name, "header-string-to-sign")),
        1276  +
#[derive(serde_derive::Deserialize)]
        1277  +
pub(crate) struct TestContextCreds {
        1278  +
    access_key_id: String,
        1279  +
    secret_access_key: String,
        1280  +
    token: Option<String>,
        1281  +
}
        1282  +
        1283  +
impl<'a> From<&'a TestContext> for crate::sign::v4::SigningParams<'a, SigningSettings> {
        1284  +
    fn from(tc: &'a TestContext) -> Self {
        1285  +
        crate::sign::v4::SigningParams {
        1286  +
            identity: &tc.identity,
        1287  +
            region: &tc.region,
        1288  +
            name: &tc.service,
        1289  +
            time: OffsetDateTime::parse(&tc.timestamp, &Rfc3339)
        1290  +
                .unwrap()
        1291  +
                .into(),
        1292  +
            settings: SigningSettings {
        1293  +
                // payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
        1294  +
                expires_in: Some(Duration::from_secs(tc.expiration_in_seconds)),
        1295  +
                uri_path_normalization_mode: tc.normalize.into(),
        1296  +
                session_token_mode: if tc.omit_session_token {
        1297  +
                    SessionTokenMode::Exclude
        1298  +
                } else {
        1299  +
                    SessionTokenMode::Include
        1300  +
                },
        1301  +
                payload_checksum_kind: if tc.sign_body {
        1302  +
                    PayloadChecksumKind::XAmzSha256
        1303  +
                } else {
        1304  +
                    PayloadChecksumKind::NoHeader
        1305  +
                },
        1306  +
                ..Default::default()
        1307  +
            },
  972   1308   
        }
  973   1309   
    }
        1310  +
}
  974   1311   
  975         -
    fn test_parsed_request(path: &str) -> TestRequest {
  976         -
        match parse_request(read(path).as_bytes()) {
  977         -
            Ok(parsed) => parsed,
  978         -
            Err(err) => panic!("Failed to parse {}: {}", path, err),
  979         -
        }
        1312  +
#[cfg(feature = "sigv4a")]
        1313  +
pub(crate) mod v4a {
        1314  +
    use super::*;
        1315  +
    use crate::http_request::{
        1316  +
        sign, PayloadChecksumKind, SessionTokenMode, SignatureLocation, SigningSettings,
        1317  +
    };
        1318  +
    use crate::sign::v4a;
        1319  +
    use p256::ecdsa::signature::{Signature, Verifier};
        1320  +
    use p256::ecdsa::{DerSignature, SigningKey};
        1321  +
    use std::time::Duration;
        1322  +
    use time::format_description::well_known::Rfc3339;
        1323  +
    use time::OffsetDateTime;
        1324  +
        1325  +
    fn new_v4a_signing_params_from_context(
        1326  +
        test_context: &'_ TestContext,
        1327  +
        signature_location: SignatureLocation,
        1328  +
    ) -> crate::http_request::SigningParams<'_> {
        1329  +
        let mut params = crate::sign::v4a::SigningParams::from(test_context);
        1330  +
        params.settings.signature_location = signature_location;
        1331  +
        params.into()
  980   1332   
    }
  981   1333   
  982         -
    pub(crate) fn test_context(test_name: &str) -> TestContext {
  983         -
        let path = format!("aws-sig-v4a-test-suite/{test_name}/context.json");
  984         -
        let context = read(&path);
  985         -
        let tc_builder: TestContextBuilder = serde_json::from_str(&context).unwrap();
  986         -
        tc_builder.build()
        1334  +
    pub(crate) fn run_test_suite_v4a(test_name: &'static str) {
        1335  +
        run_v4a_test(test_name, SignatureLocation::Headers);
        1336  +
        run_v4a_test(test_name, SignatureLocation::QueryParams);
  987   1337   
    }
  988   1338   
  989         -
    pub(crate) struct TestContext {
  990         -
        pub(crate) identity: Identity,
  991         -
        pub(crate) expiration_in_seconds: u64,
  992         -
        pub(crate) normalize: bool,
  993         -
        pub(crate) region: String,
  994         -
        pub(crate) service: String,
  995         -
        pub(crate) timestamp: String,
  996         -
        pub(crate) omit_session_token: bool,
  997         -
        pub(crate) sign_body: bool,
        1339  +
    pub(crate) fn run_v4a_test(test_name: &'static str, signature_location: SignatureLocation) {
        1340  +
        let test = SigningSuiteTest::v4a(test_name);
        1341  +
        let tc = test.context();
        1342  +
        let params = new_v4a_signing_params_from_context(&tc, signature_location);
        1343  +
        1344  +
        let req = test.request();
        1345  +
        let expected_creq = test.canonical_request(signature_location);
        1346  +
        let signable_req = SignableRequest::from(&req);
        1347  +
        let actual_creq = CanonicalRequest::from(&signable_req, &params).unwrap();
        1348  +
        1349  +
        assert_eq!(
        1350  +
            expected_creq,
        1351  +
            actual_creq.to_string(),
        1352  +
            "canonical request didn't match (signature location: {signature_location:?})"
        1353  +
        );
        1354  +
        1355  +
        let expected_string_to_sign = test.string_to_sign(signature_location);
        1356  +
        let hashed_creq = &crate::sign::v4::sha256_hex_string(actual_creq.to_string().as_bytes());
        1357  +
        let actual_string_to_sign = StringToSign::new_v4a(
        1358  +
            *params.time(),
        1359  +
            params.region_set().unwrap(),
        1360  +
            params.name(),
        1361  +
            hashed_creq,
        1362  +
        )
        1363  +
        .to_string();
        1364  +
        1365  +
        assert_eq!(
        1366  +
            expected_string_to_sign, actual_string_to_sign,
        1367  +
            "'string to sign' didn't match (signature location: {signature_location:?})"
        1368  +
        );
        1369  +
        1370  +
        let out = sign(signable_req, &params).unwrap();
        1371  +
        // Sigv4a signatures are non-deterministic, so we can't compare the signature directly.
        1372  +
        out.output
        1373  +
            .apply_to_request_http0x(&mut req.as_http_request());
        1374  +
        1375  +
        let creds = params.credentials().unwrap();
        1376  +
        let signing_key =
        1377  +
            v4a::generate_signing_key(creds.access_key_id(), creds.secret_access_key());
        1378  +
        let sig = DerSignature::from_bytes(&hex::decode(out.signature).unwrap()).unwrap();
        1379  +
        let sig = sig
        1380  +
            .try_into()
        1381  +
            .expect("DER-style signatures are always convertible into fixed-size signatures");
        1382  +
        1383  +
        let signing_key = SigningKey::from_bytes(signing_key.as_ref()).unwrap();
        1384  +
        let peer_public_key = signing_key.verifying_key();
        1385  +
        let sts = actual_string_to_sign.as_bytes();
        1386  +
        peer_public_key.verify(sts, &sig).unwrap();
        1387  +
        // TODO(sigv4a) - use public.key.json as verifying key?
  998   1388   
    }
  999   1389   
 1000   1390   
    impl<'a> From<&'a TestContext> for crate::sign::v4a::SigningParams<'a, SigningSettings> {
 1001   1391   
        fn from(tc: &'a TestContext) -> Self {
 1002   1392   
            crate::sign::v4a::SigningParams {
 1003   1393   
                identity: &tc.identity,
 1004   1394   
                region_set: &tc.region,
 1005   1395   
                name: &tc.service,
 1006   1396   
                time: OffsetDateTime::parse(&tc.timestamp, &Rfc3339)
 1007   1397   
                    .unwrap()
 1008   1398   
                    .into(),
 1009   1399   
                settings: SigningSettings {
 1010   1400   
                    // payload_checksum_kind: PayloadChecksumKind::XAmzSha256,
 1011   1401   
                    expires_in: Some(Duration::from_secs(tc.expiration_in_seconds)),
 1012   1402   
                    uri_path_normalization_mode: tc.normalize.into(),
 1013   1403   
                    session_token_mode: if tc.omit_session_token {
 1014   1404   
                        SessionTokenMode::Exclude
 1015   1405   
                    } else {
 1016   1406   
                        SessionTokenMode::Include
 1017   1407   
                    },
 1018   1408   
                    payload_checksum_kind: if tc.sign_body {
 1019   1409   
                        PayloadChecksumKind::XAmzSha256
 1020   1410   
                    } else {
 1021   1411   
                        PayloadChecksumKind::NoHeader
 1022   1412   
                    },
 1023   1413   
                    ..Default::default()
 1024   1414   
                },
 1025   1415   
            }
 1026   1416   
        }
 1027   1417   
    }
 1028   1418   
 1029         -
    // Serde has limitations requiring this odd workaround.
 1030         -
    // See https://github.com/serde-rs/serde/issues/368 for more info.
 1031         -
    fn return_true() -> bool {
 1032         -
        true
 1033         -
    }
 1034         -
 1035         -
    #[derive(Deserialize)]
 1036         -
    pub(crate) struct TestContextBuilder {
 1037         -
        credentials: TestContextCreds,
 1038         -
        expiration_in_seconds: u64,
 1039         -
        normalize: bool,
 1040         -
        region: String,
 1041         -
        service: String,
 1042         -
        timestamp: String,
 1043         -
        #[serde(default)]
 1044         -
        omit_session_token: bool,
 1045         -
        #[serde(default = "return_true")]
 1046         -
        sign_body: bool,
 1047         -
    }
 1048         -
 1049         -
    impl TestContextBuilder {
 1050         -
        pub(crate) fn build(self) -> TestContext {
 1051         -
            let identity = Identity::new(
 1052         -
                Credentials::from_keys(
 1053         -
                    &self.credentials.access_key_id,
 1054         -
                    &self.credentials.secret_access_key,
 1055         -
                    self.credentials.token.clone(),
 1056         -
                ),
 1057         -
                Some(SystemTime::UNIX_EPOCH + Duration::from_secs(self.expiration_in_seconds)),
 1058         -
            );
 1059         -
 1060         -
            TestContext {
 1061         -
                identity,
 1062         -
                expiration_in_seconds: self.expiration_in_seconds,
 1063         -
                normalize: self.normalize,
 1064         -
                region: self.region,
 1065         -
                service: self.service,
 1066         -
                timestamp: self.timestamp,
 1067         -
                omit_session_token: self.omit_session_token,
 1068         -
                sign_body: self.sign_body,
 1069         -
            }
 1070         -
        }
 1071         -
    }
 1072         -
 1073         -
    #[derive(Deserialize)]
 1074         -
    pub(crate) struct TestContextCreds {
 1075         -
        access_key_id: String,
 1076         -
        secret_access_key: String,
 1077         -
        token: Option<String>,
 1078         -
    }
 1079         -
 1080   1419   
    #[test]
 1081   1420   
    fn test_parse() {
 1082         -
        let req = test_request("post-header-key-case");
        1421  +
        let req = SigningSuiteTest::v4a("post-header-key-case").request();
 1083   1422   
        assert_eq!(req.method, "POST");
 1084   1423   
        assert_eq!(req.uri, "https://example.amazonaws.com/");
 1085   1424   
        assert!(req.headers.is_empty());
 1086   1425   
    }
 1087   1426   
 1088   1427   
    #[test]
 1089   1428   
    fn test_read_query_params() {
 1090         -
        let req = test_request("get-header-value-trim");
        1429  +
        let req = SigningSuiteTest::v4a("get-header-value-trim").request();
 1091   1430   
        assert_eq!(req.method, "GET");
 1092   1431   
        assert_eq!(req.uri, "https://example.amazonaws.com/");
 1093   1432   
        assert!(!req.headers.is_empty());
 1094   1433   
    }
 1095   1434   
}
 1096   1435   
 1097   1436   
fn read(path: &str) -> String {
 1098   1437   
    println!("Loading `{}` for test case...", path);
 1099   1438   
    let v = {
 1100   1439   
        match std::fs::read_to_string(path) {
 1101   1440   
            // This replacement is necessary for tests to pass on Windows, as reading the
 1102   1441   
            // test snapshots from the file system results in CRLF line endings being inserted.
 1103   1442   
            Ok(value) => value.replace("\r\n", "\n"),
 1104   1443   
            Err(err) => {
 1105   1444   
                panic!("failed to load test case `{}`: {}", path, err);
 1106   1445   
            }
 1107   1446   
        }
 1108   1447   
    };
 1109   1448   
 1110   1449   
    v.trim().to_string()
 1111   1450   
}
 1112   1451   
 1113   1452   
pub(crate) struct TestRequest {
 1114   1453   
    pub(crate) uri: String,
 1115   1454   
    pub(crate) method: String,
 1116   1455   
    pub(crate) headers: Vec<(String, String)>,
 1117   1456   
    pub(crate) body: TestSignedBody,
 1118   1457   
}
 1119   1458   
 1120   1459   
pub(crate) enum TestSignedBody {
 1121   1460   
@@ -290,79 +501,87 @@ impl<B: AsRef<[u8]>> From<http0::Request<B>> for TestRequest {
 1122   1461   
                        String::from_utf8(v.as_bytes().to_vec()).unwrap(),
 1123   1462   
                    )
 1124   1463   
                })
 1125   1464   
                .collect::<Vec<_>>(),
 1126   1465   
            body: TestSignedBody::Bytes(value.body().as_ref().to_vec()),
 1127   1466   
        }
 1128   1467   
    }
 1129   1468   
}
 1130   1469   
 1131   1470   
impl<'a> From<&'a TestRequest> for SignableRequest<'a> {
 1132   1471   
    fn from(request: &'a TestRequest) -> SignableRequest<'a> {
 1133   1472   
        SignableRequest::new(
 1134   1473   
            &request.method,
 1135   1474   
            &request.uri,
 1136   1475   
            request
 1137   1476   
                .headers
 1138   1477   
                .iter()
 1139   1478   
                .map(|(k, v)| (k.as_str(), v.as_str())),
 1140   1479   
            request.body.as_signable_body(),
 1141   1480   
        )
 1142   1481   
        .expect("URI MUST be valid")
 1143   1482   
    }
 1144   1483   
}
 1145   1484   
 1146   1485   
fn parse_request(s: &[u8]) -> Result<TestRequest, Box<dyn StdError + Send + Sync + 'static>> {
 1147   1486   
    let mut headers = [httparse::EMPTY_HEADER; 64];
 1148   1487   
    // httparse 1.5 requires two trailing newlines to head the header section.
 1149   1488   
    let mut with_newline = Vec::from(s);
 1150   1489   
    with_newline.push(b'\n');
 1151   1490   
    let mut req = httparse::Request::new(&mut headers);
 1152         -
    let _ = req.parse(&with_newline).unwrap();
        1491  +
    let status = req.parse(&with_newline).unwrap();
        1492  +
        1493  +
    let body = if status.is_complete() {
        1494  +
        let body_offset = status.unwrap();
        1495  +
        // ignore the newline we added, take from original
        1496  +
        &s[body_offset..]
        1497  +
    } else {
        1498  +
        &[]
        1499  +
    };
 1153   1500   
 1154   1501   
    let mut uri_builder = Uri::builder().scheme("https");
 1155   1502   
    if let Some(path) = req.path {
 1156   1503   
        uri_builder = uri_builder.path_and_query(path);
 1157   1504   
    }
 1158   1505   
 1159   1506   
    let mut headers = vec![];
 1160   1507   
    for header in req.headers {
 1161   1508   
        let name = header.name.to_lowercase();
 1162   1509   
        if name == "host" {
 1163   1510   
            uri_builder = uri_builder.authority(header.value);
 1164   1511   
        } else if !name.is_empty() {
 1165   1512   
            headers.push((
 1166   1513   
                header.name.to_string(),
 1167   1514   
                std::str::from_utf8(header.value)?.to_string(),
 1168   1515   
            ));
 1169   1516   
        }
 1170   1517   
    }
 1171   1518   
 1172   1519   
    Ok(TestRequest {
 1173   1520   
        uri: uri_builder.build()?.to_string(),
 1174   1521   
        method: req.method.unwrap().to_string(),
 1175   1522   
        headers,
 1176         -
        body: TestSignedBody::Bytes(vec![]),
        1523  +
        body: TestSignedBody::Bytes(Vec::from(body)),
 1177   1524   
    })
 1178   1525   
}
 1179   1526   
 1180   1527   
#[test]
 1181   1528   
fn test_parse_headers() {
 1182   1529   
    let buf = b"Host:example.amazonaws.com\nX-Amz-Date:20150830T123600Z\n\nblah blah";
 1183   1530   
    let mut headers = [httparse::EMPTY_HEADER; 4];
 1184   1531   
    assert_eq!(
 1185   1532   
        httparse::parse_headers(buf, &mut headers),
 1186   1533   
        Ok(httparse::Status::Complete((
 1187   1534   
            56,
 1188   1535   
            &[
 1189   1536   
                httparse::Header {
 1190   1537   
                    name: "Host",
 1191   1538   
                    value: b"example.amazonaws.com",
 1192   1539   
                },
 1193   1540   
                httparse::Header {
 1194   1541   
                    name: "X-Amz-Date",
 1195   1542   
                    value: b"20150830T123600Z",
 1196   1543   
                }
 1197   1544   
            ][..]
 1198   1545   
        )))
 1199   1546   
    );
 1200   1547   
}
 1201   1548   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs
 1202   1549   
index a208453..fc00249 100644
 1203         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs
        1550  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/src/sign/v4.rs
 1204   1551   
@@ -168,52 +168,54 @@ pub mod signing_params {
 1205   1552   
        );
 1206   1553   
 1207   1554   
        /// Builds an instance of [`SigningParams`]. Will yield a [`BuildError`] if
 1208   1555   
        /// a required argument was not given.
 1209   1556   
        pub fn build(self) -> Result<SigningParams<'a, S>, BuildError> {
 1210   1557   
            Ok(SigningParams {
 1211   1558   
                identity: self
 1212   1559   
                    .identity
 1213   1560   
                    .ok_or_else(|| BuildError::new("identity is required"))?,
 1214   1561   
                region: self
 1215   1562   
                    .region
 1216   1563   
                    .ok_or_else(|| BuildError::new("region is required"))?,
 1217   1564   
                name: self
 1218   1565   
                    .name
 1219   1566   
                    .ok_or_else(|| BuildError::new("name is required"))?,
 1220   1567   
                time: self
 1221   1568   
                    .time
 1222   1569   
                    .ok_or_else(|| BuildError::new("time is required"))?,
 1223   1570   
                settings: self
 1224   1571   
                    .settings
 1225   1572   
                    .ok_or_else(|| BuildError::new("settings are required"))?,
 1226   1573   
            })
 1227   1574   
        }
 1228   1575   
    }
 1229   1576   
}
 1230   1577   
 1231   1578   
#[cfg(test)]
 1232   1579   
mod tests {
 1233   1580   
    use super::{calculate_signature, generate_signing_key, sha256_hex_string};
 1234   1581   
    use crate::date_time::test_parsers::parse_date_time;
 1235         -
    use crate::http_request::test;
 1236   1582   
 1237   1583   
    #[test]
 1238   1584   
    fn test_signature_calculation() {
 1239   1585   
        let secret = "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY";
 1240         -
        let creq = test::v4::test_canonical_request("iam");
        1586  +
        let creq = r#"AWS4-HMAC-SHA256
        1587  +
20150830T123600Z
        1588  +
20150830/us-east-1/iam/aws4_request
        1589  +
f536975d06c0309214f805bb90ccff089219ecd68b2577efef23edd43b7e1a59"#;
 1241   1590   
        let time = parse_date_time("20150830T123600Z").unwrap();
 1242   1591   
 1243   1592   
        let derived_key = generate_signing_key(secret, time, "us-east-1", "iam");
 1244   1593   
        let signature = calculate_signature(derived_key, creq.as_bytes());
 1245   1594   
 1246   1595   
        let expected = "5d672d79c15b13162d9279b0855cfba6789a8edb4c82c400e06b5924a6f2b5d7";
 1247   1596   
        assert_eq!(expected, &signature);
 1248   1597   
    }
 1249   1598   
 1250   1599   
    #[test]
 1251   1600   
    fn sign_payload_empty_string() {
 1252   1601   
        let expected = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
 1253   1602   
        let actual = sha256_hex_string([]);
 1254   1603   
        assert_eq!(expected, actual);
 1255   1604   
    }
 1256   1605   
}
 1257   1606   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml
 1258   1607   
index ce78c38..8c2f591 100644
 1259         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml
        1608  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-checksums/Cargo.toml
 1260   1609   
@@ -1,43 +1,43 @@
 1261   1610   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1262   1611   
[package]
 1263   1612   
name = "aws-smithy-checksums"
 1264   1613   
version = "0.63.5"
 1265   1614   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Zelda Hessler <zhessler@amazon.com>"]
 1266   1615   
description = "Checksum calculation and verification callbacks"
 1267   1616   
edition = "2021"
 1268   1617   
license = "Apache-2.0"
 1269   1618   
repository = "https://github.com/smithy-lang/smithy-rs"
 1270   1619   
[package.metadata.docs.rs]
 1271   1620   
all-features = true
 1272   1621   
targets = ["x86_64-unknown-linux-gnu"]
 1273   1622   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
 1274   1623   
rustdoc-args = ["--cfg", "docsrs"]
 1275   1624   
 1276   1625   
[dependencies]
 1277   1626   
bytes = "1.10.0"
 1278   1627   
crc-fast = "1.3.0"
 1279   1628   
hex = "0.4.3"
 1280   1629   
http = "0.2.9"
 1281   1630   
http-body = "0.4.5"
 1282   1631   
md-5 = "0.10"
 1283   1632   
pin-project-lite = "0.2.14"
 1284   1633   
sha1 = "0.10"
 1285   1634   
sha2 = "0.10"
 1286   1635   
tracing = "0.1.40"
 1287   1636   
 1288   1637   
[dependencies.aws-smithy-http]
 1289   1638   
path = "../aws-smithy-http"
 1290         -
version = "0.62.2"
        1639  +
version = "0.62.3"
 1291   1640   
 1292   1641   
[dependencies.aws-smithy-types]
 1293   1642   
path = "../aws-smithy-types"
 1294   1643   
version = "1.3.2"
 1295   1644   
 1296   1645   
[dev-dependencies]
 1297   1646   
bytes-utils = "0.1.2"
 1298   1647   
pretty_assertions = "1.3"
 1299   1648   
tracing-test = "0.2.1"
 1300   1649   
 1301   1650   
[dev-dependencies.tokio]
 1302   1651   
version = "1.23.1"
 1303   1652   
features = ["macros", "rt"]
 1304   1653   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml
 1305   1654   
index 970c99e..d3c7a49 100644
 1306         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml
        1655  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/Cargo.toml
 1307   1656   
@@ -1,34 +1,34 @@
 1308   1657   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1309   1658   
[package]
 1310   1659   
name = "aws-smithy-http"
 1311         -
version = "0.62.2"
        1660  +
version = "0.62.3"
 1312   1661   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 1313   1662   
description = "Smithy HTTP logic for smithy-rs."
 1314   1663   
edition = "2021"
 1315   1664   
license = "Apache-2.0"
 1316   1665   
repository = "https://github.com/smithy-lang/smithy-rs"
 1317   1666   
[package.metadata.docs.rs]
 1318   1667   
all-features = true
 1319   1668   
targets = ["x86_64-unknown-linux-gnu"]
 1320   1669   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
 1321   1670   
rustdoc-args = ["--cfg", "docsrs"]
 1322   1671   
 1323   1672   
[features]
 1324   1673   
event-stream = ["aws-smithy-eventstream"]
 1325   1674   
rt-tokio = ["aws-smithy-types/rt-tokio"]
 1326   1675   
 1327   1676   
[dependencies]
 1328   1677   
bytes = "1.10.0"
 1329   1678   
bytes-utils = "0.1"
 1330   1679   
percent-encoding = "2.3.1"
 1331   1680   
pin-project-lite = "0.2.14"
 1332   1681   
pin-utils = "0.1.0"
 1333   1682   
tracing = "0.1.40"
 1334   1683   
futures-core = "0.3.31"
 1335   1684   
 1336   1685   
[dependencies.aws-smithy-eventstream]
 1337   1686   
path = "../aws-smithy-eventstream"
 1338   1687   
optional = true
 1339   1688   
version = "0.60.10"
 1340   1689   
 1341   1690   
[dependencies.aws-smithy-runtime-api]
 1342   1691   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml
 1343   1692   
index 508f7a2..361545e 100644
 1344         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml
        1693  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/fuzz/Cargo.toml
 1345   1694   
@@ -1,27 +1,27 @@
 1346   1695   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1347   1696   
[[bin]]
 1348   1697   
name = "read_many_from_str"
 1349   1698   
path = "fuzz_targets/read_many_from_str.rs"
 1350   1699   
test = false
 1351   1700   
doc = false
 1352   1701   
 1353   1702   
[package]
 1354   1703   
name = "aws-smithy-http-fuzz"
 1355   1704   
version = "0.0.0"
 1356   1705   
authors = ["Automatically generated"]
 1357   1706   
publish = false
 1358   1707   
edition = "2021"
 1359   1708   
 1360   1709   
[package.metadata]
 1361   1710   
cargo-fuzz = true
 1362   1711   
 1363   1712   
[dependencies]
 1364   1713   
libfuzzer-sys = "=0.4.7"
 1365   1714   
http = "0.2.3"
 1366   1715   
 1367   1716   
[dependencies.aws-smithy-http]
 1368   1717   
path = ".."
 1369         -
version = "0.62.2"
        1718  +
version = "0.62.3"
 1370   1719   
 1371   1720   
[workspace]
 1372   1721   
members = ["."]
 1373   1722   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs
 1374   1723   
index fef41d0..2792229 100644
 1375         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs
        1724  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/query_writer.rs
 1376   1725   
@@ -25,68 +25,74 @@ impl QueryWriter {
 1377   1726   
    pub fn new(uri: &Uri) -> Self {
 1378   1727   
        let new_path_and_query = uri
 1379   1728   
            .path_and_query()
 1380   1729   
            .map(|pq| pq.to_string())
 1381   1730   
            .unwrap_or_default();
 1382   1731   
        let prefix = if uri.query().is_none() {
 1383   1732   
            Some('?')
 1384   1733   
        } else if !uri.query().unwrap_or_default().is_empty() {
 1385   1734   
            Some('&')
 1386   1735   
        } else {
 1387   1736   
            None
 1388   1737   
        };
 1389   1738   
        QueryWriter {
 1390   1739   
            base_uri: uri.clone(),
 1391   1740   
            new_path_and_query,
 1392   1741   
            prefix,
 1393   1742   
        }
 1394   1743   
    }
 1395   1744   
 1396   1745   
    /// Clears all query parameters.
 1397   1746   
    pub fn clear_params(&mut self) {
 1398   1747   
        if let Some(index) = self.new_path_and_query.find('?') {
 1399   1748   
            self.new_path_and_query.truncate(index);
 1400   1749   
            self.prefix = Some('?');
 1401   1750   
        }
 1402   1751   
    }
 1403   1752   
 1404   1753   
    /// Inserts a new query parameter. The key and value are percent encoded
 1405   1754   
    /// by `QueryWriter`. Passing in percent encoded values will result in double encoding.
 1406   1755   
    pub fn insert(&mut self, k: &str, v: &str) {
        1756  +
        self.insert_encoded(&percent_encode_query(k), &percent_encode_query(v));
        1757  +
    }
        1758  +
    
        1759  +
    /// Inserts a new already encoded query parameter. The key and value will be inserted
        1760  +
    /// as is.
        1761  +
    pub fn insert_encoded(&mut self, encoded_k: &str, encoded_v: &str) {
 1407   1762   
        if let Some(prefix) = self.prefix {
 1408   1763   
            self.new_path_and_query.push(prefix);
 1409   1764   
        }
 1410   1765   
        self.prefix = Some('&');
 1411         -
        self.new_path_and_query.push_str(&percent_encode_query(k));
        1766  +
        self.new_path_and_query.push_str(encoded_k);
 1412   1767   
        self.new_path_and_query.push('=');
 1413         -
 1414         -
        self.new_path_and_query.push_str(&percent_encode_query(v));
        1768  +
        self.new_path_and_query.push_str(encoded_v)
        1769  +
        
 1415   1770   
    }
 1416   1771   
 1417   1772   
    /// Returns just the built query string.
 1418   1773   
    pub fn build_query(self) -> String {
 1419   1774   
        self.build_uri().query().unwrap_or_default().to_string()
 1420   1775   
    }
 1421   1776   
 1422   1777   
    /// Returns a full [`Uri`] with the query string updated.
 1423   1778   
    pub fn build_uri(self) -> Uri {
 1424   1779   
        let mut parts = self.base_uri.into_parts();
 1425   1780   
        parts.path_and_query = Some(
 1426   1781   
            self.new_path_and_query
 1427   1782   
                .parse()
 1428   1783   
                .expect("adding query should not invalidate URI"),
 1429   1784   
        );
 1430   1785   
        Uri::from_parts(parts).expect("a valid URL in should always produce a valid URL out")
 1431   1786   
    }
 1432   1787   
}
 1433   1788   
 1434   1789   
#[cfg(test)]
 1435   1790   
mod test {
 1436   1791   
    use super::QueryWriter;
 1437   1792   
    use http_02x::Uri;
 1438   1793   
 1439   1794   
    #[test]
 1440   1795   
    fn empty_uri() {
 1441   1796   
        let uri = Uri::from_static("http://www.example.com");
 1442   1797   
        let mut query_writer = QueryWriter::new(&uri);
 1443   1798   
        query_writer.insert("key", "val%ue");
 1444   1799   
        query_writer.insert("another", "value");
 1445   1800   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml
 1446   1801   
index f108978..df7a9fe 100644
 1447         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml
        1802  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml
 1448   1803   
@@ -15,61 +15,61 @@ rustdoc-args = ["--cfg", "docsrs"]
 1449   1804   
 1450   1805   
[package.metadata.smithy-rs-release-tooling]
 1451   1806   
stable = true
 1452   1807   
[package.metadata.cargo-udeps.ignore]
 1453   1808   
normal = ["aws-smithy-http"]
 1454   1809   
 1455   1810   
[features]
 1456   1811   
client = ["aws-smithy-runtime-api/client", "aws-smithy-types/http-body-1-x"]
 1457   1812   
http-auth = ["aws-smithy-runtime-api/http-auth"]
 1458   1813   
connector-hyper-0-14-x = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/hyper-014"]
 1459   1814   
tls-rustls = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/legacy-rustls-ring", "connector-hyper-0-14-x"]
 1460   1815   
default-https-client = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/rustls-aws-lc"]
 1461   1816   
rt-tokio = ["tokio/rt"]
 1462   1817   
test-util = ["aws-smithy-runtime-api/test-util", "dep:tracing-subscriber", "aws-smithy-http-client/test-util", "legacy-test-util"]
 1463   1818   
legacy-test-util = ["aws-smithy-runtime-api/test-util", "dep:tracing-subscriber", "aws-smithy-http-client/test-util", "connector-hyper-0-14-x", "aws-smithy-http-client/legacy-test-util"]
 1464   1819   
wire-mock = ["legacy-test-util", "aws-smithy-http-client/wire-mock"]
 1465   1820   
 1466   1821   
[dependencies]
 1467   1822   
bytes = "1.10.0"
 1468   1823   
fastrand = "2.3.0"
 1469   1824   
pin-project-lite = "0.2.14"
 1470   1825   
pin-utils = "0.1.0"
 1471   1826   
tracing = "0.1.40"
 1472   1827   
 1473   1828   
[dependencies.aws-smithy-async]
 1474   1829   
path = "../aws-smithy-async"
 1475   1830   
version = "1.2.5"
 1476   1831   
 1477   1832   
[dependencies.aws-smithy-http]
 1478   1833   
path = "../aws-smithy-http"
 1479         -
version = "0.62.2"
        1834  +
version = "0.62.3"
 1480   1835   
 1481   1836   
[dependencies.aws-smithy-observability]
 1482   1837   
path = "../aws-smithy-observability"
 1483   1838   
version = "0.1.3"
 1484   1839   
 1485   1840   
[dependencies.aws-smithy-runtime-api]
 1486   1841   
path = "../aws-smithy-runtime-api"
 1487   1842   
version = "1.8.5"
 1488   1843   
 1489   1844   
[dependencies.aws-smithy-types]
 1490   1845   
path = "../aws-smithy-types"
 1491   1846   
features = ["http-body-0-4-x"]
 1492   1847   
version = "1.3.2"
 1493   1848   
 1494   1849   
[dependencies.aws-smithy-http-client]
 1495   1850   
path = "../aws-smithy-http-client"
 1496   1851   
optional = true
 1497   1852   
version = "1.0.6"
 1498   1853   
 1499   1854   
[dependencies.http-02x]
 1500   1855   
package = "http"
 1501   1856   
version = "0.2.9"
 1502   1857   
 1503   1858   
[dependencies.http-1x]
 1504   1859   
package = "http"
 1505   1860   
version = "1"
 1506   1861   
 1507   1862   
[dependencies.http-body-04x]
 1508   1863   
package = "http-body"
 1509   1864   
version = "0.4.5"
 1510   1865   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml
 1511   1866   
index 4e050c6..f58eb1c 100644
 1512         -
-- a/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml
        1867  +
++ b/tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml
 1513   1868   
@@ -1,33 +1,33 @@
 1514   1869   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1515   1870   
[package]
 1516   1871   
name = "aws-smithy-wasm"
 1517   1872   
version = "0.1.4"
 1518   1873   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Eduardo Rodrigues <16357187+eduardomourar@users.noreply.github.com>"]
 1519   1874   
description = "Smithy WebAssembly configuration for smithy-rs."
 1520   1875   
edition = "2021"
 1521   1876   
license = "Apache-2.0"
 1522   1877   
repository = "https://github.com/awslabs/smithy-rs"
 1523   1878   
[package.metadata.docs.rs]
 1524   1879   
all-features = true
 1525   1880   
targets = ["x86_64-unknown-linux-gnu"]
 1526   1881   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
 1527   1882   
rustdoc-args = ["--cfg", "docsrs"]
 1528   1883   
 1529   1884   
[dependencies]
 1530   1885   
bytes = "1.10.0"
 1531   1886   
http = "1.0.0"
 1532   1887   
tracing = "0.1.40"
 1533   1888   
wasi = "0.12.1"
 1534   1889   
 1535   1890   
[dependencies.aws-smithy-runtime-api]
 1536   1891   
path = "../aws-smithy-runtime-api"
 1537   1892   
features = ["http-1x"]
 1538   1893   
version = "1.8.5"
 1539   1894   
 1540   1895   
[dependencies.aws-smithy-http]
 1541   1896   
path = "../aws-smithy-http"
 1542         -
version = "0.62.2"
        1897  +
version = "0.62.3"
 1543   1898   
 1544   1899   
[dependencies.aws-smithy-types]
 1545   1900   
path = "../aws-smithy-types"
 1546   1901   
version = "1.3.2"
 1547   1902   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml
 1548   1903   
index a880648..139e808 100644
 1549         -
-- a/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml
        1904  +
++ b/tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml
 1550   1905   
@@ -7,61 +7,61 @@ description = "AWS SDK for Amazon Bedrock Runtime"
 1551   1906   
edition = "2021"
 1552   1907   
license = "Apache-2.0"
 1553   1908   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1554   1909   
rust-version = "1.86.0"
 1555   1910   
readme = "README.md"
 1556   1911   
[package.metadata.smithy]
 1557   1912   
codegen-version = "ci"
 1558   1913   
[package.metadata.docs.rs]
 1559   1914   
all-features = true
 1560   1915   
targets = ["x86_64-unknown-linux-gnu"]
 1561   1916   
[dependencies.aws-credential-types]
 1562   1917   
path = "../aws-credential-types"
 1563   1918   
version = "1.2.4"
 1564   1919   
 1565   1920   
[dependencies.aws-runtime]
 1566   1921   
path = "../aws-runtime"
 1567   1922   
features = ["event-stream"]
 1568   1923   
version = "1.5.9"
 1569   1924   
 1570   1925   
[dependencies.aws-smithy-async]
 1571   1926   
path = "../aws-smithy-async"
 1572   1927   
version = "1.2.5"
 1573   1928   
 1574   1929   
[dependencies.aws-smithy-eventstream]
 1575   1930   
path = "../aws-smithy-eventstream"
 1576   1931   
version = "0.60.10"
 1577   1932   
 1578   1933   
[dependencies.aws-smithy-http]
 1579   1934   
path = "../aws-smithy-http"
 1580   1935   
features = ["event-stream"]
 1581         -
version = "0.62.2"
        1936  +
version = "0.62.3"
 1582   1937   
 1583   1938   
[dependencies.aws-smithy-json]
 1584   1939   
path = "../aws-smithy-json"
 1585   1940   
version = "0.61.4"
 1586   1941   
 1587   1942   
[dependencies.aws-smithy-runtime]
 1588   1943   
path = "../aws-smithy-runtime"
 1589   1944   
features = ["client"]
 1590   1945   
version = "1.8.5"
 1591   1946   
 1592   1947   
[dependencies.aws-smithy-runtime-api]
 1593   1948   
path = "../aws-smithy-runtime-api"
 1594   1949   
features = ["client", "http-02x"]
 1595   1950   
version = "1.8.5"
 1596   1951   
 1597   1952   
[dependencies.aws-smithy-types]
 1598   1953   
path = "../aws-smithy-types"
 1599   1954   
version = "1.3.2"
 1600   1955   
 1601   1956   
[dependencies.aws-types]
 1602   1957   
path = "../aws-types"
 1603   1958   
version = "1.3.8"
 1604   1959   
 1605   1960   
[dependencies.bytes]
 1606   1961   
version = "1.4.0"
 1607   1962   
 1608   1963   
[dependencies.fastrand]
 1609   1964   
version = "2.0.0"
 1610   1965   
 1611   1966   
[dependencies.http]
 1612   1967   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml
 1613   1968   
index 415ecc9..667d12b 100644
 1614         -
-- a/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml
        1969  +
++ b/tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml
 1615   1970   
@@ -7,61 +7,61 @@ description = "AWS SDK for Amazon CloudWatch Logs"
 1616   1971   
edition = "2021"
 1617   1972   
license = "Apache-2.0"
 1618   1973   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1619   1974   
rust-version = "1.86.0"
 1620   1975   
readme = "README.md"
 1621   1976   
[package.metadata.smithy]
 1622   1977   
codegen-version = "ci"
 1623   1978   
[package.metadata.docs.rs]
 1624   1979   
all-features = true
 1625   1980   
targets = ["x86_64-unknown-linux-gnu"]
 1626   1981   
[dependencies.aws-credential-types]
 1627   1982   
path = "../aws-credential-types"
 1628   1983   
version = "1.2.4"
 1629   1984   
 1630   1985   
[dependencies.aws-runtime]
 1631   1986   
path = "../aws-runtime"
 1632   1987   
features = ["event-stream"]
 1633   1988   
version = "1.5.9"
 1634   1989   
 1635   1990   
[dependencies.aws-smithy-async]
 1636   1991   
path = "../aws-smithy-async"
 1637   1992   
version = "1.2.5"
 1638   1993   
 1639   1994   
[dependencies.aws-smithy-eventstream]
 1640   1995   
path = "../aws-smithy-eventstream"
 1641   1996   
version = "0.60.10"
 1642   1997   
 1643   1998   
[dependencies.aws-smithy-http]
 1644   1999   
path = "../aws-smithy-http"
 1645   2000   
features = ["event-stream"]
 1646         -
version = "0.62.2"
        2001  +
version = "0.62.3"
 1647   2002   
 1648   2003   
[dependencies.aws-smithy-json]
 1649   2004   
path = "../aws-smithy-json"
 1650   2005   
version = "0.61.4"
 1651   2006   
 1652   2007   
[dependencies.aws-smithy-runtime]
 1653   2008   
path = "../aws-smithy-runtime"
 1654   2009   
features = ["client"]
 1655   2010   
version = "1.8.5"
 1656   2011   
 1657   2012   
[dependencies.aws-smithy-runtime-api]
 1658   2013   
path = "../aws-smithy-runtime-api"
 1659   2014   
features = ["client", "http-02x"]
 1660   2015   
version = "1.8.5"
 1661   2016   
 1662   2017   
[dependencies.aws-smithy-types]
 1663   2018   
path = "../aws-smithy-types"
 1664   2019   
version = "1.3.2"
 1665   2020   
 1666   2021   
[dependencies.aws-types]
 1667   2022   
path = "../aws-types"
 1668   2023   
version = "1.3.8"
 1669   2024   
 1670   2025   
[dependencies.bytes]
 1671   2026   
version = "1.4.0"
 1672   2027   
 1673   2028   
[dependencies.fastrand]
 1674   2029   
version = "2.0.0"
 1675   2030   
 1676   2031   
[dependencies.http]
 1677   2032   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml
 1678   2033   
index 8871cab..ed88de6 100644
 1679         -
-- a/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml
        2034  +
++ b/tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml
 1680   2035   
@@ -1,61 +1,61 @@
 1681   2036   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1682   2037   
[package]
 1683   2038   
name = "aws-sdk-codecatalyst"
 1684   2039   
version = "0.0.0-local"
 1685   2040   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 1686   2041   
description = "AWS SDK for Amazon CodeCatalyst"
 1687   2042   
edition = "2021"
 1688   2043   
license = "Apache-2.0"
 1689   2044   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1690   2045   
rust-version = "1.86.0"
 1691   2046   
readme = "README.md"
 1692   2047   
[package.metadata.smithy]
 1693   2048   
codegen-version = "ci"
 1694   2049   
[package.metadata.docs.rs]
 1695   2050   
all-features = true
 1696   2051   
targets = ["x86_64-unknown-linux-gnu"]
 1697   2052   
[dependencies.aws-credential-types]
 1698   2053   
path = "../aws-credential-types"
 1699   2054   
version = "1.2.4"
 1700   2055   
 1701   2056   
[dependencies.aws-runtime]
 1702   2057   
path = "../aws-runtime"
 1703   2058   
version = "1.5.9"
 1704   2059   
 1705   2060   
[dependencies.aws-smithy-async]
 1706   2061   
path = "../aws-smithy-async"
 1707   2062   
version = "1.2.5"
 1708   2063   
 1709   2064   
[dependencies.aws-smithy-http]
 1710   2065   
path = "../aws-smithy-http"
 1711         -
version = "0.62.2"
        2066  +
version = "0.62.3"
 1712   2067   
 1713   2068   
[dependencies.aws-smithy-json]
 1714   2069   
path = "../aws-smithy-json"
 1715   2070   
version = "0.61.4"
 1716   2071   
 1717   2072   
[dependencies.aws-smithy-runtime]
 1718   2073   
path = "../aws-smithy-runtime"
 1719   2074   
features = ["client", "http-auth"]
 1720   2075   
version = "1.8.5"
 1721   2076   
 1722   2077   
[dependencies.aws-smithy-runtime-api]
 1723   2078   
path = "../aws-smithy-runtime-api"
 1724   2079   
features = ["client", "http-02x", "http-auth"]
 1725   2080   
version = "1.8.5"
 1726   2081   
 1727   2082   
[dependencies.aws-smithy-types]
 1728   2083   
path = "../aws-smithy-types"
 1729   2084   
version = "1.3.2"
 1730   2085   
 1731   2086   
[dependencies.aws-types]
 1732   2087   
path = "../aws-types"
 1733   2088   
version = "1.3.8"
 1734   2089   
 1735   2090   
[dependencies.bytes]
 1736   2091   
version = "1.4.0"
 1737   2092   
 1738   2093   
[dependencies.fastrand]
 1739   2094   
version = "2.0.0"
 1740   2095   
 1741   2096   
[dependencies.http]
 1742   2097   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml
 1743   2098   
index 89573ff..05238af 100644
 1744         -
-- a/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml
        2099  +
++ b/tmp-codegen-diff/aws-sdk/sdk/config/Cargo.toml
 1745   2100   
@@ -1,61 +1,61 @@
 1746   2101   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1747   2102   
[package]
 1748   2103   
name = "aws-sdk-config"
 1749   2104   
version = "0.0.0-local"
 1750   2105   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 1751   2106   
description = "AWS SDK for AWS Config"
 1752   2107   
edition = "2021"
 1753   2108   
license = "Apache-2.0"
 1754   2109   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1755   2110   
rust-version = "1.86.0"
 1756   2111   
readme = "README.md"
 1757   2112   
[package.metadata.smithy]
 1758   2113   
codegen-version = "ci"
 1759   2114   
[package.metadata.docs.rs]
 1760   2115   
all-features = true
 1761   2116   
targets = ["x86_64-unknown-linux-gnu"]
 1762   2117   
[dependencies.aws-credential-types]
 1763   2118   
path = "../aws-credential-types"
 1764   2119   
version = "1.2.4"
 1765   2120   
 1766   2121   
[dependencies.aws-runtime]
 1767   2122   
path = "../aws-runtime"
 1768   2123   
version = "1.5.9"
 1769   2124   
 1770   2125   
[dependencies.aws-smithy-async]
 1771   2126   
path = "../aws-smithy-async"
 1772   2127   
version = "1.2.5"
 1773   2128   
 1774   2129   
[dependencies.aws-smithy-http]
 1775   2130   
path = "../aws-smithy-http"
 1776         -
version = "0.62.2"
        2131  +
version = "0.62.3"
 1777   2132   
 1778   2133   
[dependencies.aws-smithy-json]
 1779   2134   
path = "../aws-smithy-json"
 1780   2135   
version = "0.61.4"
 1781   2136   
 1782   2137   
[dependencies.aws-smithy-runtime]
 1783   2138   
path = "../aws-smithy-runtime"
 1784   2139   
features = ["client"]
 1785   2140   
version = "1.8.5"
 1786   2141   
 1787   2142   
[dependencies.aws-smithy-runtime-api]
 1788   2143   
path = "../aws-smithy-runtime-api"
 1789   2144   
features = ["client", "http-02x"]
 1790   2145   
version = "1.8.5"
 1791   2146   
 1792   2147   
[dependencies.aws-smithy-types]
 1793   2148   
path = "../aws-smithy-types"
 1794   2149   
version = "1.3.2"
 1795   2150   
 1796   2151   
[dependencies.aws-types]
 1797   2152   
path = "../aws-types"
 1798   2153   
version = "1.3.8"
 1799   2154   
 1800   2155   
[dependencies.bytes]
 1801   2156   
version = "1.4.0"
 1802   2157   
 1803   2158   
[dependencies.fastrand]
 1804   2159   
version = "2.0.0"
 1805   2160   
 1806   2161   
[dependencies.http]
 1807   2162   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml
 1808   2163   
index d397c58..2c1062b 100644
 1809         -
-- a/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml
        2164  +
++ b/tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml
 1810   2165   
@@ -1,61 +1,61 @@
 1811   2166   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1812   2167   
[package]
 1813   2168   
name = "aws-sdk-dynamodb"
 1814   2169   
version = "0.0.0-local"
 1815   2170   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 1816   2171   
description = "AWS SDK for Amazon DynamoDB"
 1817   2172   
edition = "2021"
 1818   2173   
license = "Apache-2.0"
 1819   2174   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1820   2175   
rust-version = "1.86.0"
 1821   2176   
readme = "README.md"
 1822   2177   
[package.metadata.smithy]
 1823   2178   
codegen-version = "ci"
 1824   2179   
[package.metadata.docs.rs]
 1825   2180   
all-features = true
 1826   2181   
targets = ["x86_64-unknown-linux-gnu"]
 1827   2182   
[dependencies.aws-credential-types]
 1828   2183   
path = "../aws-credential-types"
 1829   2184   
version = "1.2.4"
 1830   2185   
 1831   2186   
[dependencies.aws-runtime]
 1832   2187   
path = "../aws-runtime"
 1833   2188   
version = "1.5.9"
 1834   2189   
 1835   2190   
[dependencies.aws-smithy-async]
 1836   2191   
path = "../aws-smithy-async"
 1837   2192   
version = "1.2.5"
 1838   2193   
 1839   2194   
[dependencies.aws-smithy-http]
 1840   2195   
path = "../aws-smithy-http"
 1841         -
version = "0.62.2"
        2196  +
version = "0.62.3"
 1842   2197   
 1843   2198   
[dependencies.aws-smithy-json]
 1844   2199   
path = "../aws-smithy-json"
 1845   2200   
version = "0.61.4"
 1846   2201   
 1847   2202   
[dependencies.aws-smithy-runtime]
 1848   2203   
path = "../aws-smithy-runtime"
 1849   2204   
features = ["client"]
 1850   2205   
version = "1.8.5"
 1851   2206   
 1852   2207   
[dependencies.aws-smithy-runtime-api]
 1853   2208   
path = "../aws-smithy-runtime-api"
 1854   2209   
features = ["client", "http-02x"]
 1855   2210   
version = "1.8.5"
 1856   2211   
 1857   2212   
[dependencies.aws-smithy-types]
 1858   2213   
path = "../aws-smithy-types"
 1859   2214   
version = "1.3.2"
 1860   2215   
 1861   2216   
[dependencies.aws-types]
 1862   2217   
path = "../aws-types"
 1863   2218   
version = "1.3.8"
 1864   2219   
 1865   2220   
[dependencies.bytes]
 1866   2221   
version = "1.4.0"
 1867   2222   
 1868   2223   
[dependencies.fastrand]
 1869   2224   
version = "2.0.0"
 1870   2225   
 1871   2226   
[dependencies.http]
 1872   2227   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml
 1873   2228   
index c0ba315..46168af 100644
 1874         -
-- a/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml
        2229  +
++ b/tmp-codegen-diff/aws-sdk/sdk/ec2/Cargo.toml
 1875   2230   
@@ -1,61 +1,61 @@
 1876   2231   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1877   2232   
[package]
 1878   2233   
name = "aws-sdk-ec2"
 1879   2234   
version = "0.0.0-local"
 1880   2235   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 1881   2236   
description = "AWS SDK for Amazon Elastic Compute Cloud"
 1882   2237   
edition = "2021"
 1883   2238   
license = "Apache-2.0"
 1884   2239   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1885   2240   
rust-version = "1.86.0"
 1886   2241   
readme = "README.md"
 1887   2242   
[package.metadata.smithy]
 1888   2243   
codegen-version = "ci"
 1889   2244   
[package.metadata.docs.rs]
 1890   2245   
all-features = true
 1891   2246   
targets = ["x86_64-unknown-linux-gnu"]
 1892   2247   
[dependencies.aws-credential-types]
 1893   2248   
path = "../aws-credential-types"
 1894   2249   
version = "1.2.4"
 1895   2250   
 1896   2251   
[dependencies.aws-runtime]
 1897   2252   
path = "../aws-runtime"
 1898   2253   
version = "1.5.9"
 1899   2254   
 1900   2255   
[dependencies.aws-smithy-async]
 1901   2256   
path = "../aws-smithy-async"
 1902   2257   
version = "1.2.5"
 1903   2258   
 1904   2259   
[dependencies.aws-smithy-http]
 1905   2260   
path = "../aws-smithy-http"
 1906         -
version = "0.62.2"
        2261  +
version = "0.62.3"
 1907   2262   
 1908   2263   
[dependencies.aws-smithy-json]
 1909   2264   
path = "../aws-smithy-json"
 1910   2265   
version = "0.61.4"
 1911   2266   
 1912   2267   
[dependencies.aws-smithy-query]
 1913   2268   
path = "../aws-smithy-query"
 1914   2269   
version = "0.60.7"
 1915   2270   
 1916   2271   
[dependencies.aws-smithy-runtime]
 1917   2272   
path = "../aws-smithy-runtime"
 1918   2273   
features = ["client"]
 1919   2274   
version = "1.8.5"
 1920   2275   
 1921   2276   
[dependencies.aws-smithy-runtime-api]
 1922   2277   
path = "../aws-smithy-runtime-api"
 1923   2278   
features = ["client", "http-02x"]
 1924   2279   
version = "1.8.5"
 1925   2280   
 1926   2281   
[dependencies.aws-smithy-types]
 1927   2282   
path = "../aws-smithy-types"
 1928   2283   
version = "1.3.2"
 1929   2284   
 1930   2285   
[dependencies.aws-smithy-xml]
 1931   2286   
path = "../aws-smithy-xml"
 1932   2287   
version = "0.60.10"
 1933   2288   
 1934   2289   
[dependencies.aws-types]
 1935   2290   
path = "../aws-types"
 1936   2291   
version = "1.3.8"
 1937   2292   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml
 1938   2293   
index 4474d17..095d40e 100644
 1939         -
-- a/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml
        2294  +
++ b/tmp-codegen-diff/aws-sdk/sdk/ecs/Cargo.toml
 1940   2295   
@@ -1,61 +1,61 @@
 1941   2296   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 1942   2297   
[package]
 1943   2298   
name = "aws-sdk-ecs"
 1944   2299   
version = "0.0.0-local"
 1945   2300   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 1946   2301   
description = "AWS SDK for Amazon EC2 Container Service"
 1947   2302   
edition = "2021"
 1948   2303   
license = "Apache-2.0"
 1949   2304   
repository = "https://github.com/awslabs/aws-sdk-rust"
 1950   2305   
rust-version = "1.86.0"
 1951   2306   
readme = "README.md"
 1952   2307   
[package.metadata.smithy]
 1953   2308   
codegen-version = "ci"
 1954   2309   
[package.metadata.docs.rs]
 1955   2310   
all-features = true
 1956   2311   
targets = ["x86_64-unknown-linux-gnu"]
 1957   2312   
[dependencies.aws-credential-types]
 1958   2313   
path = "../aws-credential-types"
 1959   2314   
version = "1.2.4"
 1960   2315   
 1961   2316   
[dependencies.aws-runtime]
 1962   2317   
path = "../aws-runtime"
 1963   2318   
version = "1.5.9"
 1964   2319   
 1965   2320   
[dependencies.aws-smithy-async]
 1966   2321   
path = "../aws-smithy-async"
 1967   2322   
version = "1.2.5"
 1968   2323   
 1969   2324   
[dependencies.aws-smithy-http]
 1970   2325   
path = "../aws-smithy-http"
 1971         -
version = "0.62.2"
        2326  +
version = "0.62.3"
 1972   2327   
 1973   2328   
[dependencies.aws-smithy-json]
 1974   2329   
path = "../aws-smithy-json"
 1975   2330   
version = "0.61.4"
 1976   2331   
 1977   2332   
[dependencies.aws-smithy-runtime]
 1978   2333   
path = "../aws-smithy-runtime"
 1979   2334   
features = ["client"]
 1980   2335   
version = "1.8.5"
 1981   2336   
 1982   2337   
[dependencies.aws-smithy-runtime-api]
 1983   2338   
path = "../aws-smithy-runtime-api"
 1984   2339   
features = ["client", "http-02x"]
 1985   2340   
version = "1.8.5"
 1986   2341   
 1987   2342   
[dependencies.aws-smithy-types]
 1988   2343   
path = "../aws-smithy-types"
 1989   2344   
version = "1.3.2"
 1990   2345   
 1991   2346   
[dependencies.aws-types]
 1992   2347   
path = "../aws-types"
 1993   2348   
version = "1.3.8"
 1994   2349   
 1995   2350   
[dependencies.bytes]
 1996   2351   
version = "1.4.0"
 1997   2352   
 1998   2353   
[dependencies.fastrand]
 1999   2354   
version = "2.0.0"
 2000   2355   
 2001   2356   
[dependencies.http]
 2002   2357   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml
 2003   2358   
index 15b1d77..16d7d89 100644
 2004         -
-- a/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml
        2359  +
++ b/tmp-codegen-diff/aws-sdk/sdk/glacier/Cargo.toml
 2005   2360   
@@ -1,65 +1,65 @@
 2006   2361   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2007   2362   
[package]
 2008   2363   
name = "aws-sdk-glacier"
 2009   2364   
version = "0.0.0-local"
 2010   2365   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2011   2366   
description = "AWS SDK for Amazon Glacier"
 2012   2367   
edition = "2021"
 2013   2368   
license = "Apache-2.0"
 2014   2369   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2015   2370   
rust-version = "1.86.0"
 2016   2371   
readme = "README.md"
 2017   2372   
[package.metadata.smithy]
 2018   2373   
codegen-version = "ci"
 2019   2374   
[package.metadata.docs.rs]
 2020   2375   
all-features = true
 2021   2376   
targets = ["x86_64-unknown-linux-gnu"]
 2022   2377   
[dependencies.aws-credential-types]
 2023   2378   
path = "../aws-credential-types"
 2024   2379   
version = "1.2.4"
 2025   2380   
 2026   2381   
[dependencies.aws-runtime]
 2027   2382   
path = "../aws-runtime"
 2028   2383   
version = "1.5.9"
 2029   2384   
 2030   2385   
[dependencies.aws-sigv4]
 2031   2386   
path = "../aws-sigv4"
 2032         -
version = "1.3.3"
        2387  +
version = "1.3.4"
 2033   2388   
 2034   2389   
[dependencies.aws-smithy-async]
 2035   2390   
path = "../aws-smithy-async"
 2036   2391   
version = "1.2.5"
 2037   2392   
 2038   2393   
[dependencies.aws-smithy-http]
 2039   2394   
path = "../aws-smithy-http"
 2040         -
version = "0.62.2"
        2395  +
version = "0.62.3"
 2041   2396   
 2042   2397   
[dependencies.aws-smithy-json]
 2043   2398   
path = "../aws-smithy-json"
 2044   2399   
version = "0.61.4"
 2045   2400   
 2046   2401   
[dependencies.aws-smithy-runtime]
 2047   2402   
path = "../aws-smithy-runtime"
 2048   2403   
features = ["client"]
 2049   2404   
version = "1.8.5"
 2050   2405   
 2051   2406   
[dependencies.aws-smithy-runtime-api]
 2052   2407   
path = "../aws-smithy-runtime-api"
 2053   2408   
features = ["client", "http-02x"]
 2054   2409   
version = "1.8.5"
 2055   2410   
 2056   2411   
[dependencies.aws-smithy-types]
 2057   2412   
path = "../aws-smithy-types"
 2058   2413   
version = "1.3.2"
 2059   2414   
 2060   2415   
[dependencies.aws-types]
 2061   2416   
path = "../aws-types"
 2062   2417   
version = "1.3.8"
 2063   2418   
 2064   2419   
[dependencies.bytes]
 2065   2420   
version = "1.4.0"
 2066   2421   
 2067   2422   
[dependencies.fastrand]
 2068   2423   
version = "2.0.0"
 2069   2424   
 2070   2425   
[dependencies.hex]
 2071   2426   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml
 2072   2427   
index d718a3a..65e6f24 100644
 2073         -
-- a/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml
        2428  +
++ b/tmp-codegen-diff/aws-sdk/sdk/iam/Cargo.toml
 2074   2429   
@@ -1,61 +1,61 @@
 2075   2430   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2076   2431   
[package]
 2077   2432   
name = "aws-sdk-iam"
 2078   2433   
version = "0.0.0-local"
 2079   2434   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2080   2435   
description = "AWS SDK for AWS Identity and Access Management"
 2081   2436   
edition = "2021"
 2082   2437   
license = "Apache-2.0"
 2083   2438   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2084   2439   
rust-version = "1.86.0"
 2085   2440   
readme = "README.md"
 2086   2441   
[package.metadata.smithy]
 2087   2442   
codegen-version = "ci"
 2088   2443   
[package.metadata.docs.rs]
 2089   2444   
all-features = true
 2090   2445   
targets = ["x86_64-unknown-linux-gnu"]
 2091   2446   
[dependencies.aws-credential-types]
 2092   2447   
path = "../aws-credential-types"
 2093   2448   
version = "1.2.4"
 2094   2449   
 2095   2450   
[dependencies.aws-runtime]
 2096   2451   
path = "../aws-runtime"
 2097   2452   
version = "1.5.9"
 2098   2453   
 2099   2454   
[dependencies.aws-smithy-async]
 2100   2455   
path = "../aws-smithy-async"
 2101   2456   
version = "1.2.5"
 2102   2457   
 2103   2458   
[dependencies.aws-smithy-http]
 2104   2459   
path = "../aws-smithy-http"
 2105         -
version = "0.62.2"
        2460  +
version = "0.62.3"
 2106   2461   
 2107   2462   
[dependencies.aws-smithy-json]
 2108   2463   
path = "../aws-smithy-json"
 2109   2464   
version = "0.61.4"
 2110   2465   
 2111   2466   
[dependencies.aws-smithy-query]
 2112   2467   
path = "../aws-smithy-query"
 2113   2468   
version = "0.60.7"
 2114   2469   
 2115   2470   
[dependencies.aws-smithy-runtime]
 2116   2471   
path = "../aws-smithy-runtime"
 2117   2472   
features = ["client"]
 2118   2473   
version = "1.8.5"
 2119   2474   
 2120   2475   
[dependencies.aws-smithy-runtime-api]
 2121   2476   
path = "../aws-smithy-runtime-api"
 2122   2477   
features = ["client", "http-02x"]
 2123   2478   
version = "1.8.5"
 2124   2479   
 2125   2480   
[dependencies.aws-smithy-types]
 2126   2481   
path = "../aws-smithy-types"
 2127   2482   
version = "1.3.2"
 2128   2483   
 2129   2484   
[dependencies.aws-smithy-xml]
 2130   2485   
path = "../aws-smithy-xml"
 2131   2486   
version = "0.60.10"
 2132   2487   
 2133   2488   
[dependencies.aws-types]
 2134   2489   
path = "../aws-types"
 2135   2490   
version = "1.3.8"
 2136   2491   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml
 2137   2492   
index 0ed4302..3d828a5 100644
 2138         -
-- a/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml
        2493  +
++ b/tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml
 2139   2494   
@@ -1,61 +1,61 @@
 2140   2495   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2141   2496   
[package]
 2142   2497   
name = "aws-sdk-kms"
 2143   2498   
version = "0.0.0-local"
 2144   2499   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2145   2500   
description = "AWS SDK for AWS Key Management Service"
 2146   2501   
edition = "2021"
 2147   2502   
license = "Apache-2.0"
 2148   2503   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2149   2504   
rust-version = "1.86.0"
 2150   2505   
readme = "README.md"
 2151   2506   
[package.metadata.smithy]
 2152   2507   
codegen-version = "ci"
 2153   2508   
[package.metadata.docs.rs]
 2154   2509   
all-features = true
 2155   2510   
targets = ["x86_64-unknown-linux-gnu"]
 2156   2511   
[dependencies.aws-credential-types]
 2157   2512   
path = "../aws-credential-types"
 2158   2513   
version = "1.2.4"
 2159   2514   
 2160   2515   
[dependencies.aws-runtime]
 2161   2516   
path = "../aws-runtime"
 2162   2517   
version = "1.5.9"
 2163   2518   
 2164   2519   
[dependencies.aws-smithy-async]
 2165   2520   
path = "../aws-smithy-async"
 2166   2521   
version = "1.2.5"
 2167   2522   
 2168   2523   
[dependencies.aws-smithy-http]
 2169   2524   
path = "../aws-smithy-http"
 2170         -
version = "0.62.2"
        2525  +
version = "0.62.3"
 2171   2526   
 2172   2527   
[dependencies.aws-smithy-json]
 2173   2528   
path = "../aws-smithy-json"
 2174   2529   
version = "0.61.4"
 2175   2530   
 2176   2531   
[dependencies.aws-smithy-runtime]
 2177   2532   
path = "../aws-smithy-runtime"
 2178   2533   
features = ["client"]
 2179   2534   
version = "1.8.5"
 2180   2535   
 2181   2536   
[dependencies.aws-smithy-runtime-api]
 2182   2537   
path = "../aws-smithy-runtime-api"
 2183   2538   
features = ["client", "http-02x"]
 2184   2539   
version = "1.8.5"
 2185   2540   
 2186   2541   
[dependencies.aws-smithy-types]
 2187   2542   
path = "../aws-smithy-types"
 2188   2543   
version = "1.3.2"
 2189   2544   
 2190   2545   
[dependencies.aws-types]
 2191   2546   
path = "../aws-types"
 2192   2547   
version = "1.3.8"
 2193   2548   
 2194   2549   
[dependencies.bytes]
 2195   2550   
version = "1.4.0"
 2196   2551   
 2197   2552   
[dependencies.fastrand]
 2198   2553   
version = "2.0.0"
 2199   2554   
 2200   2555   
[dependencies.http]
 2201   2556   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml
 2202   2557   
index 6518dfc..6b94752 100644
 2203         -
-- a/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml
        2558  +
++ b/tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml
 2204   2559   
@@ -7,61 +7,61 @@ description = "AWS SDK for AWS Lambda"
 2205   2560   
edition = "2021"
 2206   2561   
license = "Apache-2.0"
 2207   2562   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2208   2563   
rust-version = "1.86.0"
 2209   2564   
readme = "README.md"
 2210   2565   
[package.metadata.smithy]
 2211   2566   
codegen-version = "ci"
 2212   2567   
[package.metadata.docs.rs]
 2213   2568   
all-features = true
 2214   2569   
targets = ["x86_64-unknown-linux-gnu"]
 2215   2570   
[dependencies.aws-credential-types]
 2216   2571   
path = "../aws-credential-types"
 2217   2572   
version = "1.2.4"
 2218   2573   
 2219   2574   
[dependencies.aws-runtime]
 2220   2575   
path = "../aws-runtime"
 2221   2576   
features = ["event-stream"]
 2222   2577   
version = "1.5.9"
 2223   2578   
 2224   2579   
[dependencies.aws-smithy-async]
 2225   2580   
path = "../aws-smithy-async"
 2226   2581   
version = "1.2.5"
 2227   2582   
 2228   2583   
[dependencies.aws-smithy-eventstream]
 2229   2584   
path = "../aws-smithy-eventstream"
 2230   2585   
version = "0.60.10"
 2231   2586   
 2232   2587   
[dependencies.aws-smithy-http]
 2233   2588   
path = "../aws-smithy-http"
 2234   2589   
features = ["event-stream"]
 2235         -
version = "0.62.2"
        2590  +
version = "0.62.3"
 2236   2591   
 2237   2592   
[dependencies.aws-smithy-json]
 2238   2593   
path = "../aws-smithy-json"
 2239   2594   
version = "0.61.4"
 2240   2595   
 2241   2596   
[dependencies.aws-smithy-runtime]
 2242   2597   
path = "../aws-smithy-runtime"
 2243   2598   
features = ["client"]
 2244   2599   
version = "1.8.5"
 2245   2600   
 2246   2601   
[dependencies.aws-smithy-runtime-api]
 2247   2602   
path = "../aws-smithy-runtime-api"
 2248   2603   
features = ["client", "http-02x"]
 2249   2604   
version = "1.8.5"
 2250   2605   
 2251   2606   
[dependencies.aws-smithy-types]
 2252   2607   
path = "../aws-smithy-types"
 2253   2608   
version = "1.3.2"
 2254   2609   
 2255   2610   
[dependencies.aws-types]
 2256   2611   
path = "../aws-types"
 2257   2612   
version = "1.3.8"
 2258   2613   
 2259   2614   
[dependencies.bytes]
 2260   2615   
version = "1.4.0"
 2261   2616   
 2262   2617   
[dependencies.fastrand]
 2263   2618   
version = "2.0.0"
 2264   2619   
 2265   2620   
[dependencies.http]
 2266   2621   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml
 2267   2622   
index dabb0e0..34cbc15 100644
 2268         -
-- a/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml
        2623  +
++ b/tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml
 2269   2624   
@@ -1,65 +1,65 @@
 2270   2625   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2271   2626   
[package]
 2272   2627   
name = "aws-sdk-polly"
 2273   2628   
version = "0.0.0-local"
 2274   2629   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2275   2630   
description = "AWS SDK for Amazon Polly"
 2276   2631   
edition = "2021"
 2277   2632   
license = "Apache-2.0"
 2278   2633   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2279   2634   
rust-version = "1.86.0"
 2280   2635   
readme = "README.md"
 2281   2636   
[package.metadata.smithy]
 2282   2637   
codegen-version = "ci"
 2283   2638   
[package.metadata.docs.rs]
 2284   2639   
all-features = true
 2285   2640   
targets = ["x86_64-unknown-linux-gnu"]
 2286   2641   
[dependencies.aws-credential-types]
 2287   2642   
path = "../aws-credential-types"
 2288   2643   
version = "1.2.4"
 2289   2644   
 2290   2645   
[dependencies.aws-runtime]
 2291   2646   
path = "../aws-runtime"
 2292   2647   
version = "1.5.9"
 2293   2648   
 2294   2649   
[dependencies.aws-sigv4]
 2295   2650   
path = "../aws-sigv4"
 2296         -
version = "1.3.3"
        2651  +
version = "1.3.4"
 2297   2652   
 2298   2653   
[dependencies.aws-smithy-async]
 2299   2654   
path = "../aws-smithy-async"
 2300   2655   
version = "1.2.5"
 2301   2656   
 2302   2657   
[dependencies.aws-smithy-http]
 2303   2658   
path = "../aws-smithy-http"
 2304         -
version = "0.62.2"
        2659  +
version = "0.62.3"
 2305   2660   
 2306   2661   
[dependencies.aws-smithy-json]
 2307   2662   
path = "../aws-smithy-json"
 2308   2663   
version = "0.61.4"
 2309   2664   
 2310   2665   
[dependencies.aws-smithy-runtime]
 2311   2666   
path = "../aws-smithy-runtime"
 2312   2667   
features = ["client"]
 2313   2668   
version = "1.8.5"
 2314   2669   
 2315   2670   
[dependencies.aws-smithy-runtime-api]
 2316   2671   
path = "../aws-smithy-runtime-api"
 2317   2672   
features = ["client", "http-02x"]
 2318   2673   
version = "1.8.5"
 2319   2674   
 2320   2675   
[dependencies.aws-smithy-types]
 2321   2676   
path = "../aws-smithy-types"
 2322   2677   
version = "1.3.2"
 2323   2678   
 2324   2679   
[dependencies.aws-types]
 2325   2680   
path = "../aws-types"
 2326   2681   
version = "1.3.8"
 2327   2682   
 2328   2683   
[dependencies.bytes]
 2329   2684   
version = "1.4.0"
 2330   2685   
 2331   2686   
[dependencies.fastrand]
 2332   2687   
version = "2.0.0"
 2333   2688   
 2334   2689   
[dependencies.http]
 2335   2690   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml
 2336   2691   
index a884716..f3d8713 100644
 2337         -
-- a/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml
        2692  +
++ b/tmp-codegen-diff/aws-sdk/sdk/qldbsession/Cargo.toml
 2338   2693   
@@ -1,61 +1,61 @@
 2339   2694   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2340   2695   
[package]
 2341   2696   
name = "aws-sdk-qldbsession"
 2342   2697   
version = "0.0.0-local"
 2343   2698   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2344   2699   
description = "AWS SDK for Amazon QLDB Session"
 2345   2700   
edition = "2021"
 2346   2701   
license = "Apache-2.0"
 2347   2702   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2348   2703   
rust-version = "1.86.0"
 2349   2704   
readme = "README.md"
 2350   2705   
[package.metadata.smithy]
 2351   2706   
codegen-version = "ci"
 2352   2707   
[package.metadata.docs.rs]
 2353   2708   
all-features = true
 2354   2709   
targets = ["x86_64-unknown-linux-gnu"]
 2355   2710   
[dependencies.aws-credential-types]
 2356   2711   
path = "../aws-credential-types"
 2357   2712   
version = "1.2.4"
 2358   2713   
 2359   2714   
[dependencies.aws-runtime]
 2360   2715   
path = "../aws-runtime"
 2361   2716   
version = "1.5.9"
 2362   2717   
 2363   2718   
[dependencies.aws-smithy-async]
 2364   2719   
path = "../aws-smithy-async"
 2365   2720   
version = "1.2.5"
 2366   2721   
 2367   2722   
[dependencies.aws-smithy-http]
 2368   2723   
path = "../aws-smithy-http"
 2369         -
version = "0.62.2"
        2724  +
version = "0.62.3"
 2370   2725   
 2371   2726   
[dependencies.aws-smithy-json]
 2372   2727   
path = "../aws-smithy-json"
 2373   2728   
version = "0.61.4"
 2374   2729   
 2375   2730   
[dependencies.aws-smithy-runtime]
 2376   2731   
path = "../aws-smithy-runtime"
 2377   2732   
features = ["client"]
 2378   2733   
version = "1.8.5"
 2379   2734   
 2380   2735   
[dependencies.aws-smithy-runtime-api]
 2381   2736   
path = "../aws-smithy-runtime-api"
 2382   2737   
features = ["client", "http-02x"]
 2383   2738   
version = "1.8.5"
 2384   2739   
 2385   2740   
[dependencies.aws-smithy-types]
 2386   2741   
path = "../aws-smithy-types"
 2387   2742   
version = "1.3.2"
 2388   2743   
 2389   2744   
[dependencies.aws-types]
 2390   2745   
path = "../aws-types"
 2391   2746   
version = "1.3.8"
 2392   2747   
 2393   2748   
[dependencies.bytes]
 2394   2749   
version = "1.4.0"
 2395   2750   
 2396   2751   
[dependencies.fastrand]
 2397   2752   
version = "2.0.0"
 2398   2753   
 2399   2754   
[dependencies.http]
 2400   2755   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml
 2401   2756   
index 32a7dc9..a2c752d 100644
 2402         -
-- a/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml
        2757  +
++ b/tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml
 2403   2758   
@@ -1,61 +1,61 @@
 2404   2759   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2405   2760   
[package]
 2406   2761   
name = "aws-sdk-route53"
 2407   2762   
version = "0.0.0-local"
 2408   2763   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2409   2764   
description = "AWS SDK for Amazon Route 53"
 2410   2765   
edition = "2021"
 2411   2766   
license = "Apache-2.0"
 2412   2767   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2413   2768   
rust-version = "1.86.0"
 2414   2769   
readme = "README.md"
 2415   2770   
[package.metadata.smithy]
 2416   2771   
codegen-version = "ci"
 2417   2772   
[package.metadata.docs.rs]
 2418   2773   
all-features = true
 2419   2774   
targets = ["x86_64-unknown-linux-gnu"]
 2420   2775   
[dependencies.aws-credential-types]
 2421   2776   
path = "../aws-credential-types"
 2422   2777   
version = "1.2.4"
 2423   2778   
 2424   2779   
[dependencies.aws-runtime]
 2425   2780   
path = "../aws-runtime"
 2426   2781   
version = "1.5.9"
 2427   2782   
 2428   2783   
[dependencies.aws-smithy-async]
 2429   2784   
path = "../aws-smithy-async"
 2430   2785   
version = "1.2.5"
 2431   2786   
 2432   2787   
[dependencies.aws-smithy-http]
 2433   2788   
path = "../aws-smithy-http"
 2434         -
version = "0.62.2"
        2789  +
version = "0.62.3"
 2435   2790   
 2436   2791   
[dependencies.aws-smithy-json]
 2437   2792   
path = "../aws-smithy-json"
 2438   2793   
version = "0.61.4"
 2439   2794   
 2440   2795   
[dependencies.aws-smithy-runtime]
 2441   2796   
path = "../aws-smithy-runtime"
 2442   2797   
features = ["client"]
 2443   2798   
version = "1.8.5"
 2444   2799   
 2445   2800   
[dependencies.aws-smithy-runtime-api]
 2446   2801   
path = "../aws-smithy-runtime-api"
 2447   2802   
features = ["client", "http-02x"]
 2448   2803   
version = "1.8.5"
 2449   2804   
 2450   2805   
[dependencies.aws-smithy-types]
 2451   2806   
path = "../aws-smithy-types"
 2452   2807   
version = "1.3.2"
 2453   2808   
 2454   2809   
[dependencies.aws-smithy-xml]
 2455   2810   
path = "../aws-smithy-xml"
 2456   2811   
version = "0.60.10"
 2457   2812   
 2458   2813   
[dependencies.aws-types]
 2459   2814   
path = "../aws-types"
 2460   2815   
version = "1.3.8"
 2461   2816   
 2462   2817   
[dependencies.fastrand]
 2463   2818   
version = "2.0.0"
 2464   2819   
 2465   2820   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml
 2466   2821   
index f65e261..2f6bec0 100644
 2467         -
-- a/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml
        2822  +
++ b/tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml
 2468   2823   
@@ -1,75 +1,75 @@
 2469   2824   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2470   2825   
[package]
 2471   2826   
name = "aws-sdk-s3"
 2472   2827   
version = "0.0.0-local"
 2473   2828   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2474   2829   
description = "AWS SDK for Amazon Simple Storage Service"
 2475   2830   
edition = "2021"
 2476   2831   
license = "Apache-2.0"
 2477   2832   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2478   2833   
rust-version = "1.86.0"
 2479   2834   
readme = "README.md"
 2480   2835   
[package.metadata.smithy]
 2481   2836   
codegen-version = "ci"
 2482   2837   
[package.metadata.docs.rs]
 2483   2838   
all-features = true
 2484   2839   
targets = ["x86_64-unknown-linux-gnu"]
 2485   2840   
[dependencies.aws-credential-types]
 2486   2841   
path = "../aws-credential-types"
 2487   2842   
version = "1.2.4"
 2488   2843   
 2489   2844   
[dependencies.aws-runtime]
 2490   2845   
path = "../aws-runtime"
 2491   2846   
features = ["event-stream", "http-02x"]
 2492   2847   
version = "1.5.9"
 2493   2848   
 2494   2849   
[dependencies.aws-sigv4]
 2495   2850   
path = "../aws-sigv4"
 2496         -
version = "1.3.3"
        2851  +
version = "1.3.4"
 2497   2852   
 2498   2853   
[dependencies.aws-smithy-async]
 2499   2854   
path = "../aws-smithy-async"
 2500   2855   
version = "1.2.5"
 2501   2856   
 2502   2857   
[dependencies.aws-smithy-checksums]
 2503   2858   
path = "../aws-smithy-checksums"
 2504   2859   
version = "0.63.5"
 2505   2860   
 2506   2861   
[dependencies.aws-smithy-eventstream]
 2507   2862   
path = "../aws-smithy-eventstream"
 2508   2863   
version = "0.60.10"
 2509   2864   
 2510   2865   
[dependencies.aws-smithy-http]
 2511   2866   
path = "../aws-smithy-http"
 2512   2867   
features = ["event-stream"]
 2513         -
version = "0.62.2"
        2868  +
version = "0.62.3"
 2514   2869   
 2515   2870   
[dependencies.aws-smithy-json]
 2516   2871   
path = "../aws-smithy-json"
 2517   2872   
version = "0.61.4"
 2518   2873   
 2519   2874   
[dependencies.aws-smithy-runtime]
 2520   2875   
path = "../aws-smithy-runtime"
 2521   2876   
features = ["client"]
 2522   2877   
version = "1.8.5"
 2523   2878   
 2524   2879   
[dependencies.aws-smithy-runtime-api]
 2525   2880   
path = "../aws-smithy-runtime-api"
 2526   2881   
features = ["client", "http-02x"]
 2527   2882   
version = "1.8.5"
 2528   2883   
 2529   2884   
[dependencies.aws-smithy-types]
 2530   2885   
path = "../aws-smithy-types"
 2531   2886   
version = "1.3.2"
 2532   2887   
 2533   2888   
[dependencies.aws-smithy-xml]
 2534   2889   
path = "../aws-smithy-xml"
 2535   2890   
version = "0.60.10"
 2536   2891   
 2537   2892   
[dependencies.aws-types]
 2538   2893   
path = "../aws-types"
 2539   2894   
version = "1.3.8"
 2540   2895   
 2541   2896   
[dependencies.bytes]
 2542   2897   
version = "1.4.0"
 2543   2898   
 2544   2899   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml
 2545   2900   
index b4d1cdd..861c0cc 100644
 2546         -
-- a/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml
        2901  +
++ b/tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml
 2547   2902   
@@ -1,61 +1,61 @@
 2548   2903   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2549   2904   
[package]
 2550   2905   
name = "aws-sdk-s3control"
 2551   2906   
version = "0.0.0-local"
 2552   2907   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2553   2908   
description = "AWS SDK for AWS S3 Control"
 2554   2909   
edition = "2021"
 2555   2910   
license = "Apache-2.0"
 2556   2911   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2557   2912   
rust-version = "1.86.0"
 2558   2913   
readme = "README.md"
 2559   2914   
[package.metadata.smithy]
 2560   2915   
codegen-version = "ci"
 2561   2916   
[package.metadata.docs.rs]
 2562   2917   
all-features = true
 2563   2918   
targets = ["x86_64-unknown-linux-gnu"]
 2564   2919   
[dependencies.aws-credential-types]
 2565   2920   
path = "../aws-credential-types"
 2566   2921   
version = "1.2.4"
 2567   2922   
 2568   2923   
[dependencies.aws-runtime]
 2569   2924   
path = "../aws-runtime"
 2570   2925   
version = "1.5.9"
 2571   2926   
 2572   2927   
[dependencies.aws-smithy-async]
 2573   2928   
path = "../aws-smithy-async"
 2574   2929   
version = "1.2.5"
 2575   2930   
 2576   2931   
[dependencies.aws-smithy-http]
 2577   2932   
path = "../aws-smithy-http"
 2578         -
version = "0.62.2"
        2933  +
version = "0.62.3"
 2579   2934   
 2580   2935   
[dependencies.aws-smithy-json]
 2581   2936   
path = "../aws-smithy-json"
 2582   2937   
version = "0.61.4"
 2583   2938   
 2584   2939   
[dependencies.aws-smithy-runtime]
 2585   2940   
path = "../aws-smithy-runtime"
 2586   2941   
features = ["client"]
 2587   2942   
version = "1.8.5"
 2588   2943   
 2589   2944   
[dependencies.aws-smithy-runtime-api]
 2590   2945   
path = "../aws-smithy-runtime-api"
 2591   2946   
features = ["client", "http-02x"]
 2592   2947   
version = "1.8.5"
 2593   2948   
 2594   2949   
[dependencies.aws-smithy-types]
 2595   2950   
path = "../aws-smithy-types"
 2596   2951   
version = "1.3.2"
 2597   2952   
 2598   2953   
[dependencies.aws-smithy-xml]
 2599   2954   
path = "../aws-smithy-xml"
 2600   2955   
version = "0.60.10"
 2601   2956   
 2602   2957   
[dependencies.aws-types]
 2603   2958   
path = "../aws-types"
 2604   2959   
version = "1.3.8"
 2605   2960   
 2606   2961   
[dependencies.fastrand]
 2607   2962   
version = "2.0.0"
 2608   2963   
 2609   2964   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml
 2610   2965   
index 2cde182..fc367f4 100644
 2611         -
-- a/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml
        2966  +
++ b/tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml
 2612   2967   
@@ -1,61 +1,61 @@
 2613   2968   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2614   2969   
[package]
 2615   2970   
name = "aws-sdk-sso"
 2616   2971   
version = "0.0.0-local"
 2617   2972   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2618   2973   
description = "AWS SDK for AWS Single Sign-On"
 2619   2974   
edition = "2021"
 2620   2975   
license = "Apache-2.0"
 2621   2976   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2622   2977   
rust-version = "1.86.0"
 2623   2978   
readme = "README.md"
 2624   2979   
[package.metadata.smithy]
 2625   2980   
codegen-version = "ci"
 2626   2981   
[package.metadata.docs.rs]
 2627   2982   
all-features = true
 2628   2983   
targets = ["x86_64-unknown-linux-gnu"]
 2629   2984   
[dependencies.aws-credential-types]
 2630   2985   
path = "../aws-credential-types"
 2631   2986   
version = "1.2.4"
 2632   2987   
 2633   2988   
[dependencies.aws-runtime]
 2634   2989   
path = "../aws-runtime"
 2635   2990   
version = "1.5.9"
 2636   2991   
 2637   2992   
[dependencies.aws-smithy-async]
 2638   2993   
path = "../aws-smithy-async"
 2639   2994   
version = "1.2.5"
 2640   2995   
 2641   2996   
[dependencies.aws-smithy-http]
 2642   2997   
path = "../aws-smithy-http"
 2643         -
version = "0.62.2"
        2998  +
version = "0.62.3"
 2644   2999   
 2645   3000   
[dependencies.aws-smithy-json]
 2646   3001   
path = "../aws-smithy-json"
 2647   3002   
version = "0.61.4"
 2648   3003   
 2649   3004   
[dependencies.aws-smithy-runtime]
 2650   3005   
path = "../aws-smithy-runtime"
 2651   3006   
features = ["client"]
 2652   3007   
version = "1.8.5"
 2653   3008   
 2654   3009   
[dependencies.aws-smithy-runtime-api]
 2655   3010   
path = "../aws-smithy-runtime-api"
 2656   3011   
features = ["client", "http-02x"]
 2657   3012   
version = "1.8.5"
 2658   3013   
 2659   3014   
[dependencies.aws-smithy-types]
 2660   3015   
path = "../aws-smithy-types"
 2661   3016   
version = "1.3.2"
 2662   3017   
 2663   3018   
[dependencies.aws-types]
 2664   3019   
path = "../aws-types"
 2665   3020   
version = "1.3.8"
 2666   3021   
 2667   3022   
[dependencies.bytes]
 2668   3023   
version = "1.4.0"
 2669   3024   
 2670   3025   
[dependencies.fastrand]
 2671   3026   
version = "2.0.0"
 2672   3027   
 2673   3028   
[dependencies.http]
 2674   3029   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml
 2675   3030   
index 7a34c16..588d0bd 100644
 2676         -
-- a/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml
        3031  +
++ b/tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml
 2677   3032   
@@ -1,61 +1,61 @@
 2678   3033   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2679   3034   
[package]
 2680   3035   
name = "aws-sdk-ssooidc"
 2681   3036   
version = "0.0.0-local"
 2682   3037   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2683   3038   
description = "AWS SDK for AWS SSO OIDC"
 2684   3039   
edition = "2021"
 2685   3040   
license = "Apache-2.0"
 2686   3041   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2687   3042   
rust-version = "1.86.0"
 2688   3043   
readme = "README.md"
 2689   3044   
[package.metadata.smithy]
 2690   3045   
codegen-version = "ci"
 2691   3046   
[package.metadata.docs.rs]
 2692   3047   
all-features = true
 2693   3048   
targets = ["x86_64-unknown-linux-gnu"]
 2694   3049   
[dependencies.aws-credential-types]
 2695   3050   
path = "../aws-credential-types"
 2696   3051   
version = "1.2.4"
 2697   3052   
 2698   3053   
[dependencies.aws-runtime]
 2699   3054   
path = "../aws-runtime"
 2700   3055   
version = "1.5.9"
 2701   3056   
 2702   3057   
[dependencies.aws-smithy-async]
 2703   3058   
path = "../aws-smithy-async"
 2704   3059   
version = "1.2.5"
 2705   3060   
 2706   3061   
[dependencies.aws-smithy-http]
 2707   3062   
path = "../aws-smithy-http"
 2708         -
version = "0.62.2"
        3063  +
version = "0.62.3"
 2709   3064   
 2710   3065   
[dependencies.aws-smithy-json]
 2711   3066   
path = "../aws-smithy-json"
 2712   3067   
version = "0.61.4"
 2713   3068   
 2714   3069   
[dependencies.aws-smithy-runtime]
 2715   3070   
path = "../aws-smithy-runtime"
 2716   3071   
features = ["client"]
 2717   3072   
version = "1.8.5"
 2718   3073   
 2719   3074   
[dependencies.aws-smithy-runtime-api]
 2720   3075   
path = "../aws-smithy-runtime-api"
 2721   3076   
features = ["client", "http-02x"]
 2722   3077   
version = "1.8.5"
 2723   3078   
 2724   3079   
[dependencies.aws-smithy-types]
 2725   3080   
path = "../aws-smithy-types"
 2726   3081   
version = "1.3.2"
 2727   3082   
 2728   3083   
[dependencies.aws-types]
 2729   3084   
path = "../aws-types"
 2730   3085   
version = "1.3.8"
 2731   3086   
 2732   3087   
[dependencies.bytes]
 2733   3088   
version = "1.4.0"
 2734   3089   
 2735   3090   
[dependencies.fastrand]
 2736   3091   
version = "2.0.0"
 2737   3092   
 2738   3093   
[dependencies.http]
 2739   3094   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml
 2740   3095   
index 895dfb3..f2ce34e 100644
 2741         -
-- a/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml
        3096  +
++ b/tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml
 2742   3097   
@@ -1,61 +1,61 @@
 2743   3098   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2744   3099   
[package]
 2745   3100   
name = "aws-sdk-sts"
 2746   3101   
version = "0.0.0-local"
 2747   3102   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2748   3103   
description = "AWS SDK for AWS Security Token Service"
 2749   3104   
edition = "2021"
 2750   3105   
license = "Apache-2.0"
 2751   3106   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2752   3107   
rust-version = "1.86.0"
 2753   3108   
readme = "README.md"
 2754   3109   
[package.metadata.smithy]
 2755   3110   
codegen-version = "ci"
 2756   3111   
[package.metadata.docs.rs]
 2757   3112   
all-features = true
 2758   3113   
targets = ["x86_64-unknown-linux-gnu"]
 2759   3114   
[dependencies.aws-credential-types]
 2760   3115   
path = "../aws-credential-types"
 2761   3116   
version = "1.2.4"
 2762   3117   
 2763   3118   
[dependencies.aws-runtime]
 2764   3119   
path = "../aws-runtime"
 2765   3120   
version = "1.5.9"
 2766   3121   
 2767   3122   
[dependencies.aws-smithy-async]
 2768   3123   
path = "../aws-smithy-async"
 2769   3124   
version = "1.2.5"
 2770   3125   
 2771   3126   
[dependencies.aws-smithy-http]
 2772   3127   
path = "../aws-smithy-http"
 2773         -
version = "0.62.2"
        3128  +
version = "0.62.3"
 2774   3129   
 2775   3130   
[dependencies.aws-smithy-json]
 2776   3131   
path = "../aws-smithy-json"
 2777   3132   
version = "0.61.4"
 2778   3133   
 2779   3134   
[dependencies.aws-smithy-query]
 2780   3135   
path = "../aws-smithy-query"
 2781   3136   
version = "0.60.7"
 2782   3137   
 2783   3138   
[dependencies.aws-smithy-runtime]
 2784   3139   
path = "../aws-smithy-runtime"
 2785   3140   
features = ["client"]
 2786   3141   
version = "1.8.5"
 2787   3142   
 2788   3143   
[dependencies.aws-smithy-runtime-api]
 2789   3144   
path = "../aws-smithy-runtime-api"
 2790   3145   
features = ["client", "http-02x"]
 2791   3146   
version = "1.8.5"
 2792   3147   
 2793   3148   
[dependencies.aws-smithy-types]
 2794   3149   
path = "../aws-smithy-types"
 2795   3150   
version = "1.3.2"
 2796   3151   
 2797   3152   
[dependencies.aws-smithy-xml]
 2798   3153   
path = "../aws-smithy-xml"
 2799   3154   
version = "0.60.10"
 2800   3155   
 2801   3156   
[dependencies.aws-types]
 2802   3157   
path = "../aws-types"
 2803   3158   
version = "1.3.8"
 2804   3159   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml
 2805   3160   
index d556561..91178b6 100644
 2806         -
-- a/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml
        3161  +
++ b/tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml
 2807   3162   
@@ -1,61 +1,61 @@
 2808   3163   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2809   3164   
[package]
 2810   3165   
name = "aws-sdk-timestreamquery"
 2811   3166   
version = "0.0.0-local"
 2812   3167   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2813   3168   
description = "AWS SDK for Amazon Timestream Query"
 2814   3169   
edition = "2021"
 2815   3170   
license = "Apache-2.0"
 2816   3171   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2817   3172   
rust-version = "1.86.0"
 2818   3173   
readme = "README.md"
 2819   3174   
[package.metadata.smithy]
 2820   3175   
codegen-version = "ci"
 2821   3176   
[package.metadata.docs.rs]
 2822   3177   
all-features = true
 2823   3178   
targets = ["x86_64-unknown-linux-gnu"]
 2824   3179   
[dependencies.aws-credential-types]
 2825   3180   
path = "../aws-credential-types"
 2826   3181   
version = "1.2.4"
 2827   3182   
 2828   3183   
[dependencies.aws-runtime]
 2829   3184   
path = "../aws-runtime"
 2830   3185   
version = "1.5.9"
 2831   3186   
 2832   3187   
[dependencies.aws-smithy-async]
 2833   3188   
path = "../aws-smithy-async"
 2834   3189   
version = "1.2.5"
 2835   3190   
 2836   3191   
[dependencies.aws-smithy-http]
 2837   3192   
path = "../aws-smithy-http"
 2838         -
version = "0.62.2"
        3193  +
version = "0.62.3"
 2839   3194   
 2840   3195   
[dependencies.aws-smithy-json]
 2841   3196   
path = "../aws-smithy-json"
 2842   3197   
version = "0.61.4"
 2843   3198   
 2844   3199   
[dependencies.aws-smithy-runtime]
 2845   3200   
path = "../aws-smithy-runtime"
 2846   3201   
features = ["client"]
 2847   3202   
version = "1.8.5"
 2848   3203   
 2849   3204   
[dependencies.aws-smithy-runtime-api]
 2850   3205   
path = "../aws-smithy-runtime-api"
 2851   3206   
features = ["client", "http-02x"]
 2852   3207   
version = "1.8.5"
 2853   3208   
 2854   3209   
[dependencies.aws-smithy-types]
 2855   3210   
path = "../aws-smithy-types"
 2856   3211   
version = "1.3.2"
 2857   3212   
 2858   3213   
[dependencies.aws-types]
 2859   3214   
path = "../aws-types"
 2860   3215   
version = "1.3.8"
 2861   3216   
 2862   3217   
[dependencies.bytes]
 2863   3218   
version = "1.4.0"
 2864   3219   
 2865   3220   
[dependencies.fastrand]
 2866   3221   
version = "2.0.0"
 2867   3222   
 2868   3223   
[dependencies.http]
 2869   3224   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml
 2870   3225   
index 0c56e4c..95731e3 100644
 2871         -
-- a/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml
        3226  +
++ b/tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml
 2872   3227   
@@ -1,61 +1,61 @@
 2873   3228   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2874   3229   
[package]
 2875   3230   
name = "aws-sdk-timestreamwrite"
 2876   3231   
version = "0.0.0-local"
 2877   3232   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2878   3233   
description = "AWS SDK for Amazon Timestream Write"
 2879   3234   
edition = "2021"
 2880   3235   
license = "Apache-2.0"
 2881   3236   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2882   3237   
rust-version = "1.86.0"
 2883   3238   
readme = "README.md"
 2884   3239   
[package.metadata.smithy]
 2885   3240   
codegen-version = "ci"
 2886   3241   
[package.metadata.docs.rs]
 2887   3242   
all-features = true
 2888   3243   
targets = ["x86_64-unknown-linux-gnu"]
 2889   3244   
[dependencies.aws-credential-types]
 2890   3245   
path = "../aws-credential-types"
 2891   3246   
version = "1.2.4"
 2892   3247   
 2893   3248   
[dependencies.aws-runtime]
 2894   3249   
path = "../aws-runtime"
 2895   3250   
version = "1.5.9"
 2896   3251   
 2897   3252   
[dependencies.aws-smithy-async]
 2898   3253   
path = "../aws-smithy-async"
 2899   3254   
version = "1.2.5"
 2900   3255   
 2901   3256   
[dependencies.aws-smithy-http]
 2902   3257   
path = "../aws-smithy-http"
 2903         -
version = "0.62.2"
        3258  +
version = "0.62.3"
 2904   3259   
 2905   3260   
[dependencies.aws-smithy-json]
 2906   3261   
path = "../aws-smithy-json"
 2907   3262   
version = "0.61.4"
 2908   3263   
 2909   3264   
[dependencies.aws-smithy-runtime]
 2910   3265   
path = "../aws-smithy-runtime"
 2911   3266   
features = ["client"]
 2912   3267   
version = "1.8.5"
 2913   3268   
 2914   3269   
[dependencies.aws-smithy-runtime-api]
 2915   3270   
path = "../aws-smithy-runtime-api"
 2916   3271   
features = ["client", "http-02x"]
 2917   3272   
version = "1.8.5"
 2918   3273   
 2919   3274   
[dependencies.aws-smithy-types]
 2920   3275   
path = "../aws-smithy-types"
 2921   3276   
version = "1.3.2"
 2922   3277   
 2923   3278   
[dependencies.aws-types]
 2924   3279   
path = "../aws-types"
 2925   3280   
version = "1.3.8"
 2926   3281   
 2927   3282   
[dependencies.bytes]
 2928   3283   
version = "1.4.0"
 2929   3284   
 2930   3285   
[dependencies.fastrand]
 2931   3286   
version = "2.0.0"
 2932   3287   
 2933   3288   
[dependencies.http]
 2934   3289   
diff --git a/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml b/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml
 2935   3290   
index 5b35037..9fb220a 100644
 2936         -
-- a/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml
        3291  +
++ b/tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml
 2937   3292   
@@ -1,71 +1,71 @@
 2938   3293   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
 2939   3294   
[package]
 2940   3295   
name = "aws-sdk-transcribestreaming"
 2941   3296   
version = "0.0.0-local"
 2942   3297   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
 2943   3298   
description = "AWS SDK for Amazon Transcribe Streaming Service"
 2944   3299   
edition = "2021"
 2945   3300   
license = "Apache-2.0"
 2946   3301   
repository = "https://github.com/awslabs/aws-sdk-rust"
 2947   3302   
rust-version = "1.86.0"
 2948   3303   
readme = "README.md"
 2949   3304   
[package.metadata.smithy]
 2950   3305   
codegen-version = "ci"
 2951   3306   
[package.metadata.docs.rs]
 2952   3307   
all-features = true
 2953   3308   
targets = ["x86_64-unknown-linux-gnu"]
 2954   3309   
[dependencies.aws-credential-types]
 2955   3310   
path = "../aws-credential-types"
 2956   3311   
version = "1.2.4"
 2957   3312   
 2958   3313   
[dependencies.aws-runtime]
 2959   3314   
path = "../aws-runtime"
 2960   3315   
features = ["event-stream"]
 2961   3316   
version = "1.5.9"
 2962   3317   
 2963   3318   
[dependencies.aws-sigv4]
 2964   3319   
path = "../aws-sigv4"
 2965         -
version = "1.3.3"
        3320  +
version = "1.3.4"
 2966   3321   
 2967   3322   
[dependencies.aws-smithy-async]
 2968   3323   
path = "../aws-smithy-async"
 2969   3324   
version = "1.2.5"
 2970   3325   
 2971   3326   
[dependencies.aws-smithy-eventstream]
 2972   3327   
path = "../aws-smithy-eventstream"
 2973   3328   
version = "0.60.10"
 2974   3329   
 2975   3330   
[dependencies.aws-smithy-http]
 2976   3331   
path = "../aws-smithy-http"
 2977   3332   
features = ["event-stream"]
 2978         -
version = "0.62.2"
        3333  +
version = "0.62.3"
 2979   3334   
 2980   3335   
[dependencies.aws-smithy-json]
 2981   3336   
path = "../aws-smithy-json"
 2982   3337   
version = "0.61.4"
 2983   3338   
 2984   3339   
[dependencies.aws-smithy-runtime]
 2985   3340   
path = "../aws-smithy-runtime"
 2986   3341   
features = ["client"]
 2987   3342   
version = "1.8.5"
 2988   3343