pub struct AwsCredentialsProvider { /* private fields */ }Expand description
A configured AWS credentials provider. This can be used to connect to AWS services.
Implementations§
Source§impl AwsCredentialsProvider
impl AwsCredentialsProvider
Sourcepub fn new(
region: impl AsRef<str>,
credentials: Credentials,
) -> Result<AwsCredentialsProvider, AuthError>
pub fn new( region: impl AsRef<str>, credentials: Credentials, ) -> Result<AwsCredentialsProvider, AuthError>
The credentials to use when connecting to AWS services.
Examples:
let provider = AwsCredentialsProvider::new("us-east-1", build_environment_aws_credentials!());Auto Trait Implementations§
impl !Freeze for AwsCredentialsProvider
impl RefUnwindSafe for AwsCredentialsProvider
impl Send for AwsCredentialsProvider
impl Sync for AwsCredentialsProvider
impl Unpin for AwsCredentialsProvider
impl UnwindSafe for AwsCredentialsProvider
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