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

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package licensemanager
     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  	// Access to resource denied.
    15  	ErrCodeAccessDeniedException = "AccessDeniedException"
    16  
    17  	// ErrCodeAuthorizationException for service response error code
    18  	// "AuthorizationException".
    19  	//
    20  	// The Amazon Web Services user account does not have permission to perform
    21  	// the action. Check the IAM policy associated with this account.
    22  	ErrCodeAuthorizationException = "AuthorizationException"
    23  
    24  	// ErrCodeConflictException for service response error code
    25  	// "ConflictException".
    26  	//
    27  	// There was a conflict processing the request. Try your request again.
    28  	ErrCodeConflictException = "ConflictException"
    29  
    30  	// ErrCodeEntitlementNotAllowedException for service response error code
    31  	// "EntitlementNotAllowedException".
    32  	//
    33  	// The entitlement is not allowed.
    34  	ErrCodeEntitlementNotAllowedException = "EntitlementNotAllowedException"
    35  
    36  	// ErrCodeFailedDependencyException for service response error code
    37  	// "FailedDependencyException".
    38  	//
    39  	// A dependency required to run the API is missing.
    40  	ErrCodeFailedDependencyException = "FailedDependencyException"
    41  
    42  	// ErrCodeFilterLimitExceededException for service response error code
    43  	// "FilterLimitExceededException".
    44  	//
    45  	// The request uses too many filters or too many filter values.
    46  	ErrCodeFilterLimitExceededException = "FilterLimitExceededException"
    47  
    48  	// ErrCodeInvalidParameterValueException for service response error code
    49  	// "InvalidParameterValueException".
    50  	//
    51  	// One or more parameter values are not valid.
    52  	ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
    53  
    54  	// ErrCodeInvalidResourceStateException for service response error code
    55  	// "InvalidResourceStateException".
    56  	//
    57  	// License Manager cannot allocate a license to a resource because of its state.
    58  	//
    59  	// For example, you cannot allocate a license to an instance in the process
    60  	// of shutting down.
    61  	ErrCodeInvalidResourceStateException = "InvalidResourceStateException"
    62  
    63  	// ErrCodeLicenseUsageException for service response error code
    64  	// "LicenseUsageException".
    65  	//
    66  	// You do not have enough licenses available to support a new resource launch.
    67  	ErrCodeLicenseUsageException = "LicenseUsageException"
    68  
    69  	// ErrCodeNoEntitlementsAllowedException for service response error code
    70  	// "NoEntitlementsAllowedException".
    71  	//
    72  	// There are no entitlements found for this license, or the entitlement maximum
    73  	// count is reached.
    74  	ErrCodeNoEntitlementsAllowedException = "NoEntitlementsAllowedException"
    75  
    76  	// ErrCodeRateLimitExceededException for service response error code
    77  	// "RateLimitExceededException".
    78  	//
    79  	// Too many requests have been submitted. Try again after a brief wait.
    80  	ErrCodeRateLimitExceededException = "RateLimitExceededException"
    81  
    82  	// ErrCodeRedirectException for service response error code
    83  	// "RedirectException".
    84  	//
    85  	// This is not the correct Region for the resource. Try again.
    86  	ErrCodeRedirectException = "RedirectException"
    87  
    88  	// ErrCodeResourceLimitExceededException for service response error code
    89  	// "ResourceLimitExceededException".
    90  	//
    91  	// Your resource limits have been exceeded.
    92  	ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
    93  
    94  	// ErrCodeResourceNotFoundException for service response error code
    95  	// "ResourceNotFoundException".
    96  	//
    97  	// The resource cannot be found.
    98  	ErrCodeResourceNotFoundException = "ResourceNotFoundException"
    99  
   100  	// ErrCodeServerInternalException for service response error code
   101  	// "ServerInternalException".
   102  	//
   103  	// The server experienced an internal error. Try again.
   104  	ErrCodeServerInternalException = "ServerInternalException"
   105  
   106  	// ErrCodeUnsupportedDigitalSignatureMethodException for service response error code
   107  	// "UnsupportedDigitalSignatureMethodException".
   108  	//
   109  	// The digital signature method is unsupported. Try your request again.
   110  	ErrCodeUnsupportedDigitalSignatureMethodException = "UnsupportedDigitalSignatureMethodException"
   111  
   112  	// ErrCodeValidationException for service response error code
   113  	// "ValidationException".
   114  	//
   115  	// The provided input is not valid. Try your request again.
   116  	ErrCodeValidationException = "ValidationException"
   117  )
   118  
   119  var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
   120  	"AccessDeniedException":                      newErrorAccessDeniedException,
   121  	"AuthorizationException":                     newErrorAuthorizationException,
   122  	"ConflictException":                          newErrorConflictException,
   123  	"EntitlementNotAllowedException":             newErrorEntitlementNotAllowedException,
   124  	"FailedDependencyException":                  newErrorFailedDependencyException,
   125  	"FilterLimitExceededException":               newErrorFilterLimitExceededException,
   126  	"InvalidParameterValueException":             newErrorInvalidParameterValueException,
   127  	"InvalidResourceStateException":              newErrorInvalidResourceStateException,
   128  	"LicenseUsageException":                      newErrorLicenseUsageException,
   129  	"NoEntitlementsAllowedException":             newErrorNoEntitlementsAllowedException,
   130  	"RateLimitExceededException":                 newErrorRateLimitExceededException,
   131  	"RedirectException":                          newErrorRedirectException,
   132  	"ResourceLimitExceededException":             newErrorResourceLimitExceededException,
   133  	"ResourceNotFoundException":                  newErrorResourceNotFoundException,
   134  	"ServerInternalException":                    newErrorServerInternalException,
   135  	"UnsupportedDigitalSignatureMethodException": newErrorUnsupportedDigitalSignatureMethodException,
   136  	"ValidationException":                        newErrorValidationException,
   137  }