1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package workmail 4 5import ( 6 "github.com/aws/aws-sdk-go/private/protocol" 7) 8 9const ( 10 11 // ErrCodeDirectoryInUseException for service response error code 12 // "DirectoryInUseException". 13 // 14 // The directory is already in use by another WorkMail organization in the same 15 // account and Region. 16 ErrCodeDirectoryInUseException = "DirectoryInUseException" 17 18 // ErrCodeDirectoryServiceAuthenticationFailedException for service response error code 19 // "DirectoryServiceAuthenticationFailedException". 20 // 21 // The directory service doesn't recognize the credentials supplied by WorkMail. 22 ErrCodeDirectoryServiceAuthenticationFailedException = "DirectoryServiceAuthenticationFailedException" 23 24 // ErrCodeDirectoryUnavailableException for service response error code 25 // "DirectoryUnavailableException". 26 // 27 // The directory is unavailable. It might be located in another Region or deleted. 28 ErrCodeDirectoryUnavailableException = "DirectoryUnavailableException" 29 30 // ErrCodeEmailAddressInUseException for service response error code 31 // "EmailAddressInUseException". 32 // 33 // The email address that you're trying to assign is already created for a different 34 // user, group, or resource. 35 ErrCodeEmailAddressInUseException = "EmailAddressInUseException" 36 37 // ErrCodeEntityAlreadyRegisteredException for service response error code 38 // "EntityAlreadyRegisteredException". 39 // 40 // The user, group, or resource that you're trying to register is already registered. 41 ErrCodeEntityAlreadyRegisteredException = "EntityAlreadyRegisteredException" 42 43 // ErrCodeEntityNotFoundException for service response error code 44 // "EntityNotFoundException". 45 // 46 // The identifier supplied for the user, group, or resource does not exist in 47 // your organization. 48 ErrCodeEntityNotFoundException = "EntityNotFoundException" 49 50 // ErrCodeEntityStateException for service response error code 51 // "EntityStateException". 52 // 53 // You are performing an operation on a user, group, or resource that isn't 54 // in the expected state, such as trying to delete an active user. 55 ErrCodeEntityStateException = "EntityStateException" 56 57 // ErrCodeInvalidConfigurationException for service response error code 58 // "InvalidConfigurationException". 59 // 60 // The configuration for a resource isn't valid. A resource must either be able 61 // to auto-respond to requests or have at least one delegate associated that 62 // can do so on its behalf. 63 ErrCodeInvalidConfigurationException = "InvalidConfigurationException" 64 65 // ErrCodeInvalidCustomSesConfigurationException for service response error code 66 // "InvalidCustomSesConfigurationException". 67 // 68 // You SES configuration has customizations that Amazon WorkMail cannot save. 69 // The error message lists the invalid setting. For examples of invalid settings, 70 // refer to CreateReceiptRule (https://docs.aws.amazon.com/ses/latest/APIReference/API_CreateReceiptRule.html). 71 ErrCodeInvalidCustomSesConfigurationException = "InvalidCustomSesConfigurationException" 72 73 // ErrCodeInvalidParameterException for service response error code 74 // "InvalidParameterException". 75 // 76 // One or more of the input parameters don't match the service's restrictions. 77 ErrCodeInvalidParameterException = "InvalidParameterException" 78 79 // ErrCodeInvalidPasswordException for service response error code 80 // "InvalidPasswordException". 81 // 82 // The supplied password doesn't match the minimum security constraints, such 83 // as length or use of special characters. 84 ErrCodeInvalidPasswordException = "InvalidPasswordException" 85 86 // ErrCodeLimitExceededException for service response error code 87 // "LimitExceededException". 88 // 89 // The request exceeds the limit of the resource. 90 ErrCodeLimitExceededException = "LimitExceededException" 91 92 // ErrCodeMailDomainInUseException for service response error code 93 // "MailDomainInUseException". 94 // 95 // The domain you're trying to change is in use by another user or organization 96 // in your account. See the error message for details. 97 ErrCodeMailDomainInUseException = "MailDomainInUseException" 98 99 // ErrCodeMailDomainNotFoundException for service response error code 100 // "MailDomainNotFoundException". 101 // 102 // The domain specified is not found in your organization. 103 ErrCodeMailDomainNotFoundException = "MailDomainNotFoundException" 104 105 // ErrCodeMailDomainStateException for service response error code 106 // "MailDomainStateException". 107 // 108 // After a domain has been added to the organization, it must be verified. The 109 // domain is not yet verified. 110 ErrCodeMailDomainStateException = "MailDomainStateException" 111 112 // ErrCodeNameAvailabilityException for service response error code 113 // "NameAvailabilityException". 114 // 115 // The user, group, or resource name isn't unique in Amazon WorkMail. 116 ErrCodeNameAvailabilityException = "NameAvailabilityException" 117 118 // ErrCodeOrganizationNotFoundException for service response error code 119 // "OrganizationNotFoundException". 120 // 121 // An operation received a valid organization identifier that either doesn't 122 // belong or exist in the system. 123 ErrCodeOrganizationNotFoundException = "OrganizationNotFoundException" 124 125 // ErrCodeOrganizationStateException for service response error code 126 // "OrganizationStateException". 127 // 128 // The organization must have a valid state to perform certain operations on 129 // the organization or its members. 130 ErrCodeOrganizationStateException = "OrganizationStateException" 131 132 // ErrCodeReservedNameException for service response error code 133 // "ReservedNameException". 134 // 135 // This user, group, or resource name is not allowed in Amazon WorkMail. 136 ErrCodeReservedNameException = "ReservedNameException" 137 138 // ErrCodeResourceNotFoundException for service response error code 139 // "ResourceNotFoundException". 140 // 141 // The resource cannot be found. 142 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 143 144 // ErrCodeTooManyTagsException for service response error code 145 // "TooManyTagsException". 146 // 147 // The resource can have up to 50 user-applied tags. 148 ErrCodeTooManyTagsException = "TooManyTagsException" 149 150 // ErrCodeUnsupportedOperationException for service response error code 151 // "UnsupportedOperationException". 152 // 153 // You can't perform a write operation against a read-only directory. 154 ErrCodeUnsupportedOperationException = "UnsupportedOperationException" 155) 156 157var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 158 "DirectoryInUseException": newErrorDirectoryInUseException, 159 "DirectoryServiceAuthenticationFailedException": newErrorDirectoryServiceAuthenticationFailedException, 160 "DirectoryUnavailableException": newErrorDirectoryUnavailableException, 161 "EmailAddressInUseException": newErrorEmailAddressInUseException, 162 "EntityAlreadyRegisteredException": newErrorEntityAlreadyRegisteredException, 163 "EntityNotFoundException": newErrorEntityNotFoundException, 164 "EntityStateException": newErrorEntityStateException, 165 "InvalidConfigurationException": newErrorInvalidConfigurationException, 166 "InvalidCustomSesConfigurationException": newErrorInvalidCustomSesConfigurationException, 167 "InvalidParameterException": newErrorInvalidParameterException, 168 "InvalidPasswordException": newErrorInvalidPasswordException, 169 "LimitExceededException": newErrorLimitExceededException, 170 "MailDomainInUseException": newErrorMailDomainInUseException, 171 "MailDomainNotFoundException": newErrorMailDomainNotFoundException, 172 "MailDomainStateException": newErrorMailDomainStateException, 173 "NameAvailabilityException": newErrorNameAvailabilityException, 174 "OrganizationNotFoundException": newErrorOrganizationNotFoundException, 175 "OrganizationStateException": newErrorOrganizationStateException, 176 "ReservedNameException": newErrorReservedNameException, 177 "ResourceNotFoundException": newErrorResourceNotFoundException, 178 "TooManyTagsException": newErrorTooManyTagsException, 179 "UnsupportedOperationException": newErrorUnsupportedOperationException, 180} 181