pub struct ProcessCredentialProvider { /* private fields */ }Expand description
Process Credentials Provider
This provider executes an external process to retrieve credentials. The process must output JSON in a specific format to stdout.
§Configuration
Process credentials are typically configured in ~/.aws/config:
[profile my-process-profile]
credential_process = /path/to/credential/helper --arg1 value1§Output Format
The process must output JSON with the following structure:
{
"Version": 1,
"AccessKeyId": "access_key",
"SecretAccessKey": "secret_key",
"SessionToken": "session_token",
"Expiration": "2023-12-01T00:00:00Z"
}Implementations§
Source§impl ProcessCredentialProvider
impl ProcessCredentialProvider
Sourcepub fn with_profile(self, profile: impl Into<String>) -> Self
pub fn with_profile(self, profile: impl Into<String>) -> Self
Set the profile name to use
Sourcepub fn with_command(self, command: impl Into<String>) -> Self
pub fn with_command(self, command: impl Into<String>) -> Self
Set the command directly
Trait Implementations§
Source§impl Clone for ProcessCredentialProvider
impl Clone for ProcessCredentialProvider
Source§fn clone(&self) -> ProcessCredentialProvider
fn clone(&self) -> ProcessCredentialProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessCredentialProvider
impl Debug for ProcessCredentialProvider
Source§impl Default for ProcessCredentialProvider
impl Default for ProcessCredentialProvider
Source§impl ProvideCredential for ProcessCredentialProvider
impl ProvideCredential for ProcessCredentialProvider
Source§type Credential = Credential
type Credential = Credential
Credential returned by this loader. Read more
Auto Trait Implementations§
impl Freeze for ProcessCredentialProvider
impl RefUnwindSafe for ProcessCredentialProvider
impl Send for ProcessCredentialProvider
impl Sync for ProcessCredentialProvider
impl Unpin for ProcessCredentialProvider
impl UnwindSafe for ProcessCredentialProvider
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