-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
94 lines (79 loc) · 3.74 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package costexplorer
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeBillExpirationException for service response error code
// "BillExpirationException".
//
// The requested report expired. Update the date interval and try again.
ErrCodeBillExpirationException = "BillExpirationException"
// ErrCodeDataUnavailableException for service response error code
// "DataUnavailableException".
//
// The requested data is unavailable.
ErrCodeDataUnavailableException = "DataUnavailableException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// The pagination token is invalid. Try again without a pagination token.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// You made too many calls in a short period of time. Try again later.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeRequestChangedException for service response error code
// "RequestChangedException".
//
// Your request parameters changed between pages. Try again with the old parameters
// or without a pagination token.
ErrCodeRequestChangedException = "RequestChangedException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified ARN in the request doesn't exist.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// You've reached the limit on the number of resources you can create, or exceeded
// the size of an individual resource.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// Can occur if you specify a number of tags for a resource greater than the
// maximum 50 user tags per resource.
ErrCodeTooManyTagsException = "TooManyTagsException"
// ErrCodeUnknownMonitorException for service response error code
// "UnknownMonitorException".
//
// The cost anomaly monitor does not exist for the account.
ErrCodeUnknownMonitorException = "UnknownMonitorException"
// ErrCodeUnknownSubscriptionException for service response error code
// "UnknownSubscriptionException".
//
// The cost anomaly subscription does not exist for the account.
ErrCodeUnknownSubscriptionException = "UnknownSubscriptionException"
// ErrCodeUnresolvableUsageUnitException for service response error code
// "UnresolvableUsageUnitException".
//
// Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup
// filter selections that contain matching units, for example: hours.
ErrCodeUnresolvableUsageUnitException = "UnresolvableUsageUnitException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"BillExpirationException": newErrorBillExpirationException,
"DataUnavailableException": newErrorDataUnavailableException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"LimitExceededException": newErrorLimitExceededException,
"RequestChangedException": newErrorRequestChangedException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"TooManyTagsException": newErrorTooManyTagsException,
"UnknownMonitorException": newErrorUnknownMonitorException,
"UnknownSubscriptionException": newErrorUnknownSubscriptionException,
"UnresolvableUsageUnitException": newErrorUnresolvableUsageUnitException,
}