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§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.