github.com/aavshr/aws-sdk-go@v1.41.3/service/appmesh/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package appmesh 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeBadRequestException for service response error code 12 // "BadRequestException". 13 // 14 // The request syntax was malformed. Check your request syntax and try again. 15 ErrCodeBadRequestException = "BadRequestException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // The request contains a client token that was used for a previous update resource 21 // call with different specifications. Try the request again with a new client 22 // token. 23 ErrCodeConflictException = "ConflictException" 24 25 // ErrCodeForbiddenException for service response error code 26 // "ForbiddenException". 27 // 28 // You don't have permissions to perform this action. 29 ErrCodeForbiddenException = "ForbiddenException" 30 31 // ErrCodeInternalServerErrorException for service response error code 32 // "InternalServerErrorException". 33 // 34 // The request processing has failed because of an unknown error, exception, 35 // or failure. 36 ErrCodeInternalServerErrorException = "InternalServerErrorException" 37 38 // ErrCodeLimitExceededException for service response error code 39 // "LimitExceededException". 40 // 41 // You have exceeded a service limit for your account. For more information, 42 // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service-quotas.html) 43 // in the AWS App Mesh User Guide. 44 ErrCodeLimitExceededException = "LimitExceededException" 45 46 // ErrCodeNotFoundException for service response error code 47 // "NotFoundException". 48 // 49 // The specified resource doesn't exist. Check your request syntax and try again. 50 ErrCodeNotFoundException = "NotFoundException" 51 52 // ErrCodeResourceInUseException for service response error code 53 // "ResourceInUseException". 54 // 55 // You can't delete the specified resource because it's in use or required by 56 // another resource. 57 ErrCodeResourceInUseException = "ResourceInUseException" 58 59 // ErrCodeServiceUnavailableException for service response error code 60 // "ServiceUnavailableException". 61 // 62 // The request has failed due to a temporary failure of the service. 63 ErrCodeServiceUnavailableException = "ServiceUnavailableException" 64 65 // ErrCodeTooManyRequestsException for service response error code 66 // "TooManyRequestsException". 67 // 68 // The maximum request rate permitted by the App Mesh APIs has been exceeded 69 // for your account. For best results, use an increasing or variable sleep interval 70 // between requests. 71 ErrCodeTooManyRequestsException = "TooManyRequestsException" 72 73 // ErrCodeTooManyTagsException for service response error code 74 // "TooManyTagsException". 75 // 76 // The request exceeds the maximum allowed number of tags allowed per resource. 77 // The current limit is 50 user tags per resource. You must reduce the number 78 // of tags in the request. None of the tags in this request were applied. 79 ErrCodeTooManyTagsException = "TooManyTagsException" 80 ) 81 82 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 83 "BadRequestException": newErrorBadRequestException, 84 "ConflictException": newErrorConflictException, 85 "ForbiddenException": newErrorForbiddenException, 86 "InternalServerErrorException": newErrorInternalServerErrorException, 87 "LimitExceededException": newErrorLimitExceededException, 88 "NotFoundException": newErrorNotFoundException, 89 "ResourceInUseException": newErrorResourceInUseException, 90 "ServiceUnavailableException": newErrorServiceUnavailableException, 91 "TooManyRequestsException": newErrorTooManyRequestsException, 92 "TooManyTagsException": newErrorTooManyTagsException, 93 }