Enum scratchstack_arn::ArnError
source · 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)>
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()