AWS SDK

AWS SDK

rev. 95a340ea1a59c89cb460115b24dc54604d776545

Files changed:

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

@@ -1,1 +31,33 @@
   17     17   
    /// An operation called with account ID mode set to disabled
   18     18   
    AccountIdModeDisabled,
   19     19   
    /// An operation called with account ID mode set to required
   20     20   
    AccountIdModeRequired,
   21     21   
    /// Indicates that an operation was called by the S3 Transfer Manager
   22     22   
    S3Transfer,
   23     23   
    /// Calling an SSO-OIDC operation as part of the SSO login flow, when using the OAuth2.0 device code grant
   24     24   
    SsoLoginDevice,
   25     25   
    /// Calling an SSO-OIDC operation as part of the SSO login flow, when using the OAuth2.0 authorization code grant
   26     26   
    SsoLoginAuth,
          27  +
    /// Indicates that a custom endpoint URL was configured
          28  +
    EndpointOverride,
   27     29   
}
   28     30   
   29     31   
impl Storable for AwsSdkFeature {
   30     32   
    type Storer = StoreAppend<Self>;
   31     33   
}

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

@@ -207,207 +266,267 @@
  227    227   
impl ProvideBusinessMetric for AwsSdkFeature {
  228    228   
    fn provide_business_metric(&self) -> Option<BusinessMetric> {
  229    229   
        use AwsSdkFeature::*;
  230    230   
        match self {
  231    231   
            AccountIdModePreferred => Some(BusinessMetric::AccountIdModePreferred),
  232    232   
            AccountIdModeDisabled => Some(BusinessMetric::AccountIdModeDisabled),
  233    233   
            AccountIdModeRequired => Some(BusinessMetric::AccountIdModeRequired),
  234    234   
            S3Transfer => Some(BusinessMetric::S3Transfer),
  235    235   
            SsoLoginDevice => Some(BusinessMetric::SsoLoginDevice),
  236    236   
            SsoLoginAuth => Some(BusinessMetric::SsoLoginAuth),
         237  +
            EndpointOverride => Some(BusinessMetric::EndpointOverride),
  237    238   
        }
  238    239   
    }
  239    240   
}
  240    241   
  241    242   
impl ProvideBusinessMetric for AwsCredentialFeature {
  242    243   
    fn provide_business_metric(&self) -> Option<BusinessMetric> {
  243    244   
        use AwsCredentialFeature::*;
  244    245   
        match self {
  245    246   
            ResolvedAccountId => Some(BusinessMetric::ResolvedAccountId),
  246    247   
            CredentialsCode => Some(BusinessMetric::CredentialsCode),

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

@@ -1344,1344 +1403,1404 @@
 1364   1364   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1365   1365   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1366   1366   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1367   1367   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1368   1368   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1369   1369   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1370   1370   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1371   1371   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1372   1372   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1373   1373   
        ));
        1374  +
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor::default());
 1374   1375   
        Self { config, runtime_components }
 1375   1376   
    }
 1376   1377   
}
 1377   1378   
 1378   1379   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1379   1380   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1380   1381   
        self.config.clone()
 1381   1382   
    }
 1382   1383   
 1383   1384   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/config/endpoint.rs

@@ -1,1 +35,57 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use ::aws_smithy_runtime_api::client::endpoint::EndpointFuture;
    3      3   
pub use ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver;
    4      4   
pub use ::aws_smithy_types::endpoint::Endpoint;
    5      5   
           6  +
/// Interceptor that tracks endpoint override business metric.
           7  +
#[derive(Debug, Default)]
           8  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
           9  +
          10  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EndpointOverrideFeatureTrackerInterceptor {
          11  +
    fn name(&self) -> &'static str {
          12  +
        "EndpointOverrideFeatureTrackerInterceptor"
          13  +
    }
          14  +
          15  +
    fn read_before_execution(
          16  +
        &self,
          17  +
        _context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_>,
          18  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
          19  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
          20  +
        if cfg.load::<::aws_types::endpoint_config::EndpointUrl>().is_some() {
          21  +
            cfg.interceptor_state()
          22  +
                .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::EndpointOverride);
          23  +
        }
          24  +
        ::std::result::Result::Ok(())
          25  +
    }
          26  +
}
          27  +
    6     28   
#[cfg(test)]
    7     29   
mod test {
    8     30   
    9     31   
    /// For region us-east-1 with FIPS enabled and DualStack enabled
   10     32   
    #[test]
   11     33   
    fn test_1() {
   12     34   
        let params = crate::config::endpoint::Params::builder()
   13     35   
            .region("us-east-1".to_string())
   14     36   
            .use_fips(true)
   15     37   
            .use_dual_stack(true)

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

@@ -1295,1295 +1354,1355 @@
 1315   1315   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1316   1316   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1317   1317   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1318   1318   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1319   1319   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1320   1320   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1321   1321   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1322   1322   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1323   1323   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1324   1324   
        ));
        1325  +
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor::default());
 1325   1326   
        Self { config, runtime_components }
 1326   1327   
    }
 1327   1328   
}
 1328   1329   
 1329   1330   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1330   1331   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1331   1332   
        self.config.clone()
 1332   1333   
    }
 1333   1334   
 1334   1335   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/config/endpoint.rs

@@ -1,1 +35,57 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use ::aws_smithy_runtime_api::client::endpoint::EndpointFuture;
    3      3   
pub use ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver;
    4      4   
pub use ::aws_smithy_types::endpoint::Endpoint;
    5      5   
           6  +
/// Interceptor that tracks endpoint override business metric.
           7  +
#[derive(Debug, Default)]
           8  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
           9  +
          10  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EndpointOverrideFeatureTrackerInterceptor {
          11  +
    fn name(&self) -> &'static str {
          12  +
        "EndpointOverrideFeatureTrackerInterceptor"
          13  +
    }
          14  +
          15  +
    fn read_before_execution(
          16  +
        &self,
          17  +
        _context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_>,
          18  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
          19  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
          20  +
        if cfg.load::<::aws_types::endpoint_config::EndpointUrl>().is_some() {
          21  +
            cfg.interceptor_state()
          22  +
                .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::EndpointOverride);
          23  +
        }
          24  +
        ::std::result::Result::Ok(())
          25  +
    }
          26  +
}
          27  +
    6     28   
#[cfg(test)]
    7     29   
mod test {
    8     30   
    9     31   
    /// For region af-south-1 with FIPS disabled and DualStack disabled
   10     32   
    #[test]
   11     33   
    fn test_1() {
   12     34   
        let params = crate::config::endpoint::Params::builder()
   13     35   
            .region("af-south-1".to_string())
   14     36   
            .use_fips(false)
   15     37   
            .use_dual_stack(false)

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

@@ -1293,1293 +1352,1353 @@
 1313   1313   
            crate::config::endpoint::DefaultResolver::new().into_shared_resolver()
 1314   1314   
        }));
 1315   1315   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 1316   1316   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1317   1317   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1318   1318   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1319   1319   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1320   1320   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1321   1321   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1322   1322   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
        1323  +
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor::default());
 1323   1324   
        Self { config, runtime_components }
 1324   1325   
    }
 1325   1326   
}
 1326   1327   
 1327   1328   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1328   1329   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1329   1330   
        self.config.clone()
 1330   1331   
    }
 1331   1332   
 1332   1333   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/src/config/endpoint.rs

@@ -1,1 +35,57 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use ::aws_smithy_runtime_api::client::endpoint::EndpointFuture;
    3      3   
pub use ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver;
    4      4   
pub use ::aws_smithy_types::endpoint::Endpoint;
    5      5   
           6  +
/// Interceptor that tracks endpoint override business metric.
           7  +
#[derive(Debug, Default)]
           8  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
           9  +
          10  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EndpointOverrideFeatureTrackerInterceptor {
          11  +
    fn name(&self) -> &'static str {
          12  +
        "EndpointOverrideFeatureTrackerInterceptor"
          13  +
    }
          14  +
          15  +
    fn read_before_execution(
          16  +
        &self,
          17  +
        _context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_>,
          18  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
          19  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
          20  +
        if cfg.load::<::aws_types::endpoint_config::EndpointUrl>().is_some() {
          21  +
            cfg.interceptor_state()
          22  +
                .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::EndpointOverride);
          23  +
        }
          24  +
        ::std::result::Result::Ok(())
          25  +
    }
          26  +
}
          27  +
    6     28   
#[cfg(test)]
    7     29   
mod test {
    8     30   
    9     31   
    /// Override endpoint
   10     32   
    #[test]
   11     33   
    fn test_1() {
   12     34   
        let params = crate::config::endpoint::Params::builder()
   13     35   
            .endpoint("https://test.codecatalyst.global.api.aws".to_string())
   14     36   
            .build()
   15     37   
            .expect("invalid params");

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

@@ -1277,1277 +1336,1337 @@
 1297   1297   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1298   1298   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1299   1299   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1300   1300   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1301   1301   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1302   1302   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1303   1303   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1304   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1305   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1306   
        ));
        1307  +
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor::default());
 1307   1308   
        Self { config, runtime_components }
 1308   1309   
    }
 1309   1310   
}
 1310   1311   
 1311   1312   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1312   1313   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1313   1314   
        self.config.clone()
 1314   1315   
    }
 1315   1316   
 1316   1317   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -1,1 +35,57 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use ::aws_smithy_runtime_api::client::endpoint::EndpointFuture;
    3      3   
pub use ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver;
    4      4   
pub use ::aws_smithy_types::endpoint::Endpoint;
    5      5   
           6  +
/// Interceptor that tracks endpoint override business metric.
           7  +
#[derive(Debug, Default)]
           8  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
           9  +
          10  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EndpointOverrideFeatureTrackerInterceptor {
          11  +
    fn name(&self) -> &'static str {
          12  +
        "EndpointOverrideFeatureTrackerInterceptor"
          13  +
    }
          14  +
          15  +
    fn read_before_execution(
          16  +
        &self,
          17  +
        _context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_>,
          18  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
          19  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
          20  +
        if cfg.load::<::aws_types::endpoint_config::EndpointUrl>().is_some() {
          21  +
            cfg.interceptor_state()
          22  +
                .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::EndpointOverride);
          23  +
        }
          24  +
        ::std::result::Result::Ok(())
          25  +
    }
          26  +
}
          27  +
    6     28   
#[cfg(test)]
    7     29   
mod test {
    8     30   
    9     31   
    /// For region af-south-1 with FIPS disabled and DualStack disabled
   10     32   
    #[test]
   11     33   
    fn test_1() {
   12     34   
        let params = crate::config::endpoint::Params::builder()
   13     35   
            .region("af-south-1".to_string())
   14     36   
            .use_fips(false)
   15     37   
            .use_dual_stack(false)

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

@@ -1306,1306 +1369,1370 @@
 1326   1326   
            crate::config::endpoint::DefaultResolver::new().into_shared_resolver()
 1327   1327   
        }));
 1328   1328   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 1329   1329   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1330   1330   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1331   1331   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1332   1332   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1333   1333   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1334   1334   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1335   1335   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1336         -
        runtime_components.push_interceptor(crate::account_id_endpoint::AccountIdEndpointFeatureTrackerInterceptor);
        1336  +
        runtime_components.push_interceptor(crate::feature_tracker::AccountIdEndpointFeatureTrackerInterceptor);
 1337   1337   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1338   1338   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1339   1339   
        ));
        1340  +
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor::default());
 1340   1341   
        Self { config, runtime_components }
 1341   1342   
    }
 1342   1343   
}
 1343   1344   
 1344   1345   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1345   1346   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1346   1347   
        self.config.clone()
 1347   1348   
    }
 1348   1349   
 1349   1350   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/config/endpoint.rs

@@ -1,1 +35,57 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub use ::aws_smithy_runtime_api::client::endpoint::EndpointFuture;
    3      3   
pub use ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver;
    4      4   
pub use ::aws_smithy_types::endpoint::Endpoint;
    5      5   
           6  +
/// Interceptor that tracks endpoint override business metric.
           7  +
#[derive(Debug, Default)]
           8  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
           9  +
          10  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for EndpointOverrideFeatureTrackerInterceptor {
          11  +
    fn name(&self) -> &'static str {
          12  +
        "EndpointOverrideFeatureTrackerInterceptor"
          13  +
    }
          14  +
          15  +
    fn read_before_execution(
          16  +
        &self,
          17  +
        _context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_>,
          18  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
          19  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
          20  +
        if cfg.load::<::aws_types::endpoint_config::EndpointUrl>().is_some() {
          21  +
            cfg.interceptor_state()
          22  +
                .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::EndpointOverride);
          23  +
        }
          24  +
        ::std::result::Result::Ok(())
          25  +
    }
          26  +
}
          27  +
    6     28   
#[cfg(test)]
    7     29   
mod test {
    8     30   
    9     31   
    /// For region af-south-1 with FIPS disabled and DualStack disabled
   10     32   
    #[test]
   11     33   
    fn test_1() {
   12     34   
        let params = crate::config::endpoint::Params::builder()
   13     35   
            .region("af-south-1".to_string())
   14     36   
            .use_fips(false)
   15     37   
            .use_dual_stack(false)

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/feature_tracker.rs

Renamed from tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/account_id_endpoint.rs

@@ -1,1 +45,47 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 * SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
           7  +
//! Feature tracking interceptors for AWS SDK business metrics.
           8  +
    7      9   
use aws_runtime::sdk_feature::AwsSdkFeature;
    8     10   
use aws_smithy_runtime_api::{
    9     11   
    box_error::BoxError,
   10     12   
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
   11     13   
};
   12     14   
use aws_smithy_types::config_bag::ConfigBag;
   13     15   
use aws_types::endpoint_config::AccountIdEndpointMode;
   14     16   
   15         -
// Interceptor that tracks AWS SDK features for the account based endpoints.
          17  +
/// Interceptor that tracks AWS SDK features for account-based endpoints.
   16     18   
#[derive(Debug, Default)]
   17     19   
pub(crate) struct AccountIdEndpointFeatureTrackerInterceptor;
   18     20   
   19     21   
impl Intercept for AccountIdEndpointFeatureTrackerInterceptor {
   20     22   
    fn name(&self) -> &'static str {
   21     23   
        "AccountIdEndpointFeatureTrackerInterceptor"
   22     24   
    }
   23     25   
   24     26   
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
   25     27   
        match cfg.load::<AccountIdEndpointMode>().cloned().unwrap_or_default() {

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

@@ -178,178 +234,234 @@
  198    198   
  199    199   
/// All operations that this crate can perform.
  200    200   
pub mod operation;
  201    201   
  202    202   
/// Primitives such as `Blob` or `DateTime` used by other types.
  203    203   
pub mod primitives;
  204    204   
  205    205   
/// Data structures used by operation inputs/outputs.
  206    206   
pub mod types;
  207    207   
  208         -
mod account_id_endpoint;
  209         -
  210    208   
pub(crate) mod client_idempotency_token;
  211    209   
         210  +
mod feature_tracker;
         211  +
  212    212   
mod idempotency_token;
  213    213   
  214    214   
pub(crate) mod protocol_serde;
  215    215   
  216    216   
mod sdk_feature_tracker;
  217    217   
  218    218   
mod serialization_settings;
  219    219   
  220    220   
mod endpoint_lib;
  221    221   

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

@@ -1295,1295 +1354,1355 @@
 1315   1315   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1316   1316   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1317   1317   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1318   1318   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1319   1319   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1320   1320   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1321   1321   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1322   1322   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1323   1323   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1324   1324   
        ));
        1325  +
        runtime_components.push_interceptor(crate::config::endpoint::EndpointOverrideFeatureTrackerInterceptor::default());
 1325   1326   
        Self { config, runtime_components }
 1326   1327   
    }
 1327   1328   
}
 1328   1329   
 1329   1330   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1330   1331   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1331   1332   
        self.config.clone()
 1332   1333   
    }
 1333   1334   
 1334   1335   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {