github.com/aavshr/aws-sdk-go@v1.41.3/service/wafv2/errors.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package wafv2
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeWAFAssociatedItemException for service response error code
    12  	// "WAFAssociatedItemException".
    13  	//
    14  	// WAF couldn’t perform the operation because your resource is being used
    15  	// by another resource or it’s associated with another resource.
    16  	ErrCodeWAFAssociatedItemException = "WAFAssociatedItemException"
    17  
    18  	// ErrCodeWAFDuplicateItemException for service response error code
    19  	// "WAFDuplicateItemException".
    20  	//
    21  	// WAF couldn’t perform the operation because the resource that you tried
    22  	// to save is a duplicate of an existing one.
    23  	ErrCodeWAFDuplicateItemException = "WAFDuplicateItemException"
    24  
    25  	// ErrCodeWAFExpiredManagedRuleGroupVersionException for service response error code
    26  	// "WAFExpiredManagedRuleGroupVersionException".
    27  	//
    28  	// The operation failed because the specified version for the managed rule group
    29  	// has expired. You can retrieve the available versions for the managed rule
    30  	// group by calling ListAvailableManagedRuleGroupVersions.
    31  	ErrCodeWAFExpiredManagedRuleGroupVersionException = "WAFExpiredManagedRuleGroupVersionException"
    32  
    33  	// ErrCodeWAFInternalErrorException for service response error code
    34  	// "WAFInternalErrorException".
    35  	//
    36  	// Your request is valid, but WAF couldn’t perform the operation because of
    37  	// a system problem. Retry your request.
    38  	ErrCodeWAFInternalErrorException = "WAFInternalErrorException"
    39  
    40  	// ErrCodeWAFInvalidOperationException for service response error code
    41  	// "WAFInvalidOperationException".
    42  	//
    43  	// The operation isn't valid.
    44  	ErrCodeWAFInvalidOperationException = "WAFInvalidOperationException"
    45  
    46  	// ErrCodeWAFInvalidParameterException for service response error code
    47  	// "WAFInvalidParameterException".
    48  	//
    49  	// The operation failed because WAF didn't recognize a parameter in the request.
    50  	// For example:
    51  	//
    52  	//    * You specified a parameter name or value that isn't valid.
    53  	//
    54  	//    * Your nested statement isn't valid. You might have tried to nest a statement
    55  	//    that can’t be nested.
    56  	//
    57  	//    * You tried to update a WebACL with a DefaultAction that isn't among the
    58  	//    types available at DefaultAction.
    59  	//
    60  	//    * Your request references an ARN that is malformed, or corresponds to
    61  	//    a resource with which a web ACL can't be associated.
    62  	ErrCodeWAFInvalidParameterException = "WAFInvalidParameterException"
    63  
    64  	// ErrCodeWAFInvalidPermissionPolicyException for service response error code
    65  	// "WAFInvalidPermissionPolicyException".
    66  	//
    67  	// The operation failed because the specified policy isn't in the proper format.
    68  	//
    69  	// The policy specifications must conform to the following:
    70  	//
    71  	//    * The policy must be composed using IAM Policy version 2012-10-17 or version
    72  	//    2015-01-01.
    73  	//
    74  	//    * The policy must include specifications for Effect, Action, and Principal.
    75  	//
    76  	//    * Effect must specify Allow.
    77  	//
    78  	//    * Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups.
    79  	//    WAF rejects any extra actions or wildcard actions in the policy.
    80  	//
    81  	//    * The policy must not include a Resource parameter.
    82  	//
    83  	// For more information, see IAM Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html).
    84  	ErrCodeWAFInvalidPermissionPolicyException = "WAFInvalidPermissionPolicyException"
    85  
    86  	// ErrCodeWAFInvalidResourceException for service response error code
    87  	// "WAFInvalidResourceException".
    88  	//
    89  	// WAF couldn’t perform the operation because the resource that you requested
    90  	// isn’t valid. Check the resource, and try again.
    91  	ErrCodeWAFInvalidResourceException = "WAFInvalidResourceException"
    92  
    93  	// ErrCodeWAFLimitsExceededException for service response error code
    94  	// "WAFLimitsExceededException".
    95  	//
    96  	// WAF couldn’t perform the operation because you exceeded your resource limit.
    97  	// For example, the maximum number of WebACL objects that you can create for
    98  	// an Amazon Web Services account. For more information, see WAF quotas (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html)
    99  	// in the WAF Developer Guide.
   100  	ErrCodeWAFLimitsExceededException = "WAFLimitsExceededException"
   101  
   102  	// ErrCodeWAFNonexistentItemException for service response error code
   103  	// "WAFNonexistentItemException".
   104  	//
   105  	// WAF couldn’t perform the operation because your resource doesn’t exist.
   106  	ErrCodeWAFNonexistentItemException = "WAFNonexistentItemException"
   107  
   108  	// ErrCodeWAFOptimisticLockException for service response error code
   109  	// "WAFOptimisticLockException".
   110  	//
   111  	// WAF couldn’t save your changes because you tried to update or delete a
   112  	// resource that has changed since you last retrieved it. Get the resource again,
   113  	// make any changes you need to make to the new copy, and retry your operation.
   114  	ErrCodeWAFOptimisticLockException = "WAFOptimisticLockException"
   115  
   116  	// ErrCodeWAFServiceLinkedRoleErrorException for service response error code
   117  	// "WAFServiceLinkedRoleErrorException".
   118  	//
   119  	// WAF is not able to access the service linked role. This can be caused by
   120  	// a previous PutLoggingConfiguration request, which can lock the service linked
   121  	// role for about 20 seconds. Please try your request again. The service linked
   122  	// role can also be locked by a previous DeleteServiceLinkedRole request, which
   123  	// can lock the role for 15 minutes or more. If you recently made a call to
   124  	// DeleteServiceLinkedRole, wait at least 15 minutes and try the request again.
   125  	// If you receive this same exception again, you will have to wait additional
   126  	// time until the role is unlocked.
   127  	ErrCodeWAFServiceLinkedRoleErrorException = "WAFServiceLinkedRoleErrorException"
   128  
   129  	// ErrCodeWAFSubscriptionNotFoundException for service response error code
   130  	// "WAFSubscriptionNotFoundException".
   131  	//
   132  	// You tried to use a managed rule group that's available by subscription, but
   133  	// you aren't subscribed to it yet.
   134  	ErrCodeWAFSubscriptionNotFoundException = "WAFSubscriptionNotFoundException"
   135  
   136  	// ErrCodeWAFTagOperationException for service response error code
   137  	// "WAFTagOperationException".
   138  	//
   139  	// An error occurred during the tagging operation. Retry your request.
   140  	ErrCodeWAFTagOperationException = "WAFTagOperationException"
   141  
   142  	// ErrCodeWAFTagOperationInternalErrorException for service response error code
   143  	// "WAFTagOperationInternalErrorException".
   144  	//
   145  	// WAF couldn’t perform your tagging operation because of an internal error.
   146  	// Retry your request.
   147  	ErrCodeWAFTagOperationInternalErrorException = "WAFTagOperationInternalErrorException"
   148  
   149  	// ErrCodeWAFUnavailableEntityException for service response error code
   150  	// "WAFUnavailableEntityException".
   151  	//
   152  	// WAF couldn’t retrieve the resource that you requested. Retry your request.
   153  	ErrCodeWAFUnavailableEntityException = "WAFUnavailableEntityException"
   154  )
   155  
   156  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   157  	"WAFAssociatedItemException":                 newErrorWAFAssociatedItemException,
   158  	"WAFDuplicateItemException":                  newErrorWAFDuplicateItemException,
   159  	"WAFExpiredManagedRuleGroupVersionException": newErrorWAFExpiredManagedRuleGroupVersionException,
   160  	"WAFInternalErrorException":                  newErrorWAFInternalErrorException,
   161  	"WAFInvalidOperationException":               newErrorWAFInvalidOperationException,
   162  	"WAFInvalidParameterException":               newErrorWAFInvalidParameterException,
   163  	"WAFInvalidPermissionPolicyException":        newErrorWAFInvalidPermissionPolicyException,
   164  	"WAFInvalidResourceException":                newErrorWAFInvalidResourceException,
   165  	"WAFLimitsExceededException":                 newErrorWAFLimitsExceededException,
   166  	"WAFNonexistentItemException":                newErrorWAFNonexistentItemException,
   167  	"WAFOptimisticLockException":                 newErrorWAFOptimisticLockException,
   168  	"WAFServiceLinkedRoleErrorException":         newErrorWAFServiceLinkedRoleErrorException,
   169  	"WAFSubscriptionNotFoundException":           newErrorWAFSubscriptionNotFoundException,
   170  	"WAFTagOperationException":                   newErrorWAFTagOperationException,
   171  	"WAFTagOperationInternalErrorException":      newErrorWAFTagOperationInternalErrorException,
   172  	"WAFUnavailableEntityException":              newErrorWAFUnavailableEntityException,
   173  }