AWS SDK

AWS SDK

rev. b6dc1d298ba698070286e6838abdd213fcbce093

Files changed:

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

@@ -1273,1273 +1332,1333 @@
 1293   1293   
            use crate::config::endpoint::ResolveEndpoint;
 1294   1294   
            crate::config::endpoint::DefaultResolver::new().into_shared_resolver()
 1295   1295   
        }));
 1296   1296   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 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  +
        runtime_components.push_interceptor(::aws_runtime::observability_detection::ObservabilityDetectionInterceptor::new());
 1303   1304   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1305   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1306   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1307   
        ));
 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> {
@@ -1363,1364 +1422,1435 @@
 1383   1384   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1385   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1386   
 1386   1387   
pub use ::aws_credential_types::Credentials;
 1387   1388   
 1388   1389   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1390   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1391   
        let mut builder = Builder::default();
 1391   1392   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1393   
        builder = builder.region(input.region().cloned());
        1394  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1395  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1396  +
        let has_service_specific_endpoint = input
        1397  +
            .service_config()
        1398  +
            .and_then(|conf| conf.load_config(service_config_key("STS", "AWS_ENDPOINT_URL", "endpoint_url")))
        1399  +
            .is_some();
        1400  +
        1401  +
        if has_global_endpoint || has_service_specific_endpoint {
        1402  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1403  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1404  +
            ));
        1405  +
        }
 1393   1406   
        builder.set_use_fips(input.use_fips());
 1394   1407   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1408   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1409   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1410   
        } else {
 1398   1411   
            builder.set_endpoint_url(
 1399   1412   
                input
 1400   1413   
                    .service_config()
 1401   1414   
                    .and_then(|conf| {
 1402   1415   
                        conf.load_config(service_config_key("STS", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1291,1291 +1350,1351 @@
 1311   1311   
            use crate::config::endpoint::ResolveEndpoint;
 1312   1312   
            crate::config::endpoint::DefaultResolver::new().into_shared_resolver()
 1313   1313   
        }));
 1314   1314   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 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  +
        runtime_components.push_interceptor(::aws_runtime::observability_detection::ObservabilityDetectionInterceptor::new());
 1321   1322   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1322   1323   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1323   1324   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1324   1325   
        ));
 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> {
@@ -1381,1382 +1440,1453 @@
 1401   1402   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1402   1403   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1403   1404   
 1404   1405   
pub use ::aws_credential_types::Credentials;
 1405   1406   
 1406   1407   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1407   1408   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1408   1409   
        let mut builder = Builder::default();
 1409   1410   
        builder.set_credentials_provider(input.credentials_provider());
 1410   1411   
        builder = builder.region(input.region().cloned());
        1412  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1413  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1414  +
        let has_service_specific_endpoint = input
        1415  +
            .service_config()
        1416  +
            .and_then(|conf| conf.load_config(service_config_key("Timestream Query", "AWS_ENDPOINT_URL", "endpoint_url")))
        1417  +
            .is_some();
        1418  +
        1419  +
        if has_global_endpoint || has_service_specific_endpoint {
        1420  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1421  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1422  +
            ));
        1423  +
        }
 1411   1424   
        builder.set_use_fips(input.use_fips());
 1412   1425   
        builder.set_use_dual_stack(input.use_dual_stack());
 1413   1426   
        if input.get_origin("endpoint_url").is_client_config() {
 1414   1427   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1415   1428   
        } else {
 1416   1429   
            builder.set_endpoint_url(
 1417   1430   
                input
 1418   1431   
                    .service_config()
 1419   1432   
                    .and_then(|conf| {
 1420   1433   
                        conf.load_config(service_config_key("Timestream Query", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1291,1291 +1350,1351 @@
 1311   1311   
            use crate::config::endpoint::ResolveEndpoint;
 1312   1312   
            crate::config::endpoint::DefaultResolver::new().into_shared_resolver()
 1313   1313   
        }));
 1314   1314   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 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  +
        runtime_components.push_interceptor(::aws_runtime::observability_detection::ObservabilityDetectionInterceptor::new());
 1321   1322   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1322   1323   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1323   1324   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1324   1325   
        ));
 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> {
@@ -1381,1382 +1440,1453 @@
 1401   1402   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1402   1403   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1403   1404   
 1404   1405   
pub use ::aws_credential_types::Credentials;
 1405   1406   
 1406   1407   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1407   1408   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1408   1409   
        let mut builder = Builder::default();
 1409   1410   
        builder.set_credentials_provider(input.credentials_provider());
 1410   1411   
        builder = builder.region(input.region().cloned());
        1412  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1413  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1414  +
        let has_service_specific_endpoint = input
        1415  +
            .service_config()
        1416  +
            .and_then(|conf| conf.load_config(service_config_key("Timestream Write", "AWS_ENDPOINT_URL", "endpoint_url")))
        1417  +
            .is_some();
        1418  +
        1419  +
        if has_global_endpoint || has_service_specific_endpoint {
        1420  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1421  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1422  +
            ));
        1423  +
        }
 1411   1424   
        builder.set_use_fips(input.use_fips());
 1412   1425   
        builder.set_use_dual_stack(input.use_dual_stack());
 1413   1426   
        if input.get_origin("endpoint_url").is_client_config() {
 1414   1427   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1415   1428   
        } else {
 1416   1429   
            builder.set_endpoint_url(
 1417   1430   
                input
 1418   1431   
                    .service_config()
 1419   1432   
                    .and_then(|conf| {
 1420   1433   
                        conf.load_config(service_config_key("Timestream Write", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1273,1273 +1332,1333 @@
 1293   1293   
            use crate::config::endpoint::ResolveEndpoint;
 1294   1294   
            crate::config::endpoint::DefaultResolver::new().into_shared_resolver()
 1295   1295   
        }));
 1296   1296   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 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  +
        runtime_components.push_interceptor(::aws_runtime::observability_detection::ObservabilityDetectionInterceptor::new());
 1303   1304   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1305   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1306   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1307   
        ));
 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> {
@@ -1363,1364 +1422,1435 @@
 1383   1384   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1385   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1386   
 1386   1387   
pub use ::aws_credential_types::Credentials;
 1387   1388   
 1388   1389   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1390   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1391   
        let mut builder = Builder::default();
 1391   1392   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1393   
        builder = builder.region(input.region().cloned());
        1394  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1395  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1396  +
        let has_service_specific_endpoint = input
        1397  +
            .service_config()
        1398  +
            .and_then(|conf| conf.load_config(service_config_key("Transcribe Streaming", "AWS_ENDPOINT_URL", "endpoint_url")))
        1399  +
            .is_some();
        1400  +
        1401  +
        if has_global_endpoint || has_service_specific_endpoint {
        1402  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1403  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1404  +
            ));
        1405  +
        }
 1393   1406   
        builder.set_use_fips(input.use_fips());
 1394   1407   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1408   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1409   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1410   
        } else {
 1398   1411   
            builder.set_endpoint_url(
 1399   1412   
                input
 1400   1413   
                    .service_config()
 1401   1414   
                    .and_then(|conf| {
 1402   1415   
                        conf.load_config(service_config_key("Transcribe Streaming", "AWS_ENDPOINT_URL", "endpoint_url"))