1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package greengrassv2 4 5import ( 6 "github.com/aws/aws-sdk-go/private/protocol" 7) 8 9const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // You don't have permission to perform the action. 15 ErrCodeAccessDeniedException = "AccessDeniedException" 16 17 // ErrCodeConflictException for service response error code 18 // "ConflictException". 19 // 20 // Your request has conflicting operations. This can occur if you're trying 21 // to perform more than one operation on the same resource at the same time. 22 ErrCodeConflictException = "ConflictException" 23 24 // ErrCodeInternalServerException for service response error code 25 // "InternalServerException". 26 // 27 // AWS IoT Greengrass can't process your request right now. Try again later. 28 ErrCodeInternalServerException = "InternalServerException" 29 30 // ErrCodeResourceNotFoundException for service response error code 31 // "ResourceNotFoundException". 32 // 33 // The requested resource can't be found. 34 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 35 36 // ErrCodeServiceQuotaExceededException for service response error code 37 // "ServiceQuotaExceededException". 38 // 39 // Your request exceeds a service quota. For example, you might have the maximum 40 // number of components that you can create. 41 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 42 43 // ErrCodeThrottlingException for service response error code 44 // "ThrottlingException". 45 // 46 // Your request exceeded a request rate quota. For example, you might have exceeded 47 // the amount of times that you can retrieve device or deployment status per 48 // second. 49 ErrCodeThrottlingException = "ThrottlingException" 50 51 // ErrCodeValidationException for service response error code 52 // "ValidationException". 53 // 54 // The request isn't valid. This can occur if your request contains malformed 55 // JSON or unsupported characters. 56 ErrCodeValidationException = "ValidationException" 57) 58 59var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 60 "AccessDeniedException": newErrorAccessDeniedException, 61 "ConflictException": newErrorConflictException, 62 "InternalServerException": newErrorInternalServerException, 63 "ResourceNotFoundException": newErrorResourceNotFoundException, 64 "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, 65 "ThrottlingException": newErrorThrottlingException, 66 "ValidationException": newErrorValidationException, 67} 68