-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
125 lines (106 loc) · 5.25 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
// 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"
// 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"
// 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,
"EndpointGroupAlreadyExistsException": newErrorEndpointGroupAlreadyExistsException,
"EndpointGroupNotFoundException": newErrorEndpointGroupNotFoundException,
"IncorrectCidrStateException": newErrorIncorrectCidrStateException,
"InternalServiceErrorException": newErrorInternalServiceErrorException,
"InvalidArgumentException": newErrorInvalidArgumentException,
"InvalidNextTokenException": newErrorInvalidNextTokenException,
"InvalidPortRangeException": newErrorInvalidPortRangeException,
"LimitExceededException": newErrorLimitExceededException,
"ListenerNotFoundException": newErrorListenerNotFoundException,
}