1#![cfg_attr(docsrs, feature(doc_cfg))]
8#![allow(clippy::derive_partial_eq_without_eq)]
12#![warn(
13    missing_docs,
14    rustdoc::missing_crate_level_docs,
15    missing_debug_implementations,
16    rust_2018_idioms,
17    unreachable_pub
18)]
19
20pub mod app_name;
21pub mod build_metadata;
22pub mod endpoint_config;
23pub mod origin;
24pub mod os_shim_internal;
25pub mod region;
26pub mod request_id;
27pub mod sdk_config;
28pub mod service_config;
29
30pub use sdk_config::SdkConfig;
31
32use aws_smithy_types::config_bag::{Storable, StoreReplace};
33use std::borrow::Cow;
34
35#[derive(Clone, Debug, PartialEq, Eq)]
39pub struct SigningName(Cow<'static, str>);
40impl AsRef<str> for SigningName {
41    fn as_ref(&self) -> &str {
42        &self.0
43    }
44}
45
46impl SigningName {
47    pub fn from_static(name: &'static str) -> Self {
49        SigningName(Cow::Borrowed(name))
50    }
51}
52
53impl From<String> for SigningName {
54    fn from(name: String) -> Self {
55        SigningName(Cow::Owned(name))
56    }
57}
58
59impl From<&'static str> for SigningName {
60    fn from(name: &'static str) -> Self {
61        Self::from_static(name)
62    }
63}
64
65impl Storable for SigningName {
66    type Storer = StoreReplace<Self>;
67}