pub struct FileCredentialsProvider { /* private fields */ }
Expand description
Provider for authenticating to AWS with MFA using config and credentials files
Implementationsยง
Trait Implementationsยง
Sourceยงimpl CredentialsProvider for FileCredentialsProvider
impl CredentialsProvider for FileCredentialsProvider
Sourceยงfn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Credentials>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<Credentials>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate and return current Credentials
from credentials file unless expired
Sourceยงfn authenticate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Credentials, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn authenticate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Credentials, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Authenticate using aws_config::profile::ProfileFileCredentialsProvider
and return new Credentials
Auto Trait Implementationsยง
impl Freeze for FileCredentialsProvider
impl RefUnwindSafe for FileCredentialsProvider
impl Send for FileCredentialsProvider
impl Sync for FileCredentialsProvider
impl Unpin for FileCredentialsProvider
impl UnwindSafe for FileCredentialsProvider
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
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.