AWS SDK

AWS SDK

rev. e078d088659554866bb85a58eb655c7ecb20450d

Files changed:

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

@@ -164,164 +211,213 @@
  184    184   
/// Primitives such as `Blob` or `DateTime` used by other types.
  185    185   
pub mod primitives;
  186    186   
  187    187   
/// Data structures used by operation inputs/outputs.
  188    188   
pub mod types;
  189    189   
  190    190   
pub(crate) mod client_idempotency_token;
  191    191   
  192    192   
pub mod endpoint_discovery;
  193    193   
         194  +
mod endpoint_override;
         195  +
  194    196   
mod idempotency_token;
  195    197   
  196    198   
pub(crate) mod protocol_serde;
  197    199   
  198    200   
mod sdk_feature_tracker;
  199    201   
  200    202   
mod serialization_settings;
  201    203   
  202    204   
mod endpoint_lib;
  203    205   

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/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/timestreamwrite/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/timestreamwrite/src/lib.rs

@@ -168,168 +215,217 @@
  188    188   
/// Primitives such as `Blob` or `DateTime` used by other types.
  189    189   
pub mod primitives;
  190    190   
  191    191   
/// Data structures used by operation inputs/outputs.
  192    192   
pub mod types;
  193    193   
  194    194   
pub(crate) mod client_idempotency_token;
  195    195   
  196    196   
pub mod endpoint_discovery;
  197    197   
         198  +
mod endpoint_override;
         199  +
  198    200   
mod idempotency_token;
  199    201   
  200    202   
pub(crate) mod protocol_serde;
  201    203   
  202    204   
mod sdk_feature_tracker;
  203    205   
  204    206   
mod serialization_settings;
  205    207   
  206    208   
mod endpoint_lib;
  207    209   

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/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/transcribestreaming/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/transcribestreaming/src/lib.rs

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