/
errors.go
146 lines (124 loc) · 6.1 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
138
139
140
141
142
143
144
145
146
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package globalaccelerator
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAcceleratorNotDisabledException for service response error code
// "AcceleratorNotDisabledException".
//
// The accelerator that you specified could not be disabled.
ErrCodeAcceleratorNotDisabledException = "AcceleratorNotDisabledException"
// ErrCodeAcceleratorNotFoundException for service response error code
// "AcceleratorNotFoundException".
//
// The accelerator that you specified doesn't exist.
ErrCodeAcceleratorNotFoundException = "AcceleratorNotFoundException"
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You don't have access permission.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeAssociatedEndpointGroupFoundException for service response error code
// "AssociatedEndpointGroupFoundException".
//
// The listener that you specified has an endpoint group associated with it.
// You must remove all dependent resources from a listener before you can delete
// it.
ErrCodeAssociatedEndpointGroupFoundException = "AssociatedEndpointGroupFoundException"
// ErrCodeAssociatedListenerFoundException for service response error code
// "AssociatedListenerFoundException".
//
// The accelerator that you specified has a listener associated with it. You
// must remove all dependent resources from an accelerator before you can delete
// it.
ErrCodeAssociatedListenerFoundException = "AssociatedListenerFoundException"
// ErrCodeByoipCidrNotFoundException for service response error code
// "ByoipCidrNotFoundException".
//
// The CIDR that you specified was not found or is incorrect.
ErrCodeByoipCidrNotFoundException = "ByoipCidrNotFoundException"
// ErrCodeConflictException for service response error code
// "ConflictException".
//
// You can't use both of those options.
ErrCodeConflictException = "ConflictException"
// ErrCodeEndpointAlreadyExistsException for service response error code
// "EndpointAlreadyExistsException".
//
// The endpoint that you specified doesn't exist.
ErrCodeEndpointAlreadyExistsException = "EndpointAlreadyExistsException"
// ErrCodeEndpointGroupAlreadyExistsException for service response error code
// "EndpointGroupAlreadyExistsException".
//
// The endpoint group that you specified already exists.
ErrCodeEndpointGroupAlreadyExistsException = "EndpointGroupAlreadyExistsException"
// ErrCodeEndpointGroupNotFoundException for service response error code
// "EndpointGroupNotFoundException".
//
// The endpoint group that you specified doesn't exist.
ErrCodeEndpointGroupNotFoundException = "EndpointGroupNotFoundException"
// ErrCodeEndpointNotFoundException for service response error code
// "EndpointNotFoundException".
//
// The endpoint that you specified doesn't exist.
ErrCodeEndpointNotFoundException = "EndpointNotFoundException"
// ErrCodeIncorrectCidrStateException for service response error code
// "IncorrectCidrStateException".
//
// The CIDR that you specified is not valid for this action. For example, the
// state of the CIDR might be incorrect for this action.
ErrCodeIncorrectCidrStateException = "IncorrectCidrStateException"
// ErrCodeInternalServiceErrorException for service response error code
// "InternalServiceErrorException".
//
// There was an internal error for AWS Global Accelerator.
ErrCodeInternalServiceErrorException = "InternalServiceErrorException"
// ErrCodeInvalidArgumentException for service response error code
// "InvalidArgumentException".
//
// An argument that you specified is invalid.
ErrCodeInvalidArgumentException = "InvalidArgumentException"
// ErrCodeInvalidNextTokenException for service response error code
// "InvalidNextTokenException".
//
// There isn't another item to return.
ErrCodeInvalidNextTokenException = "InvalidNextTokenException"
// ErrCodeInvalidPortRangeException for service response error code
// "InvalidPortRangeException".
//
// The port numbers that you specified are not valid numbers or are not unique
// for this accelerator.
ErrCodeInvalidPortRangeException = "InvalidPortRangeException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// Processing your request would cause you to exceed an AWS Global Accelerator
// limit.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeListenerNotFoundException for service response error code
// "ListenerNotFoundException".
//
// The listener that you specified doesn't exist.
ErrCodeListenerNotFoundException = "ListenerNotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AcceleratorNotDisabledException": newErrorAcceleratorNotDisabledException,
"AcceleratorNotFoundException": newErrorAcceleratorNotFoundException,
"AccessDeniedException": newErrorAccessDeniedException,
"AssociatedEndpointGroupFoundException": newErrorAssociatedEndpointGroupFoundException,
"AssociatedListenerFoundException": newErrorAssociatedListenerFoundException,
"ByoipCidrNotFoundException": newErrorByoipCidrNotFoundException,
"ConflictException": newErrorConflictException,
"EndpointAlreadyExistsException": newErrorEndpointAlreadyExistsException,
"EndpointGroupAlreadyExistsException": newErrorEndpointGroupAlreadyExistsException,
"EndpointGroupNotFoundException": newErrorEndpointGroupNotFoundException,
"EndpointNotFoundException": newErrorEndpointNotFoundException,
"IncorrectCidrStateException": newErrorIncorrectCidrStateException,
"InternalServiceErrorException": newErrorInternalServiceErrorException,
"InvalidArgumentException": newErrorInvalidArgumentException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidPortRangeException": newErrorInvalidPortRangeException,
"LimitExceededException": newErrorLimitExceededException,
"ListenerNotFoundException": newErrorListenerNotFoundException,
}