pub enum Error {
Show 18 variants
TooShort,
TooLong,
TooFewComponents,
InvalidIdentifier(String),
MissingPrefix,
MissingPartition,
InvalidPartition,
MissingService,
InvalidService,
MissingRegion,
InvalidRegion,
RegionWildcardNotAllowed,
MissingAccountId,
InvalidAccountId(String),
AccountIdWildcardNotAllowed,
MissingResource,
InvalidResource(String),
ResourceWildcardNotAllowed,
}
Expand description
Errors that may arise parsing an ResourceName with FromStr::from_str()
.
Variants§
TooShort
String length must be greater than 8 corresponding to "arn:::::"
.
TooLong
String length must be under 2048 characters..
TooFewComponents
Need at least 6 components.
InvalidIdentifier(String)
Invalid Identifier
string value.
MissingPrefix
Missing the ‘arn’ prefix string.
MissingPartition
Missing the partition component.
InvalidPartition
The partition component provided is not valid.
MissingService
Missing the service component.
InvalidService
The service component provided is not valid.
MissingRegion
Missing the region component.
InvalidRegion
The partition region provided is not valid.
RegionWildcardNotAllowed
The particular resource type does not allow region wildcards.
MissingAccountId
Missing the account id component.
InvalidAccountId(String)
The partition account id provided is not valid.
AccountIdWildcardNotAllowed
The particular resource type does not allow account wildcards.
MissingResource
Missing the resource component.
InvalidResource(String)
The partition resource provided is not valid, the name of the particular component in error is included.
ResourceWildcardNotAllowed
The particular resource type does not allow resource wildcards.