pub struct AwsClientConfig {
pub account_id: String,
pub region: String,
pub credentials: AwsCredentials,
pub service_overrides: Option<AwsServiceOverrides>,
}Expand description
AWS client configuration
Fields§
§account_id: StringThe AWS Account ID.
region: StringThe AWS region.
credentials: AwsCredentialsAWS authentication credentials.
service_overrides: Option<AwsServiceOverrides>Service endpoint overrides for testing
Trait Implementations§
Source§impl AwsClientConfigExt for AwsClientConfig
impl AwsClientConfigExt for AwsClientConfig
Source§fn from_env<'life0, 'async_trait>(
environment_variables: &'life0 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn from_env<'life0, 'async_trait>(
environment_variables: &'life0 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a new AwsClientConfig from environment variables.
Source§fn from_std_env<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
fn from_std_env<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
Create a new AwsClientConfig from standard environment variables.
Source§fn impersonate<'life0, 'async_trait>(
&'life0 self,
config: AwsImpersonationConfig,
) -> Pin<Box<dyn Future<Output = Result<AwsClientConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn impersonate<'life0, 'async_trait>(
&'life0 self,
config: AwsImpersonationConfig,
) -> Pin<Box<dyn Future<Output = Result<AwsClientConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Assume an AWS IAM role and return a new platform config with the assumed credentials
Source§fn get_credentials(&self) -> Credentials
fn get_credentials(&self) -> Credentials
Get AWS credentials from this config.
Refreshable sources must be resolved before this synchronous method is
called. Callers that sign requests should use AwsCredentialProvider.
Source§fn get_web_identity_credentials<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AwsClientConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_web_identity_credentials<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<AwsClientConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get credentials for refreshable credential sources.
Source§impl Clone for AwsClientConfig
impl Clone for AwsClientConfig
Source§fn clone(&self) -> AwsClientConfig
fn clone(&self) -> AwsClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AwsClientConfig
impl Debug for AwsClientConfig
Source§impl<'de> Deserialize<'de> for AwsClientConfig
impl<'de> Deserialize<'de> for AwsClientConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AwsClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AwsClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AwsClientConfig
Source§impl PartialEq for AwsClientConfig
impl PartialEq for AwsClientConfig
Source§impl Serialize for AwsClientConfig
impl Serialize for AwsClientConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AwsClientConfig
Auto Trait Implementations§
impl Freeze for AwsClientConfig
impl RefUnwindSafe for AwsClientConfig
impl Send for AwsClientConfig
impl Sync for AwsClientConfig
impl Unpin for AwsClientConfig
impl UnsafeUnpin for AwsClientConfig
impl UnwindSafe for AwsClientConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.