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