AWS SDK

AWS SDK

rev. 4b3027207f9561924d49b49e22604a1be1cbe804

Files changed:

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

@@ -5,5 +65,68 @@
   25     25   
        if (*use_fips) == (true) {
   26     26   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   27     27   
                "Invalid Configuration: FIPS and custom endpoint are not supported".to_string(),
   28     28   
            ));
   29     29   
        }
   30     30   
        if (*use_dual_stack) == (true) {
   31     31   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   32     32   
                "Invalid Configuration: Dualstack and custom endpoint are not supported".to_string(),
   33     33   
            ));
   34     34   
        }
   35         -
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder().url(endpoint.to_owned()).build());
          35  +
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
          36  +
            .url(endpoint.to_owned())
          37  +
            .property("is_custom_endpoint", true)
          38  +
            .build());
   36     39   
    }
   37     40   
    #[allow(unused_variables)]
   38     41   
    if let Some(region) = region {
   39     42   
        #[allow(unused_variables)]
   40     43   
        if let Some(partition_result) = partition_resolver.resolve_partition(region.as_ref() as &str, _diagnostic_collector) {
   41     44   
            if (partition_result.name()) == ("aws") {
   42     45   
                if (*use_fips) == (false) {
   43     46   
                    if (*use_dual_stack) == (true) {
   44     47   
                        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
   45     48   
                            .url("https://iam.global.api.aws".to_string())

tmp-codegen-diff/aws-sdk/sdk/kms/Cargo.toml

@@ -11,11 +131,131 @@
   31     31   
path = "../aws-smithy-http"
   32     32   
version = "0.62.5"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.61.7"
   37     37   
   38     38   
[dependencies.aws-smithy-runtime]
   39     39   
path = "../aws-smithy-runtime"
   40     40   
features = ["client"]
   41         -
version = "1.9.4"
          41  +
version = "1.9.5"
   42     42   
   43     43   
[dependencies.aws-smithy-runtime-api]
   44     44   
path = "../aws-smithy-runtime-api"
   45     45   
features = ["client", "http-02x"]
   46     46   
version = "1.9.2"
   47     47   
   48     48   
[dependencies.aws-smithy-types]
   49     49   
path = "../aws-smithy-types"
   50     50   
version = "1.3.4"
   51     51   
   52     52   
[dependencies.aws-types]
   53     53   
path = "../aws-types"
   54     54   
version = "1.3.10"
   55     55   
   56     56   
[dependencies.bytes]
   57     57   
version = "1.4.0"
   58     58   
   59     59   
[dependencies.fastrand]
   60     60   
version = "2.0.0"
   61     61   
   62     62   
[dependencies.http]
   63     63   
version = "0.2.9"
   64     64   
   65     65   
[dependencies.regex-lite]
   66     66   
version = "0.1.5"
   67     67   
   68     68   
[dependencies.tracing]
   69     69   
version = "0.1"
   70     70   
[dev-dependencies.aws-config]
   71     71   
path = "../aws-config"
   72     72   
version = "1.8.10"
   73     73   
   74     74   
[dev-dependencies.aws-credential-types]
   75     75   
path = "../aws-credential-types"
   76     76   
features = ["test-util"]
   77     77   
version = "1.2.9"
   78     78   
   79     79   
[dev-dependencies.aws-runtime]
   80     80   
path = "../aws-runtime"
   81     81   
features = ["test-util"]
   82     82   
version = "1.5.14"
   83     83   
   84     84   
[dev-dependencies.aws-smithy-async]
   85     85   
path = "../aws-smithy-async"
   86     86   
features = ["test-util"]
   87     87   
version = "1.2.6"
   88     88   
   89     89   
[dev-dependencies.aws-smithy-http-client]
   90     90   
path = "../aws-smithy-http-client"
   91     91   
features = ["test-util", "wire-mock"]
   92     92   
version = "1.1.4"
   93     93   
   94     94   
[dev-dependencies.aws-smithy-protocol-test]
   95     95   
path = "../aws-smithy-protocol-test"
   96     96   
version = "0.63.6"
   97     97   
   98     98   
[dev-dependencies.aws-smithy-runtime]
   99     99   
path = "../aws-smithy-runtime"
  100    100   
features = ["test-util"]
  101         -
version = "1.9.4"
         101  +
version = "1.9.5"
  102    102   
  103    103   
[dev-dependencies.aws-smithy-runtime-api]
  104    104   
path = "../aws-smithy-runtime-api"
  105    105   
features = ["test-util"]
  106    106   
version = "1.9.2"
  107    107   
  108    108   
[dev-dependencies.aws-smithy-types]
  109    109   
path = "../aws-smithy-types"
  110    110   
features = ["test-util"]
  111    111   
version = "1.3.4"

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

@@ -1273,1273 +1332,1334 @@
 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());
        1304  +
        runtime_components.push_interceptor(::aws_runtime::endpoint_discovery::EndpointOverrideInterceptor::new());
 1303   1305   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1306   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1307   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1308   
        ));
 1307   1309   
        Self { config, runtime_components }
 1308   1310   
    }
 1309   1311   
}
 1310   1312   
 1311   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1312   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {

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

@@ -5,5 +65,68 @@
   25     25   
        if (*use_fips) == (true) {
   26     26   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   27     27   
                "Invalid Configuration: FIPS and custom endpoint are not supported".to_string(),
   28     28   
            ));
   29     29   
        }
   30     30   
        if (*use_dual_stack) == (true) {
   31     31   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   32     32   
                "Invalid Configuration: Dualstack and custom endpoint are not supported".to_string(),
   33     33   
            ));
   34     34   
        }
   35         -
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder().url(endpoint.to_owned()).build());
          35  +
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
          36  +
            .url(endpoint.to_owned())
          37  +
            .property("is_custom_endpoint", true)
          38  +
            .build());
   36     39   
    }
   37     40   
    #[allow(unused_variables)]
   38     41   
    if let Some(region) = region {
   39     42   
        #[allow(unused_variables)]
   40     43   
        if let Some(partition_result) = partition_resolver.resolve_partition(region.as_ref() as &str, _diagnostic_collector) {
   41     44   
            if (*use_fips) == (true) {
   42     45   
                if (*use_dual_stack) == (true) {
   43     46   
                    if (true) == (partition_result.supports_fips()) {
   44     47   
                        if (true) == (partition_result.supports_dual_stack()) {
   45     48   
                            return Ok(::aws_smithy_types::endpoint::Endpoint::builder()

tmp-codegen-diff/aws-sdk/sdk/lambda/Cargo.toml

@@ -17,17 +77,77 @@
   37     37   
features = ["event-stream"]
   38     38   
version = "0.62.5"
   39     39   
   40     40   
[dependencies.aws-smithy-json]
   41     41   
path = "../aws-smithy-json"
   42     42   
version = "0.61.7"
   43     43   
   44     44   
[dependencies.aws-smithy-runtime]
   45     45   
path = "../aws-smithy-runtime"
   46     46   
features = ["client"]
   47         -
version = "1.9.4"
          47  +
version = "1.9.5"
   48     48   
   49     49   
[dependencies.aws-smithy-runtime-api]
   50     50   
path = "../aws-smithy-runtime-api"
   51     51   
features = ["client", "http-02x"]
   52     52   
version = "1.9.2"
   53     53   
   54     54   
[dependencies.aws-smithy-types]
   55     55   
path = "../aws-smithy-types"
   56     56   
version = "1.3.4"
   57     57   
@@ -82,82 +142,142 @@
  102    102   
features = ["test-util", "wire-mock"]
  103    103   
version = "1.1.4"
  104    104   
  105    105   
[dev-dependencies.aws-smithy-protocol-test]
  106    106   
path = "../aws-smithy-protocol-test"
  107    107   
version = "0.63.6"
  108    108   
  109    109   
[dev-dependencies.aws-smithy-runtime]
  110    110   
path = "../aws-smithy-runtime"
  111    111   
features = ["test-util"]
  112         -
version = "1.9.4"
         112  +
version = "1.9.5"
  113    113   
  114    114   
[dev-dependencies.aws-smithy-runtime-api]
  115    115   
path = "../aws-smithy-runtime-api"
  116    116   
features = ["test-util"]
  117    117   
version = "1.9.2"
  118    118   
  119    119   
[dev-dependencies.aws-smithy-types]
  120    120   
path = "../aws-smithy-types"
  121    121   
features = ["test-util"]
  122    122   
version = "1.3.4"

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

@@ -1273,1273 +1332,1334 @@
 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());
        1304  +
        runtime_components.push_interceptor(::aws_runtime::endpoint_discovery::EndpointOverrideInterceptor::new());
 1303   1305   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1306   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1307   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1308   
        ));
 1307   1309   
        Self { config, runtime_components }
 1308   1310   
    }
 1309   1311   
}
 1310   1312   
 1311   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1312   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {

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

@@ -5,5 +65,68 @@
   25     25   
        if (*use_fips) == (true) {
   26     26   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   27     27   
                "Invalid Configuration: FIPS and custom endpoint are not supported".to_string(),
   28     28   
            ));
   29     29   
        }
   30     30   
        if (*use_dual_stack) == (true) {
   31     31   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   32     32   
                "Invalid Configuration: Dualstack and custom endpoint are not supported".to_string(),
   33     33   
            ));
   34     34   
        }
   35         -
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder().url(endpoint.to_owned()).build());
          35  +
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
          36  +
            .url(endpoint.to_owned())
          37  +
            .property("is_custom_endpoint", true)
          38  +
            .build());
   36     39   
    }
   37     40   
    #[allow(unused_variables)]
   38     41   
    if let Some(region) = region {
   39     42   
        #[allow(unused_variables)]
   40     43   
        if let Some(partition_result) = partition_resolver.resolve_partition(region.as_ref() as &str, _diagnostic_collector) {
   41     44   
            if (*use_fips) == (true) {
   42     45   
                if (*use_dual_stack) == (true) {
   43     46   
                    if (true) == (partition_result.supports_fips()) {
   44     47   
                        if (true) == (partition_result.supports_dual_stack()) {
   45     48   
                            return Ok(::aws_smithy_types::endpoint::Endpoint::builder()

tmp-codegen-diff/aws-sdk/sdk/polly/Cargo.toml

@@ -15,15 +75,75 @@
   35     35   
path = "../aws-smithy-http"
   36     36   
version = "0.62.5"
   37     37   
   38     38   
[dependencies.aws-smithy-json]
   39     39   
path = "../aws-smithy-json"
   40     40   
version = "0.61.7"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client"]
   45         -
version = "1.9.4"
          45  +
version = "1.9.5"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49     49   
features = ["client", "http-02x"]
   50     50   
version = "1.9.2"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54     54   
version = "1.3.4"
   55     55   
@@ -84,84 +144,144 @@
  104    104   
features = ["test-util", "wire-mock"]
  105    105   
version = "1.1.4"
  106    106   
  107    107   
[dev-dependencies.aws-smithy-protocol-test]
  108    108   
path = "../aws-smithy-protocol-test"
  109    109   
version = "0.63.6"
  110    110   
  111    111   
[dev-dependencies.aws-smithy-runtime]
  112    112   
path = "../aws-smithy-runtime"
  113    113   
features = ["test-util"]
  114         -
version = "1.9.4"
         114  +
version = "1.9.5"
  115    115   
  116    116   
[dev-dependencies.aws-smithy-runtime-api]
  117    117   
path = "../aws-smithy-runtime-api"
  118    118   
features = ["test-util"]
  119    119   
version = "1.9.2"
  120    120   
  121    121   
[dev-dependencies.aws-smithy-types]
  122    122   
path = "../aws-smithy-types"
  123    123   
features = ["test-util"]
  124    124   
version = "1.3.4"

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

@@ -1273,1273 +1332,1334 @@
 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());
        1304  +
        runtime_components.push_interceptor(::aws_runtime::endpoint_discovery::EndpointOverrideInterceptor::new());
 1303   1305   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1306   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1307   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1308   
        ));
 1307   1309   
        Self { config, runtime_components }
 1308   1310   
    }
 1309   1311   
}
 1310   1312   
 1311   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1312   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {

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

@@ -5,5 +65,68 @@
   25     25   
        if (*use_fips) == (true) {
   26     26   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   27     27   
                "Invalid Configuration: FIPS and custom endpoint are not supported".to_string(),
   28     28   
            ));
   29     29   
        }
   30     30   
        if (*use_dual_stack) == (true) {
   31     31   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   32     32   
                "Invalid Configuration: Dualstack and custom endpoint are not supported".to_string(),
   33     33   
            ));
   34     34   
        }
   35         -
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder().url(endpoint.to_owned()).build());
          35  +
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
          36  +
            .url(endpoint.to_owned())
          37  +
            .property("is_custom_endpoint", true)
          38  +
            .build());
   36     39   
    }
   37     40   
    #[allow(unused_variables)]
   38     41   
    if let Some(region) = region {
   39     42   
        #[allow(unused_variables)]
   40     43   
        if let Some(partition_result) = partition_resolver.resolve_partition(region.as_ref() as &str, _diagnostic_collector) {
   41     44   
            if (*use_fips) == (true) {
   42     45   
                if (*use_dual_stack) == (true) {
   43     46   
                    if (true) == (partition_result.supports_fips()) {
   44     47   
                        if (true) == (partition_result.supports_dual_stack()) {
   45     48   
                            return Ok(::aws_smithy_types::endpoint::Endpoint::builder()

tmp-codegen-diff/aws-sdk/sdk/route53/Cargo.toml

@@ -11,11 +71,71 @@
   31     31   
path = "../aws-smithy-http"
   32     32   
version = "0.62.5"
   33     33   
   34     34   
[dependencies.aws-smithy-json]
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.61.7"
   37     37   
   38     38   
[dependencies.aws-smithy-runtime]
   39     39   
path = "../aws-smithy-runtime"
   40     40   
features = ["client"]
   41         -
version = "1.9.4"
          41  +
version = "1.9.5"
   42     42   
   43     43   
[dependencies.aws-smithy-runtime-api]
   44     44   
path = "../aws-smithy-runtime-api"
   45     45   
features = ["client", "http-02x"]
   46     46   
version = "1.9.2"
   47     47   
   48     48   
[dependencies.aws-smithy-types]
   49     49   
path = "../aws-smithy-types"
   50     50   
version = "1.3.4"
   51     51   

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

@@ -1273,1273 +1332,1334 @@
 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());
        1304  +
        runtime_components.push_interceptor(::aws_runtime::endpoint_discovery::EndpointOverrideInterceptor::new());
 1303   1305   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1304   1306   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1305   1307   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1306   1308   
        ));
 1307   1309   
        Self { config, runtime_components }
 1308   1310   
    }
 1309   1311   
}
 1310   1312   
 1311   1313   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
 1312   1314   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {

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

@@ -5,5 +65,68 @@
   25     25   
        if (*use_fips) == (true) {
   26     26   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   27     27   
                "Invalid Configuration: FIPS and custom endpoint are not supported".to_string(),
   28     28   
            ));
   29     29   
        }
   30     30   
        if (*use_dual_stack) == (true) {
   31     31   
            return Err(::aws_smithy_http::endpoint::ResolveEndpointError::message(
   32     32   
                "Invalid Configuration: Dualstack and custom endpoint are not supported".to_string(),
   33     33   
            ));
   34     34   
        }
   35         -
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder().url(endpoint.to_owned()).build());
          35  +
        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
          36  +
            .url(endpoint.to_owned())
          37  +
            .property("is_custom_endpoint", true)
          38  +
            .build());
   36     39   
    }
   37     40   
    #[allow(unused_variables)]
   38     41   
    if let Some(region) = region {
   39     42   
        #[allow(unused_variables)]
   40     43   
        if let Some(partition_result) = partition_resolver.resolve_partition(region.as_ref() as &str, _diagnostic_collector) {
   41     44   
            if (partition_result.name()) == ("aws") {
   42     45   
                if (*use_fips) == (false) {
   43     46   
                    if (*use_dual_stack) == (false) {
   44     47   
                        return Ok(::aws_smithy_types::endpoint::Endpoint::builder()
   45     48   
                            .url("https://route53.amazonaws.com".to_string())

tmp-codegen-diff/aws-sdk/sdk/s3/Cargo.toml

@@ -7,7 +85,85 @@
   27     27   
[dependencies.aws-sigv4]
   28     28   
path = "../aws-sigv4"
   29     29   
version = "1.3.6"
   30     30   
   31     31   
[dependencies.aws-smithy-async]
   32     32   
path = "../aws-smithy-async"
   33     33   
version = "1.2.6"
   34     34   
   35     35   
[dependencies.aws-smithy-checksums]
   36     36   
path = "../aws-smithy-checksums"
   37         -
version = "0.63.11"
          37  +
version = "0.63.10"
   38     38   
   39     39   
[dependencies.aws-smithy-eventstream]
   40     40   
path = "../aws-smithy-eventstream"
   41     41   
version = "0.60.13"
   42     42   
   43     43   
[dependencies.aws-smithy-http]
   44     44   
path = "../aws-smithy-http"
   45     45   
features = ["event-stream"]
   46     46   
version = "0.62.5"
   47     47   
   48     48   
[dependencies.aws-smithy-json]
   49     49   
path = "../aws-smithy-json"
   50     50   
version = "0.61.7"
   51     51   
   52     52   
[dependencies.aws-smithy-runtime]
   53     53   
path = "../aws-smithy-runtime"
   54     54   
features = ["client"]
   55         -
version = "1.9.4"
          55  +
version = "1.9.5"
   56     56   
   57     57   
[dependencies.aws-smithy-runtime-api]
   58     58   
path = "../aws-smithy-runtime-api"
   59     59   
features = ["client", "http-02x"]
   60     60   
version = "1.9.2"
   61     61   
   62     62   
[dependencies.aws-smithy-types]
   63     63   
path = "../aws-smithy-types"
   64     64   
version = "1.3.4"
   65     65   
@@ -132,132 +192,192 @@
  152    152   
path = "../aws-smithy-mocks"
  153    153   
version = "0.2.0"
  154    154   
  155    155   
[dev-dependencies.aws-smithy-protocol-test]
  156    156   
path = "../aws-smithy-protocol-test"
  157    157   
version = "0.63.6"
  158    158   
  159    159   
[dev-dependencies.aws-smithy-runtime]
  160    160   
path = "../aws-smithy-runtime"
  161    161   
features = ["test-util"]
  162         -
version = "1.9.4"
         162  +
version = "1.9.5"
  163    163   
  164    164   
[dev-dependencies.aws-smithy-runtime-api]
  165    165   
path = "../aws-smithy-runtime-api"
  166    166   
features = ["test-util", "client", "http-02x"]
  167    167   
version = "1.9.2"
  168    168   
  169    169   
[dev-dependencies.aws-smithy-types]
  170    170   
path = "../aws-smithy-types"
  171    171   
features = ["test-util"]
  172    172   
version = "1.3.4"

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

@@ -1425,1425 +1484,1486 @@
 1445   1445   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
 1446   1446   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
 1447   1447   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
 1448   1448   
        runtime_components.push_interceptor(::aws_runtime::service_clock_skew::ServiceClockSkewInterceptor::new());
 1449   1449   
        runtime_components.push_interceptor(::aws_runtime::request_info::RequestInfoInterceptor::new());
 1450   1450   
        runtime_components.push_interceptor(::aws_runtime::user_agent::UserAgentInterceptor::new());
 1451   1451   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1452   1452   
            crate::s3_express::auth::S3ExpressAuthScheme::new(),
 1453   1453   
        ));
 1454   1454   
        runtime_components.push_interceptor(::aws_runtime::invocation_id::InvocationIdInterceptor::new());
        1455  +
        runtime_components.push_interceptor(::aws_runtime::observability_detection::ObservabilityDetectionInterceptor::new());
        1456  +
        runtime_components.push_interceptor(::aws_runtime::endpoint_discovery::EndpointOverrideInterceptor::new());
 1455   1457   
        runtime_components.push_interceptor(::aws_runtime::recursion_detection::RecursionDetectionInterceptor::new());
 1456   1458   
        runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1457   1459   
            ::aws_runtime::auth::sigv4::SigV4AuthScheme::new(),
 1458   1460   
        ));
 1459   1461   
        #[cfg(feature = "sigv4a")]
 1460   1462   
        {
 1461   1463   
            runtime_components.push_auth_scheme(::aws_smithy_runtime_api::client::auth::SharedAuthScheme::new(
 1462   1464   
                ::aws_runtime::auth::sigv4a::SigV4aAuthScheme::new(),
 1463   1465   
            ));
 1464   1466   
        }

tmp-codegen-diff/aws-sdk/sdk/s3/tests/business_metrics.rs

@@ -1,0 +63,0 @@
    1         -
/*
    2         -
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    3         -
 * SPDX-License-Identifier: Apache-2.0
    4         -
 */
    5         -
    6         -
use aws_config::Region;
    7         -
use aws_runtime::{
    8         -
    sdk_feature::AwsSdkFeature, user_agent::test_util::assert_ua_contains_metric_values,
    9         -
};
   10         -
use aws_sdk_s3::{
   11         -
    config::{Intercept, IntoShared},
   12         -
    primitives::ByteStream,
   13         -
    Client, Config,
   14         -
};
   15         -
use aws_smithy_http_client::test_util::capture_request;
   16         -
   17         -
#[derive(Debug)]
   18         -
struct TransferManagerFeatureInterceptor;
   19         -
   20         -
impl Intercept for TransferManagerFeatureInterceptor {
   21         -
    fn name(&self) -> &'static str {
   22         -
        "TransferManagerFeature"
   23         -
    }
   24         -
   25         -
    fn read_before_execution(
   26         -
        &self,
   27         -
        _ctx: &aws_sdk_s3::config::interceptors::BeforeSerializationInterceptorContextRef<'_>,
   28         -
        cfg: &mut aws_sdk_s3::config::ConfigBag,
   29         -
    ) -> Result<(), aws_sdk_s3::error::BoxError> {
   30         -
        cfg.interceptor_state()
   31         -
            .store_append(AwsSdkFeature::S3Transfer);
   32         -
        Ok(())
   33         -
    }
   34         -
}
   35         -
   36         -
#[tokio::test]
   37         -
async fn test_track_metric_for_s3_transfer_manager() {
   38         -
    let (http_client, captured_request) = capture_request(None);
   39         -
    let mut conf_builder = Config::builder()
   40         -
        .region(Region::new("us-east-1"))
   41         -
        .http_client(http_client.clone())
   42         -
        .with_test_defaults();
   43         -
    // The S3 Transfer Manager uses a passed-in S3 client SDK for operations.
   44         -
    // By configuring an interceptor at the client level to track metrics,
   45         -
    // all operations executed by the client will automatically include the metric.
   46         -
    // This eliminates the need to apply `.config_override` on individual operations
   47         -
    // to insert the `TransferManagerFeatureInterceptor`.
   48         -
    conf_builder.push_interceptor(TransferManagerFeatureInterceptor.into_shared());
   49         -
    let client = Client::from_conf(conf_builder.build());
   50         -
   51         -
    let _ = client
   52         -
        .put_object()
   53         -
        .bucket("doesnotmatter")
   54         -
        .key("doesnotmatter")
   55         -
        .body(ByteStream::from_static("Hello, world".as_bytes()))
   56         -
        .send()
   57         -
        .await
   58         -
        .unwrap();
   59         -
   60         -
    let expected_req = captured_request.expect_request();
   61         -
    let user_agent = expected_req.headers().get("x-amz-user-agent").unwrap();
   62         -
    assert_ua_contains_metric_values(user_agent, &["G"]);
   63         -
}