AWS SDK

AWS SDK

rev. e9e7d4cbd8eea651d87d4342fafbfe566feb544b

Files changed:

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("Polly", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("Polly", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("Route 53", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("Route 53", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1521,1521 +1580,1592 @@
 1541   1541   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1542   1542   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1543   1543   
 1544   1544   
pub use ::aws_credential_types::Credentials;
 1545   1545   
 1546   1546   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1547   1547   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1548   1548   
        let mut builder = Builder::default();
 1549   1549   
        builder.set_credentials_provider(input.credentials_provider());
 1550   1550   
        builder = builder.region(input.region().cloned());
        1551  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1552  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1553  +
        let has_service_specific_endpoint = input
        1554  +
            .service_config()
        1555  +
            .and_then(|conf| conf.load_config(service_config_key("S3", "AWS_ENDPOINT_URL", "endpoint_url")))
        1556  +
            .is_some();
        1557  +
        1558  +
        if has_global_endpoint || has_service_specific_endpoint {
        1559  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1560  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1561  +
            ));
        1562  +
        }
 1551   1563   
        builder.set_request_checksum_calculation(input.request_checksum_calculation());
 1552   1564   
        builder.set_response_checksum_validation(input.response_checksum_validation());
 1553   1565   
        builder.set_use_fips(input.use_fips());
 1554   1566   
        builder.set_use_dual_stack(input.use_dual_stack());
 1555   1567   
        if input.get_origin("endpoint_url").is_client_config() {
 1556   1568   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1557   1569   
        } else {
 1558   1570   
            builder.set_endpoint_url(
 1559   1571   
                input
 1560   1572   
                    .service_config()

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

@@ -1392,1392 +1451,1463 @@
 1412   1412   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1413   1413   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1414   1414   
 1415   1415   
pub use ::aws_credential_types::Credentials;
 1416   1416   
 1417   1417   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1418   1418   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1419   1419   
        let mut builder = Builder::default();
 1420   1420   
        builder.set_credentials_provider(input.credentials_provider());
 1421   1421   
        builder = builder.region(input.region().cloned());
        1422  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1423  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1424  +
        let has_service_specific_endpoint = input
        1425  +
            .service_config()
        1426  +
            .and_then(|conf| conf.load_config(service_config_key("S3 Control", "AWS_ENDPOINT_URL", "endpoint_url")))
        1427  +
            .is_some();
        1428  +
        1429  +
        if has_global_endpoint || has_service_specific_endpoint {
        1430  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1431  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1432  +
            ));
        1433  +
        }
 1422   1434   
        builder.set_use_fips(input.use_fips());
 1423   1435   
        builder.set_use_dual_stack(input.use_dual_stack());
 1424   1436   
        if input.get_origin("endpoint_url").is_client_config() {
 1425   1437   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1426   1438   
        } else {
 1427   1439   
            builder.set_endpoint_url(
 1428   1440   
                input
 1429   1441   
                    .service_config()
 1430   1442   
                    .and_then(|conf| {
 1431   1443   
                        conf.load_config(service_config_key("S3 Control", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("Signin", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("Signin", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("SSO", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("SSO", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("SSO OIDC", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("SSO OIDC", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("STS", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("STS", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1381,1381 +1440,1452 @@
 1401   1401   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1402   1402   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1403   1403   
 1404   1404   
pub use ::aws_credential_types::Credentials;
 1405   1405   
 1406   1406   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1407   1407   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1408   1408   
        let mut builder = Builder::default();
 1409   1409   
        builder.set_credentials_provider(input.credentials_provider());
 1410   1410   
        builder = builder.region(input.region().cloned());
        1411  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1412  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1413  +
        let has_service_specific_endpoint = input
        1414  +
            .service_config()
        1415  +
            .and_then(|conf| conf.load_config(service_config_key("Timestream Query", "AWS_ENDPOINT_URL", "endpoint_url")))
        1416  +
            .is_some();
        1417  +
        1418  +
        if has_global_endpoint || has_service_specific_endpoint {
        1419  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1420  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1421  +
            ));
        1422  +
        }
 1411   1423   
        builder.set_use_fips(input.use_fips());
 1412   1424   
        builder.set_use_dual_stack(input.use_dual_stack());
 1413   1425   
        if input.get_origin("endpoint_url").is_client_config() {
 1414   1426   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1415   1427   
        } else {
 1416   1428   
            builder.set_endpoint_url(
 1417   1429   
                input
 1418   1430   
                    .service_config()
 1419   1431   
                    .and_then(|conf| {
 1420   1432   
                        conf.load_config(service_config_key("Timestream Query", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1381,1381 +1440,1452 @@
 1401   1401   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1402   1402   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1403   1403   
 1404   1404   
pub use ::aws_credential_types::Credentials;
 1405   1405   
 1406   1406   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1407   1407   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1408   1408   
        let mut builder = Builder::default();
 1409   1409   
        builder.set_credentials_provider(input.credentials_provider());
 1410   1410   
        builder = builder.region(input.region().cloned());
        1411  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1412  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1413  +
        let has_service_specific_endpoint = input
        1414  +
            .service_config()
        1415  +
            .and_then(|conf| conf.load_config(service_config_key("Timestream Write", "AWS_ENDPOINT_URL", "endpoint_url")))
        1416  +
            .is_some();
        1417  +
        1418  +
        if has_global_endpoint || has_service_specific_endpoint {
        1419  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1420  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1421  +
            ));
        1422  +
        }
 1411   1423   
        builder.set_use_fips(input.use_fips());
 1412   1424   
        builder.set_use_dual_stack(input.use_dual_stack());
 1413   1425   
        if input.get_origin("endpoint_url").is_client_config() {
 1414   1426   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1415   1427   
        } else {
 1416   1428   
            builder.set_endpoint_url(
 1417   1429   
                input
 1418   1430   
                    .service_config()
 1419   1431   
                    .and_then(|conf| {
 1420   1432   
                        conf.load_config(service_config_key("Timestream Write", "AWS_ENDPOINT_URL", "endpoint_url"))

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

@@ -1363,1363 +1422,1434 @@
 1383   1383   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1384   1384   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1385   1385   
 1386   1386   
pub use ::aws_credential_types::Credentials;
 1387   1387   
 1388   1388   
impl From<&::aws_types::sdk_config::SdkConfig> for Builder {
 1389   1389   
    fn from(input: &::aws_types::sdk_config::SdkConfig) -> Self {
 1390   1390   
        let mut builder = Builder::default();
 1391   1391   
        builder.set_credentials_provider(input.credentials_provider());
 1392   1392   
        builder = builder.region(input.region().cloned());
        1393  +
        // Track endpoint override metric if endpoint URL is configured from any source
        1394  +
        let has_global_endpoint = input.endpoint_url().is_some();
        1395  +
        let has_service_specific_endpoint = input
        1396  +
            .service_config()
        1397  +
            .and_then(|conf| conf.load_config(service_config_key("Transcribe Streaming", "AWS_ENDPOINT_URL", "endpoint_url")))
        1398  +
            .is_some();
        1399  +
        1400  +
        if has_global_endpoint || has_service_specific_endpoint {
        1401  +
            builder.push_runtime_plugin(::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin::new(
        1402  +
                ::aws_runtime::endpoint_override::EndpointOverrideRuntimePlugin::new_with_feature_flag(),
        1403  +
            ));
        1404  +
        }
 1393   1405   
        builder.set_use_fips(input.use_fips());
 1394   1406   
        builder.set_use_dual_stack(input.use_dual_stack());
 1395   1407   
        if input.get_origin("endpoint_url").is_client_config() {
 1396   1408   
            builder.set_endpoint_url(input.endpoint_url().map(|s| s.to_string()));
 1397   1409   
        } else {
 1398   1410   
            builder.set_endpoint_url(
 1399   1411   
                input
 1400   1412   
                    .service_config()
 1401   1413   
                    .and_then(|conf| {
 1402   1414   
                        conf.load_config(service_config_key("Transcribe Streaming", "AWS_ENDPOINT_URL", "endpoint_url"))