pub struct AwsConfigEntry {
pub profile_name: String,
pub source: AwsConfigSource,
pub(crate) access_key_id: Option<String>,
pub(crate) secret_access_key: Option<String>,
pub(crate) session_token: Option<String>,
pub region: Option<String>,
pub source_profile: Option<String>,
pub role_arn: Option<String>,
pub mfa_serial: Option<String>,
pub sso_session: Option<String>,
pub chain_ref: Option<ProfileChainRef>,
}Expand description
A single AWS profile as parsed from credentials / config files or env vars.
§IPC safety
The three secret fields (access_key_id, secret_access_key,
session_token) are intentionally:
pub(crate)— not visible outside this crate.#[serde(skip_serializing)]— never emitted byserde_json::to_*.
This means tests may inspect the fields directly, but no Tauri command can inadvertently leak credentials through the IPC boundary.
Fields§
§profile_name: StringThe profile name as it appears in the config files (e.g. "default", "dev").
source: AwsConfigSourceWhich file (or env) this entry originated from.
access_key_id: Option<String>AWS access key ID. Parsed internally; never emitted over IPC.
secret_access_key: Option<String>AWS secret access key. Parsed internally; never emitted over IPC.
session_token: Option<String>AWS session token (for temporary credentials). Never emitted over IPC.
region: Option<String>AWS region (e.g. "us-east-1").
source_profile: Option<String>Named profile whose credentials are delegated to (role chaining).
role_arn: Option<String>IAM role ARN to assume.
mfa_serial: Option<String>MFA device serial ARN required before assuming the role.
sso_session: Option<String>SSO session block name in ~/.aws/config.
chain_ref: Option<ProfileChainRef>Role-chaining reference, populated when role_arn is present.
Trait Implementations§
Source§impl Clone for AwsConfigEntry
impl Clone for AwsConfigEntry
Source§fn clone(&self) -> AwsConfigEntry
fn clone(&self) -> AwsConfigEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AwsConfigEntry
impl Debug for AwsConfigEntry
Source§impl<'de> Deserialize<'de> for AwsConfigEntry
impl<'de> Deserialize<'de> for AwsConfigEntry
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>,
Auto Trait Implementations§
impl Freeze for AwsConfigEntry
impl RefUnwindSafe for AwsConfigEntry
impl Send for AwsConfigEntry
impl Sync for AwsConfigEntry
impl Unpin for AwsConfigEntry
impl UnsafeUnpin for AwsConfigEntry
impl UnwindSafe for AwsConfigEntry
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§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>
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