github.com/aavshr/aws-sdk-go@v1.41.3/service/resourcegroups/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package resourcegroups 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 includes one or more parameters that violate validation rules. 15 ErrCodeBadRequestException = "BadRequestException" 16 17 // ErrCodeForbiddenException for service response error code 18 // "ForbiddenException". 19 // 20 // The caller isn't authorized to make the request. Check permissions. 21 ErrCodeForbiddenException = "ForbiddenException" 22 23 // ErrCodeInternalServerErrorException for service response error code 24 // "InternalServerErrorException". 25 // 26 // An internal error occurred while processing the request. Try again later. 27 ErrCodeInternalServerErrorException = "InternalServerErrorException" 28 29 // ErrCodeMethodNotAllowedException for service response error code 30 // "MethodNotAllowedException". 31 // 32 // The request uses an HTTP method that isn't allowed for the specified resource. 33 ErrCodeMethodNotAllowedException = "MethodNotAllowedException" 34 35 // ErrCodeNotFoundException for service response error code 36 // "NotFoundException". 37 // 38 // One or more of the specified resources don't exist. 39 ErrCodeNotFoundException = "NotFoundException" 40 41 // ErrCodeTooManyRequestsException for service response error code 42 // "TooManyRequestsException". 43 // 44 // You've exceeded throttling limits by making too many requests in a period 45 // of time. 46 ErrCodeTooManyRequestsException = "TooManyRequestsException" 47 48 // ErrCodeUnauthorizedException for service response error code 49 // "UnauthorizedException". 50 // 51 // The request was rejected because it doesn't have valid credentials for the 52 // target resource. 53 ErrCodeUnauthorizedException = "UnauthorizedException" 54 ) 55 56 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 57 "BadRequestException": newErrorBadRequestException, 58 "ForbiddenException": newErrorForbiddenException, 59 "InternalServerErrorException": newErrorInternalServerErrorException, 60 "MethodNotAllowedException": newErrorMethodNotAllowedException, 61 "NotFoundException": newErrorNotFoundException, 62 "TooManyRequestsException": newErrorTooManyRequestsException, 63 "UnauthorizedException": newErrorUnauthorizedException, 64 }