@aws-sdk/client-workspaces 3.987.0 → 3.989.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +110 -3346
- package/dist-cjs/models/WorkSpacesServiceException.js +12 -0
- package/dist-cjs/models/errors.js +311 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +2612 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +146 -140
- package/dist-types/schemas/schemas_0.d.ts +31 -24
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +26 -24
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkSpacesServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class WorkSpacesServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, WorkSpacesServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.WorkSpacesServiceException = WorkSpacesServiceException;
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkspacesDefaultRoleNotFoundException = exports.UnsupportedNetworkConfigurationException = exports.UnsupportedWorkspaceConfigurationException = exports.OperationInProgressException = exports.InvalidParameterCombinationException = exports.ResourceCreationFailedException = exports.ResourceUnavailableException = exports.ResourceInUseException = exports.ResourceAlreadyExistsException = exports.OperatingSystemNotCompatibleException = exports.IncompatibleApplicationsException = exports.ComputeNotCompatibleException = exports.ResourceLimitExceededException = exports.ResourceAssociatedException = exports.OperationNotSupportedException = exports.InvalidResourceStateException = exports.InvalidParameterValuesException = exports.ApplicationNotSupportedException = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const WorkSpacesServiceException_1 = require("./WorkSpacesServiceException");
|
|
5
|
+
class AccessDeniedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class ConflictException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
19
|
+
name = "ConflictException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ConflictException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ConflictException = ConflictException;
|
|
31
|
+
class InternalServerException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
32
|
+
name = "InternalServerException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "InternalServerException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.InternalServerException = InternalServerException;
|
|
44
|
+
class ResourceNotFoundException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
45
|
+
name = "ResourceNotFoundException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
ResourceId;
|
|
48
|
+
constructor(opts) {
|
|
49
|
+
super({
|
|
50
|
+
name: "ResourceNotFoundException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
...opts,
|
|
53
|
+
});
|
|
54
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
55
|
+
this.ResourceId = opts.ResourceId;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
59
|
+
class ValidationException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
60
|
+
name = "ValidationException";
|
|
61
|
+
$fault = "client";
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "ValidationException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.ValidationException = ValidationException;
|
|
72
|
+
class ApplicationNotSupportedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
73
|
+
name = "ApplicationNotSupportedException";
|
|
74
|
+
$fault = "client";
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "ApplicationNotSupportedException",
|
|
78
|
+
$fault: "client",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
Object.setPrototypeOf(this, ApplicationNotSupportedException.prototype);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.ApplicationNotSupportedException = ApplicationNotSupportedException;
|
|
85
|
+
class InvalidParameterValuesException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
86
|
+
name = "InvalidParameterValuesException";
|
|
87
|
+
$fault = "client";
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "InvalidParameterValuesException",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts,
|
|
93
|
+
});
|
|
94
|
+
Object.setPrototypeOf(this, InvalidParameterValuesException.prototype);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.InvalidParameterValuesException = InvalidParameterValuesException;
|
|
98
|
+
class InvalidResourceStateException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
99
|
+
name = "InvalidResourceStateException";
|
|
100
|
+
$fault = "client";
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "InvalidResourceStateException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
Object.setPrototypeOf(this, InvalidResourceStateException.prototype);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.InvalidResourceStateException = InvalidResourceStateException;
|
|
111
|
+
class OperationNotSupportedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
112
|
+
name = "OperationNotSupportedException";
|
|
113
|
+
$fault = "client";
|
|
114
|
+
reason;
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "OperationNotSupportedException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts,
|
|
120
|
+
});
|
|
121
|
+
Object.setPrototypeOf(this, OperationNotSupportedException.prototype);
|
|
122
|
+
this.reason = opts.reason;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.OperationNotSupportedException = OperationNotSupportedException;
|
|
126
|
+
class ResourceAssociatedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
127
|
+
name = "ResourceAssociatedException";
|
|
128
|
+
$fault = "client";
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "ResourceAssociatedException",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, ResourceAssociatedException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.ResourceAssociatedException = ResourceAssociatedException;
|
|
139
|
+
class ResourceLimitExceededException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
140
|
+
name = "ResourceLimitExceededException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "ResourceLimitExceededException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, ResourceLimitExceededException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.ResourceLimitExceededException = ResourceLimitExceededException;
|
|
152
|
+
class ComputeNotCompatibleException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
153
|
+
name = "ComputeNotCompatibleException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ComputeNotCompatibleException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ComputeNotCompatibleException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.ComputeNotCompatibleException = ComputeNotCompatibleException;
|
|
165
|
+
class IncompatibleApplicationsException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
166
|
+
name = "IncompatibleApplicationsException";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "IncompatibleApplicationsException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, IncompatibleApplicationsException.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.IncompatibleApplicationsException = IncompatibleApplicationsException;
|
|
178
|
+
class OperatingSystemNotCompatibleException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
179
|
+
name = "OperatingSystemNotCompatibleException";
|
|
180
|
+
$fault = "client";
|
|
181
|
+
constructor(opts) {
|
|
182
|
+
super({
|
|
183
|
+
name: "OperatingSystemNotCompatibleException",
|
|
184
|
+
$fault: "client",
|
|
185
|
+
...opts,
|
|
186
|
+
});
|
|
187
|
+
Object.setPrototypeOf(this, OperatingSystemNotCompatibleException.prototype);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.OperatingSystemNotCompatibleException = OperatingSystemNotCompatibleException;
|
|
191
|
+
class ResourceAlreadyExistsException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
192
|
+
name = "ResourceAlreadyExistsException";
|
|
193
|
+
$fault = "client";
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ResourceAlreadyExistsException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
|
|
204
|
+
class ResourceInUseException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
205
|
+
name = "ResourceInUseException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
ResourceId;
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "ResourceInUseException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts,
|
|
213
|
+
});
|
|
214
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
215
|
+
this.ResourceId = opts.ResourceId;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
219
|
+
class ResourceUnavailableException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
220
|
+
name = "ResourceUnavailableException";
|
|
221
|
+
$fault = "client";
|
|
222
|
+
ResourceId;
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "ResourceUnavailableException",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts,
|
|
228
|
+
});
|
|
229
|
+
Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
|
|
230
|
+
this.ResourceId = opts.ResourceId;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.ResourceUnavailableException = ResourceUnavailableException;
|
|
234
|
+
class ResourceCreationFailedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
235
|
+
name = "ResourceCreationFailedException";
|
|
236
|
+
$fault = "client";
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "ResourceCreationFailedException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts,
|
|
242
|
+
});
|
|
243
|
+
Object.setPrototypeOf(this, ResourceCreationFailedException.prototype);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.ResourceCreationFailedException = ResourceCreationFailedException;
|
|
247
|
+
class InvalidParameterCombinationException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
248
|
+
name = "InvalidParameterCombinationException";
|
|
249
|
+
$fault = "client";
|
|
250
|
+
constructor(opts) {
|
|
251
|
+
super({
|
|
252
|
+
name: "InvalidParameterCombinationException",
|
|
253
|
+
$fault: "client",
|
|
254
|
+
...opts,
|
|
255
|
+
});
|
|
256
|
+
Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.InvalidParameterCombinationException = InvalidParameterCombinationException;
|
|
260
|
+
class OperationInProgressException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
261
|
+
name = "OperationInProgressException";
|
|
262
|
+
$fault = "client";
|
|
263
|
+
constructor(opts) {
|
|
264
|
+
super({
|
|
265
|
+
name: "OperationInProgressException",
|
|
266
|
+
$fault: "client",
|
|
267
|
+
...opts,
|
|
268
|
+
});
|
|
269
|
+
Object.setPrototypeOf(this, OperationInProgressException.prototype);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.OperationInProgressException = OperationInProgressException;
|
|
273
|
+
class UnsupportedWorkspaceConfigurationException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
274
|
+
name = "UnsupportedWorkspaceConfigurationException";
|
|
275
|
+
$fault = "client";
|
|
276
|
+
constructor(opts) {
|
|
277
|
+
super({
|
|
278
|
+
name: "UnsupportedWorkspaceConfigurationException",
|
|
279
|
+
$fault: "client",
|
|
280
|
+
...opts,
|
|
281
|
+
});
|
|
282
|
+
Object.setPrototypeOf(this, UnsupportedWorkspaceConfigurationException.prototype);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
exports.UnsupportedWorkspaceConfigurationException = UnsupportedWorkspaceConfigurationException;
|
|
286
|
+
class UnsupportedNetworkConfigurationException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
287
|
+
name = "UnsupportedNetworkConfigurationException";
|
|
288
|
+
$fault = "client";
|
|
289
|
+
constructor(opts) {
|
|
290
|
+
super({
|
|
291
|
+
name: "UnsupportedNetworkConfigurationException",
|
|
292
|
+
$fault: "client",
|
|
293
|
+
...opts,
|
|
294
|
+
});
|
|
295
|
+
Object.setPrototypeOf(this, UnsupportedNetworkConfigurationException.prototype);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
exports.UnsupportedNetworkConfigurationException = UnsupportedNetworkConfigurationException;
|
|
299
|
+
class WorkspacesDefaultRoleNotFoundException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
300
|
+
name = "WorkspacesDefaultRoleNotFoundException";
|
|
301
|
+
$fault = "client";
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "WorkspacesDefaultRoleNotFoundException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts,
|
|
307
|
+
});
|
|
308
|
+
Object.setPrototypeOf(this, WorkspacesDefaultRoleNotFoundException.prototype);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
exports.WorkspacesDefaultRoleNotFoundException = WorkspacesDefaultRoleNotFoundException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2015-04-08",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.workspaces",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://workspaces.amazonaws.com/api/v1",
|
|
33
35
|
version: "2015-04-08",
|
|
34
36
|
serviceTarget: "WorkspacesService",
|