github.com/aavshr/aws-sdk-go@v1.41.3/service/codestarnotifications/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package codestarnotifications 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 // AWS CodeStar Notifications can't create the notification rule because you 15 // do not have sufficient permissions. 16 ErrCodeAccessDeniedException = "AccessDeniedException" 17 18 // ErrCodeConcurrentModificationException for service response error code 19 // "ConcurrentModificationException". 20 // 21 // AWS CodeStar Notifications can't complete the request because the resource 22 // is being modified by another process. Wait a few minutes and try again. 23 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 24 25 // ErrCodeConfigurationException for service response error code 26 // "ConfigurationException". 27 // 28 // Some or all of the configuration is incomplete, missing, or not valid. 29 ErrCodeConfigurationException = "ConfigurationException" 30 31 // ErrCodeInvalidNextTokenException for service response error code 32 // "InvalidNextTokenException". 33 // 34 // The value for the enumeration token used in the request to return the next 35 // batch of the results is not valid. 36 ErrCodeInvalidNextTokenException = "InvalidNextTokenException" 37 38 // ErrCodeLimitExceededException for service response error code 39 // "LimitExceededException". 40 // 41 // One of the AWS CodeStar Notifications limits has been exceeded. Limits apply 42 // to accounts, notification rules, notifications, resources, and targets. For 43 // more information, see Limits. 44 ErrCodeLimitExceededException = "LimitExceededException" 45 46 // ErrCodeResourceAlreadyExistsException for service response error code 47 // "ResourceAlreadyExistsException". 48 // 49 // A resource with the same name or ID already exists. Notification rule names 50 // must be unique in your AWS account. 51 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 52 53 // ErrCodeResourceNotFoundException for service response error code 54 // "ResourceNotFoundException". 55 // 56 // AWS CodeStar Notifications can't find a resource that matches the provided 57 // ARN. 58 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 59 60 // ErrCodeValidationException for service response error code 61 // "ValidationException". 62 // 63 // One or more parameter values are not valid. 64 ErrCodeValidationException = "ValidationException" 65 ) 66 67 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 68 "AccessDeniedException": newErrorAccessDeniedException, 69 "ConcurrentModificationException": newErrorConcurrentModificationException, 70 "ConfigurationException": newErrorConfigurationException, 71 "InvalidNextTokenException": newErrorInvalidNextTokenException, 72 "LimitExceededException": newErrorLimitExceededException, 73 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 74 "ResourceNotFoundException": newErrorResourceNotFoundException, 75 "ValidationException": newErrorValidationException, 76 }