pub enum GetCredentialsForIdentityError {
ExternalService(String),
InternalError(String),
InvalidIdentityPoolConfiguration(String),
InvalidParameter(String),
NotAuthorized(String),
ResourceConflict(String),
ResourceNotFound(String),
TooManyRequests(String),
}Expand description
Errors returned by GetCredentialsForIdentity
Variants§
ExternalService(String)
An exception thrown when a dependent service such as Facebook or Twitter is not responding
InternalError(String)
Thrown when the service encounters an error during processing the request.
InvalidIdentityPoolConfiguration(String)
Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.
InvalidParameter(String)
Thrown for missing or bad input parameter(s).
NotAuthorized(String)
Thrown when a user is not authorized to access the requested resource.
ResourceConflict(String)
Thrown when a user tries to use a login which is already linked to another account.
ResourceNotFound(String)
Thrown when the requested resource (for example, a dataset or record) does not exist.
TooManyRequests(String)
Thrown when a request is throttled.
Implementations§
Trait Implementations§
Source§impl Error for GetCredentialsForIdentityError
impl Error for GetCredentialsForIdentityError
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()
Source§impl PartialEq for GetCredentialsForIdentityError
impl PartialEq for GetCredentialsForIdentityError
Source§fn eq(&self, other: &GetCredentialsForIdentityError) -> bool
fn eq(&self, other: &GetCredentialsForIdentityError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetCredentialsForIdentityError
Auto Trait Implementations§
impl Freeze for GetCredentialsForIdentityError
impl RefUnwindSafe for GetCredentialsForIdentityError
impl Send for GetCredentialsForIdentityError
impl Sync for GetCredentialsForIdentityError
impl Unpin for GetCredentialsForIdentityError
impl UnwindSafe for GetCredentialsForIdentityError
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