pub enum ResolvedS3Credentials {
Static {
access_key_id: SecretString,
secret_access_key: SecretString,
session_token: Option<SecretString>,
},
DefaultChain {
profile: Option<String>,
},
}Expand description
Validated runtime form of S3 credentials (#437). See
ResolvedS3Config for the constructor invariant.
Variants§
Static
Static IAM credentials.
Fields
§
access_key_id: SecretStringAWS access key ID. Held in crate::config::secret::SecretString
so an incidental Debug print or panic backtrace cannot
leak it.
§
secret_access_key: SecretStringAWS secret access key. Same redaction discipline.
§
session_token: Option<SecretString>Optional STS session token, redacted.
DefaultChain
Use the AWS default credential chain. profile overrides the
default profile name for ~/.aws/credentials.
Trait Implementations§
Source§impl Clone for ResolvedS3Credentials
impl Clone for ResolvedS3Credentials
Auto Trait Implementations§
impl Freeze for ResolvedS3Credentials
impl RefUnwindSafe for ResolvedS3Credentials
impl Send for ResolvedS3Credentials
impl Sync for ResolvedS3Credentials
impl Unpin for ResolvedS3Credentials
impl UnsafeUnpin for ResolvedS3Credentials
impl UnwindSafe for ResolvedS3Credentials
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more