Enum aws_config::profile::credentials::ProfileFileError
source · #[non_exhaustive]pub enum ProfileFileError {
InvalidProfile(ProfileFileLoadError),
NoProfilesDefined,
ProfileDidNotContainCredentials {
profile: String,
},
CredentialLoop {
profiles: Vec<String>,
next: String,
},
MissingCredentialSource {
profile: String,
message: Cow<'static, str>,
},
InvalidCredentialSource {
profile: String,
message: Cow<'static, str>,
},
MissingProfile {
profile: String,
message: Cow<'static, str>,
},
UnknownProvider {
name: String,
},
FeatureNotEnabled {
feature: Cow<'static, str>,
message: Option<Cow<'static, str>>,
},
MissingSsoSession {
profile: String,
sso_session: String,
},
InvalidSsoConfig {
profile: String,
message: Cow<'static, str>,
},
TokenProviderConfig {},
}
Expand description
An Error building a Credential source from an AWS Profile
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidProfile(ProfileFileLoadError)
The profile was not a valid AWS profile
NoProfilesDefined
No profiles existed (the profile was empty)
ProfileDidNotContainCredentials
The profile did not contain any credential information
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
CredentialLoop
The profile contained an infinite loop of source_profile
references
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
MissingCredentialSource
The profile was missing a credential source
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
InvalidCredentialSource
The profile contained an invalid credential source
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
MissingProfile
The profile referred to a another profile by name that was not defined
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
UnknownProvider
The profile referred to credential_source
that was not defined
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
FeatureNotEnabled
Feature not enabled
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
MissingSsoSession
Missing sso-session section in config
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
InvalidSsoConfig
Invalid SSO configuration
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
TokenProviderConfig
Profile is intended to be used in the token provider chain rather than in the credentials chain.
Trait Implementations§
source§impl Debug for ProfileFileError
impl Debug for ProfileFileError
source§impl Display for ProfileFileError
impl Display for ProfileFileError
source§impl Error for ProfileFileError
impl Error for ProfileFileError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ProfileFileError
impl !RefUnwindSafe for ProfileFileError
impl Send for ProfileFileError
impl Sync for ProfileFileError
impl Unpin for ProfileFileError
impl !UnwindSafe for ProfileFileError
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> 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>
Creates a shared type from an unshared type.