AWS SDK

AWS SDK

rev. ded3fc0811120daa67f842ba97a9bade66a73475 (ignoring whitespace)

Files changed:

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

@@ -1,1 +33,31 @@
   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,
   29     27   
}
   30     28   
   31     29   
impl Storable for AwsSdkFeature {
   32     30   
    type Storer = StoreAppend<Self>;
   33     31   
}

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

@@ -207,207 +267,266 @@
  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),
  238    237   
        }
  239    238   
    }
  240    239   
}
  241    240   
  242    241   
impl ProvideBusinessMetric for AwsCredentialFeature {
  243    242   
    fn provide_business_metric(&self) -> Option<BusinessMetric> {
  244    243   
        use AwsCredentialFeature::*;
  245    244   
        match self {
  246    245   
            ResolvedAccountId => Some(BusinessMetric::ResolvedAccountId),
  247    246   
            CredentialsCode => Some(BusinessMetric::CredentialsCode),

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/event_stream.rs

@@ -1,1 +20,23 @@
    7      7   
    8      8   
use std::error::Error as StdError;
    9      9   
   10     10   
mod receiver;
   11     11   
mod sender;
   12     12   
   13     13   
/// A generic, boxed error that's `Send`, `Sync`, and `'static`.
   14     14   
pub type BoxError = Box<dyn StdError + Send + Sync + 'static>;
   15     15   
   16     16   
#[doc(inline)]
   17         -
pub use sender::{EventStreamSender, MessageStreamAdapter, MessageStreamError};
          17  +
pub use sender::{
          18  +
    EventOrInitial, EventOrInitialMarshaller, EventStreamSender, MessageStreamAdapter,
          19  +
    MessageStreamError,
          20  +
};
   18     21   
   19     22   
#[doc(inline)]
   20     23   
pub use receiver::{InitialMessageType, Receiver, ReceiverError};

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-http/src/event_stream/sender.rs

@@ -1,1 +79,97 @@
    1      1   
/*
    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_eventstream::frame::{write_message_to, MarshallMessage, SignMessage};
    7      7   
use aws_smithy_eventstream::message_size_hint::MessageSizeHint;
    8      8   
use aws_smithy_runtime_api::client::result::SdkError;
    9      9   
use aws_smithy_types::error::ErrorMetadata;
          10  +
use aws_smithy_types::event_stream::Message;
   10     11   
use bytes::Bytes;
   11     12   
use futures_core::Stream;
   12     13   
use std::error::Error as StdError;
   13     14   
use std::fmt;
   14     15   
use std::fmt::Debug;
   15     16   
use std::marker::PhantomData;
   16     17   
use std::pin::Pin;
   17     18   
use std::task::{Context, Poll};
   18     19   
use tracing::trace;
   19     20   
          21  +
/// Wrapper for event stream items that may include an initial-request message.
          22  +
/// This is used internally to allow initial messages to flow through the signing pipeline.
          23  +
#[doc(hidden)]
          24  +
#[derive(Debug)]
          25  +
pub enum EventOrInitial<T> {
          26  +
    /// A regular event that needs marshalling and signing
          27  +
    Event(T),
          28  +
    /// An initial-request message that's already marshalled, just needs signing
          29  +
    InitialMessage(Message),
          30  +
}
          31  +
   20     32   
/// Input type for Event Streams.
   21     33   
pub struct EventStreamSender<T, E> {
   22     34   
    input_stream: Pin<Box<dyn Stream<Item = Result<T, E>> + Send + Sync>>,
   23     35   
}
   24     36   
   25     37   
impl<T, E> Debug for EventStreamSender<T, E> {
   26     38   
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
   27     39   
        let name_t = std::any::type_name::<T>();
   28     40   
        let name_e = std::any::type_name::<E>();
   29     41   
        write!(f, "EventStreamSender<{name_t}, {name_e}>")
   30     42   
    }
   31     43   
}
   32     44   
   33     45   
impl<T: Send + Sync + 'static, E: StdError + Send + Sync + 'static> EventStreamSender<T, E> {
   34     46   
    /// Creates an `EventStreamSender` from a single item.
   35     47   
    pub fn once(item: Result<T, E>) -> Self {
   36     48   
        Self::from(futures_util::stream::once(async move { item }))
   37     49   
    }
   38     50   
}
   39     51   
   40     52   
impl<T, E: StdError + Send + Sync + 'static> EventStreamSender<T, E> {
   41     53   
    #[doc(hidden)]
   42     54   
    pub fn into_body_stream(
   43     55   
        self,
   44     56   
        marshaller: impl MarshallMessage<Input = T> + Send + Sync + 'static,
   45     57   
        error_marshaller: impl MarshallMessage<Input = E> + Send + Sync + 'static,
   46     58   
        signer: impl SignMessage + Send + Sync + 'static,
   47     59   
    ) -> MessageStreamAdapter<T, E> {
   48     60   
        MessageStreamAdapter::new(marshaller, error_marshaller, signer, self.input_stream)
   49     61   
    }
          62  +
          63  +
    /// Extract the inner stream. This is used internally for composing streams.
          64  +
    #[doc(hidden)]
          65  +
    pub fn into_inner(self) -> Pin<Box<dyn Stream<Item = Result<T, E>> + Send + Sync>> {
          66  +
        self.input_stream
          67  +
    }
   50     68   
}
   51     69   
   52     70   
impl<T, E, S> From<S> for EventStreamSender<T, E>
   53     71   
where
   54     72   
    S: Stream<Item = Result<T, E>> + Send + Sync + 'static,
   55     73   
{
   56     74   
    fn from(stream: S) -> Self {
   57     75   
        EventStreamSender {
   58     76   
            input_stream: Box::pin(stream),
   59     77   
        }
@@ -173,191 +232,282 @@
  193    211   
                    }
  194    212   
                } else {
  195    213   
                    Poll::Ready(None)
  196    214   
                }
  197    215   
            }
  198    216   
            Poll::Pending => Poll::Pending,
  199    217   
        }
  200    218   
    }
  201    219   
}
  202    220   
         221  +
/// Marshaller wrapper that handles both regular events and initial messages.
         222  +
/// This is used internally to support initial-request messages in event streams.
         223  +
#[doc(hidden)]
         224  +
#[derive(Debug)]
         225  +
pub struct EventOrInitialMarshaller<M> {
         226  +
    inner: M,
         227  +
}
         228  +
         229  +
impl<M> EventOrInitialMarshaller<M> {
         230  +
    #[doc(hidden)]
         231  +
    pub fn new(inner: M) -> Self {
         232  +
        Self { inner }
         233  +
    }
         234  +
}
         235  +
         236  +
impl<M, T> MarshallMessage for EventOrInitialMarshaller<M>
         237  +
where
         238  +
    M: MarshallMessage<Input = T>,
         239  +
{
         240  +
    type Input = EventOrInitial<T>;
         241  +
         242  +
    fn marshall(
         243  +
        &self,
         244  +
        input: Self::Input,
         245  +
    ) -> Result<Message, aws_smithy_eventstream::error::Error> {
         246  +
        match input {
         247  +
            EventOrInitial::Event(event) => self.inner.marshall(event),
         248  +
            EventOrInitial::InitialMessage(message) => Ok(message),
         249  +
        }
         250  +
    }
         251  +
}
         252  +
  203    253   
#[cfg(test)]
  204    254   
mod tests {
  205    255   
    use super::MarshallMessage;
  206    256   
    use crate::event_stream::{EventStreamSender, MessageStreamAdapter};
  207    257   
    use async_stream::stream;
  208    258   
    use aws_smithy_eventstream::error::Error as EventStreamError;
  209    259   
    use aws_smithy_eventstream::frame::{
  210    260   
        read_message_from, write_message_to, NoOpSigner, SignMessage, SignMessageError,
  211    261   
    };
  212    262   
    use aws_smithy_runtime_api::client::result::SdkError;

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

@@ -1344,1344 +1404,1403 @@
 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);
 1375   1374   
        Self { config, runtime_components }
 1376   1375   
    }
 1377   1376   
}
 1378   1377   
 1379   1378   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1380   1379   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1381   1380   
        self.config.clone()
 1382   1381   
    }
 1383   1382   
 1384   1383   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -1,1 +57,35 @@
    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         -
   28      6   
#[cfg(test)]
   29      7   
mod test {
   30      8   
   31      9   
    /// For region us-east-1 with FIPS enabled and DualStack enabled
   32     10   
    #[test]
   33     11   
    fn test_1() {
   34     12   
        let params = crate::config::endpoint::Params::builder()
   35     13   
            .region("us-east-1".to_string())
   36     14   
            .use_fips(true)
   37     15   
            .use_dual_stack(true)

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

@@ -1295,1295 +1355,1354 @@
 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);
 1326   1325   
        Self { config, runtime_components }
 1327   1326   
    }
 1328   1327   
}
 1329   1328   
 1330   1329   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1331   1330   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1332   1331   
        self.config.clone()
 1333   1332   
    }
 1334   1333   
 1335   1334   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -1,1 +57,35 @@
    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         -
   28      6   
#[cfg(test)]
   29      7   
mod test {
   30      8   
   31      9   
    /// For region af-south-1 with FIPS disabled and DualStack disabled
   32     10   
    #[test]
   33     11   
    fn test_1() {
   34     12   
        let params = crate::config::endpoint::Params::builder()
   35     13   
            .region("af-south-1".to_string())
   36     14   
            .use_fips(false)
   37     15   
            .use_dual_stack(false)

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

@@ -1293,1293 +1353,1352 @@
 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);
 1324   1323   
        Self { config, runtime_components }
 1325   1324   
    }
 1326   1325   
}
 1327   1326   
 1328   1327   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1329   1328   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1330   1329   
        self.config.clone()
 1331   1330   
    }
 1332   1331   
 1333   1332   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -1,1 +57,35 @@
    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         -
   28      6   
#[cfg(test)]
   29      7   
mod test {
   30      8   
   31      9   
    /// Override endpoint
   32     10   
    #[test]
   33     11   
    fn test_1() {
   34     12   
        let params = crate::config::endpoint::Params::builder()
   35     13   
            .endpoint("https://test.codecatalyst.global.api.aws".to_string())
   36     14   
            .build()
   37     15   
            .expect("invalid params");

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

@@ -1277,1277 +1337,1336 @@
 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);
 1308   1307   
        Self { config, runtime_components }
 1309   1308   
    }
 1310   1309   
}
 1311   1310   
 1312   1311   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1313   1312   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1314   1313   
        self.config.clone()
 1315   1314   
    }
 1316   1315   
 1317   1316   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -1,1 +57,35 @@
    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         -
   28      6   
#[cfg(test)]
   29      7   
mod test {
   30      8   
   31      9   
    /// For region af-south-1 with FIPS disabled and DualStack disabled
   32     10   
    #[test]
   33     11   
    fn test_1() {
   34     12   
        let params = crate::config::endpoint::Params::builder()
   35     13   
            .region("af-south-1".to_string())
   36     14   
            .use_fips(false)
   37     15   
            .use_dual_stack(false)

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

@@ -1310,1310 +1370,1369 @@
 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::config::endpoint::EndpointOverrideFeatureTrackerInterceptor);
 1341   1340   
        Self { config, runtime_components }
 1342   1341   
    }
 1343   1342   
}
 1344   1343   
 1345   1344   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1346   1345   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1347   1346   
        self.config.clone()
 1348   1347   
    }
 1349   1348   
 1350   1349   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {

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

@@ -1,1 +57,35 @@
    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         -
   28      6   
#[cfg(test)]
   29      7   
mod test {
   30      8   
   31      9   
    /// For region af-south-1 with FIPS disabled and DualStack disabled
   32     10   
    #[test]
   33     11   
    fn test_1() {
   34     12   
        let params = crate::config::endpoint::Params::builder()
   35     13   
            .region("af-south-1".to_string())
   36     14   
            .use_fips(false)
   37     15   
            .use_dual_stack(false)

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

@@ -1295,1295 +1355,1354 @@
 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);
 1326   1325   
        Self { config, runtime_components }
 1327   1326   
    }
 1328   1327   
}
 1329   1328   
 1330   1329   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1331   1330   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1332   1331   
        self.config.clone()
 1333   1332   
    }
 1334   1333   
 1335   1334   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {