AWS SDK

AWS SDK

rev. 27102829f69b2cfe3a9ca9e69ae64d1ea40f9865

Files changed:

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

@@ -13,13 +77,77 @@
   33     33   
   34     34   
[dependencies]
   35     35   
bytes = "1.1.0"
   36     36   
http = "1"
   37     37   
url = "2.5.4"
   38     38   
fastrand = "2.3.0"
   39     39   
   40     40   
[dependencies.aws-credential-types]
   41     41   
path = "../aws-credential-types"
   42     42   
features = ["test-util"]
   43         -
version = "1.2.6"
          43  +
version = "1.2.7"
   44     44   
   45     45   
[dependencies.aws-runtime]
   46     46   
path = "../aws-runtime"
   47         -
version = "1.5.10"
          47  +
version = "1.5.11"
   48     48   
   49     49   
[dependencies.aws-sdk-sts]
   50     50   
path = "../sts"
   51     51   
default-features = false
   52     52   
version = "0.0.0-local"
   53     53   
   54     54   
[dependencies.aws-smithy-async]
   55     55   
path = "../aws-smithy-async"
   56     56   
version = "1.2.5"
   57     57   

tmp-codegen-diff/aws-sdk/sdk/aws-credential-types/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-credential-types"
    4         -
version = "1.2.6"
           4  +
version = "1.2.7"
    5      5   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>"]
    6      6   
description = "Types for AWS SDK credentials."
    7      7   
edition = "2021"
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]

tmp-codegen-diff/aws-sdk/sdk/aws-credential-types/src/credential_feature.rs

@@ -1,1 +41,43 @@
    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_smithy_types::config_bag::{Storable, StoreAppend};
    7      7   
    8      8   
/// IDs for the credential related features that may be used in the AWS SDK
    9      9   
#[non_exhaustive]
   10     10   
#[derive(Clone, Debug, Eq, PartialEq)]
   11     11   
pub enum AwsCredentialFeature {
          12  +
    /// An operation where credential resolution resolved an account ID
          13  +
    ResolvedAccountId,
   12     14   
    /// An operation called using credentials resolved from code, cli parameters, session object, or client instance
   13     15   
    CredentialsCode,
   14     16   
    /// An operation called using credentials resolved from environment variables
   15     17   
    CredentialsEnvVars,
   16     18   
    /// An operation called using credentials resolved from environment variables for assuming a role with STS using a web identity token
   17     19   
    CredentialsEnvVarsStsWebIdToken,
   18     20   
    /// An operation called using credentials resolved from STS using assume role
   19     21   
    CredentialsStsAssumeRole,
   20     22   
    /// An operation called using credentials resolved from STS using assume role with SAML
   21     23   
    CredentialsStsAssumeRoleSaml,

tmp-codegen-diff/aws-sdk/sdk/aws-credential-types/src/credentials_impl.rs

@@ -369,369 +488,518 @@
  389    389   
    fn from(val: Credentials) -> Self {
  390    390   
        let expiry = val.expiry();
  391    391   
        let mut builder = if let Some(account_id) = val.account_id() {
  392    392   
            Identity::builder().property(account_id.clone())
  393    393   
        } else {
  394    394   
            Identity::builder()
  395    395   
        };
  396    396   
  397    397   
        builder.set_expiration(expiry);
  398    398   
  399         -
        if let Some(features) = val.get_property::<Vec<AwsCredentialFeature>>().cloned() {
         399  +
        let features = val.get_property::<Vec<AwsCredentialFeature>>().cloned();
         400  +
        let has_account_id = val.account_id().is_some();
         401  +
         402  +
        if features.is_some() || has_account_id {
  400    403   
            let mut layer = Layer::new("IdentityResolutionFeatureIdTracking");
  401         -
            for feat in features {
  402         -
                layer.store_append(feat);
         404  +
            if let Some(features) = features {
         405  +
                for feat in features {
         406  +
                    layer.store_append(feat);
         407  +
                }
         408  +
            }
         409  +
            if has_account_id {
         410  +
                layer.store_append(AwsCredentialFeature::ResolvedAccountId);
  403    411   
            }
  404    412   
            builder.set_property(layer.freeze());
  405    413   
        }
  406    414   
  407    415   
        builder.data(val).build().expect("set required fields")
  408    416   
    }
  409    417   
}
  410    418   
  411    419   
#[cfg(test)]
  412    420   
mod test {
  413    421   
    use crate::Credentials;
  414    422   
    use std::time::{Duration, UNIX_EPOCH};
  415    423   
  416         -
    #[cfg(feature = "test-util")]
  417         -
    use crate::credential_feature::AwsCredentialFeature;
  418         -
  419    424   
    #[test]
  420    425   
    fn debug_impl() {
  421    426   
        let creds = Credentials::new(
  422    427   
            "akid",
  423    428   
            "secret",
  424    429   
            Some("token".into()),
  425    430   
            Some(UNIX_EPOCH + Duration::from_secs(1234567890)),
  426    431   
            "debug tester",
  427    432   
        );
  428    433   
        assert_eq!(
  429    434   
            format!("{:?}", creds),
  430    435   
            r#"Credentials { provider_name: "debug tester", access_key_id: "akid", secret_access_key: "** redacted **", expires_after: "2009-02-13T23:31:30Z" }"#
  431    436   
        );
  432    437   
  433    438   
        // with account ID
  434    439   
        let creds = Credentials::builder()
  435    440   
            .access_key_id("akid")
  436    441   
            .secret_access_key("secret")
  437    442   
            .session_token("token")
  438    443   
            .expiry(UNIX_EPOCH + Duration::from_secs(1234567890))
  439    444   
            .account_id("012345678901")
  440    445   
            .provider_name("debug tester")
  441    446   
            .build();
  442    447   
        assert_eq!(
  443    448   
            format!("{:?}", creds),
  444    449   
            r#"Credentials { provider_name: "debug tester", access_key_id: "akid", secret_access_key: "** redacted **", expires_after: "2009-02-13T23:31:30Z", account_id: "012345678901" }"#
  445    450   
        );
  446    451   
    }
  447    452   
  448    453   
    #[cfg(feature = "test-util")]
  449    454   
    #[test]
  450    455   
    fn equality_ignores_properties() {
  451    456   
        #[derive(Clone, Debug)]
  452    457   
        struct Foo;
  453    458   
        let mut creds1 = Credentials::for_tests_with_session_token();
  454         -
        creds1.set_property(AwsCredentialFeature::CredentialsCode);
         459  +
        creds1.set_property(crate::credential_feature::AwsCredentialFeature::CredentialsCode);
  455    460   
  456    461   
        let mut creds2 = Credentials::for_tests_with_session_token();
  457    462   
        creds2.set_property(Foo);
  458    463   
  459    464   
        assert_eq!(creds1, creds2)
  460    465   
    }
  461    466   
  462    467   
    #[cfg(feature = "test-util")]
  463    468   
    #[test]
  464    469   
    fn identity_inherits_feature_properties() {
         470  +
        use crate::credential_feature::AwsCredentialFeature;
  465    471   
        use aws_smithy_runtime_api::client::identity::Identity;
  466    472   
        use aws_smithy_types::config_bag::FrozenLayer;
  467    473   
  468    474   
        let mut creds = Credentials::for_tests_with_session_token();
  469    475   
        let mut feature_props = vec![
  470    476   
            AwsCredentialFeature::CredentialsCode,
  471    477   
            AwsCredentialFeature::CredentialsStsSessionToken,
  472    478   
        ];
  473    479   
        creds.set_property(feature_props.clone());
  474    480   
  475    481   
        let identity = Identity::from(creds);
  476    482   
  477    483   
        let maybe_props = identity
  478    484   
            .property::<FrozenLayer>()
  479    485   
            .unwrap()
  480    486   
            .load::<AwsCredentialFeature>()
  481    487   
            .cloned()
  482    488   
            .collect::<Vec<AwsCredentialFeature>>();
  483    489   
  484    490   
        // The props get reversed when being popped out of the StoreAppend
  485    491   
        feature_props.reverse();
  486    492   
        assert_eq!(maybe_props, feature_props)
  487    493   
    }
         494  +
         495  +
    #[cfg(feature = "test-util")]
         496  +
    #[test]
         497  +
    fn from_credentials_adds_resolved_account_id_feature() {
         498  +
        use crate::credential_feature::AwsCredentialFeature;
         499  +
        use aws_smithy_runtime_api::client::identity::Identity;
         500  +
        use aws_smithy_types::config_bag::FrozenLayer;
         501  +
         502  +
        let creds = Credentials::builder()
         503  +
            .access_key_id("test")
         504  +
            .secret_access_key("test")
         505  +
            .account_id("123456789012")
         506  +
            .provider_name("test")
         507  +
            .build();
         508  +
         509  +
        let identity = Identity::from(creds);
         510  +
         511  +
        let layer = identity.property::<FrozenLayer>().unwrap();
         512  +
        let features = layer
         513  +
            .load::<AwsCredentialFeature>()
         514  +
            .cloned()
         515  +
            .collect::<Vec<_>>();
         516  +
        assert!(features.contains(&AwsCredentialFeature::ResolvedAccountId));
         517  +
    }
  488    518   
}

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

@@ -1,1 +0,18 @@
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]
   15     15   
[dependencies.aws-runtime]
   16     16   
path = "../aws-runtime"
   17     17   
features = ["http-02x"]
   18         -
version = "1.5.10"
          18  +
version = "1.5.11"

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

@@ -1,1 +65,65 @@
    1      1   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
[package]
    3      3   
name = "aws-runtime"
    4         -
version = "1.5.10"
           4  +
version = "1.5.11"
    5      5   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>"]
    6      6   
description = "Runtime support code for the AWS SDK. This crate isn't intended to be used directly."
    7      7   
edition = "2021"
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]
   15     15   
   16     16   
[package.metadata.smithy-rs-release-tooling]
   17     17   
stable = true
   18     18   
   19     19   
[features]
   20     20   
event-stream = ["dep:aws-smithy-eventstream", "aws-sigv4/sign-eventstream"]
   21     21   
http-02x = []
   22     22   
http-1x = ["dep:http-1x", "dep:http-body-1x"]
   23     23   
test-util = ["dep:regex-lite"]
   24     24   
sigv4a = ["aws-sigv4/sigv4a"]
   25     25   
   26     26   
[dependencies]
   27     27   
bytes = "1.10.0"
   28     28   
fastrand = "2.3.0"
   29     29   
percent-encoding = "2.3.1"
   30     30   
pin-project-lite = "0.2.14"
   31     31   
tracing = "0.1.40"
   32     32   
   33     33   
[dependencies.aws-credential-types]
   34     34   
path = "../aws-credential-types"
   35         -
version = "1.2.6"
          35  +
version = "1.2.7"
   36     36   
   37     37   
[dependencies.aws-sigv4]
   38     38   
path = "../aws-sigv4"
   39     39   
features = ["http0-compat"]
   40     40   
version = "1.3.4"
   41     41   
   42     42   
[dependencies.aws-smithy-async]
   43     43   
path = "../aws-smithy-async"
   44     44   
version = "1.2.5"
   45     45   
@@ -79,79 +139,139 @@
   99     99   
arbitrary = "1.3"
  100    100   
bytes-utils = "0.1.2"
  101    101   
convert_case = "0.6.0"
  102    102   
proptest = "1.2"
  103    103   
serde_json = "1"
  104    104   
tracing-test = "0.2.4"
  105    105   
  106    106   
[dev-dependencies.aws-credential-types]
  107    107   
path = "../aws-credential-types"
  108    108   
features = ["test-util"]
  109         -
version = "1.2.6"
         109  +
version = "1.2.7"
  110    110   
  111    111   
[dev-dependencies.aws-smithy-async]
  112    112   
path = "../aws-smithy-async"
  113    113   
features = ["test-util"]
  114    114   
version = "1.2.5"
  115    115   
  116    116   
[dev-dependencies.aws-smithy-protocol-test]
  117    117   
path = "../aws-smithy-protocol-test"
  118    118   
version = "0.63.4"
  119    119   

tmp-codegen-diff/aws-sdk/sdk/aws-runtime/src/sdk_feature.rs

@@ -1,1 +25,31 @@
    5      5   
    6      6   
/// Note: This code originally lived in the `aws-runtime` crate. It was moved here to avoid circular dependencies
    7      7   
/// This module is re-exported in `aws-runtime`, and so even though this is a pre-1.0 crate, this module should not
    8      8   
/// have any breaking changes
    9      9   
use aws_smithy_types::config_bag::{Storable, StoreAppend};
   10     10   
   11     11   
/// IDs for the features that may be used in the AWS SDK
   12     12   
#[non_exhaustive]
   13     13   
#[derive(Clone, Debug, Eq, PartialEq)]
   14     14   
pub enum AwsSdkFeature {
          15  +
    /// An operation called with account ID mode set to preferred
          16  +
    AccountIdModePreferred,
          17  +
    /// An operation called with account ID mode set to disabled
          18  +
    AccountIdModeDisabled,
          19  +
    /// An operation called with account ID mode set to required
          20  +
    AccountIdModeRequired,
   15     21   
    /// Indicates that an operation was called by the S3 Transfer Manager
   16     22   
    S3Transfer,
   17     23   
    /// Calling an SSO-OIDC operation as part of the SSO login flow, when using the OAuth2.0 device code grant
   18     24   
    SsoLoginDevice,
   19     25   
    /// Calling an SSO-OIDC operation as part of the SSO login flow, when using the OAuth2.0 authorization code grant
   20     26   
    SsoLoginAuth,
   21     27   
}
   22     28   
   23     29   
impl Storable for AwsSdkFeature {
   24     30   
    type Storer = StoreAppend<Self>;

tmp-codegen-diff/aws-sdk/sdk/aws-runtime/src/user_agent/metrics.rs

@@ -189,189 +259,263 @@
  209    209   
                None
  210    210   
            }
  211    211   
        }
  212    212   
    }
  213    213   
}
  214    214   
  215    215   
impl ProvideBusinessMetric for AwsSdkFeature {
  216    216   
    fn provide_business_metric(&self) -> Option<BusinessMetric> {
  217    217   
        use AwsSdkFeature::*;
  218    218   
        match self {
         219  +
            AccountIdModePreferred => Some(BusinessMetric::AccountIdModePreferred),
         220  +
            AccountIdModeDisabled => Some(BusinessMetric::AccountIdModeDisabled),
         221  +
            AccountIdModeRequired => Some(BusinessMetric::AccountIdModeRequired),
  219    222   
            S3Transfer => Some(BusinessMetric::S3Transfer),
  220    223   
            SsoLoginDevice => Some(BusinessMetric::SsoLoginDevice),
  221    224   
            SsoLoginAuth => Some(BusinessMetric::SsoLoginAuth),
  222    225   
        }
  223    226   
    }
  224    227   
}
  225    228   
  226    229   
impl ProvideBusinessMetric for AwsCredentialFeature {
  227    230   
    fn provide_business_metric(&self) -> Option<BusinessMetric> {
  228    231   
        use AwsCredentialFeature::*;
  229    232   
        match self {
         233  +
            ResolvedAccountId => Some(BusinessMetric::ResolvedAccountId),
  230    234   
            CredentialsCode => Some(BusinessMetric::CredentialsCode),
  231    235   
            CredentialsEnvVars => Some(BusinessMetric::CredentialsEnvVars),
  232    236   
            CredentialsEnvVarsStsWebIdToken => {
  233    237   
                Some(BusinessMetric::CredentialsEnvVarsStsWebIdToken)
  234    238   
            }
  235    239   
            CredentialsStsAssumeRole => Some(BusinessMetric::CredentialsStsAssumeRole),
  236    240   
            CredentialsStsAssumeRoleSaml => Some(BusinessMetric::CredentialsStsAssumeRoleSaml),
  237    241   
            CredentialsStsAssumeRoleWebId => Some(BusinessMetric::CredentialsStsAssumeRoleWebId),
  238    242   
            CredentialsStsFederationToken => Some(BusinessMetric::CredentialsStsFederationToken),
  239    243   
            CredentialsStsSessionToken => Some(BusinessMetric::CredentialsStsSessionToken),

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

@@ -17,17 +77,77 @@
   37     37   
[dependencies]
   38     38   
bytes = "1.10.0"
   39     39   
hex = "0.4.3"
   40     40   
hmac = "0.12"
   41     41   
sha2 = "0.10"
   42     42   
time = "0.3.5"
   43     43   
tracing = "0.1.40"
   44     44   
   45     45   
[dependencies.aws-credential-types]
   46     46   
path = "../aws-credential-types"
   47         -
version = "1.2.6"
          47  +
version = "1.2.7"
   48     48   
   49     49   
[dependencies.aws-smithy-eventstream]
   50     50   
path = "../aws-smithy-eventstream"
   51     51   
optional = true
   52     52   
version = "0.60.11"
   53     53   
   54     54   
[dependencies.aws-smithy-http]
   55     55   
path = "../aws-smithy-http"
   56     56   
version = "0.62.3"
   57     57   
@@ -89,89 +130,130 @@
  109    109   
pretty_assertions = "1.3"
  110    110   
proptest = "1.2"
  111    111   
serde = "1.0.180"
  112    112   
serde_derive = "1.0.180"
  113    113   
serde_json = "1.0.104"
  114    114   
criterion = "0.5"
  115    115   
  116    116   
[dev-dependencies.aws-credential-types]
  117    117   
path = "../aws-credential-types"
  118    118   
features = ["test-util", "hardcoded-credentials"]
  119         -
version = "1.2.6"
         119  +
version = "1.2.7"
  120    120   
  121    121   
[dev-dependencies.aws-smithy-runtime-api]
  122    122   
path = "../aws-smithy-runtime-api"
  123    123   
features = ["client", "test-util"]
  124    124   
version = "1.9.0"
  125    125   
  126    126   
[dev-dependencies.time]
  127    127   
version = "0.3.5"
  128    128   
features = ["parsing"]
  129    129   
[target."cfg(not(any(target_arch = \"powerpc\", target_arch = \"powerpc64\")))".dev-dependencies]

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

@@ -1,1 +59,59 @@
   19     19   
normal = ["aws-smithy-runtime", "hyper-rustls"]
   20     20   
   21     21   
[features]
   22     22   
examples = ["dep:hyper-rustls", "aws-smithy-runtime/client", "aws-smithy-runtime/connector-hyper-0-14-x", "aws-smithy-runtime/tls-rustls"]
   23     23   
   24     24   
[dependencies]
   25     25   
tracing = "0.1.40"
   26     26   
   27     27   
[dependencies.aws-credential-types]
   28     28   
path = "../aws-credential-types"
   29         -
version = "1.2.6"
          29  +
version = "1.2.7"
   30     30   
   31     31   
[dependencies.aws-smithy-async]
   32     32   
path = "../aws-smithy-async"
   33     33   
version = "1.2.5"
   34     34   
   35     35   
[dependencies.aws-smithy-types]
   36     36   
path = "../aws-smithy-types"
   37     37   
version = "1.3.2"
   38     38   
   39     39   
[dependencies.aws-smithy-runtime]

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

@@ -1,1 +54,54 @@
    9      9   
repository = "https://github.com/awslabs/aws-sdk-rust"
   10     10   
rust-version = "1.86.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
[package.metadata.docs.rs]
   15     15   
all-features = true
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19         -
version = "1.2.6"
          19  +
version = "1.2.7"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
features = ["event-stream"]
   24         -
version = "1.5.10"
          24  +
version = "1.5.11"
   25     25   
   26     26   
[dependencies.aws-sigv4]
   27     27   
path = "../aws-sigv4"
   28     28   
version = "1.3.4"
   29     29   
   30     30   
[dependencies.aws-smithy-async]
   31     31   
path = "../aws-smithy-async"
   32     32   
version = "1.2.5"
   33     33   
   34     34   
[dependencies.aws-smithy-eventstream]
@@ -61,61 +126,126 @@
   81     81   
   82     82   
[dependencies.tracing]
   83     83   
version = "0.1"
   84     84   
[dev-dependencies.aws-config]
   85     85   
path = "../aws-config"
   86     86   
version = "1.8.7"
   87     87   
   88     88   
[dev-dependencies.aws-credential-types]
   89     89   
path = "../aws-credential-types"
   90     90   
features = ["test-util"]
   91         -
version = "1.2.6"
          91  +
version = "1.2.7"
   92     92   
   93     93   
[dev-dependencies.aws-runtime]
   94     94   
path = "../aws-runtime"
   95     95   
features = ["test-util"]
   96         -
version = "1.5.10"
          96  +
version = "1.5.11"
   97     97   
   98     98   
[dev-dependencies.aws-smithy-async]
   99     99   
path = "../aws-smithy-async"
  100    100   
features = ["test-util"]
  101    101   
version = "1.2.5"
  102    102   
  103    103   
[dev-dependencies.aws-smithy-eventstream]
  104    104   
path = "../aws-smithy-eventstream"
  105    105   
features = ["test-util"]
  106    106   
version = "0.60.11"

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/apply_guardrail.rs

@@ -242,242 +303,305 @@
  262    262   
  263    263   
        let params = crate::config::endpoint::Params::builder()
  264    264   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  265    265   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  266    266   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  267    267   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  268    268   
            .build()
  269    269   
            .map_err(|err| {
  270    270   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  271    271   
            })?;
         272  +
  272    273   
        cfg.interceptor_state()
  273    274   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         275  +
  274    276   
        ::std::result::Result::Ok(())
  275    277   
    }
  276    278   
}
  277    279   
  278    280   
// The get_* functions below are generated from JMESPath expressions in the
  279    281   
// operationContextParams trait. They target the operation's input shape.
  280    282   
  281    283   
/// Error type for the `ApplyGuardrailError` operation.
  282    284   
#[non_exhaustive]
  283    285   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/converse.rs

@@ -220,220 +281,283 @@
  240    240   
  241    241   
        let params = crate::config::endpoint::Params::builder()
  242    242   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  243    243   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  244    244   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  245    245   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  246    246   
            .build()
  247    247   
            .map_err(|err| {
  248    248   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  249    249   
            })?;
         250  +
  250    251   
        cfg.interceptor_state()
  251    252   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         253  +
  252    254   
        ::std::result::Result::Ok(())
  253    255   
    }
  254    256   
}
  255    257   
  256    258   
// The get_* functions below are generated from JMESPath expressions in the
  257    259   
// operationContextParams trait. They target the operation's input shape.
  258    260   
  259    261   
/// Error type for the `ConverseError` operation.
  260    262   
#[non_exhaustive]
  261    263   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/converse_stream.rs

@@ -237,237 +298,300 @@
  257    257   
  258    258   
        let params = crate::config::endpoint::Params::builder()
  259    259   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  260    260   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  261    261   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  262    262   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  263    263   
            .build()
  264    264   
            .map_err(|err| {
  265    265   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  266    266   
            })?;
         267  +
  267    268   
        cfg.interceptor_state()
  268    269   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         270  +
  269    271   
        ::std::result::Result::Ok(())
  270    272   
    }
  271    273   
}
  272    274   
  273    275   
// The get_* functions below are generated from JMESPath expressions in the
  274    276   
// operationContextParams trait. They target the operation's input shape.
  275    277   
  276    278   
/// Error type for the `ConverseStreamError` operation.
  277    279   
#[non_exhaustive]
  278    280   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/operation/get_async_invoke.rs

@@ -222,222 +283,285 @@
  242    242   
  243    243   
        let params = crate::config::endpoint::Params::builder()
  244    244   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  245    245   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  246    246   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  247    247   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  248    248   
            .build()
  249    249   
            .map_err(|err| {
  250    250   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  251    251   
            })?;
         252  +
  252    253   
        cfg.interceptor_state()
  253    254   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         255  +
  254    256   
        ::std::result::Result::Ok(())
  255    257   
    }
  256    258   
}
  257    259   
  258    260   
// The get_* functions below are generated from JMESPath expressions in the
  259    261   
// operationContextParams trait. They target the operation's input shape.
  260    262   
  261    263   
/// Error type for the `GetAsyncInvokeError` operation.
  262    264   
#[non_exhaustive]
  263    265   
#[derive(::std::fmt::Debug)]