-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
161 lines (136 loc) · 6.45 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package connect
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// You do not have sufficient permissions to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeContactFlowNotPublishedException for service response error code
// "ContactFlowNotPublishedException".
//
// The flow has not been published.
ErrCodeContactFlowNotPublishedException = "ContactFlowNotPublishedException"
// ErrCodeContactNotFoundException for service response error code
// "ContactNotFoundException".
//
// The contact with the specified ID is not active or does not exist. Applies
// to Voice calls only, not to Chat, Task, or Voice Callback.
ErrCodeContactNotFoundException = "ContactNotFoundException"
// ErrCodeDestinationNotAllowedException for service response error code
// "DestinationNotAllowedException".
//
// Outbound calls to the destination number are not allowed.
ErrCodeDestinationNotAllowedException = "DestinationNotAllowedException"
// ErrCodeDuplicateResourceException for service response error code
// "DuplicateResourceException".
//
// A resource with the specified name already exists.
ErrCodeDuplicateResourceException = "DuplicateResourceException"
// ErrCodeIdempotencyException for service response error code
// "IdempotencyException".
//
// An entity with the same name already exists.
ErrCodeIdempotencyException = "IdempotencyException"
// ErrCodeInternalServiceException for service response error code
// "InternalServiceException".
//
// Request processing failed because of an error or failure with the service.
ErrCodeInternalServiceException = "InternalServiceException"
// ErrCodeInvalidContactFlowException for service response error code
// "InvalidContactFlowException".
//
// The flow is not valid.
ErrCodeInvalidContactFlowException = "InvalidContactFlowException"
// ErrCodeInvalidContactFlowModuleException for service response error code
// "InvalidContactFlowModuleException".
//
// The problems with the module. Please fix before trying again.
ErrCodeInvalidContactFlowModuleException = "InvalidContactFlowModuleException"
// ErrCodeInvalidParameterException for service response error code
// "InvalidParameterException".
//
// One or more of the specified parameters are not valid.
ErrCodeInvalidParameterException = "InvalidParameterException"
// ErrCodeInvalidRequestException for service response error code
// "InvalidRequestException".
//
// The request is not valid.
ErrCodeInvalidRequestException = "InvalidRequestException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The allowed limit for the resource has been exceeded.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeOutboundContactNotPermittedException for service response error code
// "OutboundContactNotPermittedException".
//
// The contact is not permitted.
ErrCodeOutboundContactNotPermittedException = "OutboundContactNotPermittedException"
// ErrCodePropertyValidationException for service response error code
// "PropertyValidationException".
//
// The property is not valid.
ErrCodePropertyValidationException = "PropertyValidationException"
// ErrCodeResourceConflictException for service response error code
// "ResourceConflictException".
//
// A resource already has that name.
ErrCodeResourceConflictException = "ResourceConflictException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// That resource is already in use. Please try another.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource was not found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceNotReadyException for service response error code
// "ResourceNotReadyException".
//
// The resource is not ready.
ErrCodeResourceNotReadyException = "ResourceNotReadyException"
// ErrCodeServiceQuotaExceededException for service response error code
// "ServiceQuotaExceededException".
//
// The service quota has been exceeded.
ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
// The throttling limit has been exceeded.
ErrCodeThrottlingException = "ThrottlingException"
// ErrCodeUserNotFoundException for service response error code
// "UserNotFoundException".
//
// No user with the specified credentials was found in the Amazon Connect instance.
ErrCodeUserNotFoundException = "UserNotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ContactFlowNotPublishedException": newErrorContactFlowNotPublishedException,
"ContactNotFoundException": newErrorContactNotFoundException,
"DestinationNotAllowedException": newErrorDestinationNotAllowedException,
"DuplicateResourceException": newErrorDuplicateResourceException,
"IdempotencyException": newErrorIdempotencyException,
"InternalServiceException": newErrorInternalServiceException,
"InvalidContactFlowException": newErrorInvalidContactFlowException,
"InvalidContactFlowModuleException": newErrorInvalidContactFlowModuleException,
"InvalidParameterException": newErrorInvalidParameterException,
"InvalidRequestException": newErrorInvalidRequestException,
"LimitExceededException": newErrorLimitExceededException,
"OutboundContactNotPermittedException": newErrorOutboundContactNotPermittedException,
"PropertyValidationException": newErrorPropertyValidationException,
"ResourceConflictException": newErrorResourceConflictException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ResourceNotReadyException": newErrorResourceNotReadyException,
"ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
"ThrottlingException": newErrorThrottlingException,
"UserNotFoundException": newErrorUserNotFoundException,
}