pub enum ArnError {
InvalidAccountId(String),
InvalidArn(String),
InvalidPartition(String),
InvalidRegion(String),
InvalidResource(String),
InvalidScheme(String),
InvalidService(String),
}
Expand description
Errors that can be raise during the parsing of ARNs.
Variants§
InvalidAccountId(String)
Invalid AWS account id. The argument contains the specified account id.
InvalidArn(String)
Invalid or malformed ARN. The argument contains the specified ARN.
InvalidPartition(String)
Invalid partition. The argument contains the specified partition.
InvalidRegion(String)
Invalid region. The argument contains the specified region.
InvalidResource(String)
Invalid resource. The argument contains the specified resource.
InvalidScheme(String)
Invalid scheme. The scheme must be arn
. The argument contains the specified scheme.
InvalidService(String)
Invalid service. The argument contains the specified service.
Trait Implementations§
Source§impl Error for ArnError
impl Error for ArnError
1.30.0 · 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()
impl Eq for ArnError
impl StructuralPartialEq for ArnError
Auto Trait Implementations§
impl Freeze for ArnError
impl RefUnwindSafe for ArnError
impl Send for ArnError
impl Sync for ArnError
impl Unpin for ArnError
impl UnwindSafe for ArnError
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