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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package servicequotas
     4  
     5  import (
     6  	"github.com/aavshr/aws-sdk-go/private/protocol"
     7  )
     8  
     9  const (
    10  
    11  	// ErrCodeAWSServiceAccessNotEnabledException for service response error code
    12  	// "AWSServiceAccessNotEnabledException".
    13  	//
    14  	// The action you attempted is not allowed unless Service Access with Service
    15  	// Quotas is enabled in your organization.
    16  	ErrCodeAWSServiceAccessNotEnabledException = "AWSServiceAccessNotEnabledException"
    17  
    18  	// ErrCodeAccessDeniedException for service response error code
    19  	// "AccessDeniedException".
    20  	//
    21  	// You do not have sufficient permission to perform this action.
    22  	ErrCodeAccessDeniedException = "AccessDeniedException"
    23  
    24  	// ErrCodeDependencyAccessDeniedException for service response error code
    25  	// "DependencyAccessDeniedException".
    26  	//
    27  	// You can't perform this action because a dependency does not have access.
    28  	ErrCodeDependencyAccessDeniedException = "DependencyAccessDeniedException"
    29  
    30  	// ErrCodeIllegalArgumentException for service response error code
    31  	// "IllegalArgumentException".
    32  	//
    33  	// Invalid input was provided.
    34  	ErrCodeIllegalArgumentException = "IllegalArgumentException"
    35  
    36  	// ErrCodeInvalidPaginationTokenException for service response error code
    37  	// "InvalidPaginationTokenException".
    38  	//
    39  	// Invalid input was provided.
    40  	ErrCodeInvalidPaginationTokenException = "InvalidPaginationTokenException"
    41  
    42  	// ErrCodeInvalidResourceStateException for service response error code
    43  	// "InvalidResourceStateException".
    44  	//
    45  	// The resource is in an invalid state.
    46  	ErrCodeInvalidResourceStateException = "InvalidResourceStateException"
    47  
    48  	// ErrCodeNoAvailableOrganizationException for service response error code
    49  	// "NoAvailableOrganizationException".
    50  	//
    51  	// The account making this call is not a member of an organization.
    52  	ErrCodeNoAvailableOrganizationException = "NoAvailableOrganizationException"
    53  
    54  	// ErrCodeNoSuchResourceException for service response error code
    55  	// "NoSuchResourceException".
    56  	//
    57  	// The specified resource does not exist.
    58  	ErrCodeNoSuchResourceException = "NoSuchResourceException"
    59  
    60  	// ErrCodeOrganizationNotInAllFeaturesModeException for service response error code
    61  	// "OrganizationNotInAllFeaturesModeException".
    62  	//
    63  	// The organization that your account belongs to is not in All Features mode.
    64  	ErrCodeOrganizationNotInAllFeaturesModeException = "OrganizationNotInAllFeaturesModeException"
    65  
    66  	// ErrCodeQuotaExceededException for service response error code
    67  	// "QuotaExceededException".
    68  	//
    69  	// You have exceeded your service quota. To perform the requested action, remove
    70  	// some of the relevant resources, or use Service Quotas to request a service
    71  	// quota increase.
    72  	ErrCodeQuotaExceededException = "QuotaExceededException"
    73  
    74  	// ErrCodeResourceAlreadyExistsException for service response error code
    75  	// "ResourceAlreadyExistsException".
    76  	//
    77  	// The specified resource already exists.
    78  	ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
    79  
    80  	// ErrCodeServiceException for service response error code
    81  	// "ServiceException".
    82  	//
    83  	// Something went wrong.
    84  	ErrCodeServiceException = "ServiceException"
    85  
    86  	// ErrCodeServiceQuotaTemplateNotInUseException for service response error code
    87  	// "ServiceQuotaTemplateNotInUseException".
    88  	//
    89  	// The quota request template is not associated with your organization.
    90  	ErrCodeServiceQuotaTemplateNotInUseException = "ServiceQuotaTemplateNotInUseException"
    91  
    92  	// ErrCodeTagPolicyViolationException for service response error code
    93  	// "TagPolicyViolationException".
    94  	//
    95  	// The specified tag is a reserved word and cannot be used.
    96  	ErrCodeTagPolicyViolationException = "TagPolicyViolationException"
    97  
    98  	// ErrCodeTemplatesNotAvailableInRegionException for service response error code
    99  	// "TemplatesNotAvailableInRegionException".
   100  	//
   101  	// The Service Quotas template is not available in this AWS Region.
   102  	ErrCodeTemplatesNotAvailableInRegionException = "TemplatesNotAvailableInRegionException"
   103  
   104  	// ErrCodeTooManyRequestsException for service response error code
   105  	// "TooManyRequestsException".
   106  	//
   107  	// Due to throttling, the request was denied. Slow down the rate of request
   108  	// calls, or request an increase for this quota.
   109  	ErrCodeTooManyRequestsException = "TooManyRequestsException"
   110  
   111  	// ErrCodeTooManyTagsException for service response error code
   112  	// "TooManyTagsException".
   113  	//
   114  	// You've exceeded the number of tags allowed for a resource. For more information,
   115  	// see Tag restrictions (https://docs.aws.amazon.com/servicequotas/latest/userguide/sq-tagging.html#sq-tagging-restrictions)
   116  	// in the Service Quotas User Guide.
   117  	ErrCodeTooManyTagsException = "TooManyTagsException"
   118  )
   119  
   120  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   121  	"AWSServiceAccessNotEnabledException":       newErrorAWSServiceAccessNotEnabledException,
   122  	"AccessDeniedException":                     newErrorAccessDeniedException,
   123  	"DependencyAccessDeniedException":           newErrorDependencyAccessDeniedException,
   124  	"IllegalArgumentException":                  newErrorIllegalArgumentException,
   125  	"InvalidPaginationTokenException":           newErrorInvalidPaginationTokenException,
   126  	"InvalidResourceStateException":             newErrorInvalidResourceStateException,
   127  	"NoAvailableOrganizationException":          newErrorNoAvailableOrganizationException,
   128  	"NoSuchResourceException":                   newErrorNoSuchResourceException,
   129  	"OrganizationNotInAllFeaturesModeException": newErrorOrganizationNotInAllFeaturesModeException,
   130  	"QuotaExceededException":                    newErrorQuotaExceededException,
   131  	"ResourceAlreadyExistsException":            newErrorResourceAlreadyExistsException,
   132  	"ServiceException":                          newErrorServiceException,
   133  	"ServiceQuotaTemplateNotInUseException":     newErrorServiceQuotaTemplateNotInUseException,
   134  	"TagPolicyViolationException":               newErrorTagPolicyViolationException,
   135  	"TemplatesNotAvailableInRegionException":    newErrorTemplatesNotAvailableInRegionException,
   136  	"TooManyRequestsException":                  newErrorTooManyRequestsException,
   137  	"TooManyTagsException":                      newErrorTooManyTagsException,
   138  }