AWS SDK

AWS SDK

rev. 70d5de1d587e081d07172d43b793a8dec5268f4c

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.5.1", features = ["behavior-version-latest"] }
          27  +
    aws-config = { version= "1.5.2", 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 +34,34 @@
    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.5.1"
           4  +
version = "1.5.2"
    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   
[package.metadata.docs.rs]
   12     12   
all-features = true
   13     13   
targets = ["x86_64-unknown-linux-gnu"]
   14     14   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]

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"
   20     20   
   21     21   
[dependencies.aws-config]
   22     22   
path = ".."
   23         -
version = "1.5.1"
          23  +
version = "1.5.2"
   24     24   
   25     25   
[dependencies.aws-types]
   26     26   
path = "../../../sdk/build/aws-sdk/sdk/aws-types"
   27     27   
version = "1.3.1"
   28     28   
   29     29   
[workspace]
   30     30   
members = ["."]

tmp-codegen-diff/aws-sdk/sdk/aws-config/src/lib.rs

@@ -118,118 +233,245 @@
  138    138   
pub mod sso;
  139    139   
pub mod stalled_stream_protection;
  140    140   
pub mod sts;
  141    141   
pub mod timeout;
  142    142   
pub mod web_identity_token;
  143    143   
  144    144   
/// Create a config loader with the _latest_ defaults.
  145    145   
///
  146    146   
/// This loader will always set [`BehaviorVersion::latest`].
  147    147   
///
         148  +
/// For more information about default configuration, refer to the documentation at:
         149  +
/// <https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html>
         150  +
///
  148    151   
/// # Examples
  149    152   
/// ```no_run
  150    153   
/// # async fn create_config() {
  151    154   
/// let config = aws_config::from_env().region("us-east-1").load().await;
  152    155   
/// # }
  153    156   
/// ```
  154    157   
#[cfg(feature = "behavior-version-latest")]
  155    158   
pub fn from_env() -> ConfigLoader {
  156    159   
    ConfigLoader::default().behavior_version(BehaviorVersion::latest())
  157    160   
}
  158    161   
  159    162   
/// Load default configuration with the _latest_ defaults.
  160    163   
///
  161    164   
/// Convenience wrapper equivalent to `aws_config::load_defaults(BehaviorVersion::latest()).await`
         165  +
///
         166  +
/// For more information about default configuration, refer to the documentation at:
         167  +
/// <https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html>
  162    168   
#[cfg(feature = "behavior-version-latest")]
  163    169   
pub async fn load_from_env() -> SdkConfig {
  164    170   
    from_env().load().await
  165    171   
}
  166    172   
  167    173   
/// Create a config loader with the _latest_ defaults.
  168    174   
#[cfg(not(feature = "behavior-version-latest"))]
  169    175   
#[deprecated(
  170    176   
    note = "Use the `aws_config::defaults` function. If you don't care about future default behavior changes, you can continue to use this function by enabling the `behavior-version-latest` feature. Doing so will make this deprecation notice go away."
  171    177   
)]
  172    178   
pub fn from_env() -> ConfigLoader {
  173    179   
    ConfigLoader::default().behavior_version(BehaviorVersion::latest())
  174    180   
}
  175    181   
  176    182   
/// Load default configuration with the _latest_ defaults.
  177    183   
#[cfg(not(feature = "behavior-version-latest"))]
  178    184   
#[deprecated(
  179    185   
    note = "Use the `aws_config::load_defaults` function. If you don't care about future default behavior changes, you can continue to use this function by enabling the `behavior-version-latest` feature. Doing so will make this deprecation notice go away."
  180    186   
)]
  181    187   
pub async fn load_from_env() -> SdkConfig {
  182    188   
    load_defaults(BehaviorVersion::latest()).await
  183    189   
}
  184    190   
  185    191   
/// Create a config loader with the defaults for the given behavior version.
  186    192   
///
         193  +
/// For more information about default configuration, refer to the documentation at:
         194  +
/// <https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html>
         195  +
///
  187    196   
/// # Examples
  188    197   
/// ```no_run
  189    198   
/// # async fn create_config() {
  190    199   
/// use aws_config::BehaviorVersion;
  191    200   
/// let config = aws_config::defaults(BehaviorVersion::v2023_11_09())
  192    201   
///     .region("us-east-1")
  193    202   
///     .load()
  194    203   
///     .await;
  195    204   
/// # }
  196    205   
/// ```
  197    206   
pub fn defaults(version: BehaviorVersion) -> ConfigLoader {
  198    207   
    ConfigLoader::default().behavior_version(version)
  199    208   
}
  200    209   
  201    210   
/// Load default configuration with the given behavior version.
  202    211   
///
  203    212   
/// Convenience wrapper equivalent to `aws_config::defaults(behavior_version).load().await`
         213  +
///
         214  +
/// For more information about default configuration, refer to the documentation at:
         215  +
/// <https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html>
  204    216   
pub async fn load_defaults(version: BehaviorVersion) -> SdkConfig {
  205    217   
    defaults(version).load().await
  206    218   
}
  207    219   
  208    220   
mod loader {
  209    221   
    use crate::env_service_config::EnvServiceConfig;
  210    222   
    use aws_credential_types::provider::{
  211    223   
        token::{ProvideToken, SharedTokenProvider},
  212    224   
        ProvideCredentials, SharedCredentialsProvider,
  213    225   
    };

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

@@ -46,46 +92,92 @@
   66     66   
[dependencies.once_cell]
   67     67   
version = "1.16"
   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-config]
   75     75   
path = "../aws-config"
   76         -
version = "1.5.1"
          76  +
version = "1.5.2"
   77     77   
   78     78   
[dev-dependencies.aws-credential-types]
   79     79   
path = "../aws-credential-types"
   80     80   
features = ["test-util"]
   81     81   
version = "1.2.0"
   82     82   
   83     83   
[dev-dependencies.tokio]
   84     84   
version = "1.23.1"
   85     85   
features = ["macros", "test-util", "rt-multi-thread"]
   86     86   

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

@@ -44,44 +104,104 @@
   64     64   
[dependencies.once_cell]
   65     65   
version = "1.16"
   66     66   
   67     67   
[dependencies.regex-lite]
   68     68   
version = "0.1.5"
   69     69   
   70     70   
[dependencies.tracing]
   71     71   
version = "0.1"
   72     72   
[dev-dependencies.aws-config]
   73     73   
path = "../aws-config"
   74         -
version = "1.5.1"
          74  +
version = "1.5.2"
   75     75   
   76     76   
[dev-dependencies.aws-credential-types]
   77     77   
path = "../aws-credential-types"
   78     78   
features = ["test-util"]
   79     79   
version = "1.2.0"
   80     80   
   81     81   
[dev-dependencies.aws-runtime]
   82     82   
path = "../aws-runtime"
   83     83   
features = ["test-util"]
   84     84   
version = "1.2.3"

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

@@ -41,41 +87,87 @@
   61     61   
[dependencies.once_cell]
   62     62   
version = "1.16"
   63     63   
   64     64   
[dependencies.regex-lite]
   65     65   
version = "0.1.5"
   66     66   
   67     67   
[dependencies.tracing]
   68     68   
version = "0.1"
   69     69   
[dev-dependencies.aws-config]
   70     70   
path = "../aws-config"
   71         -
version = "1.5.1"
          71  +
version = "1.5.2"
   72     72   
   73     73   
[dev-dependencies.aws-credential-types]
   74     74   
path = "../aws-credential-types"
   75     75   
features = ["test-util"]
   76     76   
version = "1.2.0"
   77     77   
   78     78   
[dev-dependencies.tokio]
   79     79   
version = "1.23.1"
   80     80   
features = ["macros", "test-util", "rt-multi-thread"]
   81     81   

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

@@ -47,47 +107,107 @@
   67     67   
[dependencies.regex-lite]
   68     68   
version = "0.1.5"
   69     69   
   70     70   
[dependencies.tracing]
   71     71   
version = "0.1"
   72     72   
[dev-dependencies.approx]
   73     73   
version = "0.5.1"
   74     74   
   75     75   
[dev-dependencies.aws-config]
   76     76   
path = "../aws-config"
   77         -
version = "1.5.1"
          77  +
version = "1.5.2"
   78     78   
   79     79   
[dev-dependencies.aws-credential-types]
   80     80   
path = "../aws-credential-types"
   81     81   
features = ["test-util"]
   82     82   
version = "1.2.0"
   83     83   
   84     84   
[dev-dependencies.aws-runtime]
   85     85   
path = "../aws-runtime"
   86     86   
features = ["test-util"]
   87     87   
version = "1.2.3"

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

@@ -49,49 +109,109 @@
   69     69   
[dependencies.once_cell]
   70     70   
version = "1.16"
   71     71   
   72     72   
[dependencies.regex-lite]
   73     73   
version = "0.1.5"
   74     74   
   75     75   
[dependencies.tracing]
   76     76   
version = "0.1"
   77     77   
[dev-dependencies.aws-config]
   78     78   
path = "../aws-config"
   79         -
version = "1.5.1"
          79  +
version = "1.5.2"
   80     80   
   81     81   
[dev-dependencies.aws-credential-types]
   82     82   
path = "../aws-credential-types"
   83     83   
features = ["test-util"]
   84     84   
version = "1.2.0"
   85     85   
   86     86   
[dev-dependencies.aws-runtime]
   87     87   
path = "../aws-runtime"
   88     88   
features = ["test-util"]
   89     89   
version = "1.2.3"

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

@@ -44,44 +90,90 @@
   64     64   
[dependencies.once_cell]
   65     65   
version = "1.16"
   66     66   
   67     67   
[dependencies.regex-lite]
   68     68   
version = "0.1.5"
   69     69   
   70     70   
[dependencies.tracing]
   71     71   
version = "0.1"
   72     72   
[dev-dependencies.aws-config]
   73     73   
path = "../aws-config"
   74         -
version = "1.5.1"
          74  +
version = "1.5.2"
   75     75   
   76     76   
[dev-dependencies.aws-credential-types]
   77     77   
path = "../aws-credential-types"
   78     78   
features = ["test-util"]
   79     79   
version = "1.2.0"
   80     80   
   81     81   
[dev-dependencies.tokio]
   82     82   
version = "1.23.1"
   83     83   
features = ["macros", "test-util", "rt-multi-thread"]
   84     84   

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

@@ -51,51 +111,111 @@
   71     71   
[dependencies.regex-lite]
   72     72   
version = "0.1.5"
   73     73   
   74     74   
[dependencies.ring]
   75     75   
version = "0.17.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.5.1"
          81  +
version = "1.5.2"
   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.0"
   87     87   
   88     88   
[dev-dependencies.aws-runtime]
   89     89   
path = "../aws-runtime"
   90     90   
features = ["test-util"]
   91     91   
version = "1.2.3"

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

@@ -46,46 +106,106 @@
   66     66   
[dependencies.once_cell]
   67     67   
version = "1.16"
   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-config]
   75     75   
path = "../aws-config"
   76         -
version = "1.5.1"
          76  +
version = "1.5.2"
   77     77   
   78     78   
[dev-dependencies.aws-credential-types]
   79     79   
path = "../aws-credential-types"
   80     80   
features = ["test-util"]
   81     81   
version = "1.2.0"
   82     82   
   83     83   
[dev-dependencies.aws-runtime]
   84     84   
path = "../aws-runtime"
   85     85   
features = ["test-util"]
   86     86   
version = "1.2.3"

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

@@ -41,41 +101,101 @@
   61     61   
[dependencies.once_cell]
   62     62   
version = "1.16"
   63     63   
   64     64   
[dependencies.regex-lite]
   65     65   
version = "0.1.5"
   66     66   
   67     67   
[dependencies.tracing]
   68     68   
version = "0.1"
   69     69   
[dev-dependencies.aws-config]
   70     70   
path = "../aws-config"
   71         -
version = "1.5.1"
          71  +
version = "1.5.2"
   72     72   
   73     73   
[dev-dependencies.aws-credential-types]
   74     74   
path = "../aws-credential-types"
   75     75   
features = ["test-util"]
   76     76   
version = "1.2.0"
   77     77   
   78     78   
[dev-dependencies.aws-runtime]
   79     79   
path = "../aws-runtime"
   80     80   
features = ["test-util"]
   81     81   
version = "1.2.3"

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

@@ -47,47 +107,107 @@
   67     67   
[dependencies.once_cell]
   68     68   
version = "1.16"
   69     69   
   70     70   
[dependencies.regex-lite]
   71     71   
version = "0.1.5"
   72     72   
   73     73   
[dependencies.tracing]
   74     74   
version = "0.1"
   75     75   
[dev-dependencies.aws-config]
   76     76   
path = "../aws-config"
   77         -
version = "1.5.1"
          77  +
version = "1.5.2"
   78     78   
   79     79   
[dev-dependencies.aws-credential-types]
   80     80   
path = "../aws-credential-types"
   81     81   
features = ["test-util"]
   82     82   
version = "1.2.0"
   83     83   
   84     84   
[dev-dependencies.aws-runtime]
   85     85   
path = "../aws-runtime"
   86     86   
features = ["test-util"]
   87     87   
version = "1.2.3"

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

@@ -45,45 +105,105 @@
   65     65   
[dependencies.once_cell]
   66     66   
version = "1.16"
   67     67   
   68     68   
[dependencies.regex-lite]
   69     69   
version = "0.1.5"
   70     70   
   71     71   
[dependencies.tracing]
   72     72   
version = "0.1"
   73     73   
[dev-dependencies.aws-config]
   74     74   
path = "../aws-config"
   75         -
version = "1.5.1"
          75  +
version = "1.5.2"
   76     76   
   77     77   
[dev-dependencies.aws-credential-types]
   78     78   
path = "../aws-credential-types"
   79     79   
features = ["test-util"]
   80     80   
version = "1.2.0"
   81     81   
   82     82   
[dev-dependencies.aws-runtime]
   83     83   
path = "../aws-runtime"
   84     84   
features = ["test-util"]
   85     85   
version = "1.2.3"