Struct reqsign::AwsDefaultLoader
source · pub struct AwsDefaultLoader { /* private fields */ }
Expand description
CredentialLoader will load credential from different methods.
Implementations§
source§impl DefaultLoader
impl DefaultLoader
sourcepub fn with_disable_ec2_metadata(self) -> Self
pub fn with_disable_ec2_metadata(self) -> Self
Disable load from ec2 metadata.
sourcepub async fn load(&self) -> Result<Option<Credential>>
pub async fn load(&self) -> Result<Option<Credential>>
Load credential.
Resolution order:
- Environment variables
- Shared config (
~/.aws/config
,~/.aws/credentials
) - Web Identity Tokens
- ECS (IAM Roles for Tasks) & General HTTP credentials:
- EC2 IMDSv2
Trait Implementations§
source§impl CredentialLoad for DefaultLoader
impl CredentialLoad for DefaultLoader
Auto Trait Implementations§
impl Freeze for DefaultLoader
impl !RefUnwindSafe for DefaultLoader
impl Send for DefaultLoader
impl Sync for DefaultLoader
impl Unpin for DefaultLoader
impl !UnwindSafe for DefaultLoader
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