@aws-sdk/client-workspaces-instances 3.927.0 → 3.929.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 +807 -653
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/WorkspacesInstancesClient.js +2 -0
- package/dist-es/commands/AssociateVolumeCommand.js +3 -9
- package/dist-es/commands/CreateVolumeCommand.js +3 -10
- package/dist-es/commands/CreateWorkspaceInstanceCommand.js +3 -10
- package/dist-es/commands/DeleteVolumeCommand.js +3 -9
- package/dist-es/commands/DeleteWorkspaceInstanceCommand.js +3 -9
- package/dist-es/commands/DisassociateVolumeCommand.js +3 -9
- package/dist-es/commands/GetWorkspaceInstanceCommand.js +3 -9
- package/dist-es/commands/ListInstanceTypesCommand.js +3 -10
- package/dist-es/commands/ListRegionsCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkspaceInstancesCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -75
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +763 -0
- package/dist-types/WorkspacesInstancesClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -56
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +110 -0
- package/dist-types/ts3.4/WorkspacesInstancesClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -42
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +116 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -457
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -161
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { WorkspacesInstancesServiceException as __BaseException } from "../models/WorkspacesInstancesServiceException";
|
|
7
|
-
export const se_AssociateVolumeCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("AssociateVolume");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_CreateVolumeCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("CreateVolume");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(se_CreateVolumeRequest(input, context));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_CreateWorkspaceInstanceCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("CreateWorkspaceInstance");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(se_CreateWorkspaceInstanceRequest(input, context));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_DeleteVolumeCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("DeleteVolume");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_DeleteWorkspaceInstanceCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DeleteWorkspaceInstance");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_DisassociateVolumeCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DisassociateVolume");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_GetWorkspaceInstanceCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("GetWorkspaceInstance");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_ListInstanceTypesCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("ListInstanceTypes");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_ListRegionsCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("ListRegions");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_ListWorkspaceInstancesCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("ListWorkspaceInstances");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("TagResource");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("UntagResource");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const de_AssociateVolumeCommand = async (output, context) => {
|
|
86
|
-
if (output.statusCode >= 300) {
|
|
87
|
-
return de_CommandError(output, context);
|
|
88
|
-
}
|
|
89
|
-
const data = await parseBody(output.body, context);
|
|
90
|
-
let contents = {};
|
|
91
|
-
contents = _json(data);
|
|
92
|
-
const response = {
|
|
93
|
-
$metadata: deserializeMetadata(output),
|
|
94
|
-
...contents,
|
|
95
|
-
};
|
|
96
|
-
return response;
|
|
97
|
-
};
|
|
98
|
-
export const de_CreateVolumeCommand = async (output, context) => {
|
|
99
|
-
if (output.statusCode >= 300) {
|
|
100
|
-
return de_CommandError(output, context);
|
|
101
|
-
}
|
|
102
|
-
const data = await parseBody(output.body, context);
|
|
103
|
-
let contents = {};
|
|
104
|
-
contents = _json(data);
|
|
105
|
-
const response = {
|
|
106
|
-
$metadata: deserializeMetadata(output),
|
|
107
|
-
...contents,
|
|
108
|
-
};
|
|
109
|
-
return response;
|
|
110
|
-
};
|
|
111
|
-
export const de_CreateWorkspaceInstanceCommand = async (output, context) => {
|
|
112
|
-
if (output.statusCode >= 300) {
|
|
113
|
-
return de_CommandError(output, context);
|
|
114
|
-
}
|
|
115
|
-
const data = await parseBody(output.body, context);
|
|
116
|
-
let contents = {};
|
|
117
|
-
contents = _json(data);
|
|
118
|
-
const response = {
|
|
119
|
-
$metadata: deserializeMetadata(output),
|
|
120
|
-
...contents,
|
|
121
|
-
};
|
|
122
|
-
return response;
|
|
123
|
-
};
|
|
124
|
-
export const de_DeleteVolumeCommand = async (output, context) => {
|
|
125
|
-
if (output.statusCode >= 300) {
|
|
126
|
-
return de_CommandError(output, context);
|
|
127
|
-
}
|
|
128
|
-
const data = await parseBody(output.body, context);
|
|
129
|
-
let contents = {};
|
|
130
|
-
contents = _json(data);
|
|
131
|
-
const response = {
|
|
132
|
-
$metadata: deserializeMetadata(output),
|
|
133
|
-
...contents,
|
|
134
|
-
};
|
|
135
|
-
return response;
|
|
136
|
-
};
|
|
137
|
-
export const de_DeleteWorkspaceInstanceCommand = async (output, context) => {
|
|
138
|
-
if (output.statusCode >= 300) {
|
|
139
|
-
return de_CommandError(output, context);
|
|
140
|
-
}
|
|
141
|
-
const data = await parseBody(output.body, context);
|
|
142
|
-
let contents = {};
|
|
143
|
-
contents = _json(data);
|
|
144
|
-
const response = {
|
|
145
|
-
$metadata: deserializeMetadata(output),
|
|
146
|
-
...contents,
|
|
147
|
-
};
|
|
148
|
-
return response;
|
|
149
|
-
};
|
|
150
|
-
export const de_DisassociateVolumeCommand = async (output, context) => {
|
|
151
|
-
if (output.statusCode >= 300) {
|
|
152
|
-
return de_CommandError(output, context);
|
|
153
|
-
}
|
|
154
|
-
const data = await parseBody(output.body, context);
|
|
155
|
-
let contents = {};
|
|
156
|
-
contents = _json(data);
|
|
157
|
-
const response = {
|
|
158
|
-
$metadata: deserializeMetadata(output),
|
|
159
|
-
...contents,
|
|
160
|
-
};
|
|
161
|
-
return response;
|
|
162
|
-
};
|
|
163
|
-
export const de_GetWorkspaceInstanceCommand = async (output, context) => {
|
|
164
|
-
if (output.statusCode >= 300) {
|
|
165
|
-
return de_CommandError(output, context);
|
|
166
|
-
}
|
|
167
|
-
const data = await parseBody(output.body, context);
|
|
168
|
-
let contents = {};
|
|
169
|
-
contents = _json(data);
|
|
170
|
-
const response = {
|
|
171
|
-
$metadata: deserializeMetadata(output),
|
|
172
|
-
...contents,
|
|
173
|
-
};
|
|
174
|
-
return response;
|
|
175
|
-
};
|
|
176
|
-
export const de_ListInstanceTypesCommand = async (output, context) => {
|
|
177
|
-
if (output.statusCode >= 300) {
|
|
178
|
-
return de_CommandError(output, context);
|
|
179
|
-
}
|
|
180
|
-
const data = await parseBody(output.body, context);
|
|
181
|
-
let contents = {};
|
|
182
|
-
contents = _json(data);
|
|
183
|
-
const response = {
|
|
184
|
-
$metadata: deserializeMetadata(output),
|
|
185
|
-
...contents,
|
|
186
|
-
};
|
|
187
|
-
return response;
|
|
188
|
-
};
|
|
189
|
-
export const de_ListRegionsCommand = async (output, context) => {
|
|
190
|
-
if (output.statusCode >= 300) {
|
|
191
|
-
return de_CommandError(output, context);
|
|
192
|
-
}
|
|
193
|
-
const data = await parseBody(output.body, context);
|
|
194
|
-
let contents = {};
|
|
195
|
-
contents = _json(data);
|
|
196
|
-
const response = {
|
|
197
|
-
$metadata: deserializeMetadata(output),
|
|
198
|
-
...contents,
|
|
199
|
-
};
|
|
200
|
-
return response;
|
|
201
|
-
};
|
|
202
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
203
|
-
if (output.statusCode >= 300) {
|
|
204
|
-
return de_CommandError(output, context);
|
|
205
|
-
}
|
|
206
|
-
const data = await parseBody(output.body, context);
|
|
207
|
-
let contents = {};
|
|
208
|
-
contents = _json(data);
|
|
209
|
-
const response = {
|
|
210
|
-
$metadata: deserializeMetadata(output),
|
|
211
|
-
...contents,
|
|
212
|
-
};
|
|
213
|
-
return response;
|
|
214
|
-
};
|
|
215
|
-
export const de_ListWorkspaceInstancesCommand = async (output, context) => {
|
|
216
|
-
if (output.statusCode >= 300) {
|
|
217
|
-
return de_CommandError(output, context);
|
|
218
|
-
}
|
|
219
|
-
const data = await parseBody(output.body, context);
|
|
220
|
-
let contents = {};
|
|
221
|
-
contents = _json(data);
|
|
222
|
-
const response = {
|
|
223
|
-
$metadata: deserializeMetadata(output),
|
|
224
|
-
...contents,
|
|
225
|
-
};
|
|
226
|
-
return response;
|
|
227
|
-
};
|
|
228
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
229
|
-
if (output.statusCode >= 300) {
|
|
230
|
-
return de_CommandError(output, context);
|
|
231
|
-
}
|
|
232
|
-
const data = await parseBody(output.body, context);
|
|
233
|
-
let contents = {};
|
|
234
|
-
contents = _json(data);
|
|
235
|
-
const response = {
|
|
236
|
-
$metadata: deserializeMetadata(output),
|
|
237
|
-
...contents,
|
|
238
|
-
};
|
|
239
|
-
return response;
|
|
240
|
-
};
|
|
241
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
242
|
-
if (output.statusCode >= 300) {
|
|
243
|
-
return de_CommandError(output, context);
|
|
244
|
-
}
|
|
245
|
-
const data = await parseBody(output.body, context);
|
|
246
|
-
let contents = {};
|
|
247
|
-
contents = _json(data);
|
|
248
|
-
const response = {
|
|
249
|
-
$metadata: deserializeMetadata(output),
|
|
250
|
-
...contents,
|
|
251
|
-
};
|
|
252
|
-
return response;
|
|
253
|
-
};
|
|
254
|
-
const de_CommandError = async (output, context) => {
|
|
255
|
-
const parsedOutput = {
|
|
256
|
-
...output,
|
|
257
|
-
body: await parseErrorBody(output.body, context),
|
|
258
|
-
};
|
|
259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
|
-
switch (errorCode) {
|
|
261
|
-
case "AccessDeniedException":
|
|
262
|
-
case "com.amazonaws.workspacesinstances#AccessDeniedException":
|
|
263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
264
|
-
case "ConflictException":
|
|
265
|
-
case "com.amazonaws.workspacesinstances#ConflictException":
|
|
266
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
267
|
-
case "InternalServerException":
|
|
268
|
-
case "com.amazonaws.workspacesinstances#InternalServerException":
|
|
269
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
270
|
-
case "ResourceNotFoundException":
|
|
271
|
-
case "com.amazonaws.workspacesinstances#ResourceNotFoundException":
|
|
272
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
273
|
-
case "ThrottlingException":
|
|
274
|
-
case "com.amazonaws.workspacesinstances#ThrottlingException":
|
|
275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
276
|
-
case "ValidationException":
|
|
277
|
-
case "com.amazonaws.workspacesinstances#ValidationException":
|
|
278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
279
|
-
case "ServiceQuotaExceededException":
|
|
280
|
-
case "com.amazonaws.workspacesinstances#ServiceQuotaExceededException":
|
|
281
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
282
|
-
default:
|
|
283
|
-
const parsedBody = parsedOutput.body;
|
|
284
|
-
return throwDefaultError({
|
|
285
|
-
output,
|
|
286
|
-
parsedBody,
|
|
287
|
-
errorCode,
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
292
|
-
const body = parsedOutput.body;
|
|
293
|
-
const deserialized = _json(body);
|
|
294
|
-
const exception = new AccessDeniedException({
|
|
295
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
296
|
-
...deserialized,
|
|
297
|
-
});
|
|
298
|
-
return __decorateServiceException(exception, body);
|
|
299
|
-
};
|
|
300
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
301
|
-
const body = parsedOutput.body;
|
|
302
|
-
const deserialized = _json(body);
|
|
303
|
-
const exception = new ConflictException({
|
|
304
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
305
|
-
...deserialized,
|
|
306
|
-
});
|
|
307
|
-
return __decorateServiceException(exception, body);
|
|
308
|
-
};
|
|
309
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
310
|
-
const body = parsedOutput.body;
|
|
311
|
-
const deserialized = _json(body);
|
|
312
|
-
const exception = new InternalServerException({
|
|
313
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
314
|
-
...deserialized,
|
|
315
|
-
});
|
|
316
|
-
return __decorateServiceException(exception, body);
|
|
317
|
-
};
|
|
318
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
319
|
-
const body = parsedOutput.body;
|
|
320
|
-
const deserialized = _json(body);
|
|
321
|
-
const exception = new ResourceNotFoundException({
|
|
322
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
323
|
-
...deserialized,
|
|
324
|
-
});
|
|
325
|
-
return __decorateServiceException(exception, body);
|
|
326
|
-
};
|
|
327
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
328
|
-
const body = parsedOutput.body;
|
|
329
|
-
const deserialized = _json(body);
|
|
330
|
-
const exception = new ServiceQuotaExceededException({
|
|
331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
332
|
-
...deserialized,
|
|
333
|
-
});
|
|
334
|
-
return __decorateServiceException(exception, body);
|
|
335
|
-
};
|
|
336
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
337
|
-
const body = parsedOutput.body;
|
|
338
|
-
const deserialized = _json(body);
|
|
339
|
-
const exception = new ThrottlingException({
|
|
340
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
341
|
-
...deserialized,
|
|
342
|
-
});
|
|
343
|
-
return __decorateServiceException(exception, body);
|
|
344
|
-
};
|
|
345
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
346
|
-
const body = parsedOutput.body;
|
|
347
|
-
const deserialized = _json(body);
|
|
348
|
-
const exception = new ValidationException({
|
|
349
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
350
|
-
...deserialized,
|
|
351
|
-
});
|
|
352
|
-
return __decorateServiceException(exception, body);
|
|
353
|
-
};
|
|
354
|
-
const se_CreateVolumeRequest = (input, context) => {
|
|
355
|
-
return take(input, {
|
|
356
|
-
AvailabilityZone: [],
|
|
357
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
358
|
-
Encrypted: [],
|
|
359
|
-
Iops: [],
|
|
360
|
-
KmsKeyId: [],
|
|
361
|
-
SizeInGB: [],
|
|
362
|
-
SnapshotId: [],
|
|
363
|
-
TagSpecifications: _json,
|
|
364
|
-
Throughput: [],
|
|
365
|
-
VolumeType: [],
|
|
366
|
-
});
|
|
367
|
-
};
|
|
368
|
-
const se_CreateWorkspaceInstanceRequest = (input, context) => {
|
|
369
|
-
return take(input, {
|
|
370
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
371
|
-
ManagedInstance: (_) => se_ManagedInstanceRequest(_, context),
|
|
372
|
-
Tags: _json,
|
|
373
|
-
});
|
|
374
|
-
};
|
|
375
|
-
const se_InstanceMarketOptionsRequest = (input, context) => {
|
|
376
|
-
return take(input, {
|
|
377
|
-
MarketType: [],
|
|
378
|
-
SpotOptions: (_) => se_SpotMarketOptions(_, context),
|
|
379
|
-
});
|
|
380
|
-
};
|
|
381
|
-
const se_ManagedInstanceRequest = (input, context) => {
|
|
382
|
-
return take(input, {
|
|
383
|
-
BlockDeviceMappings: _json,
|
|
384
|
-
CapacityReservationSpecification: _json,
|
|
385
|
-
CpuOptions: _json,
|
|
386
|
-
CreditSpecification: _json,
|
|
387
|
-
DisableApiStop: [],
|
|
388
|
-
EbsOptimized: [],
|
|
389
|
-
EnablePrimaryIpv6: [],
|
|
390
|
-
EnclaveOptions: _json,
|
|
391
|
-
HibernationOptions: _json,
|
|
392
|
-
IamInstanceProfile: _json,
|
|
393
|
-
ImageId: [],
|
|
394
|
-
InstanceMarketOptions: (_) => se_InstanceMarketOptionsRequest(_, context),
|
|
395
|
-
InstanceType: [],
|
|
396
|
-
Ipv6AddressCount: [],
|
|
397
|
-
Ipv6Addresses: _json,
|
|
398
|
-
KernelId: [],
|
|
399
|
-
KeyName: [],
|
|
400
|
-
LicenseSpecifications: _json,
|
|
401
|
-
MaintenanceOptions: _json,
|
|
402
|
-
MetadataOptions: _json,
|
|
403
|
-
Monitoring: _json,
|
|
404
|
-
NetworkInterfaces: _json,
|
|
405
|
-
NetworkPerformanceOptions: _json,
|
|
406
|
-
Placement: _json,
|
|
407
|
-
PrivateDnsNameOptions: _json,
|
|
408
|
-
PrivateIpAddress: [],
|
|
409
|
-
RamdiskId: [],
|
|
410
|
-
SecurityGroupIds: _json,
|
|
411
|
-
SecurityGroups: _json,
|
|
412
|
-
SubnetId: [],
|
|
413
|
-
TagSpecifications: _json,
|
|
414
|
-
UserData: [],
|
|
415
|
-
});
|
|
416
|
-
};
|
|
417
|
-
const se_SpotMarketOptions = (input, context) => {
|
|
418
|
-
return take(input, {
|
|
419
|
-
BlockDurationMinutes: [],
|
|
420
|
-
InstanceInterruptionBehavior: [],
|
|
421
|
-
MaxPrice: [],
|
|
422
|
-
SpotInstanceType: [],
|
|
423
|
-
ValidUntilUtc: (_) => _.getTime() / 1_000,
|
|
424
|
-
});
|
|
425
|
-
};
|
|
426
|
-
const deserializeMetadata = (output) => ({
|
|
427
|
-
httpStatusCode: output.statusCode,
|
|
428
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
429
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
430
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
431
|
-
});
|
|
432
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
433
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
434
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
435
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
|
-
const contents = {
|
|
437
|
-
protocol,
|
|
438
|
-
hostname,
|
|
439
|
-
port,
|
|
440
|
-
method: "POST",
|
|
441
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
442
|
-
headers,
|
|
443
|
-
};
|
|
444
|
-
if (resolvedHostname !== undefined) {
|
|
445
|
-
contents.hostname = resolvedHostname;
|
|
446
|
-
}
|
|
447
|
-
if (body !== undefined) {
|
|
448
|
-
contents.body = body;
|
|
449
|
-
}
|
|
450
|
-
return new __HttpRequest(contents);
|
|
451
|
-
};
|
|
452
|
-
function sharedHeaders(operation) {
|
|
453
|
-
return {
|
|
454
|
-
"content-type": "application/x-amz-json-1.0",
|
|
455
|
-
"x-amz-target": `EUCMIFrontendAPIService.${operation}`,
|
|
456
|
-
};
|
|
457
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { AssociateVolumeCommandInput, AssociateVolumeCommandOutput } from "../commands/AssociateVolumeCommand";
|
|
4
|
-
import { CreateVolumeCommandInput, CreateVolumeCommandOutput } from "../commands/CreateVolumeCommand";
|
|
5
|
-
import { CreateWorkspaceInstanceCommandInput, CreateWorkspaceInstanceCommandOutput } from "../commands/CreateWorkspaceInstanceCommand";
|
|
6
|
-
import { DeleteVolumeCommandInput, DeleteVolumeCommandOutput } from "../commands/DeleteVolumeCommand";
|
|
7
|
-
import { DeleteWorkspaceInstanceCommandInput, DeleteWorkspaceInstanceCommandOutput } from "../commands/DeleteWorkspaceInstanceCommand";
|
|
8
|
-
import { DisassociateVolumeCommandInput, DisassociateVolumeCommandOutput } from "../commands/DisassociateVolumeCommand";
|
|
9
|
-
import { GetWorkspaceInstanceCommandInput, GetWorkspaceInstanceCommandOutput } from "../commands/GetWorkspaceInstanceCommand";
|
|
10
|
-
import { ListInstanceTypesCommandInput, ListInstanceTypesCommandOutput } from "../commands/ListInstanceTypesCommand";
|
|
11
|
-
import { ListRegionsCommandInput, ListRegionsCommandOutput } from "../commands/ListRegionsCommand";
|
|
12
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
13
|
-
import { ListWorkspaceInstancesCommandInput, ListWorkspaceInstancesCommandOutput } from "../commands/ListWorkspaceInstancesCommand";
|
|
14
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
15
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
16
|
-
/**
|
|
17
|
-
* serializeAws_json1_0AssociateVolumeCommand
|
|
18
|
-
*/
|
|
19
|
-
export declare const se_AssociateVolumeCommand: (input: AssociateVolumeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
-
/**
|
|
21
|
-
* serializeAws_json1_0CreateVolumeCommand
|
|
22
|
-
*/
|
|
23
|
-
export declare const se_CreateVolumeCommand: (input: CreateVolumeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
-
/**
|
|
25
|
-
* serializeAws_json1_0CreateWorkspaceInstanceCommand
|
|
26
|
-
*/
|
|
27
|
-
export declare const se_CreateWorkspaceInstanceCommand: (input: CreateWorkspaceInstanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
-
/**
|
|
29
|
-
* serializeAws_json1_0DeleteVolumeCommand
|
|
30
|
-
*/
|
|
31
|
-
export declare const se_DeleteVolumeCommand: (input: DeleteVolumeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
-
/**
|
|
33
|
-
* serializeAws_json1_0DeleteWorkspaceInstanceCommand
|
|
34
|
-
*/
|
|
35
|
-
export declare const se_DeleteWorkspaceInstanceCommand: (input: DeleteWorkspaceInstanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
36
|
-
/**
|
|
37
|
-
* serializeAws_json1_0DisassociateVolumeCommand
|
|
38
|
-
*/
|
|
39
|
-
export declare const se_DisassociateVolumeCommand: (input: DisassociateVolumeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
40
|
-
/**
|
|
41
|
-
* serializeAws_json1_0GetWorkspaceInstanceCommand
|
|
42
|
-
*/
|
|
43
|
-
export declare const se_GetWorkspaceInstanceCommand: (input: GetWorkspaceInstanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
|
-
/**
|
|
45
|
-
* serializeAws_json1_0ListInstanceTypesCommand
|
|
46
|
-
*/
|
|
47
|
-
export declare const se_ListInstanceTypesCommand: (input: ListInstanceTypesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
48
|
-
/**
|
|
49
|
-
* serializeAws_json1_0ListRegionsCommand
|
|
50
|
-
*/
|
|
51
|
-
export declare const se_ListRegionsCommand: (input: ListRegionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
52
|
-
/**
|
|
53
|
-
* serializeAws_json1_0ListTagsForResourceCommand
|
|
54
|
-
*/
|
|
55
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
|
-
/**
|
|
57
|
-
* serializeAws_json1_0ListWorkspaceInstancesCommand
|
|
58
|
-
*/
|
|
59
|
-
export declare const se_ListWorkspaceInstancesCommand: (input: ListWorkspaceInstancesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
60
|
-
/**
|
|
61
|
-
* serializeAws_json1_0TagResourceCommand
|
|
62
|
-
*/
|
|
63
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
|
-
/**
|
|
65
|
-
* serializeAws_json1_0UntagResourceCommand
|
|
66
|
-
*/
|
|
67
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
68
|
-
/**
|
|
69
|
-
* deserializeAws_json1_0AssociateVolumeCommand
|
|
70
|
-
*/
|
|
71
|
-
export declare const de_AssociateVolumeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssociateVolumeCommandOutput>;
|
|
72
|
-
/**
|
|
73
|
-
* deserializeAws_json1_0CreateVolumeCommand
|
|
74
|
-
*/
|
|
75
|
-
export declare const de_CreateVolumeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateVolumeCommandOutput>;
|
|
76
|
-
/**
|
|
77
|
-
* deserializeAws_json1_0CreateWorkspaceInstanceCommand
|
|
78
|
-
*/
|
|
79
|
-
export declare const de_CreateWorkspaceInstanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspaceInstanceCommandOutput>;
|
|
80
|
-
/**
|
|
81
|
-
* deserializeAws_json1_0DeleteVolumeCommand
|
|
82
|
-
*/
|
|
83
|
-
export declare const de_DeleteVolumeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteVolumeCommandOutput>;
|
|
84
|
-
/**
|
|
85
|
-
* deserializeAws_json1_0DeleteWorkspaceInstanceCommand
|
|
86
|
-
*/
|
|
87
|
-
export declare const de_DeleteWorkspaceInstanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteWorkspaceInstanceCommandOutput>;
|
|
88
|
-
/**
|
|
89
|
-
* deserializeAws_json1_0DisassociateVolumeCommand
|
|
90
|
-
*/
|
|
91
|
-
export declare const de_DisassociateVolumeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisassociateVolumeCommandOutput>;
|
|
92
|
-
/**
|
|
93
|
-
* deserializeAws_json1_0GetWorkspaceInstanceCommand
|
|
94
|
-
*/
|
|
95
|
-
export declare const de_GetWorkspaceInstanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetWorkspaceInstanceCommandOutput>;
|
|
96
|
-
/**
|
|
97
|
-
* deserializeAws_json1_0ListInstanceTypesCommand
|
|
98
|
-
*/
|
|
99
|
-
export declare const de_ListInstanceTypesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListInstanceTypesCommandOutput>;
|
|
100
|
-
/**
|
|
101
|
-
* deserializeAws_json1_0ListRegionsCommand
|
|
102
|
-
*/
|
|
103
|
-
export declare const de_ListRegionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRegionsCommandOutput>;
|
|
104
|
-
/**
|
|
105
|
-
* deserializeAws_json1_0ListTagsForResourceCommand
|
|
106
|
-
*/
|
|
107
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
108
|
-
/**
|
|
109
|
-
* deserializeAws_json1_0ListWorkspaceInstancesCommand
|
|
110
|
-
*/
|
|
111
|
-
export declare const de_ListWorkspaceInstancesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListWorkspaceInstancesCommandOutput>;
|
|
112
|
-
/**
|
|
113
|
-
* deserializeAws_json1_0TagResourceCommand
|
|
114
|
-
*/
|
|
115
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
116
|
-
/**
|
|
117
|
-
* deserializeAws_json1_0UntagResourceCommand
|
|
118
|
-
*/
|
|
119
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|