#[non_exhaustive]pub enum ProviderError {
Io {
path: PathBuf,
source: Error,
},
FileTooLarge {
path: PathBuf,
observed: u64,
limit: u64,
},
Ini {
path: PathBuf,
source: ParseError,
},
Yaml {
path: PathBuf,
source: Error,
},
Validation {
path: PathBuf,
source: ValidationErrors,
},
InvalidEntry {
profile: Arc<str>,
source: ValidationError,
},
ChainTooLong {
profile: Arc<str>,
limit: usize,
},
StrictUnresolved {
count: usize,
first: Arc<str>,
},
}Expand description
Errors raised by the provider-resolver layer.
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.
Io
I/O failure reading ~/.aws/config or a profile-map YAML file.
FileTooLarge
The configured profile-map file exceeded the size cap.
Ini
INI parse error (~/.aws/config).
Yaml
YAML deserialise error.
Validation
validator rejected a field in the profile-map YAML.
Fields
§
source: ValidationErrorsAggregated validation errors.
InvalidEntry
An entry passed validator but failed our newtype check
(account-id / region length-charset). Carries the offending
profile name so the operator can fix the YAML.
ChainTooLong
source_profile chain exceeded the hop cap (8 per spec § 3.1).
Fields
StrictUnresolved
Resolver was configured in strict mode and one or more profiles
referenced from a Workspace had no entry in the profile map.
Trait Implementations§
Source§impl Debug for ProviderError
impl Debug for ProviderError
Source§impl Display for ProviderError
impl Display for ProviderError
Source§impl Error for ProviderError
impl Error for ProviderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<ProviderError> for Error
impl From<ProviderError> for Error
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProviderError
impl !RefUnwindSafe for ProviderError
impl Send for ProviderError
impl Sync for ProviderError
impl Unpin for ProviderError
impl UnsafeUnpin for ProviderError
impl !UnwindSafe for ProviderError
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>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP