/
errors.go
87 lines (73 loc) · 3.36 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
// 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 AWS user account does not have permission to perform the action. Check
// the IAM policy associated with this account.
ErrCodeAuthorizationException = "AuthorizationException"
// 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"
// ErrCodeRateLimitExceededException for service response error code
// "RateLimitExceededException".
//
// Too many requests have been submitted. Try again after a brief wait.
ErrCodeRateLimitExceededException = "RateLimitExceededException"
// ErrCodeResourceLimitExceededException for service response error code
// "ResourceLimitExceededException".
//
// Your resource limits have been exceeded.
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
// ErrCodeServerInternalException for service response error code
// "ServerInternalException".
//
// The server experienced an internal error. Try again.
ErrCodeServerInternalException = "ServerInternalException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"AuthorizationException": newErrorAuthorizationException,
"FailedDependencyException": newErrorFailedDependencyException,
"FilterLimitExceededException": newErrorFilterLimitExceededException,
"InvalidParameterValueException": newErrorInvalidParameterValueException,
"InvalidResourceStateException": newErrorInvalidResourceStateException,
"LicenseUsageException": newErrorLicenseUsageException,
"RateLimitExceededException": newErrorRateLimitExceededException,
"ResourceLimitExceededException": newErrorResourceLimitExceededException,
"ServerInternalException": newErrorServerInternalException,
}