-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
130 lines (110 loc) · 5.2 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package acm
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have access required to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// You are trying to update a resource or configuration that is already being
// created or updated. Wait for the previous operation to finish and try again.
ErrCodeConflictException = "ConflictException"
// ErrCodeInvalidArgsException for service response error code
// "InvalidArgsException".
//
// One or more of of request parameters specified is not valid.
ErrCodeInvalidArgsException = "InvalidArgsException"
// ErrCodeInvalidArnException for service response error code
// "InvalidArnException".
//
// The requested Amazon Resource Name (ARN) does not refer to an existing resource.
ErrCodeInvalidArnException = "InvalidArnException"
// ErrCodeInvalidDomainValidationOptionsException for service response error code
// "InvalidDomainValidationOptionsException".
//
// One or more values in the DomainValidationOption structure is incorrect.
ErrCodeInvalidDomainValidationOptionsException = "InvalidDomainValidationOptionsException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// An input parameter was invalid.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeInvalidStateException for service response error code
// "InvalidStateException".
//
// Processing has reached an invalid state.
ErrCodeInvalidStateException = "InvalidStateException"
// ErrCodeInvalidTagException for service response error code
// "InvalidTagException".
//
// One or both of the values that make up the key-value pair is not valid. For
// example, you cannot specify a tag value that begins with aws:.
ErrCodeInvalidTagException = "InvalidTagException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// An ACM quota has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeRequestInProgressException for service response error code
// "RequestInProgressException".
//
// The certificate request is in process and the certificate in your account
// has not yet been issued.
ErrCodeRequestInProgressException = "RequestInProgressException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The certificate is in use by another AWS service in the caller's account.
// Remove the association and try again.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified certificate cannot be found in the caller's account or the
// caller's account cannot be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeTagPolicyException for service response error code
// "TagPolicyException".
//
// A specified tag did not comply with an existing tag policy and was rejected.
ErrCodeTagPolicyException = "TagPolicyException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The request was denied because it exceeded a quota.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeTooManyTagsException for service response error code
// "TooManyTagsException".
//
// The request contains too many tags. Try the request again with fewer tags.
ErrCodeTooManyTagsException = "TooManyTagsException"
// ErrCodeValidationException for service response error code
// "ValidationException".
//
// The supplied input failed to satisfy constraints of an AWS service.
ErrCodeValidationException = "ValidationException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ConflictException": newErrorConflictException,
"InvalidArgsException": newErrorInvalidArgsException,
"InvalidArnException": newErrorInvalidArnException,
"InvalidDomainValidationOptionsException": newErrorInvalidDomainValidationOptionsException,
"InvalidParameterException": newErrorInvalidParameterException,
"InvalidStateException": newErrorInvalidStateException,
"InvalidTagException": newErrorInvalidTagException,
"LimitExceededException": newErrorLimitExceededException,
"RequestInProgressException": newErrorRequestInProgressException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"TagPolicyException": newErrorTagPolicyException,
"ThrottlingException": newErrorThrottlingException,
"TooManyTagsException": newErrorTooManyTagsException,
"ValidationException": newErrorValidationException,
}