github.com/aavshr/aws-sdk-go@v1.41.3/service/cognitoidentity/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package cognitoidentity 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeConcurrentModificationException for service response error code 12 // "ConcurrentModificationException". 13 // 14 // Thrown if there are parallel requests to modify a resource. 15 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 16 17 // ErrCodeDeveloperUserAlreadyRegisteredException for service response error code 18 // "DeveloperUserAlreadyRegisteredException". 19 // 20 // The provided developer user identifier is already registered with Cognito 21 // under a different identity ID. 22 ErrCodeDeveloperUserAlreadyRegisteredException = "DeveloperUserAlreadyRegisteredException" 23 24 // ErrCodeExternalServiceException for service response error code 25 // "ExternalServiceException". 26 // 27 // An exception thrown when a dependent service such as Facebook or Twitter 28 // is not responding 29 ErrCodeExternalServiceException = "ExternalServiceException" 30 31 // ErrCodeInternalErrorException for service response error code 32 // "InternalErrorException". 33 // 34 // Thrown when the service encounters an error during processing the request. 35 ErrCodeInternalErrorException = "InternalErrorException" 36 37 // ErrCodeInvalidIdentityPoolConfigurationException for service response error code 38 // "InvalidIdentityPoolConfigurationException". 39 // 40 // Thrown if the identity pool has no role associated for the given auth type 41 // (auth/unauth) or if the AssumeRole fails. 42 ErrCodeInvalidIdentityPoolConfigurationException = "InvalidIdentityPoolConfigurationException" 43 44 // ErrCodeInvalidParameterException for service response error code 45 // "InvalidParameterException". 46 // 47 // Thrown for missing or bad input parameter(s). 48 ErrCodeInvalidParameterException = "InvalidParameterException" 49 50 // ErrCodeLimitExceededException for service response error code 51 // "LimitExceededException". 52 // 53 // Thrown when the total number of user pools has exceeded a preset limit. 54 ErrCodeLimitExceededException = "LimitExceededException" 55 56 // ErrCodeNotAuthorizedException for service response error code 57 // "NotAuthorizedException". 58 // 59 // Thrown when a user is not authorized to access the requested resource. 60 ErrCodeNotAuthorizedException = "NotAuthorizedException" 61 62 // ErrCodeResourceConflictException for service response error code 63 // "ResourceConflictException". 64 // 65 // Thrown when a user tries to use a login which is already linked to another 66 // account. 67 ErrCodeResourceConflictException = "ResourceConflictException" 68 69 // ErrCodeResourceNotFoundException for service response error code 70 // "ResourceNotFoundException". 71 // 72 // Thrown when the requested resource (for example, a dataset or record) does 73 // not exist. 74 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 75 76 // ErrCodeTooManyRequestsException for service response error code 77 // "TooManyRequestsException". 78 // 79 // Thrown when a request is throttled. 80 ErrCodeTooManyRequestsException = "TooManyRequestsException" 81 ) 82 83 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 84 "ConcurrentModificationException": newErrorConcurrentModificationException, 85 "DeveloperUserAlreadyRegisteredException": newErrorDeveloperUserAlreadyRegisteredException, 86 "ExternalServiceException": newErrorExternalServiceException, 87 "InternalErrorException": newErrorInternalErrorException, 88 "InvalidIdentityPoolConfigurationException": newErrorInvalidIdentityPoolConfigurationException, 89 "InvalidParameterException": newErrorInvalidParameterException, 90 "LimitExceededException": newErrorLimitExceededException, 91 "NotAuthorizedException": newErrorNotAuthorizedException, 92 "ResourceConflictException": newErrorResourceConflictException, 93 "ResourceNotFoundException": newErrorResourceNotFoundException, 94 "TooManyRequestsException": newErrorTooManyRequestsException, 95 }