github.com/aavshr/aws-sdk-go@v1.41.3/service/shield/errors.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package shield 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 // Exception that indicates the specified AttackId does not exist, or the requester 15 // does not have the appropriate permissions to access the AttackId. 16 ErrCodeAccessDeniedException = "AccessDeniedException" 17 18 // ErrCodeAccessDeniedForDependencyException for service response error code 19 // "AccessDeniedForDependencyException". 20 // 21 // In order to grant the necessary access to the Shield Response Team (SRT) 22 // the user submitting the request must have the iam:PassRole permission. This 23 // error indicates the user did not have the appropriate permissions. For more 24 // information, see Granting a User Permissions to Pass a Role to an Amazon 25 // Web Services Service (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). 26 ErrCodeAccessDeniedForDependencyException = "AccessDeniedForDependencyException" 27 28 // ErrCodeInternalErrorException for service response error code 29 // "InternalErrorException". 30 // 31 // Exception that indicates that a problem occurred with the service infrastructure. 32 // You can retry the request. 33 ErrCodeInternalErrorException = "InternalErrorException" 34 35 // ErrCodeInvalidOperationException for service response error code 36 // "InvalidOperationException". 37 // 38 // Exception that indicates that the operation would not cause any change to 39 // occur. 40 ErrCodeInvalidOperationException = "InvalidOperationException" 41 42 // ErrCodeInvalidPaginationTokenException for service response error code 43 // "InvalidPaginationTokenException". 44 // 45 // Exception that indicates that the NextToken specified in the request is invalid. 46 // Submit the request using the NextToken value that was returned in the response. 47 ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException" 48 49 // ErrCodeInvalidParameterException for service response error code 50 // "InvalidParameterException". 51 // 52 // Exception that indicates that the parameters passed to the API are invalid. 53 // If available, this exception includes details in additional properties. 54 ErrCodeInvalidParameterException = "InvalidParameterException" 55 56 // ErrCodeInvalidResourceException for service response error code 57 // "InvalidResourceException". 58 // 59 // Exception that indicates that the resource is invalid. You might not have 60 // access to the resource, or the resource might not exist. 61 ErrCodeInvalidResourceException = "InvalidResourceException" 62 63 // ErrCodeLimitsExceededException for service response error code 64 // "LimitsExceededException". 65 // 66 // Exception that indicates that the operation would exceed a limit. 67 ErrCodeLimitsExceededException = "LimitsExceededException" 68 69 // ErrCodeLockedSubscriptionException for service response error code 70 // "LockedSubscriptionException". 71 // 72 // You are trying to update a subscription that has not yet completed the 1-year 73 // commitment. You can change the AutoRenew parameter during the last 30 days 74 // of your subscription. This exception indicates that you are attempting to 75 // change AutoRenew prior to that period. 76 ErrCodeLockedSubscriptionException = "LockedSubscriptionException" 77 78 // ErrCodeNoAssociatedRoleException for service response error code 79 // "NoAssociatedRoleException". 80 // 81 // The ARN of the role that you specifed does not exist. 82 ErrCodeNoAssociatedRoleException = "NoAssociatedRoleException" 83 84 // ErrCodeOptimisticLockException for service response error code 85 // "OptimisticLockException". 86 // 87 // Exception that indicates that the resource state has been modified by another 88 // client. Retrieve the resource and then retry your request. 89 ErrCodeOptimisticLockException = "OptimisticLockException" 90 91 // ErrCodeResourceAlreadyExistsException for service response error code 92 // "ResourceAlreadyExistsException". 93 // 94 // Exception indicating the specified resource already exists. If available, 95 // this exception includes details in additional properties. 96 ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException" 97 98 // ErrCodeResourceNotFoundException for service response error code 99 // "ResourceNotFoundException". 100 // 101 // Exception indicating the specified resource does not exist. If available, 102 // this exception includes details in additional properties. 103 ErrCodeResourceNotFoundException = "ResourceNotFoundException" 104 ) 105 106 var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ 107 "AccessDeniedException": newErrorAccessDeniedException, 108 "AccessDeniedForDependencyException": newErrorAccessDeniedForDependencyException, 109 "InternalErrorException": newErrorInternalErrorException, 110 "InvalidOperationException": newErrorInvalidOperationException, 111 "InvalidPaginationTokenException": newErrorInvalidPaginationTokenException, 112 "InvalidParameterException": newErrorInvalidParameterException, 113 "InvalidResourceException": newErrorInvalidResourceException, 114 "LimitsExceededException": newErrorLimitsExceededException, 115 "LockedSubscriptionException": newErrorLockedSubscriptionException, 116 "NoAssociatedRoleException": newErrorNoAssociatedRoleException, 117 "OptimisticLockException": newErrorOptimisticLockException, 118 "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, 119 "ResourceNotFoundException": newErrorResourceNotFoundException, 120 }