pub struct AwsConfig {
pub region: Option<String>,
pub endpoint: Option<String>,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
pub assume_role: Option<String>,
pub session_name: Option<String>,
pub external_id: Option<String>,
pub profile: Option<String>,
pub credentials_file: Option<String>,
pub imds: Option<ImdsConfig>,
pub load_timeout_secs: Option<u64>,
}Expand description
Shared AWS authentication and region configuration.
Fields§
§region: Option<String>AWS region to operate in.
endpoint: Option<String>Custom AWS endpoint URL (for LocalStack, MinIO, etc.).
access_key_id: Option<String>AWS access key ID for static credentials.
secret_access_key: Option<String>AWS secret access key for static credentials.
session_token: Option<String>AWS session token for temporary credentials.
assume_role: Option<String>IAM role ARN to assume.
session_name: Option<String>Session name when assuming a role.
external_id: Option<String>External ID for cross-account role assumption.
profile: Option<String>AWS profile name from shared credentials file.
credentials_file: Option<String>Path to an AWS credentials file.
imds: Option<ImdsConfig>Instance Metadata Service (IMDS) configuration.
load_timeout_secs: Option<u64>Timeout in seconds for loading AWS credentials.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AwsConfig
impl<'de> Deserialize<'de> for AwsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasFieldsMetadata for AwsConfig
impl HasFieldsMetadata for AwsConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
impl StructuralPartialEq for AwsConfig
Auto Trait Implementations§
impl Freeze for AwsConfig
impl RefUnwindSafe for AwsConfig
impl Send for AwsConfig
impl Sync for AwsConfig
impl Unpin for AwsConfig
impl UnsafeUnpin for AwsConfig
impl UnwindSafe for AwsConfig
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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.