github.com/aavshr/aws-sdk-go@v1.41.3/service/eventbridge/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package eventbridge 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 // There is concurrent modification on a rule, target, archive, or replay. 15 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 16 17 // ErrCodeIllegalStatusException for service response error code 18 // "IllegalStatusException". 19 // 20 // An error occurred because a replay can be canceled only when the state is 21 // Running or Starting. 22 ErrCodeIllegalStatusException = "IllegalStatusException" 23 24 // ErrCodeInternalException for service response error code 25 // "InternalException". 26 // 27 // This exception occurs due to unexpected causes. 28 ErrCodeInternalException = "InternalException" 29 30 // ErrCodeInvalidEventPatternException for service response error code 31 // "InvalidEventPatternException". 32 // 33 // The event pattern is not valid. 34 ErrCodeInvalidEventPatternException = "InvalidEventPatternException" 35 36 // ErrCodeInvalidStateException for service response error code 37 // "InvalidStateException". 38 // 39 // The specified state is not a valid state for an event source. 40 ErrCodeInvalidStateException = "InvalidStateException" 41 42 // ErrCodeLimitExceededException for service response error code 43 // "LimitExceededException". 44 // 45 // The request failed because it attempted to create resource beyond the allowed 46 // service quota. 47 ErrCodeLimitExceededException = "LimitExceededException" 48 49 // ErrCodeManagedRuleException for service response error code 50 // "ManagedRuleException". 51 // 52 // This rule was created by an Amazon Web Services service on behalf of your 53 // account. It is managed by that service. If you see this error in response 54 // to DeleteRule or RemoveTargets, you can use the Force parameter in those 55 // calls to delete the rule or remove targets from the rule. You cannot modify 56 // these managed rules by using DisableRule, EnableRule, PutTargets, PutRule, 57 // TagResource, or UntagResource. 58 ErrCodeManagedRuleException = "ManagedRuleException" 59 60 // ErrCodeOperationDisabledException for service response error code 61 // "OperationDisabledException". 62 // 63 // The operation you are attempting is not available in this region. 64 ErrCodeOperationDisabledException = "OperationDisabledException" 65 66 // ErrCodePolicyLengthExceededException for service response error code 67 // "PolicyLengthExceededException". 68 // 69 // The event bus policy is too long. For more information, see the limits. 70 ErrCodePolicyLengthExceededException = "PolicyLengthExceededException" 71 72 // ErrCodeResourceAlreadyExistsException for service response error code 73 // "ResourceAlreadyExistsException". 74 // 75 // The resource you are trying to create already exists. 76 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 77 78 // ErrCodeResourceNotFoundException for service response error code 79 // "ResourceNotFoundException". 80 // 81 // An entity that you specified does not exist. 82 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 83 ) 84 85 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 86 "ConcurrentModificationException": newErrorConcurrentModificationException, 87 "IllegalStatusException": newErrorIllegalStatusException, 88 "InternalException": newErrorInternalException, 89 "InvalidEventPatternException": newErrorInvalidEventPatternException, 90 "InvalidStateException": newErrorInvalidStateException, 91 "LimitExceededException": newErrorLimitExceededException, 92 "ManagedRuleException": newErrorManagedRuleException, 93 "OperationDisabledException": newErrorOperationDisabledException, 94 "PolicyLengthExceededException": newErrorPolicyLengthExceededException, 95 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 96 "ResourceNotFoundException": newErrorResourceNotFoundException, 97 }