/
errors.go
137 lines (116 loc) · 5.68 KB
/
errors.go
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package licensemanager
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// Access to resource denied.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeAuthorizationException for service response error code
// "AuthorizationException".
//
// The Amazon Web Services user account does not have permission to perform
// the action. Check the IAM policy associated with this account.
ErrCodeAuthorizationException = "AuthorizationException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// There was a conflict processing the request. Try your request again.
ErrCodeConflictException = "ConflictException"
// ErrCodeEntitlementNotAllowedException for service response error code
// "EntitlementNotAllowedException".
//
// The entitlement is not allowed.
ErrCodeEntitlementNotAllowedException = "EntitlementNotAllowedException"
// ErrCodeFailedDependencyException for service response error code
// "FailedDependencyException".
//
// A dependency required to run the API is missing.
ErrCodeFailedDependencyException = "FailedDependencyException"
// ErrCodeFilterLimitExceededException for service response error code
// "FilterLimitExceededException".
//
// The request uses too many filters or too many filter values.
ErrCodeFilterLimitExceededException = "FilterLimitExceededException"
// ErrCodeInvalidParameterValueException for service response error code
// "InvalidParameterValueException".
//
// One or more parameter values are not valid.
ErrCodeInvalidParameterValueException = "InvalidParameterValueException"
// ErrCodeInvalidResourceStateException for service response error code
// "InvalidResourceStateException".
//
// License Manager cannot allocate a license to a resource because of its state.
//
// For example, you cannot allocate a license to an instance in the process
// of shutting down.
ErrCodeInvalidResourceStateException = "InvalidResourceStateException"
// ErrCodeLicenseUsageException for service response error code
// "LicenseUsageException".
//
// You do not have enough licenses available to support a new resource launch.
ErrCodeLicenseUsageException = "LicenseUsageException"
// ErrCodeNoEntitlementsAllowedException for service response error code
// "NoEntitlementsAllowedException".
//
// There are no entitlements found for this license, or the entitlement maximum
// count is reached.
ErrCodeNoEntitlementsAllowedException = "NoEntitlementsAllowedException"
// ErrCodeRateLimitExceededException for service response error code
// "RateLimitExceededException".
//
// Too many requests have been submitted. Try again after a brief wait.
ErrCodeRateLimitExceededException = "RateLimitExceededException"
// ErrCodeRedirectException for service response error code
// "RedirectException".
//
// This is not the correct Region for the resource. Try again.
ErrCodeRedirectException = "RedirectException"
// ErrCodeResourceLimitExceededException for service response error code
// "ResourceLimitExceededException".
//
// Your resource limits have been exceeded.
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The resource cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServerInternalException for service response error code
// "ServerInternalException".
//
// The server experienced an internal error. Try again.
ErrCodeServerInternalException = "ServerInternalException"
// ErrCodeUnsupportedDigitalSignatureMethodException for service response error code
// "UnsupportedDigitalSignatureMethodException".
//
// The digital signature method is unsupported. Try your request again.
ErrCodeUnsupportedDigitalSignatureMethodException = "UnsupportedDigitalSignatureMethodException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The provided input is not valid. Try your request again.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"AuthorizationException": newErrorAuthorizationException,
"ConflictException": newErrorConflictException,
"EntitlementNotAllowedException": newErrorEntitlementNotAllowedException,
"FailedDependencyException": newErrorFailedDependencyException,
"FilterLimitExceededException": newErrorFilterLimitExceededException,
"InvalidParameterValueException": newErrorInvalidParameterValueException,
"InvalidResourceStateException": newErrorInvalidResourceStateException,
"LicenseUsageException": newErrorLicenseUsageException,
"NoEntitlementsAllowedException": newErrorNoEntitlementsAllowedException,
"RateLimitExceededException": newErrorRateLimitExceededException,
"RedirectException": newErrorRedirectException,
"ResourceLimitExceededException": newErrorResourceLimitExceededException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServerInternalException": newErrorServerInternalException,
"UnsupportedDigitalSignatureMethodException": newErrorUnsupportedDigitalSignatureMethodException,
"ValidationException": newErrorValidationException,
}