AWS SDK

AWS SDK

rev. 9a692ca8bdd6cc7cbeeceac222acfc853743ccf8 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/README.md

@@ -1,1 +57,57 @@
   17     17   
   18     18   
> For a step-by-step guide including several advanced use cases, check out the [Developer Guide](https://docs.aws.amazon.com/sdk-for-rust/latest/dg/welcome.html).
   19     19   
   20     20   
The SDK provides one crate per AWS service. You must add [Tokio](https://crates.io/crates/tokio) as a dependency within your Rust project to execute asynchronous code.
   21     21   
   22     22   
1. Create a new Rust project: `cargo new sdk-example`
   23     23   
2. Add dependencies to DynamoDB and Tokio to your **Cargo.toml** file:
   24     24   
   25     25   
    ```toml
   26     26   
    [dependencies]
   27         -
    aws-config = { version= "1.8.15", features = ["behavior-version-latest"] }
          27  +
    aws-config = { version= "1.8.14", features = ["behavior-version-latest"] }
   28     28   
    aws-sdk-dynamodb = "0.0.0-local"
   29     29   
    tokio = { version = "1", features = ["full"] }
   30     30   
    ```
   31     31   
   32     32   
3. Provide your AWS credentials with the default credential provider chain, which currently looks in:
   33     33   
   - Environment variables: `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, and `AWS_REGION`
   34     34   
   - The default credentials files located in `~/.aws/config` and `~/.aws/credentials` (location can vary per platform)
   35     35   
   - Web Identity Token credentials from the environment or container (including EKS)
   36     36   
   - ECS Container Credentials (IAM roles for tasks)
   37     37   
   - EC2 Instance Metadata Service (IAM Roles attached to instance)

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

@@ -1,1 +61,61 @@
    1      1   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
[package]
    3      3   
name = "aws-config"
    4         -
version = "1.8.15"
           4  +
version = "1.8.14"
    5      5   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
    6      6   
description = "AWS SDK config and credential provider implementations."
    7      7   
edition = "2021"
    8      8   
exclude = ["test-data/*", "integration-tests/*"]
    9      9   
license = "Apache-2.0"
   10     10   
repository = "https://github.com/smithy-lang/smithy-rs"
   11     11   
rust-version = "1.91"
   12     12   
[package.metadata.docs.rs]
   13     13   
all-features = true
   14     14   
targets = ["x86_64-unknown-linux-gnu"]
   15     15   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   16     16   
rustdoc-args = ["--cfg", "docsrs"]
   17     17   
   18     18   
[package.metadata.smithy-rs-release-tooling]
   19     19   
stable = true
   20     20   
[package.metadata.cargo-udeps.ignore]
   21     21   
normal = ["proc-macro2"]
   22     22   
   23     23   
[features]
   24     24   
behavior-version-latest = []
   25     25   
credentials-process = ["tokio/process"]
   26     26   
default = ["default-https-client", "rt-tokio", "credentials-process", "sso"]
   27     27   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-runtime/rt-tokio", "tokio/rt"]
   28     28   
client-hyper = ["aws-smithy-runtime/default-https-client"]
   29     29   
rustls = ["client-hyper"]
   30     30   
default-https-client = ["aws-smithy-runtime/default-https-client"]
   31         -
sso = ["dep:aws-sdk-sso", "dep:aws-sdk-ssooidc", "dep:sha1", "dep:hex", "dep:zeroize", "aws-smithy-runtime-api/http-auth"]
          31  +
sso = ["dep:aws-sdk-sso", "dep:aws-sdk-ssooidc", "dep:ring", "dep:hex", "dep:zeroize", "aws-smithy-runtime-api/http-auth"]
   32     32   
credentials-login = ["dep:aws-sdk-signin", "dep:sha2", "dep:zeroize", "dep:hex", "dep:base64-simd", "dep:uuid", "uuid?/v4", "dep:p256", "p256?/arithmetic", "p256?/pem", "dep:rand"]
   33     33   
test-util = ["aws-runtime/test-util"]
   34     34   
allow-compilation = []
   35     35   
   36     36   
[dependencies]
   37     37   
bytes = "1.1.0"
   38     38   
http = "1"
   39     39   
url = "2.5.4"
   40     40   
fastrand = "2.3.0"
   41     41   
@@ -73,73 +134,134 @@
   93     93   
   94     94   
[dependencies.tracing]
   95     95   
version = "0.1"
   96     96   
   97     97   
[dependencies.aws-sdk-sso]
   98     98   
path = "../sso"
   99     99   
default-features = false
  100    100   
optional = true
  101    101   
version = "0.0.0-local"
  102    102   
  103         -
[dependencies.sha1]
  104         -
version = "0.10"
         103  +
[dependencies.ring]
         104  +
version = "0.17.5"
  105    105   
optional = true
  106    106   
  107    107   
[dependencies.hex]
  108    108   
version = "0.4.3"
  109    109   
optional = true
  110    110   
  111    111   
[dependencies.zeroize]
  112    112   
version = "1"
  113    113   
optional = true
  114    114   

tmp-codegen-diff/aws-sdk/sdk/aws-config/fuzz/Cargo.toml

@@ -1,1 +30,30 @@
   13     13   
edition = "2021"
   14     14   
   15     15   
[package.metadata]
   16     16   
cargo-fuzz = true
   17     17   
   18     18   
[dependencies]
   19     19   
libfuzzer-sys = "=0.4.7"
   20     20   
   21     21   
[dependencies.aws-config]
   22     22   
path = ".."
   23         -
version = "1.8.15"
          23  +
version = "1.8.14"
   24     24   
   25     25   
[dependencies.aws-types]
   26     26   
path = "../../../sdk/build/aws-sdk/sdk/aws-types"
   27     27   
version = "1.3.13"
   28     28   
   29     29   
[workspace]
   30     30   
members = ["."]

tmp-codegen-diff/aws-sdk/sdk/aws-config/src/sso/cache.rs

@@ -1,1 +44,44 @@
    4      4   
 */
    5      5   
    6      6   
use aws_runtime::fs_util::{home_dir, Os};
    7      7   
use aws_smithy_json::deserialize::token::skip_value;
    8      8   
use aws_smithy_json::deserialize::Token;
    9      9   
use aws_smithy_json::deserialize::{json_token_iter, EscapeError};
   10     10   
use aws_smithy_json::serialize::JsonObjectWriter;
   11     11   
use aws_smithy_types::date_time::{DateTimeFormatError, Format};
   12     12   
use aws_smithy_types::DateTime;
   13     13   
use aws_types::os_shim_internal::{Env, Fs};
   14         -
use sha1::{Digest, Sha1};
          14  +
use ring::digest;
   15     15   
use std::borrow::Cow;
   16     16   
use std::error::Error as StdError;
   17     17   
use std::fmt;
   18     18   
use std::path::PathBuf;
   19     19   
use std::time::SystemTime;
   20     20   
use zeroize::Zeroizing;
   21     21   
   22     22   
#[cfg_attr(test, derive(Eq, PartialEq))]
   23     23   
#[derive(Clone)]
   24     24   
pub(super) struct CachedSsoToken {
@@ -113,113 +173,176 @@
  133    133   
}
  134    134   
  135    135   
/// Determine the SSO cached token path for a given identifier.
  136    136   
///
  137    137   
/// The `identifier` is the `sso_start_url` for credentials providers, and `sso_session_name` for token providers.
  138    138   
fn cached_token_path(identifier: &str, home: &str) -> PathBuf {
  139    139   
    // hex::encode returns a lowercase string
  140    140   
    let mut out = PathBuf::with_capacity(home.len() + "/.aws/sso/cache".len() + ".json".len() + 40);
  141    141   
    out.push(home);
  142    142   
    out.push(".aws/sso/cache");
  143         -
    out.push(hex::encode(Sha1::digest(identifier.as_bytes())));
         143  +
    out.push(hex::encode(digest::digest(
         144  +
        &digest::SHA1_FOR_LEGACY_USE_ONLY,
         145  +
        identifier.as_bytes(),
         146  +
    )));
  144    147   
    out.set_extension("json");
  145    148   
    out
  146    149   
}
  147    150   
  148    151   
/// Load the token for `identifier` from `~/.aws/sso/cache/<hashofidentifier>.json`
  149    152   
///
  150    153   
/// The `identifier` is the `sso_start_url` for credentials providers, and `sso_session_name` for token providers.
  151    154   
pub(super) async fn load_cached_token(
  152    155   
    env: &Env,
  153    156   
    fs: &Fs,

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

@@ -64,64 +124,124 @@
   84     84   
[dependencies.http-body-util]
   85     85   
version = "0.1.3"
   86     86   
   87     87   
[dependencies.regex-lite]
   88     88   
version = "0.1.5"
   89     89   
   90     90   
[dependencies.tracing]
   91     91   
version = "0.1"
   92     92   
[dev-dependencies.aws-config]
   93     93   
path = "../aws-config"
   94         -
version = "1.8.15"
          94  +
version = "1.8.14"
   95     95   
   96     96   
[dev-dependencies.aws-credential-types]
   97     97   
path = "../aws-credential-types"
   98     98   
features = ["test-util"]
   99     99   
version = "1.2.13"
  100    100   
  101    101   
[dev-dependencies.aws-runtime]
  102    102   
path = "../aws-runtime"
  103    103   
features = ["test-util"]
  104    104   
version = "1.7.1"

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

@@ -57,57 +117,117 @@
   77     77   
version = "1"
   78     78   
package = "http"
   79     79   
   80     80   
[dependencies.regex-lite]
   81     81   
version = "0.1.5"
   82     82   
   83     83   
[dependencies.tracing]
   84     84   
version = "0.1"
   85     85   
[dev-dependencies.aws-config]
   86     86   
path = "../aws-config"
   87         -
version = "1.8.15"
          87  +
version = "1.8.14"
   88     88   
   89     89   
[dev-dependencies.aws-credential-types]
   90     90   
path = "../aws-credential-types"
   91     91   
features = ["test-util"]
   92     92   
version = "1.2.13"
   93     93   
   94     94   
[dev-dependencies.aws-runtime]
   95     95   
path = "../aws-runtime"
   96     96   
features = ["test-util"]
   97     97   
version = "1.7.1"

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

@@ -51,51 +111,111 @@
   71     71   
version = "1"
   72     72   
package = "http"
   73     73   
   74     74   
[dependencies.regex-lite]
   75     75   
version = "0.1.5"
   76     76   
   77     77   
[dependencies.tracing]
   78     78   
version = "0.1"
   79     79   
[dev-dependencies.aws-config]
   80     80   
path = "../aws-config"
   81         -
version = "1.8.15"
          81  +
version = "1.8.14"
   82     82   
   83     83   
[dev-dependencies.aws-credential-types]
   84     84   
path = "../aws-credential-types"
   85     85   
features = ["test-util"]
   86     86   
version = "1.2.13"
   87     87   
   88     88   
[dev-dependencies.aws-runtime]
   89     89   
path = "../aws-runtime"
   90     90   
features = ["test-util"]
   91     91   
version = "1.7.1"

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

@@ -51,51 +102,102 @@
   71     71   
version = "1"
   72     72   
package = "http"
   73     73   
   74     74   
[dependencies.regex-lite]
   75     75   
version = "0.1.5"
   76     76   
   77     77   
[dependencies.tracing]
   78     78   
version = "0.1"
   79     79   
[dev-dependencies.aws-config]
   80     80   
path = "../aws-config"
   81         -
version = "1.8.15"
          81  +
version = "1.8.14"
   82     82   
   83     83   
[dev-dependencies.aws-credential-types]
   84     84   
path = "../aws-credential-types"
   85     85   
features = ["test-util"]
   86     86   
version = "1.2.13"
   87     87   
   88     88   
[dev-dependencies.proptest]
   89     89   
version = "1"
   90     90   
   91     91   
[dev-dependencies.tokio]

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

@@ -54,54 +114,114 @@
   74     74   
[dependencies.regex-lite]
   75     75   
version = "0.1.5"
   76     76   
   77     77   
[dependencies.tracing]
   78     78   
version = "0.1"
   79     79   
[dev-dependencies.approx]
   80     80   
version = "0.5.1"
   81     81   
   82     82   
[dev-dependencies.aws-config]
   83     83   
path = "../aws-config"
   84         -
version = "1.8.15"
          84  +
version = "1.8.14"
   85     85   
   86     86   
[dev-dependencies.aws-credential-types]
   87     87   
path = "../aws-credential-types"
   88     88   
features = ["test-util"]
   89     89   
version = "1.2.13"
   90     90   
   91     91   
[dev-dependencies.aws-runtime]
   92     92   
path = "../aws-runtime"
   93     93   
features = ["test-util"]
   94     94   
version = "1.7.1"

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

@@ -56,56 +116,116 @@
   76     76   
version = "1"
   77     77   
package = "http"
   78     78   
   79     79   
[dependencies.regex-lite]
   80     80   
version = "0.1.5"
   81     81   
   82     82   
[dependencies.tracing]
   83     83   
version = "0.1"
   84     84   
[dev-dependencies.aws-config]
   85     85   
path = "../aws-config"
   86         -
version = "1.8.15"
          86  +
version = "1.8.14"
   87     87   
   88     88   
[dev-dependencies.aws-credential-types]
   89     89   
path = "../aws-credential-types"
   90     90   
features = ["test-util"]
   91     91   
version = "1.2.13"
   92     92   
   93     93   
[dev-dependencies.aws-runtime]
   94     94   
path = "../aws-runtime"
   95     95   
features = ["test-util"]
   96     96   
version = "1.7.1"

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

@@ -51,51 +102,102 @@
   71     71   
version = "1"
   72     72   
package = "http"
   73     73   
   74     74   
[dependencies.regex-lite]
   75     75   
version = "0.1.5"
   76     76   
   77     77   
[dependencies.tracing]
   78     78   
version = "0.1"
   79     79   
[dev-dependencies.aws-config]
   80     80   
path = "../aws-config"
   81         -
version = "1.8.15"
          81  +
version = "1.8.14"
   82     82   
   83     83   
[dev-dependencies.aws-credential-types]
   84     84   
path = "../aws-credential-types"
   85     85   
features = ["test-util"]
   86     86   
version = "1.2.13"
   87     87   
   88     88   
[dev-dependencies.proptest]
   89     89   
version = "1"
   90     90   
   91     91   
[dev-dependencies.tokio]

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

@@ -61,61 +121,121 @@
   81     81   
[dependencies.regex-lite]
   82     82   
version = "0.1.5"
   83     83   
   84     84   
[dependencies.ring]
   85     85   
version = "0.17.5"
   86     86   
   87     87   
[dependencies.tracing]
   88     88   
version = "0.1"
   89     89   
[dev-dependencies.aws-config]
   90     90   
path = "../aws-config"
   91         -
version = "1.8.15"
          91  +
version = "1.8.14"
   92     92   
   93     93   
[dev-dependencies.aws-credential-types]
   94     94   
path = "../aws-credential-types"
   95     95   
features = ["test-util"]
   96     96   
version = "1.2.13"
   97     97   
   98     98   
[dev-dependencies.aws-runtime]
   99     99   
path = "../aws-runtime"
  100    100   
features = ["test-util"]
  101    101   
version = "1.7.1"

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

@@ -56,56 +116,116 @@
   76     76   
version = "1"
   77     77   
package = "http"
   78     78   
   79     79   
[dependencies.regex-lite]
   80     80   
version = "0.1.5"
   81     81   
   82     82   
[dependencies.tracing]
   83     83   
version = "0.1"
   84     84   
[dev-dependencies.aws-config]
   85     85   
path = "../aws-config"
   86         -
version = "1.8.15"
          86  +
version = "1.8.14"
   87     87   
   88     88   
[dev-dependencies.aws-credential-types]
   89     89   
path = "../aws-credential-types"
   90     90   
features = ["test-util"]
   91     91   
version = "1.2.13"
   92     92   
   93     93   
[dev-dependencies.aws-runtime]
   94     94   
path = "../aws-runtime"
   95     95   
features = ["test-util"]
   96     96   
version = "1.7.1"

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

@@ -51,51 +111,111 @@
   71     71   
version = "1"
   72     72   
package = "http"
   73     73   
   74     74   
[dependencies.regex-lite]
   75     75   
version = "0.1.5"
   76     76   
   77     77   
[dependencies.tracing]
   78     78   
version = "0.1"
   79     79   
[dev-dependencies.aws-config]
   80     80   
path = "../aws-config"
   81         -
version = "1.8.15"
          81  +
version = "1.8.14"
   82     82   
   83     83   
[dev-dependencies.aws-credential-types]
   84     84   
path = "../aws-credential-types"
   85     85   
features = ["test-util"]
   86     86   
version = "1.2.13"
   87     87   
   88     88   
[dev-dependencies.aws-runtime]
   89     89   
path = "../aws-runtime"
   90     90   
features = ["test-util"]
   91     91   
version = "1.7.1"

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

@@ -57,57 +117,117 @@
   77     77   
version = "1"
   78     78   
package = "http"
   79     79   
   80     80   
[dependencies.regex-lite]
   81     81   
version = "0.1.5"
   82     82   
   83     83   
[dependencies.tracing]
   84     84   
version = "0.1"
   85     85   
[dev-dependencies.aws-config]
   86     86   
path = "../aws-config"
   87         -
version = "1.8.15"
          87  +
version = "1.8.14"
   88     88   
   89     89   
[dev-dependencies.aws-credential-types]
   90     90   
path = "../aws-credential-types"
   91     91   
features = ["test-util"]
   92     92   
version = "1.2.13"
   93     93   
   94     94   
[dev-dependencies.aws-runtime]
   95     95   
path = "../aws-runtime"
   96     96   
features = ["test-util"]
   97     97   
version = "1.7.1"