Struct rusoto_credential::StaticProvider [−][src]
pub struct StaticProvider { /* fields omitted */ }
Expand description
Provides AWS credentials from statically/programmatically provided strings.
Implementations
Creates a new Static Provider. This should be used when you want to statically, or programmatically provide access to AWS.
valid_for
is the number of seconds for which issued tokens are valid.
Creates a new minimal Static Provider. This will set the token as optional none.
Gets the AWS Access Key ID for this Static Provider.
Gets the AWS Secret Access Key for this Static Provider.
Returns the length in seconds this Static Provider will be valid for.
Trait Implementations
Performs the conversion.
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Produce a new AwsCredentials
future.
Auto Trait Implementations
impl RefUnwindSafe for StaticProvider
impl Send for StaticProvider
impl Sync for StaticProvider
impl Unpin for StaticProvider
impl UnwindSafe for StaticProvider
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more