AWS SDK

AWS SDK

rev. 98195e4389bf2374d96cac5ea9d28300ec0ce538

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.2", features = ["behavior-version-latest"] }
          27  +
    aws-config = { version= "1.5.1", 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.2"
           4  +
version = "1.5.1"
    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.2"
          23  +
version = "1.5.1"
   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 +241,233 @@
  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 AWS SDKs and Tools [shared configuration documentation](https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html).
  149         -
///
  150    148   
/// # Examples
  151    149   
/// ```no_run
  152    150   
/// # async fn create_config() {
  153    151   
/// let config = aws_config::from_env().region("us-east-1").load().await;
  154    152   
/// # }
  155    153   
/// ```
  156    154   
#[cfg(feature = "behavior-version-latest")]
  157    155   
pub fn from_env() -> ConfigLoader {
  158    156   
    ConfigLoader::default().behavior_version(BehaviorVersion::latest())
  159    157   
}
  160    158   
  161    159   
/// Load default configuration with the _latest_ defaults.
  162    160   
///
  163    161   
/// Convenience wrapper equivalent to `aws_config::load_defaults(BehaviorVersion::latest()).await`
  164         -
///
  165         -
/// For more information about default configuration, refer to the AWS SDKs and Tools [shared configuration documentation](https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html).
  166    162   
#[cfg(feature = "behavior-version-latest")]
  167    163   
pub async fn load_from_env() -> SdkConfig {
  168    164   
    from_env().load().await
  169    165   
}
  170    166   
  171    167   
/// Create a config loader with the _latest_ defaults.
  172    168   
#[cfg(not(feature = "behavior-version-latest"))]
  173    169   
#[deprecated(
  174    170   
    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."
  175    171   
)]
  176    172   
pub fn from_env() -> ConfigLoader {
  177    173   
    ConfigLoader::default().behavior_version(BehaviorVersion::latest())
  178    174   
}
  179    175   
  180    176   
/// Load default configuration with the _latest_ defaults.
  181    177   
#[cfg(not(feature = "behavior-version-latest"))]
  182    178   
#[deprecated(
  183    179   
    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."
  184    180   
)]
  185    181   
pub async fn load_from_env() -> SdkConfig {
  186    182   
    load_defaults(BehaviorVersion::latest()).await
  187    183   
}
  188    184   
  189    185   
/// Create a config loader with the defaults for the given behavior version.
  190    186   
///
  191         -
/// For more information about default configuration, refer to the AWS SDKs and Tools [shared configuration documentation](https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html).
  192         -
///
  193    187   
/// # Examples
  194    188   
/// ```no_run
  195    189   
/// # async fn create_config() {
  196    190   
/// use aws_config::BehaviorVersion;
  197    191   
/// let config = aws_config::defaults(BehaviorVersion::v2023_11_09())
  198    192   
///     .region("us-east-1")
  199    193   
///     .load()
  200    194   
///     .await;
  201    195   
/// # }
  202    196   
/// ```
  203    197   
pub fn defaults(version: BehaviorVersion) -> ConfigLoader {
  204    198   
    ConfigLoader::default().behavior_version(version)
  205    199   
}
  206    200   
  207    201   
/// Load default configuration with the given behavior version.
  208    202   
///
  209    203   
/// Convenience wrapper equivalent to `aws_config::defaults(behavior_version).load().await`
  210         -
///
  211         -
/// For more information about default configuration, refer to the AWS SDKs and Tools [shared configuration documentation](https://docs.aws.amazon.com/sdkref/latest/guide/creds-config-files.html).
  212    204   
pub async fn load_defaults(version: BehaviorVersion) -> SdkConfig {
  213    205   
    defaults(version).load().await
  214    206   
}
  215    207   
  216    208   
mod loader {
  217    209   
    use crate::env_service_config::EnvServiceConfig;
  218    210   
    use aws_credential_types::provider::{
  219    211   
        token::{ProvideToken, SharedTokenProvider},
  220    212   
        ProvideCredentials, SharedCredentialsProvider,
  221    213   
    };

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.2"
          76  +
version = "1.5.1"
   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.2"
          74  +
version = "1.5.1"
   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.2"
          71  +
version = "1.5.1"
   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.2"
          77  +
version = "1.5.1"
   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.2"
          79  +
version = "1.5.1"
   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.2"
          74  +
version = "1.5.1"
   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.2"
          81  +
version = "1.5.1"
   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.2"
          76  +
version = "1.5.1"
   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.2"
          71  +
version = "1.5.1"
   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.2"
          77  +
version = "1.5.1"
   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/lambda/src/operation/invoke.rs

@@ -77,77 +136,137 @@
   97     97   
   98     98   
        ::std::option::Option::Some(cfg.freeze())
   99     99   
    }
  100    100   
  101    101   
    fn runtime_components(
  102    102   
        &self,
  103    103   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  104    104   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
  105    105   
        #[allow(unused_mut)]
  106    106   
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("Invoke")
         107  +
            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
  107    108   
            .with_interceptor(InvokeEndpointParamsInterceptor)
  108    109   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
  109    110   
                crate::operation::invoke::InvokeError,
  110    111   
            >::new())
  111    112   
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
  112    113   
                crate::operation::invoke::InvokeError,
  113    114   
            >::new())
  114    115   
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
  115    116   
                crate::operation::invoke::InvokeError,
  116    117   
            >::new());