AWS SDK

AWS SDK

rev. 628eeeeeed390f5efdbfe607c18848c033debd3e (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,10 @@
           1  +
POST / HTTP/1.1
           2  +
Content-Type:application/x-www-form-urlencoded; charset=utf-8
           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=3045022100c016dc61cbd380cf8160711320957071f5c122ef69164d56d02f79daf51a0603022043e3313aa2f6b46285cc89dfe5616ccc74c810a3d7ea25b76ee1ca496f7facba
           9  +
          10  +
Param1=value1

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

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

tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-signing-test-suite/v4a/post-x-www-form-urlencoded-parameters/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-parameters/query-canonical-request.txt

Renamed from tmp-codegen-diff/aws-sdk/sdk/aws-sigv4/aws-sig-v4a-test-suite/post-x-www-form-urlencoded-parameters/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; charset=utf-8
    6      6   
host:example.amazonaws.com
    7      7   
    8      8   
content-length;content-type;host
    9         -
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
           9  +
9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6e

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

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