github.com/aavshr/aws-sdk-go@v1.41.3/service/resourcegroupstaggingapi/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package resourcegroupstaggingapi 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 // The target of the operation is currently being modified by a different request. 15 // Try again later. 16 ErrCodeConcurrentModificationException = "ConcurrentModificationException" 17 18 // ErrCodeConstraintViolationException for service response error code 19 // "ConstraintViolationException". 20 // 21 // The request was denied because performing this operation violates a constraint. 22 // 23 // Some of the reasons in the following list might not apply to this specific 24 // operation. 25 // 26 // * You must meet the prerequisites for using tag policies. For information, 27 // see Prerequisites and Permissions for Using Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html) 28 // in the AWS Organizations User Guide. 29 // 30 // * You must enable the tag policies service principal (tagpolicies.tag.amazonaws.com) 31 // to integrate with AWS Organizations For information, see EnableAWSServiceAccess 32 // (http://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html). 33 // 34 // * You must have a tag policy attached to the organization root, an OU, 35 // or an account. 36 ErrCodeConstraintViolationException = "ConstraintViolationException" 37 38 // ErrCodeInternalServiceException for service response error code 39 // "InternalServiceException". 40 // 41 // The request processing failed because of an unknown error, exception, or 42 // failure. You can retry the request. 43 ErrCodeInternalServiceException = "InternalServiceException" 44 45 // ErrCodeInvalidParameterException for service response error code 46 // "InvalidParameterException". 47 // 48 // This error indicates one of the following: 49 // 50 // * A parameter is missing. 51 // 52 // * A malformed string was supplied for the request parameter. 53 // 54 // * An out-of-range value was supplied for the request parameter. 55 // 56 // * The target ID is invalid, unsupported, or doesn't exist. 57 // 58 // * You can't access the Amazon S3 bucket for report storage. For more information, 59 // see Additional Requirements for Organization-wide Tag Compliance Reports 60 // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) 61 // in the AWS Organizations User Guide. 62 ErrCodeInvalidParameterException = "InvalidParameterException" 63 64 // ErrCodePaginationTokenExpiredException for service response error code 65 // "PaginationTokenExpiredException". 66 // 67 // A PaginationToken is valid for a maximum of 15 minutes. Your request was 68 // denied because the specified PaginationToken has expired. 69 ErrCodePaginationTokenExpiredException = "PaginationTokenExpiredException" 70 71 // ErrCodeThrottledException for service response error code 72 // "ThrottledException". 73 // 74 // The request was denied to limit the frequency of submitted requests. 75 ErrCodeThrottledException = "ThrottledException" 76 ) 77 78 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 79 "ConcurrentModificationException": newErrorConcurrentModificationException, 80 "ConstraintViolationException": newErrorConstraintViolationException, 81 "InternalServiceException": newErrorInternalServiceException, 82 "InvalidParameterException": newErrorInvalidParameterException, 83 "PaginationTokenExpiredException": newErrorPaginationTokenExpiredException, 84 "ThrottledException": newErrorThrottledException, 85 }