AWS SDK

AWS SDK

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