pub struct BedrockCredentials { /* private fields */ }Available on crate feature
bedrock only.Expand description
AWS access credentials. Carries the same fields as
aws_credential_types::Credentials but is owned, Clone, and
kept opaque – the underlying secret is moved into a fresh
Credentials per call so this type is safe to share via Arc.
Implementations§
Source§impl BedrockCredentials
impl BedrockCredentials
Sourcepub fn new(
access_key_id: impl Into<String>,
secret_access_key: impl Into<String>,
) -> Self
pub fn new( access_key_id: impl Into<String>, secret_access_key: impl Into<String>, ) -> Self
Construct from access key ID + secret access key. Use
Self::with_session_token for STS-issued temporary credentials.
Sourcepub fn with_session_token(self, token: impl Into<String>) -> Self
pub fn with_session_token(self, token: impl Into<String>) -> Self
Attach an STS session token. Required when credentials come from
AssumeRole, IMDS, or any other temporary-credential source.
Trait Implementations§
Source§impl Clone for BedrockCredentials
impl Clone for BedrockCredentials
Source§fn clone(&self) -> BedrockCredentials
fn clone(&self) -> BedrockCredentials
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 moreAuto Trait Implementations§
impl Freeze for BedrockCredentials
impl RefUnwindSafe for BedrockCredentials
impl Send for BedrockCredentials
impl Sync for BedrockCredentials
impl Unpin for BedrockCredentials
impl UnsafeUnpin for BedrockCredentials
impl UnwindSafe for BedrockCredentials
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 moreCreates a shared type from an unshared type.