AWS SDK

AWS SDK

rev. d4cf8723f87e3eeea43ec509b72d8fc04e50d452 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/tests/no_auth.rs

@@ -1,1 +41,42 @@
    2      2   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3      3   
 * SPDX-License-Identifier: Apache-2.0
    4      4   
 */
    5      5   
    6      6   
use aws_sdk_s3::config::Region;
    7      7   
use aws_sdk_s3::{Client, Config};
    8      8   
use aws_smithy_http_client::test_util::capture_request;
    9      9   
use aws_smithy_http_client::test_util::dvr::ReplayingClient;
   10     10   
use aws_smithy_runtime::client::auth::no_auth::NO_AUTH_SCHEME_ID;
   11     11   
use aws_smithy_runtime::test_util::capture_test_logs::capture_test_logs;
          12  +
use aws_smithy_runtime_api::client::auth::AuthSchemeId;
   12     13   
   13     14   
#[tokio::test]
   14     15   
async fn list_objects() {
   15     16   
    let _logs = capture_test_logs();
   16     17   
   17     18   
    let http_client = ReplayingClient::from_file("tests/data/no_auth/list-objects.json").unwrap();
   18     19   
    let config = aws_config::from_env()
   19     20   
        .http_client(http_client.clone())
   20     21   
        .no_credentials()
   21     22   
        .region("us-east-1")
@@ -133,134 +0,190 @@
  153    154   
            .bucket("doesnotmatter")
  154    155   
            .send()
  155    156   
            .await
  156    157   
    );
  157    158   
  158    159   
    assert!(logs_contain(&format!(
  159    160   
        "resolving identity scheme_id=AuthSchemeId {{ scheme_id: \"{auth_scheme_id_str}\" }}",
  160    161   
        auth_scheme_id_str = NO_AUTH_SCHEME_ID.inner(),
  161    162   
    )));
  162    163   
}
         164  +
         165  +
#[tracing_test::traced_test]
         166  +
#[tokio::test]
         167  +
async fn auth_scheme_preference_specifying_legacy_no_auth_scheme_id_should_be_supported() {
         168  +
    let (http_client, _) = capture_request(None);
         169  +
    let conf = Config::builder()
         170  +
        .http_client(http_client)
         171  +
        .region(Region::new("us-east-2"))
         172  +
        .with_test_defaults()
         173  +
        .auth_scheme_preference([AuthSchemeId::from("no_auth")])
         174  +
        .build();
         175  +
    let client = Client::from_conf(conf);
         176  +
    let _ = client
         177  +
        .get_object()
         178  +
        .bucket("arn:aws:s3::123456789012:accesspoint/mfzwi23gnjvgw.mrap")
         179  +
        .key("doesnotmatter")
         180  +
        .send()
         181  +
        .await;
         182  +
         183  +
    // What should appear in the log is the updated no auth scheme ID, not the legacy one.
         184  +
    // The legacy no auth scheme ID passed to the auth scheme preference merely reprioritizes
         185  +
    // ones supported in the runtime, which should contain the updated no auth scheme ID.
         186  +
    assert!(logs_contain(&format!(
         187  +
        "resolving identity scheme_id=AuthSchemeId {{ scheme_id: \"{auth_scheme_id_str}\" }}",
         188  +
        auth_scheme_id_str = NO_AUTH_SCHEME_ID.inner(),
         189  +
    )));
         190  +
}

tmp-codegen-diff/aws-sdk/sdk/s3control/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.8.4"
          45  +
version = "1.8.5"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49     49   
version = "1.3.2"
   50     50   
   51     51   
[dependencies.aws-smithy-xml]
   52     52   
path = "../aws-smithy-xml"
   53     53   
version = "0.60.10"
   54     54   
   55     55   
[dependencies.aws-types]
@@ -82,82 +142,142 @@
  102    102   
version = "0.63.4"
  103    103   
  104    104   
[dev-dependencies.aws-smithy-runtime]
  105    105   
path = "../aws-smithy-runtime"
  106    106   
features = ["test-util"]
  107    107   
version = "1.8.5"
  108    108   
  109    109   
[dev-dependencies.aws-smithy-runtime-api]
  110    110   
path = "../aws-smithy-runtime-api"
  111    111   
features = ["test-util"]
  112         -
version = "1.8.4"
         112  +
version = "1.8.5"
  113    113   
  114    114   
[dev-dependencies.aws-smithy-types]
  115    115   
path = "../aws-smithy-types"
  116    116   
features = ["test-util"]
  117    117   
version = "1.3.2"
  118    118   
  119    119   
[dev-dependencies.futures-util]
  120    120   
version = "0.3.25"
  121    121   
features = ["alloc"]
  122    122   
default-features = false

tmp-codegen-diff/aws-sdk/sdk/sso/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.8.4"
          45  +
version = "1.8.5"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49     49   
version = "1.3.2"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53     53   
version = "1.3.8"
   54     54   
   55     55   
[dependencies.bytes]

tmp-codegen-diff/aws-sdk/sdk/ssooidc/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.8.4"
          45  +
version = "1.8.5"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49     49   
version = "1.3.2"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53     53   
version = "1.3.8"
   54     54   
   55     55   
[dependencies.bytes]

tmp-codegen-diff/aws-sdk/sdk/sts/Cargo.toml

@@ -19,19 +136,136 @@
   39     39   
version = "0.60.7"
   40     40   
   41     41   
[dependencies.aws-smithy-runtime]
   42     42   
path = "../aws-smithy-runtime"
   43     43   
features = ["client"]
   44     44   
version = "1.8.5"
   45     45   
   46     46   
[dependencies.aws-smithy-runtime-api]
   47     47   
path = "../aws-smithy-runtime-api"
   48     48   
features = ["client", "http-02x"]
   49         -
version = "1.8.4"
          49  +
version = "1.8.5"
   50     50   
   51     51   
[dependencies.aws-smithy-types]
   52     52   
path = "../aws-smithy-types"
   53     53   
version = "1.3.2"
   54     54   
   55     55   
[dependencies.aws-smithy-xml]
   56     56   
path = "../aws-smithy-xml"
   57     57   
version = "0.60.10"
   58     58   
   59     59   
[dependencies.aws-types]
   60     60   
path = "../aws-types"
   61     61   
version = "1.3.8"
   62     62   
   63     63   
[dependencies.fastrand]
   64     64   
version = "2.0.0"
   65     65   
   66     66   
[dependencies.http]
   67     67   
version = "0.2.9"
   68     68   
   69     69   
[dependencies.regex-lite]
   70     70   
version = "0.1.5"
   71     71   
   72     72   
[dependencies.tracing]
   73     73   
version = "0.1"
   74     74   
[dev-dependencies.aws-credential-types]
   75     75   
path = "../aws-credential-types"
   76     76   
features = ["test-util"]
   77     77   
version = "1.2.4"
   78     78   
   79     79   
[dev-dependencies.aws-runtime]
   80     80   
path = "../aws-runtime"
   81     81   
features = ["test-util"]
   82     82   
version = "1.5.9"
   83     83   
   84     84   
[dev-dependencies.aws-smithy-async]
   85     85   
path = "../aws-smithy-async"
   86     86   
features = ["test-util"]
   87     87   
version = "1.2.5"
   88     88   
   89     89   
[dev-dependencies.aws-smithy-http-client]
   90     90   
path = "../aws-smithy-http-client"
   91     91   
features = ["test-util", "wire-mock"]
   92     92   
version = "1.0.6"
   93     93   
   94     94   
[dev-dependencies.aws-smithy-protocol-test]
   95     95   
path = "../aws-smithy-protocol-test"
   96     96   
version = "0.63.4"
   97     97   
   98     98   
[dev-dependencies.aws-smithy-runtime]
   99     99   
path = "../aws-smithy-runtime"
  100    100   
features = ["test-util"]
  101    101   
version = "1.8.5"
  102    102   
  103    103   
[dev-dependencies.aws-smithy-runtime-api]
  104    104   
path = "../aws-smithy-runtime-api"
  105    105   
features = ["test-util"]
  106         -
version = "1.8.4"
         106  +
version = "1.8.5"
  107    107   
  108    108   
[dev-dependencies.aws-smithy-types]
  109    109   
path = "../aws-smithy-types"
  110    110   
features = ["test-util"]
  111    111   
version = "1.3.2"
  112    112   
  113    113   
[dev-dependencies.futures-util]
  114    114   
version = "0.3.25"
  115    115   
features = ["alloc"]
  116    116   
default-features = false

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.8.4"
          45  +
version = "1.8.5"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49     49   
version = "1.3.2"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53     53   
version = "1.3.8"
   54     54   
   55     55   
[dependencies.bytes]
@@ -79,79 +139,139 @@
   99     99   
version = "0.63.4"
  100    100   
  101    101   
[dev-dependencies.aws-smithy-runtime]
  102    102   
path = "../aws-smithy-runtime"
  103    103   
features = ["test-util"]
  104    104   
version = "1.8.5"
  105    105   
  106    106   
[dev-dependencies.aws-smithy-runtime-api]
  107    107   
path = "../aws-smithy-runtime-api"
  108    108   
features = ["test-util"]
  109         -
version = "1.8.4"
         109  +
version = "1.8.5"
  110    110   
  111    111   
[dev-dependencies.aws-smithy-types]
  112    112   
path = "../aws-smithy-types"
  113    113   
features = ["test-util"]
  114    114   
version = "1.3.2"
  115    115   
  116    116   
[dev-dependencies.futures-util]
  117    117   
version = "0.3.25"
  118    118   
features = ["alloc"]
  119    119   
default-features = false

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
version = "0.61.4"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.8.5"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45         -
version = "1.8.4"
          45  +
version = "1.8.5"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49     49   
version = "1.3.2"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53     53   
version = "1.3.8"
   54     54   
   55     55   
[dependencies.bytes]

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml

@@ -25,25 +85,85 @@
   45     45   
version = "0.61.4"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime]
   48     48   
path = "../aws-smithy-runtime"
   49     49   
features = ["client"]
   50     50   
version = "1.8.5"
   51     51   
   52     52   
[dependencies.aws-smithy-runtime-api]
   53     53   
path = "../aws-smithy-runtime-api"
   54     54   
features = ["client", "http-02x"]
   55         -
version = "1.8.4"
          55  +
version = "1.8.5"
   56     56   
   57     57   
[dependencies.aws-smithy-types]
   58     58   
path = "../aws-smithy-types"
   59     59   
features = ["http-body-0-4-x"]
   60     60   
version = "1.3.2"
   61     61   
   62     62   
[dependencies.aws-types]
   63     63   
path = "../aws-types"
   64     64   
version = "1.3.8"
   65     65   
@@ -98,98 +158,158 @@
  118    118   
version = "0.63.4"
  119    119   
  120    120   
[dev-dependencies.aws-smithy-runtime]
  121    121   
path = "../aws-smithy-runtime"
  122    122   
features = ["test-util"]
  123    123   
version = "1.8.5"
  124    124   
  125    125   
[dev-dependencies.aws-smithy-runtime-api]
  126    126   
path = "../aws-smithy-runtime-api"
  127    127   
features = ["test-util"]
  128         -
version = "1.8.4"
         128  +
version = "1.8.5"
  129    129   
  130    130   
[dev-dependencies.aws-smithy-types]
  131    131   
path = "../aws-smithy-types"
  132    132   
features = ["test-util"]
  133    133   
version = "1.3.2"
  134    134   
  135    135   
[dev-dependencies.futures-core]
  136    136   
version = "0.3.25"
  137    137   
  138    138   
[dev-dependencies.futures-util]