github.com/aavshr/aws-sdk-go@v1.41.3/service/devopsguru/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package devopsguru 4 5 import ( 6 "github.com/aavshr/aws-sdk-go/private/protocol" 7 ) 8 9 const ( 10 11 // ErrCodeAccessDeniedException for service response error code 12 // "AccessDeniedException". 13 // 14 // You don't have permissions to perform the requested operation. The user or 15 // role that is making the request must have at least one IAM permissions policy 16 // attached that grants the required permissions. For more information, see 17 // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) 18 // in the IAM User Guide. 19 ErrCodeAccessDeniedException = "AccessDeniedException" 20 21 // ErrCodeConflictException for service response error code 22 // "ConflictException". 23 // 24 // An exception that is thrown when a conflict occurs. 25 ErrCodeConflictException = "ConflictException" 26 27 // ErrCodeInternalServerException for service response error code 28 // "InternalServerException". 29 // 30 // An internal failure in an Amazon service occurred. 31 ErrCodeInternalServerException = "InternalServerException" 32 33 // ErrCodeResourceNotFoundException for service response error code 34 // "ResourceNotFoundException". 35 // 36 // A requested resource could not be found 37 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 38 39 // ErrCodeServiceQuotaExceededException for service response error code 40 // "ServiceQuotaExceededException". 41 // 42 // The request contains a value that exceeds a maximum quota. 43 ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" 44 45 // ErrCodeThrottlingException for service response error code 46 // "ThrottlingException". 47 // 48 // The request was denied due to a request throttling. 49 ErrCodeThrottlingException = "ThrottlingException" 50 51 // ErrCodeValidationException for service response error code 52 // "ValidationException". 53 // 54 // Contains information about data passed in to a field during a request that 55 // is not valid. 56 ErrCodeValidationException = "ValidationException" 57 ) 58 59 var 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 }