Enum aws_sdk_workmail::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 23 variants DirectoryInUseException(DirectoryInUseException), DirectoryServiceAuthenticationFailedException(DirectoryServiceAuthenticationFailedException), DirectoryUnavailableException(DirectoryUnavailableException), EmailAddressInUseException(EmailAddressInUseException), EntityAlreadyRegisteredException(EntityAlreadyRegisteredException), EntityNotFoundException(EntityNotFoundException), EntityStateException(EntityStateException), InvalidConfigurationException(InvalidConfigurationException), InvalidCustomSesConfigurationException(InvalidCustomSesConfigurationException), InvalidParameterException(InvalidParameterException), InvalidPasswordException(InvalidPasswordException), LimitExceededException(LimitExceededException), MailDomainInUseException(MailDomainInUseException), MailDomainNotFoundException(MailDomainNotFoundException), MailDomainStateException(MailDomainStateException), NameAvailabilityException(NameAvailabilityException), OrganizationNotFoundException(OrganizationNotFoundException), OrganizationStateException(OrganizationStateException), ReservedNameException(ReservedNameException), ResourceNotFoundException(ResourceNotFoundException), TooManyTagsException(TooManyTagsException), UnsupportedOperationException(UnsupportedOperationException), 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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DirectoryInUseException(DirectoryInUseException)

The directory is already in use by another WorkMail organization in the same account and Region.

Tuple Fields of DirectoryInUseException

0: DirectoryInUseException
DirectoryServiceAuthenticationFailedException(DirectoryServiceAuthenticationFailedException)

The directory service doesn't recognize the credentials supplied by WorkMail.

Tuple Fields of DirectoryServiceAuthenticationFailedException

0: DirectoryServiceAuthenticationFailedException
DirectoryUnavailableException(DirectoryUnavailableException)

The directory is unavailable. It might be located in another Region or deleted.

Tuple Fields of DirectoryUnavailableException

0: DirectoryUnavailableException
EmailAddressInUseException(EmailAddressInUseException)

The email address that you're trying to assign is already created for a different user, group, or resource.

Tuple Fields of EmailAddressInUseException

0: EmailAddressInUseException
EntityAlreadyRegisteredException(EntityAlreadyRegisteredException)

The user, group, or resource that you're trying to register is already registered.

Tuple Fields of EntityAlreadyRegisteredException

0: EntityAlreadyRegisteredException
EntityNotFoundException(EntityNotFoundException)

The identifier supplied for the user, group, or resource does not exist in your organization.

Tuple Fields of EntityNotFoundException

0: EntityNotFoundException
EntityStateException(EntityStateException)

You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.

Tuple Fields of EntityStateException

0: EntityStateException
InvalidConfigurationException(InvalidConfigurationException)

The configuration for a resource isn't valid. A resource must either be able to auto-respond to requests or have at least one delegate associated that can do so on its behalf.

Tuple Fields of InvalidConfigurationException

0: InvalidConfigurationException
InvalidCustomSesConfigurationException(InvalidCustomSesConfigurationException)

You SES configuration has customizations that Amazon WorkMail cannot save. The error message lists the invalid setting. For examples of invalid settings, refer to CreateReceiptRule.

Tuple Fields of InvalidCustomSesConfigurationException

0: InvalidCustomSesConfigurationException
InvalidParameterException(InvalidParameterException)

One or more of the input parameters don't match the service's restrictions.

Tuple Fields of InvalidParameterException

0: InvalidParameterException
InvalidPasswordException(InvalidPasswordException)

The supplied password doesn't match the minimum security constraints, such as length or use of special characters.

Tuple Fields of InvalidPasswordException

0: InvalidPasswordException
LimitExceededException(LimitExceededException)

The request exceeds the limit of the resource.

Tuple Fields of LimitExceededException

0: LimitExceededException
MailDomainInUseException(MailDomainInUseException)

The domain you're trying to change is in use by another user or organization in your account. See the error message for details.

Tuple Fields of MailDomainInUseException

0: MailDomainInUseException
MailDomainNotFoundException(MailDomainNotFoundException)

The domain specified is not found in your organization.

Tuple Fields of MailDomainNotFoundException

0: MailDomainNotFoundException
MailDomainStateException(MailDomainStateException)

After a domain has been added to the organization, it must be verified. The domain is not yet verified.

Tuple Fields of MailDomainStateException

0: MailDomainStateException
NameAvailabilityException(NameAvailabilityException)

The user, group, or resource name isn't unique in Amazon WorkMail.

Tuple Fields of NameAvailabilityException

0: NameAvailabilityException
OrganizationNotFoundException(OrganizationNotFoundException)

An operation received a valid organization identifier that either doesn't belong or exist in the system.

Tuple Fields of OrganizationNotFoundException

0: OrganizationNotFoundException
OrganizationStateException(OrganizationStateException)

The organization must have a valid state to perform certain operations on the organization or its members.

Tuple Fields of OrganizationStateException

0: OrganizationStateException
ReservedNameException(ReservedNameException)

This user, group, or resource name is not allowed in Amazon WorkMail.

Tuple Fields of ReservedNameException

0: ReservedNameException
ResourceNotFoundException(ResourceNotFoundException)

The resource cannot be found.

Tuple Fields of ResourceNotFoundException

0: ResourceNotFoundException
TooManyTagsException(TooManyTagsException)

The resource can have up to 50 user-applied tags.

Tuple Fields of TooManyTagsException

0: TooManyTagsException
UnsupportedOperationException(UnsupportedOperationException)

You can't perform a write operation against a read-only directory.

Tuple Fields of UnsupportedOperationException

0: UnsupportedOperationException
Unhandled(Box<dyn Error + Send + Sync + 'static>)

An unhandled error occurred.

Tuple Fields of Unhandled

0: Box<dyn Error + Send + Sync + 'static>

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. 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

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

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

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