-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
errors.go
155 lines (132 loc) · 7.28 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package workspaces
import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
// The user is not authorized to access a resource.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeApplicationNotSupportedException for service response error code
// "ApplicationNotSupportedException".
//
// The specified application is not supported.
ErrCodeApplicationNotSupportedException = "ApplicationNotSupportedException"
// ErrCodeComputeNotCompatibleException for service response error code
// "ComputeNotCompatibleException".
//
// The compute type of the WorkSpace is not compatible with the application.
ErrCodeComputeNotCompatibleException = "ComputeNotCompatibleException"
// ErrCodeIncompatibleApplicationsException for service response error code
// "IncompatibleApplicationsException".
//
// The specified application is not compatible with the resource.
ErrCodeIncompatibleApplicationsException = "IncompatibleApplicationsException"
// ErrCodeInvalidParameterValuesException for service response error code
// "InvalidParameterValuesException".
//
// One or more parameter values are not valid.
ErrCodeInvalidParameterValuesException = "InvalidParameterValuesException"
// ErrCodeInvalidResourceStateException for service response error code
// "InvalidResourceStateException".
//
// The state of the resource is not valid for this operation.
ErrCodeInvalidResourceStateException = "InvalidResourceStateException"
// ErrCodeOperatingSystemNotCompatibleException for service response error code
// "OperatingSystemNotCompatibleException".
//
// The operating system of the WorkSpace is not compatible with the application.
ErrCodeOperatingSystemNotCompatibleException = "OperatingSystemNotCompatibleException"
// ErrCodeOperationInProgressException for service response error code
// "OperationInProgressException".
//
// The properties of this WorkSpace are currently being modified. Try again
// in a moment.
ErrCodeOperationInProgressException = "OperationInProgressException"
// ErrCodeOperationNotSupportedException for service response error code
// "OperationNotSupportedException".
//
// This operation is not supported.
ErrCodeOperationNotSupportedException = "OperationNotSupportedException"
// ErrCodeResourceAlreadyExistsException for service response error code
// "ResourceAlreadyExistsException".
//
// The specified resource already exists.
ErrCodeResourceAlreadyExistsException = "ResourceAlreadyExistsException"
// ErrCodeResourceAssociatedException for service response error code
// "ResourceAssociatedException".
//
// The resource is associated with a directory.
ErrCodeResourceAssociatedException = "ResourceAssociatedException"
// ErrCodeResourceCreationFailedException for service response error code
// "ResourceCreationFailedException".
//
// The resource could not be created.
ErrCodeResourceCreationFailedException = "ResourceCreationFailedException"
// ErrCodeResourceInUseException for service response error code
// "ResourceInUseException".
//
// The specified resource is currently in use.
ErrCodeResourceInUseException = "ResourceInUseException"
// ErrCodeResourceLimitExceededException for service response error code
// "ResourceLimitExceededException".
//
// Your resource limits have been exceeded.
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
// The resource could not be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeResourceUnavailableException for service response error code
// "ResourceUnavailableException".
//
// The specified resource is not available.
ErrCodeResourceUnavailableException = "ResourceUnavailableException"
// ErrCodeUnsupportedNetworkConfigurationException for service response error code
// "UnsupportedNetworkConfigurationException".
//
// The configuration of this network is not supported for this operation, or
// your network configuration conflicts with the Amazon WorkSpaces management
// network IP range. For more information, see Configure a VPC for Amazon WorkSpaces
// (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html).
ErrCodeUnsupportedNetworkConfigurationException = "UnsupportedNetworkConfigurationException"
// ErrCodeUnsupportedWorkspaceConfigurationException for service response error code
// "UnsupportedWorkspaceConfigurationException".
//
// The configuration of this WorkSpace is not supported for this operation.
// For more information, see Required Configuration and Service Components for
// WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html).
ErrCodeUnsupportedWorkspaceConfigurationException = "UnsupportedWorkspaceConfigurationException"
// ErrCodeWorkspacesDefaultRoleNotFoundException for service response error code
// "WorkspacesDefaultRoleNotFoundException".
//
// The workspaces_DefaultRole role could not be found. If this is the first
// time you are registering a directory, you will need to create the workspaces_DefaultRole
// role before you can register a directory. For more information, see Creating
// the workspaces_DefaultRole Role (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role).
ErrCodeWorkspacesDefaultRoleNotFoundException = "WorkspacesDefaultRoleNotFoundException"
)
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"AccessDeniedException": newErrorAccessDeniedException,
"ApplicationNotSupportedException": newErrorApplicationNotSupportedException,
"ComputeNotCompatibleException": newErrorComputeNotCompatibleException,
"IncompatibleApplicationsException": newErrorIncompatibleApplicationsException,
"InvalidParameterValuesException": newErrorInvalidParameterValuesException,
"InvalidResourceStateException": newErrorInvalidResourceStateException,
"OperatingSystemNotCompatibleException": newErrorOperatingSystemNotCompatibleException,
"OperationInProgressException": newErrorOperationInProgressException,
"OperationNotSupportedException": newErrorOperationNotSupportedException,
"ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException,
"ResourceAssociatedException": newErrorResourceAssociatedException,
"ResourceCreationFailedException": newErrorResourceCreationFailedException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceLimitExceededException": newErrorResourceLimitExceededException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
"ResourceUnavailableException": newErrorResourceUnavailableException,
"UnsupportedNetworkConfigurationException": newErrorUnsupportedNetworkConfigurationException,
"UnsupportedWorkspaceConfigurationException": newErrorUnsupportedWorkspaceConfigurationException,
"WorkspacesDefaultRoleNotFoundException": newErrorWorkspacesDefaultRoleNotFoundException,
}