Enum aws_sdk_cognitoidentityprovider::Error [−][src]
#[non_exhaustive]
pub enum Error {
Show 41 variants
AliasExistsException(AliasExistsException),
CodeDeliveryFailureException(CodeDeliveryFailureException),
CodeMismatchException(CodeMismatchException),
ConcurrentModificationException(ConcurrentModificationException),
DuplicateProviderException(DuplicateProviderException),
EnableSoftwareTokenMfaException(EnableSoftwareTokenMfaException),
ExpiredCodeException(ExpiredCodeException),
GroupExistsException(GroupExistsException),
InternalErrorException(InternalErrorException),
InvalidEmailRoleAccessPolicyException(InvalidEmailRoleAccessPolicyException),
InvalidLambdaResponseException(InvalidLambdaResponseException),
InvalidOAuthFlowException(InvalidOAuthFlowException),
InvalidParameterException(InvalidParameterException),
InvalidPasswordException(InvalidPasswordException),
InvalidSmsRoleAccessPolicyException(InvalidSmsRoleAccessPolicyException),
InvalidSmsRoleTrustRelationshipException(InvalidSmsRoleTrustRelationshipException),
InvalidUserPoolConfigurationException(InvalidUserPoolConfigurationException),
LimitExceededException(LimitExceededException),
MfaMethodNotFoundException(MfaMethodNotFoundException),
NotAuthorizedException(NotAuthorizedException),
PasswordResetRequiredException(PasswordResetRequiredException),
PreconditionNotMetException(PreconditionNotMetException),
ResourceNotFoundException(ResourceNotFoundException),
ScopeDoesNotExistException(ScopeDoesNotExistException),
SoftwareTokenMfaNotFoundException(SoftwareTokenMfaNotFoundException),
TooManyFailedAttemptsException(TooManyFailedAttemptsException),
TooManyRequestsException(TooManyRequestsException),
UnauthorizedException(UnauthorizedException),
UnexpectedLambdaException(UnexpectedLambdaException),
UnsupportedIdentityProviderException(UnsupportedIdentityProviderException),
UnsupportedOperationException(UnsupportedOperationException),
UnsupportedTokenTypeException(UnsupportedTokenTypeException),
UnsupportedUserStateException(UnsupportedUserStateException),
UserImportInProgressException(UserImportInProgressException),
UserLambdaValidationException(UserLambdaValidationException),
UserNotConfirmedException(UserNotConfirmedException),
UserNotFoundException(UserNotFoundException),
UserPoolAddOnNotEnabledException(UserPoolAddOnNotEnabledException),
UserPoolTaggingException(UserPoolTaggingException),
UsernameExistsException(UsernameExistsException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AliasExistsException(AliasExistsException)
Tuple Fields
This exception is thrown when a user tries to confirm the account with an email or phone number that has already been supplied as an alias from a different account. This exception tells user that an account with this email or phone already exists.
CodeDeliveryFailureException(CodeDeliveryFailureException)
Tuple Fields
This exception is thrown when a verification code fails to deliver successfully.
CodeMismatchException(CodeMismatchException)
Tuple Fields
This exception is thrown if the provided code does not match what the server was expecting.
ConcurrentModificationException(ConcurrentModificationException)
Tuple Fields
This exception is thrown if two or more modifications are happening concurrently.
DuplicateProviderException(DuplicateProviderException)
Tuple Fields
This exception is thrown when the provider is already supported by the user pool.
EnableSoftwareTokenMfaException(EnableSoftwareTokenMfaException)
Tuple Fields
This exception is thrown when there is a code mismatch and the service fails to configure the software token TOTP multi-factor authentication (MFA).
ExpiredCodeException(ExpiredCodeException)
Tuple Fields
This exception is thrown if a code has expired.
GroupExistsException(GroupExistsException)
Tuple Fields
This exception is thrown when Amazon Cognito encounters a group that already exists in the user pool.
InternalErrorException(InternalErrorException)
Tuple Fields
This exception is thrown when Amazon Cognito encounters an internal error.
InvalidEmailRoleAccessPolicyException(InvalidEmailRoleAccessPolicyException)
Tuple Fields
This exception is thrown when Amazon Cognito is not allowed to use your email identity. HTTP status code: 400.
InvalidLambdaResponseException(InvalidLambdaResponseException)
Tuple Fields
This exception is thrown when the Amazon Cognito service encounters an invalid Lambda response.
InvalidOAuthFlowException(InvalidOAuthFlowException)
Tuple Fields
This exception is thrown when the specified OAuth flow is invalid.
InvalidParameterException(InvalidParameterException)
Tuple Fields
This exception is thrown when the Amazon Cognito service encounters an invalid parameter.
InvalidPasswordException(InvalidPasswordException)
Tuple Fields
This exception is thrown when the Amazon Cognito service encounters an invalid password.
InvalidSmsRoleAccessPolicyException(InvalidSmsRoleAccessPolicyException)
Tuple Fields
This exception is returned when the role provided for SMS configuration does not have permission to publish using Amazon SNS.
InvalidSmsRoleTrustRelationshipException(InvalidSmsRoleTrustRelationshipException)
Tuple Fields
This exception is thrown when the trust relationship is invalid for the role provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com
or the external ID provided in the role does not match what is provided in the SMS configuration for the user pool.
InvalidUserPoolConfigurationException(InvalidUserPoolConfigurationException)
Tuple Fields
This exception is thrown when the user pool configuration is invalid.
LimitExceededException(LimitExceededException)
Tuple Fields
This exception is thrown when a user exceeds the limit for a requested Amazon Web Services resource.
MfaMethodNotFoundException(MfaMethodNotFoundException)
Tuple Fields
This exception is thrown when Amazon Cognito cannot find a multi-factor authentication (MFA) method.
NotAuthorizedException(NotAuthorizedException)
Tuple Fields
This exception is thrown when a user is not authorized.
PasswordResetRequiredException(PasswordResetRequiredException)
Tuple Fields
This exception is thrown when a password reset is required.
PreconditionNotMetException(PreconditionNotMetException)
Tuple Fields
This exception is thrown when a precondition is not met.
ResourceNotFoundException(ResourceNotFoundException)
Tuple Fields
This exception is thrown when the Amazon Cognito service cannot find the requested resource.
ScopeDoesNotExistException(ScopeDoesNotExistException)
Tuple Fields
This exception is thrown when the specified scope does not exist.
SoftwareTokenMfaNotFoundException(SoftwareTokenMfaNotFoundException)
Tuple Fields
This exception is thrown when the software token TOTP multi-factor authentication (MFA) is not enabled for the user pool.
TooManyFailedAttemptsException(TooManyFailedAttemptsException)
Tuple Fields
This exception is thrown when the user has made too many failed attempts for a given action (e.g., sign in).
TooManyRequestsException(TooManyRequestsException)
Tuple Fields
This exception is thrown when the user has made too many requests for a given operation.
UnauthorizedException(UnauthorizedException)
Tuple Fields
This exception is thrown when the request is not authorized. This can happen due to an invalid access token in the request.
UnexpectedLambdaException(UnexpectedLambdaException)
Tuple Fields
This exception is thrown when the Amazon Cognito service encounters an unexpected exception with the Lambda service.
UnsupportedIdentityProviderException(UnsupportedIdentityProviderException)
Tuple Fields
This exception is thrown when the specified identifier is not supported.
UnsupportedOperationException(UnsupportedOperationException)
Tuple Fields
This exception is thrown when you attempt to perform an operation that is not enabled for the user pool client.
UnsupportedTokenTypeException(UnsupportedTokenTypeException)
Tuple Fields
This exception is thrown when an unsupported token is passed to an operation.
UnsupportedUserStateException(UnsupportedUserStateException)
Tuple Fields
The request failed because the user is in an unsupported state.
UserImportInProgressException(UserImportInProgressException)
Tuple Fields
This exception is thrown when you are trying to modify a user pool while a user import job is in progress for that pool.
UserLambdaValidationException(UserLambdaValidationException)
Tuple Fields
This exception is thrown when the Amazon Cognito service encounters a user validation exception with the Lambda service.
UserNotConfirmedException(UserNotConfirmedException)
Tuple Fields
This exception is thrown when a user is not confirmed successfully.
UserNotFoundException(UserNotFoundException)
Tuple Fields
This exception is thrown when a user is not found.
UserPoolAddOnNotEnabledException(UserPoolAddOnNotEnabledException)
Tuple Fields
This exception is thrown when user pool add-ons are not enabled.
UserPoolTaggingException(UserPoolTaggingException)
Tuple Fields
This exception is thrown when a user pool tag cannot be set or updated.
UsernameExistsException(UsernameExistsException)
Tuple Fields
This exception is thrown when Amazon Cognito encounters a user name that already exists in the user pool.
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unhandled error occurred.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more