pub enum SqsCredentials {
Default,
Profile {
name: String,
},
AccessKey {
access_key_id: String,
secret_access_key: String,
session_token: Option<String>,
},
AssumeRole {
role_arn: String,
session_name: Option<String>,
external_id: Option<String>,
},
WebIdentity,
}Expand description
How to authenticate with AWS SQS.
Serializes as { type: <method>, config: { … } } (adjacent tagging,
snake_case discriminators) — the consistent auth wire shape shared by
every faucet connector.
Variants§
Default
The AWS SDK default provider chain: environment variables, shared
config/credentials files, ECS/EKS container credentials, web-identity
tokens (AWS_WEB_IDENTITY_TOKEN_FILE / EKS IRSA), and EC2 instance
profiles — with automatic refresh/rotation.
Profile
A named profile from the shared AWS config/credentials files.
AccessKey
Static access keys. Prefer ${env:…} / secrets-manager interpolation
over literals in config files.
Fields
AssumeRole
Assume an IAM role via STS on top of the default provider chain.
Fields
WebIdentity
Web-identity federation (e.g. EKS IRSA). Equivalent to the default
chain, which honors AWS_WEB_IDENTITY_TOKEN_FILE + AWS_ROLE_ARN —
kept as an explicit variant so intent is visible in configs.
Trait Implementations§
Source§impl Clone for SqsCredentials
impl Clone for SqsCredentials
Source§fn clone(&self) -> SqsCredentials
fn clone(&self) -> SqsCredentials
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SqsCredentials
impl Debug for SqsCredentials
Source§impl Default for SqsCredentials
impl Default for SqsCredentials
Source§fn default() -> SqsCredentials
fn default() -> SqsCredentials
Source§impl<'de> Deserialize<'de> for SqsCredentials
impl<'de> Deserialize<'de> for SqsCredentials
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SqsCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SqsCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SqsCredentials
impl JsonSchema for SqsCredentials
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for SqsCredentials
impl Serialize for SqsCredentials
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SqsCredentials
impl RefUnwindSafe for SqsCredentials
impl Send for SqsCredentials
impl Sync for SqsCredentials
impl Unpin for SqsCredentials
impl UnsafeUnpin for SqsCredentials
impl UnwindSafe for SqsCredentials
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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