AWS SDK

AWS SDK

rev. 08213f5507c1a329924ad4ce36bd2f056806689f (ignoring whitespace)

Files changed:

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

@@ -162,162 +207,209 @@
  182    182   
  183    183   
/// All operations that this crate can perform.
  184    184   
pub mod operation;
  185    185   
  186    186   
/// Primitives such as `Blob` or `DateTime` used by other types.
  187    187   
pub mod primitives;
  188    188   
  189    189   
/// Data structures used by operation inputs/outputs.
  190    190   
pub mod types;
  191    191   
         192  +
mod endpoint_override;
         193  +
  192    194   
pub(crate) mod protocol_serde;
  193    195   
  194    196   
mod sdk_feature_tracker;
  195    197   
  196    198   
mod serialization_settings;
  197    199   
  198    200   
mod endpoint_lib;
  199    201   
  200    202   
mod lens;
  201    203   

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

@@ -1310,1310 +1369,1370 @@
 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   1336   
        runtime_components.push_interceptor(crate::account_id_endpoint::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::endpoint_override::EndpointOverrideFeatureTrackerInterceptor);
 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/endpoint_override.rs

@@ -0,1 +0,30 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_runtime::sdk_feature::AwsSdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
use aws_types::endpoint_config::EndpointUrl;
          14  +
          15  +
/// Interceptor that tracks AWS SDK features for endpoint override.
          16  +
#[derive(Debug, Default)]
          17  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
          18  +
          19  +
impl Intercept for EndpointOverrideFeatureTrackerInterceptor {
          20  +
    fn name(&self) -> &'static str {
          21  +
        "EndpointOverrideFeatureTrackerInterceptor"
          22  +
    }
          23  +
          24  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          25  +
        if cfg.load::<EndpointUrl>().is_some() {
          26  +
            cfg.interceptor_state().store_append(AwsSdkFeature::EndpointOverride);
          27  +
        }
          28  +
        Ok(())
          29  +
    }
          30  +
}

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

@@ -182,182 +234,236 @@
  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    208   
mod account_id_endpoint;
  209    209   
  210    210   
pub(crate) mod client_idempotency_token;
  211    211   
         212  +
mod endpoint_override;
         213  +
  212    214   
mod idempotency_token;
  213    215   
  214    216   
pub(crate) mod protocol_serde;
  215    217   
  216    218   
mod sdk_feature_tracker;
  217    219   
  218    220   
mod serialization_settings;
  219    221   
  220    222   
mod endpoint_lib;
  221    223   

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::endpoint_override::EndpointOverrideFeatureTrackerInterceptor);
 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/ec2/src/endpoint_override.rs

@@ -0,1 +0,30 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_runtime::sdk_feature::AwsSdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
use aws_types::endpoint_config::EndpointUrl;
          14  +
          15  +
/// Interceptor that tracks AWS SDK features for endpoint override.
          16  +
#[derive(Debug, Default)]
          17  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
          18  +
          19  +
impl Intercept for EndpointOverrideFeatureTrackerInterceptor {
          20  +
    fn name(&self) -> &'static str {
          21  +
        "EndpointOverrideFeatureTrackerInterceptor"
          22  +
    }
          23  +
          24  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          25  +
        if cfg.load::<EndpointUrl>().is_some() {
          26  +
            cfg.interceptor_state().store_append(AwsSdkFeature::EndpointOverride);
          27  +
        }
          28  +
        Ok(())
          29  +
    }
          30  +
}

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

@@ -176,176 +228,230 @@
  196    196   
pub mod operation;
  197    197   
  198    198   
/// Primitives such as `Blob` or `DateTime` used by other types.
  199    199   
pub mod primitives;
  200    200   
  201    201   
/// Data structures used by operation inputs/outputs.
  202    202   
pub mod types;
  203    203   
  204    204   
pub(crate) mod client_idempotency_token;
  205    205   
         206  +
mod endpoint_override;
         207  +
  206    208   
mod idempotency_token;
  207    209   
  208    210   
pub(crate) mod protocol_serde;
  209    211   
  210    212   
mod sdk_feature_tracker;
  211    213   
  212    214   
mod serialization_settings;
  213    215   
  214    216   
mod endpoint_lib;
  215    217   

tmp-codegen-diff/aws-sdk/sdk/ecs/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::endpoint_override::EndpointOverrideFeatureTrackerInterceptor);
 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/ecs/src/endpoint_override.rs

@@ -0,1 +0,30 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_runtime::sdk_feature::AwsSdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
use aws_types::endpoint_config::EndpointUrl;
          14  +
          15  +
/// Interceptor that tracks AWS SDK features for endpoint override.
          16  +
#[derive(Debug, Default)]
          17  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
          18  +
          19  +
impl Intercept for EndpointOverrideFeatureTrackerInterceptor {
          20  +
    fn name(&self) -> &'static str {
          21  +
        "EndpointOverrideFeatureTrackerInterceptor"
          22  +
    }
          23  +
          24  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          25  +
        if cfg.load::<EndpointUrl>().is_some() {
          26  +
            cfg.interceptor_state().store_append(AwsSdkFeature::EndpointOverride);
          27  +
        }
          28  +
        Ok(())
          29  +
    }
          30  +
}

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

@@ -180,180 +232,234 @@
  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    208   
pub(crate) mod client_idempotency_token;
  209    209   
         210  +
mod endpoint_override;
         211  +
  210    212   
mod idempotency_token;
  211    213   
  212    214   
pub(crate) mod protocol_serde;
  213    215   
  214    216   
mod sdk_feature_tracker;
  215    217   
  216    218   
mod serialization_settings;
  217    219   
  218    220   
mod endpoint_lib;
  219    221   

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

@@ -1278,1278 +1337,1338 @@
 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(crate::glacier_interceptors::GlacierApiVersionInterceptor::new("2012-06-01"));
 1303   1303   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
 1304   1304   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1305   1305   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1306   1306   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1307   1307   
        ));
        1308  +
        runtime_components.push_interceptor(crate::endpoint_override::EndpointOverrideFeatureTrackerInterceptor);
 1308   1309   
        Self { config, runtime_components }
 1309   1310   
    }
 1310   1311   
}
 1311   1312   
 1312   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1313   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1314   1315   
        self.config.clone()
 1315   1316   
    }
 1316   1317   
 1317   1318   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

tmp-codegen-diff/aws-sdk/sdk/glacier/src/endpoint_override.rs

@@ -0,1 +0,30 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_runtime::sdk_feature::AwsSdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
use aws_types::endpoint_config::EndpointUrl;
          14  +
          15  +
/// Interceptor that tracks AWS SDK features for endpoint override.
          16  +
#[derive(Debug, Default)]
          17  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
          18  +
          19  +
impl Intercept for EndpointOverrideFeatureTrackerInterceptor {
          20  +
    fn name(&self) -> &'static str {
          21  +
        "EndpointOverrideFeatureTrackerInterceptor"
          22  +
    }
          23  +
          24  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          25  +
        if cfg.load::<EndpointUrl>().is_some() {
          26  +
            cfg.interceptor_state().store_append(AwsSdkFeature::EndpointOverride);
          27  +
        }
          28  +
        Ok(())
          29  +
    }
          30  +
}

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

@@ -184,184 +236,238 @@
  204    204   
  205    205   
/// All operations that this crate can perform.
  206    206   
pub mod operation;
  207    207   
  208    208   
/// Primitives such as `Blob` or `DateTime` used by other types.
  209    209   
pub mod primitives;
  210    210   
  211    211   
/// Data structures used by operation inputs/outputs.
  212    212   
pub mod types;
  213    213   
         214  +
mod endpoint_override;
         215  +
  214    216   
mod glacier_interceptors;
  215    217   
  216    218   
pub(crate) mod protocol_serde;
  217    219   
  218    220   
mod sdk_feature_tracker;
  219    221   
  220    222   
mod serialization_settings;
  221    223   
  222    224   
mod endpoint_lib;
  223    225   

tmp-codegen-diff/aws-sdk/sdk/iam/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::endpoint_override::EndpointOverrideFeatureTrackerInterceptor);
 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/iam/src/endpoint_override.rs

@@ -0,1 +0,30 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/*
           3  +
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
           4  +
 * SPDX-License-Identifier: Apache-2.0
           5  +
 */
           6  +
           7  +
use aws_runtime::sdk_feature::AwsSdkFeature;
           8  +
use aws_smithy_runtime_api::{
           9  +
    box_error::BoxError,
          10  +
    client::interceptors::{context::BeforeSerializationInterceptorContextRef, Intercept},
          11  +
};
          12  +
use aws_smithy_types::config_bag::ConfigBag;
          13  +
use aws_types::endpoint_config::EndpointUrl;
          14  +
          15  +
/// Interceptor that tracks AWS SDK features for endpoint override.
          16  +
#[derive(Debug, Default)]
          17  +
pub(crate) struct EndpointOverrideFeatureTrackerInterceptor;
          18  +
          19  +
impl Intercept for EndpointOverrideFeatureTrackerInterceptor {
          20  +
    fn name(&self) -> &'static str {
          21  +
        "EndpointOverrideFeatureTrackerInterceptor"
          22  +
    }
          23  +
          24  +
    fn read_before_execution(&self, _context: &BeforeSerializationInterceptorContextRef<'_>, cfg: &mut ConfigBag) -> Result<(), BoxError> {
          25  +
        if cfg.load::<EndpointUrl>().is_some() {
          26  +
            cfg.interceptor_state().store_append(AwsSdkFeature::EndpointOverride);
          27  +
        }
          28  +
        Ok(())
          29  +
    }
          30  +
}

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

@@ -174,174 +224,226 @@
  194    194   
  195    195   
/// All operations that this crate can perform.
  196    196   
pub mod operation;
  197    197   
  198    198   
/// Primitives such as `Blob` or `DateTime` used by other types.
  199    199   
pub mod primitives;
  200    200   
  201    201   
/// Data structures used by operation inputs/outputs.
  202    202   
pub mod types;
  203    203   
         204  +
mod endpoint_override;
         205  +
  204    206   
pub(crate) mod protocol_serde;
  205    207   
  206    208   
mod sdk_feature_tracker;
  207    209   
  208    210   
mod serialization_settings;
  209    211   
  210    212   
mod endpoint_lib;
  211    213   
  212    214   
mod lens;
  213    215