pub enum PrincipalError {
Show 20 variants
CannotConvertToArn,
InvalidAccountId(String),
InvalidArn(String),
InvalidCanonicalUserId(String),
InvalidPartition(String),
InvalidFederatedUserName(String),
InvalidGroupName(String),
InvalidGroupId(String),
InvalidInstanceProfileName(String),
InvalidInstanceProfileId(String),
InvalidPath(String),
InvalidRegion(String),
InvalidResource(String),
InvalidRoleName(String),
InvalidRoleId(String),
InvalidScheme(String),
InvalidService(String),
InvalidSessionName(String),
InvalidUserName(String),
InvalidUserId(String),
}
Expand description
Errors that can be raise during the parsing of principals.
Variants§
CannotConvertToArn
Entity does not have a valid ARN.
InvalidAccountId(String)
Invalid AWS account id. The argument contains the specified account id.
InvalidArn(String)
Invalid ARN. The argument contains the specified ARN.
InvalidCanonicalUserId(String)
Invalid Canonical User Id. The argument contains the spcified canonical user id.
InvalidPartition(String)
Invalid partition. The argument contains the specified partition.
InvalidFederatedUserName(String)
Invalid federated user name. The argument contains the specified user name.
InvalidGroupName(String)
Invalid group name. The argument contains the specified group name.
InvalidGroupId(String)
Invalid group id. The argument contains the specified group id.
InvalidInstanceProfileName(String)
Invalid instance profile name. The argument contains the specified instance profile name.
InvalidInstanceProfileId(String)
Invalid instance profile id. The argument contains the specified instance profile id.
InvalidPath(String)
Invalid IAM path. The argument contains the specified path.
InvalidRegion(String)
Invalid region. The argument contains the specified region.
InvalidResource(String)
Invalid resource. The argument contains the specified resource.
InvalidRoleName(String)
Invalid role name. The argument contains the specified role name.
InvalidRoleId(String)
Invalid role id. The argument contains the specified role id.
InvalidScheme(String)
Invalid scheme. The argument contains the specified scheme.
InvalidService(String)
Invalid service. The argument contains the specified service name.
InvalidSessionName(String)
Invalid session name. The argument contains the specified session name.
InvalidUserName(String)
Invalid user name. The argument contains the specified user name.
InvalidUserId(String)
Invalid user id. The argument contains the specified user id.
Trait Implementations§
source§impl Debug for PrincipalError
impl Debug for PrincipalError
source§impl Display for PrincipalError
impl Display for PrincipalError
source§impl Error for PrincipalError
impl Error for PrincipalError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ArnError> for PrincipalError
impl From<ArnError> for PrincipalError
source§impl PartialEq<PrincipalError> for PrincipalError
impl PartialEq<PrincipalError> for PrincipalError
source§fn eq(&self, other: &PrincipalError) -> bool
fn eq(&self, other: &PrincipalError) -> bool
self
and other
values to be equal, and is used
by ==
.