AWS SDK
rev. 37ca4f54c48d351f8f3d2c0d6f191dc4f56fa6f4
Files changed:
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "polly";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-polly";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "route53";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-route53";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|
@@ -1615,1615 +1674,1675 @@
1615 1615 | .build()
|
1616 1616 | .expect("all field sets explicitly, can't fail")
|
1617 1617 | }
|
1618 1618 |
|
1619 1619 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1620 1620 |
|
1621 1621 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1622 1622 | let mut configured_plugins = ::std::vec::Vec::new();
|
1623 1623 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1624 1624 | #[cfg(feature = "behavior-version-latest")]
|
1625 1625 | {
|
1626 1626 | if config.behavior_version.is_none() {
|
1627 1627 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1628 1628 | }
|
1629 1629 | }
|
1630 1630 |
|
1631 1631 | let default_retry_partition = "s3";
|
1632 1632 | let default_retry_partition = match config.region() {
|
1633 1633 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1634 1634 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1635 1635 | };
|
1636 1636 |
|
1637 1637 | let scope = "aws-sdk-s3";
|
1638 1638 |
|
1639 1639 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1640 1640 | // defaults
|
1641 1641 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1642 1642 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1643 1643 | .with_retry_partition_name(default_retry_partition)
|
1644 1644 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1645 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1645 1646 | ))
|
1646 1647 | // user config
|
1647 1648 | .with_client_plugin(
|
1648 1649 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1649 1650 | .with_config(config.config.clone())
|
1650 1651 | .with_runtime_components(config.runtime_components.clone())
|
1651 1652 | )
|
1652 1653 | // codegen config
|
1653 1654 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1654 1655 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1655 1656 | .with_client_plugin(
|
1656 1657 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1657 1658 | .with_scope(scope)
|
1658 1659 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1659 1660 | .build()
|
1660 1661 | .expect("All required fields have been set")
|
1661 1662 | );
|
1662 1663 |
|
1663 1664 | plugins = plugins.with_client_plugin(crate::s3_express::runtime_plugin::S3ExpressRuntimePlugin::new(config.clone()));
|
1664 1665 |
|
1665 1666 | for plugin in configured_plugins {
|
1666 1667 | plugins = plugins.with_client_plugin(plugin);
|
1667 1668 | }
|
1668 1669 | plugins
|
1669 1670 | }
|
1670 1671 |
|
1671 1672 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1672 1673 |
|
1673 1674 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1674 1675 |
|
@@ -1476,1476 +1535,1536 @@
1476 1476 | .build()
|
1477 1477 | .expect("all field sets explicitly, can't fail")
|
1478 1478 | }
|
1479 1479 |
|
1480 1480 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1481 1481 |
|
1482 1482 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1483 1483 | let mut configured_plugins = ::std::vec::Vec::new();
|
1484 1484 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1485 1485 | #[cfg(feature = "behavior-version-latest")]
|
1486 1486 | {
|
1487 1487 | if config.behavior_version.is_none() {
|
1488 1488 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1489 1489 | }
|
1490 1490 | }
|
1491 1491 |
|
1492 1492 | let default_retry_partition = "s3control";
|
1493 1493 | let default_retry_partition = match config.region() {
|
1494 1494 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1495 1495 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1496 1496 | };
|
1497 1497 |
|
1498 1498 | let scope = "aws-sdk-s3control";
|
1499 1499 |
|
1500 1500 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1501 1501 | // defaults
|
1502 1502 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1503 1503 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1504 1504 | .with_retry_partition_name(default_retry_partition)
|
1505 1505 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1506 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1506 1507 | ))
|
1507 1508 | // user config
|
1508 1509 | .with_client_plugin(
|
1509 1510 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1510 1511 | .with_config(config.config.clone())
|
1511 1512 | .with_runtime_components(config.runtime_components.clone())
|
1512 1513 | )
|
1513 1514 | // codegen config
|
1514 1515 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1515 1516 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1516 1517 | .with_client_plugin(
|
1517 1518 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1518 1519 | .with_scope(scope)
|
1519 1520 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1520 1521 | .build()
|
1521 1522 | .expect("All required fields have been set")
|
1522 1523 | );
|
1523 1524 |
|
1524 1525 | for plugin in configured_plugins {
|
1525 1526 | plugins = plugins.with_client_plugin(plugin);
|
1526 1527 | }
|
1527 1528 | plugins
|
1528 1529 | }
|
1529 1530 |
|
1530 1531 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1531 1532 |
|
1532 1533 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1533 1534 |
|
1534 1535 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1535 1536 |
|
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "signin";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-signin";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "sso";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-sso";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "ssooidc";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-ssooidc";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "sts";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-sts";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|
@@ -1465,1465 +1524,1525 @@
1465 1465 | .build()
|
1466 1466 | .expect("all field sets explicitly, can't fail")
|
1467 1467 | }
|
1468 1468 |
|
1469 1469 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1470 1470 |
|
1471 1471 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1472 1472 | let mut configured_plugins = ::std::vec::Vec::new();
|
1473 1473 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1474 1474 | #[cfg(feature = "behavior-version-latest")]
|
1475 1475 | {
|
1476 1476 | if config.behavior_version.is_none() {
|
1477 1477 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1478 1478 | }
|
1479 1479 | }
|
1480 1480 |
|
1481 1481 | let default_retry_partition = "timestreamquery";
|
1482 1482 | let default_retry_partition = match config.region() {
|
1483 1483 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1484 1484 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1485 1485 | };
|
1486 1486 |
|
1487 1487 | let scope = "aws-sdk-timestreamquery";
|
1488 1488 |
|
1489 1489 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1490 1490 | // defaults
|
1491 1491 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1492 1492 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1493 1493 | .with_retry_partition_name(default_retry_partition)
|
1494 1494 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1495 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1495 1496 | ))
|
1496 1497 | // user config
|
1497 1498 | .with_client_plugin(
|
1498 1499 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1499 1500 | .with_config(config.config.clone())
|
1500 1501 | .with_runtime_components(config.runtime_components.clone())
|
1501 1502 | )
|
1502 1503 | // codegen config
|
1503 1504 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1504 1505 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1505 1506 | .with_client_plugin(
|
1506 1507 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1507 1508 | .with_scope(scope)
|
1508 1509 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1509 1510 | .build()
|
1510 1511 | .expect("All required fields have been set")
|
1511 1512 | );
|
1512 1513 |
|
1513 1514 | for plugin in configured_plugins {
|
1514 1515 | plugins = plugins.with_client_plugin(plugin);
|
1515 1516 | }
|
1516 1517 | plugins
|
1517 1518 | }
|
1518 1519 |
|
1519 1520 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1520 1521 |
|
1521 1522 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1522 1523 |
|
1523 1524 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1524 1525 |
|
@@ -1465,1465 +1524,1525 @@
1465 1465 | .build()
|
1466 1466 | .expect("all field sets explicitly, can't fail")
|
1467 1467 | }
|
1468 1468 |
|
1469 1469 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1470 1470 |
|
1471 1471 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1472 1472 | let mut configured_plugins = ::std::vec::Vec::new();
|
1473 1473 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1474 1474 | #[cfg(feature = "behavior-version-latest")]
|
1475 1475 | {
|
1476 1476 | if config.behavior_version.is_none() {
|
1477 1477 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1478 1478 | }
|
1479 1479 | }
|
1480 1480 |
|
1481 1481 | let default_retry_partition = "timestreamwrite";
|
1482 1482 | let default_retry_partition = match config.region() {
|
1483 1483 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1484 1484 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1485 1485 | };
|
1486 1486 |
|
1487 1487 | let scope = "aws-sdk-timestreamwrite";
|
1488 1488 |
|
1489 1489 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1490 1490 | // defaults
|
1491 1491 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1492 1492 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1493 1493 | .with_retry_partition_name(default_retry_partition)
|
1494 1494 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1495 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1495 1496 | ))
|
1496 1497 | // user config
|
1497 1498 | .with_client_plugin(
|
1498 1499 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1499 1500 | .with_config(config.config.clone())
|
1500 1501 | .with_runtime_components(config.runtime_components.clone())
|
1501 1502 | )
|
1502 1503 | // codegen config
|
1503 1504 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1504 1505 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1505 1506 | .with_client_plugin(
|
1506 1507 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1507 1508 | .with_scope(scope)
|
1508 1509 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1509 1510 | .build()
|
1510 1511 | .expect("All required fields have been set")
|
1511 1512 | );
|
1512 1513 |
|
1513 1514 | for plugin in configured_plugins {
|
1514 1515 | plugins = plugins.with_client_plugin(plugin);
|
1515 1516 | }
|
1516 1517 | plugins
|
1517 1518 | }
|
1518 1519 |
|
1519 1520 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1520 1521 |
|
1521 1522 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1522 1523 |
|
1523 1524 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1524 1525 |
|
@@ -1447,1447 +1506,1507 @@
1447 1447 | .build()
|
1448 1448 | .expect("all field sets explicitly, can't fail")
|
1449 1449 | }
|
1450 1450 |
|
1451 1451 | pub use ::aws_smithy_async::rt::sleep::Sleep;
|
1452 1452 |
|
1453 1453 | pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
|
1454 1454 | let mut configured_plugins = ::std::vec::Vec::new();
|
1455 1455 | ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
|
1456 1456 | #[cfg(feature = "behavior-version-latest")]
|
1457 1457 | {
|
1458 1458 | if config.behavior_version.is_none() {
|
1459 1459 | config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
|
1460 1460 | }
|
1461 1461 | }
|
1462 1462 |
|
1463 1463 | let default_retry_partition = "transcribestreaming";
|
1464 1464 | let default_retry_partition = match config.region() {
|
1465 1465 | Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
|
1466 1466 | None => ::std::borrow::Cow::from(default_retry_partition),
|
1467 1467 | };
|
1468 1468 |
|
1469 1469 | let scope = "aws-sdk-transcribestreaming";
|
1470 1470 |
|
1471 1471 | let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
|
1472 1472 | // defaults
|
1473 1473 | .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
|
1474 1474 | ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
|
1475 1475 | .with_retry_partition_name(default_retry_partition)
|
1476 1476 | .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
|
1477 + | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1477 1478 | ))
|
1478 1479 | // user config
|
1479 1480 | .with_client_plugin(
|
1480 1481 | ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
|
1481 1482 | .with_config(config.config.clone())
|
1482 1483 | .with_runtime_components(config.runtime_components.clone())
|
1483 1484 | )
|
1484 1485 | // codegen config
|
1485 1486 | .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
|
1486 1487 | .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
|
1487 1488 | .with_client_plugin(
|
1488 1489 | ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
|
1489 1490 | .with_scope(scope)
|
1490 1491 | .with_time_source(config.runtime_components.time_source().unwrap_or_default())
|
1491 1492 | .build()
|
1492 1493 | .expect("All required fields have been set")
|
1493 1494 | );
|
1494 1495 |
|
1495 1496 | for plugin in configured_plugins {
|
1496 1497 | plugins = plugins.with_client_plugin(plugin);
|
1497 1498 | }
|
1498 1499 | plugins
|
1499 1500 | }
|
1500 1501 |
|
1501 1502 | pub use ::aws_smithy_types::config_bag::FrozenLayer;
|
1502 1503 |
|
1503 1504 | pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
|
1504 1505 |
|
1505 1506 | pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
|
1506 1507 |
|