-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
114 lines (96 loc) · 4.69 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package appstream
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeConcurrentModificationException for service response error code
// "ConcurrentModificationException".
//
// An API error occurred. Wait a few minutes and try again.
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
// ErrCodeEntitlementAlreadyExistsException for service response error code
// "EntitlementAlreadyExistsException".
//
// The entitlement already exists.
ErrCodeEntitlementAlreadyExistsException = "EntitlementAlreadyExistsException"
// ErrCodeEntitlementNotFoundException for service response error code
// "EntitlementNotFoundException".
//
// The entitlement can't be found.
ErrCodeEntitlementNotFoundException = "EntitlementNotFoundException"
// ErrCodeIncompatibleImageException for service response error code
// "IncompatibleImageException".
//
// The image can't be updated because it's not compatible for updates.
ErrCodeIncompatibleImageException = "IncompatibleImageException"
// ErrCodeInvalidAccountStatusException for service response error code
// "InvalidAccountStatusException".
//
// The resource cannot be created because your AWS account is suspended. For
// assistance, contact AWS Support.
ErrCodeInvalidAccountStatusException = "InvalidAccountStatusException"
// ErrCodeInvalidParameterCombinationException for service response error code
// "InvalidParameterCombinationException".
//
// Indicates an incorrect combination of parameters, or a missing parameter.
ErrCodeInvalidParameterCombinationException = "InvalidParameterCombinationException"
// ErrCodeInvalidRoleException for service response error code
// "InvalidRoleException".
//
// The specified role is invalid.
ErrCodeInvalidRoleException = "InvalidRoleException"
// ErrCodeLimitExceededException for service response error code
// "LimitExceededException".
//
// The requested limit exceeds the permitted limit for an account.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeOperationNotPermittedException for service response error code
// "OperationNotPermittedException".
//
// The attempted operation is not permitted.
ErrCodeOperationNotPermittedException = "OperationNotPermittedException"
// ErrCodeRequestLimitExceededException for service response error code
// "RequestLimitExceededException".
//
// AppStream 2.0 can’t process the request right now because the Describe
// calls from your AWS account are being throttled by Amazon EC2. Try again
// later.
ErrCodeRequestLimitExceededException = "RequestLimitExceededException"
// ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException".
//
// The specified resource already exists.
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The specified resource is in use.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceNotAvailableException for service response error code
// "ResourceNotAvailableException".
//
// The specified resource exists and is not in use, but isn't available.
ErrCodeResourceNotAvailableException = "ResourceNotAvailableException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The specified resource was not found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ConcurrentModificationException": newErrorConcurrentModificationException,
"EntitlementAlreadyExistsException": newErrorEntitlementAlreadyExistsException,
"EntitlementNotFoundException": newErrorEntitlementNotFoundException,
"IncompatibleImageException": newErrorIncompatibleImageException,
"InvalidAccountStatusException": newErrorInvalidAccountStatusException,
"InvalidParameterCombinationException": newErrorInvalidParameterCombinationException,
"InvalidRoleException": newErrorInvalidRoleException,
"LimitExceededException": newErrorLimitExceededException,
"OperationNotPermittedException": newErrorOperationNotPermittedException,
"RequestLimitExceededException": newErrorRequestLimitExceededException,
"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceNotAvailableException": newErrorResourceNotAvailableException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
}