Struct rusoto_credential::AwsCredentials [−][src]
pub struct AwsCredentials { /* fields omitted */ }
Expand description
AWS API access credentials, including access key, secret key, token (for IAM profiles), expiration timestamp, and claims from federated login.
Anonymous example
Some AWS services, like s3 do
not require authenticated credentials. For these cases you can use AwsCredentials::default
with StaticProvider
.
Implementations
Create a new AwsCredentials
from a key ID, secret key, optional access token, and expiry
time.
Get a reference to the access key ID.
Get a reference to the secret access key.
Get a reference to the expiry time.
Get the mutable token claims
Trait Implementations
Return true if a type is anonymous, false otherwise
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AwsCredentials
impl Send for AwsCredentials
impl Sync for AwsCredentials
impl Unpin for AwsCredentials
impl UnwindSafe for AwsCredentials
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