@aws-sdk/client-snow-device-management 3.928.0 → 3.930.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.
Files changed (37) hide show
  1. package/dist-cjs/index.js +667 -658
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/SnowDeviceManagementClient.js +2 -0
  4. package/dist-es/commands/CancelTaskCommand.js +3 -9
  5. package/dist-es/commands/CreateTaskCommand.js +3 -9
  6. package/dist-es/commands/DescribeDeviceCommand.js +3 -9
  7. package/dist-es/commands/DescribeDeviceEc2InstancesCommand.js +3 -9
  8. package/dist-es/commands/DescribeExecutionCommand.js +3 -9
  9. package/dist-es/commands/DescribeTaskCommand.js +3 -9
  10. package/dist-es/commands/ListDeviceResourcesCommand.js +3 -9
  11. package/dist-es/commands/ListDevicesCommand.js +3 -9
  12. package/dist-es/commands/ListExecutionsCommand.js +3 -9
  13. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  14. package/dist-es/commands/ListTasksCommand.js +3 -9
  15. package/dist-es/commands/TagResourceCommand.js +3 -9
  16. package/dist-es/commands/UntagResourceCommand.js +3 -9
  17. package/dist-es/models/models_0.js +0 -10
  18. package/dist-es/runtimeConfig.shared.js +2 -0
  19. package/dist-es/schemas/schemas_0.js +630 -0
  20. package/dist-types/SnowDeviceManagementClient.d.ts +10 -1
  21. package/dist-types/models/models_0.d.ts +4 -1
  22. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  23. package/dist-types/runtimeConfig.d.ts +1 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -0
  25. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  26. package/dist-types/schemas/schemas_0.d.ts +76 -0
  27. package/dist-types/ts3.4/SnowDeviceManagementClient.d.ts +4 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +0 -1
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +81 -0
  34. package/package.json +33 -34
  35. package/dist-es/protocols/Aws_restJson1.js +0 -545
  36. package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
  37. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
@@ -1,545 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- import { SnowDeviceManagementServiceException as __BaseException } from "../models/SnowDeviceManagementServiceException";
7
- export const se_CancelTaskCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {};
10
- b.bp("/task/{taskId}/cancel");
11
- b.p("taskId", () => input.taskId, "{taskId}", false);
12
- let body;
13
- b.m("POST").h(headers).b(body);
14
- return b.build();
15
- };
16
- export const se_CreateTaskCommand = async (input, context) => {
17
- const b = rb(input, context);
18
- const headers = {
19
- "content-type": "application/json",
20
- };
21
- b.bp("/task");
22
- let body;
23
- body = JSON.stringify(take(input, {
24
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
25
- command: (_) => _json(_),
26
- description: [],
27
- tags: (_) => _json(_),
28
- targets: (_) => _json(_),
29
- }));
30
- b.m("POST").h(headers).b(body);
31
- return b.build();
32
- };
33
- export const se_DescribeDeviceCommand = async (input, context) => {
34
- const b = rb(input, context);
35
- const headers = {};
36
- b.bp("/managed-device/{managedDeviceId}/describe");
37
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
38
- let body;
39
- b.m("POST").h(headers).b(body);
40
- return b.build();
41
- };
42
- export const se_DescribeDeviceEc2InstancesCommand = async (input, context) => {
43
- const b = rb(input, context);
44
- const headers = {
45
- "content-type": "application/json",
46
- };
47
- b.bp("/managed-device/{managedDeviceId}/resources/ec2/describe");
48
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
49
- let body;
50
- body = JSON.stringify(take(input, {
51
- instanceIds: (_) => _json(_),
52
- }));
53
- b.m("POST").h(headers).b(body);
54
- return b.build();
55
- };
56
- export const se_DescribeExecutionCommand = async (input, context) => {
57
- const b = rb(input, context);
58
- const headers = {};
59
- b.bp("/task/{taskId}/execution/{managedDeviceId}");
60
- b.p("taskId", () => input.taskId, "{taskId}", false);
61
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
62
- let body;
63
- b.m("POST").h(headers).b(body);
64
- return b.build();
65
- };
66
- export const se_DescribeTaskCommand = async (input, context) => {
67
- const b = rb(input, context);
68
- const headers = {};
69
- b.bp("/task/{taskId}");
70
- b.p("taskId", () => input.taskId, "{taskId}", false);
71
- let body;
72
- b.m("POST").h(headers).b(body);
73
- return b.build();
74
- };
75
- export const se_ListDeviceResourcesCommand = async (input, context) => {
76
- const b = rb(input, context);
77
- const headers = {};
78
- b.bp("/managed-device/{managedDeviceId}/resources");
79
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
80
- const query = map({
81
- [_t]: [, input[_t]],
82
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
83
- [_nT]: [, input[_nT]],
84
- });
85
- let body;
86
- b.m("GET").h(headers).q(query).b(body);
87
- return b.build();
88
- };
89
- export const se_ListDevicesCommand = async (input, context) => {
90
- const b = rb(input, context);
91
- const headers = {};
92
- b.bp("/managed-devices");
93
- const query = map({
94
- [_jI]: [, input[_jI]],
95
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
96
- [_nT]: [, input[_nT]],
97
- });
98
- let body;
99
- b.m("GET").h(headers).q(query).b(body);
100
- return b.build();
101
- };
102
- export const se_ListExecutionsCommand = async (input, context) => {
103
- const b = rb(input, context);
104
- const headers = {};
105
- b.bp("/executions");
106
- const query = map({
107
- [_tI]: [, __expectNonNull(input[_tI], `taskId`)],
108
- [_s]: [, input[_s]],
109
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
110
- [_nT]: [, input[_nT]],
111
- });
112
- let body;
113
- b.m("GET").h(headers).q(query).b(body);
114
- return b.build();
115
- };
116
- export const se_ListTagsForResourceCommand = async (input, context) => {
117
- const b = rb(input, context);
118
- const headers = {};
119
- b.bp("/tags/{resourceArn}");
120
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
121
- let body;
122
- b.m("GET").h(headers).b(body);
123
- return b.build();
124
- };
125
- export const se_ListTasksCommand = async (input, context) => {
126
- const b = rb(input, context);
127
- const headers = {};
128
- b.bp("/tasks");
129
- const query = map({
130
- [_s]: [, input[_s]],
131
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
132
- [_nT]: [, input[_nT]],
133
- });
134
- let body;
135
- b.m("GET").h(headers).q(query).b(body);
136
- return b.build();
137
- };
138
- export const se_TagResourceCommand = async (input, context) => {
139
- const b = rb(input, context);
140
- const headers = {
141
- "content-type": "application/json",
142
- };
143
- b.bp("/tags/{resourceArn}");
144
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
145
- let body;
146
- body = JSON.stringify(take(input, {
147
- tags: (_) => _json(_),
148
- }));
149
- b.m("POST").h(headers).b(body);
150
- return b.build();
151
- };
152
- export const se_UntagResourceCommand = async (input, context) => {
153
- const b = rb(input, context);
154
- const headers = {};
155
- b.bp("/tags/{resourceArn}");
156
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
157
- const query = map({
158
- [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
159
- });
160
- let body;
161
- b.m("DELETE").h(headers).q(query).b(body);
162
- return b.build();
163
- };
164
- export const de_CancelTaskCommand = async (output, context) => {
165
- if (output.statusCode !== 200 && output.statusCode >= 300) {
166
- return de_CommandError(output, context);
167
- }
168
- const contents = map({
169
- $metadata: deserializeMetadata(output),
170
- });
171
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
172
- const doc = take(data, {
173
- taskId: __expectString,
174
- });
175
- Object.assign(contents, doc);
176
- return contents;
177
- };
178
- export const de_CreateTaskCommand = async (output, context) => {
179
- if (output.statusCode !== 200 && output.statusCode >= 300) {
180
- return de_CommandError(output, context);
181
- }
182
- const contents = map({
183
- $metadata: deserializeMetadata(output),
184
- });
185
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
186
- const doc = take(data, {
187
- taskArn: __expectString,
188
- taskId: __expectString,
189
- });
190
- Object.assign(contents, doc);
191
- return contents;
192
- };
193
- export const de_DescribeDeviceCommand = async (output, context) => {
194
- if (output.statusCode !== 200 && output.statusCode >= 300) {
195
- return de_CommandError(output, context);
196
- }
197
- const contents = map({
198
- $metadata: deserializeMetadata(output),
199
- });
200
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
201
- const doc = take(data, {
202
- associatedWithJob: __expectString,
203
- deviceCapacities: _json,
204
- deviceState: __expectString,
205
- deviceType: __expectString,
206
- lastReachedOutAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
207
- lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
208
- managedDeviceArn: __expectString,
209
- managedDeviceId: __expectString,
210
- physicalNetworkInterfaces: _json,
211
- software: _json,
212
- tags: _json,
213
- });
214
- Object.assign(contents, doc);
215
- return contents;
216
- };
217
- export const de_DescribeDeviceEc2InstancesCommand = async (output, context) => {
218
- if (output.statusCode !== 200 && output.statusCode >= 300) {
219
- return de_CommandError(output, context);
220
- }
221
- const contents = map({
222
- $metadata: deserializeMetadata(output),
223
- });
224
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
225
- const doc = take(data, {
226
- instances: (_) => de_InstanceSummaryList(_, context),
227
- });
228
- Object.assign(contents, doc);
229
- return contents;
230
- };
231
- export const de_DescribeExecutionCommand = async (output, context) => {
232
- if (output.statusCode !== 200 && output.statusCode >= 300) {
233
- return de_CommandError(output, context);
234
- }
235
- const contents = map({
236
- $metadata: deserializeMetadata(output),
237
- });
238
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
239
- const doc = take(data, {
240
- executionId: __expectString,
241
- lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
242
- managedDeviceId: __expectString,
243
- startedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
244
- state: __expectString,
245
- taskId: __expectString,
246
- });
247
- Object.assign(contents, doc);
248
- return contents;
249
- };
250
- export const de_DescribeTaskCommand = async (output, context) => {
251
- if (output.statusCode !== 200 && output.statusCode >= 300) {
252
- return de_CommandError(output, context);
253
- }
254
- const contents = map({
255
- $metadata: deserializeMetadata(output),
256
- });
257
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
258
- const doc = take(data, {
259
- completedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
260
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
261
- description: __expectString,
262
- lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
263
- state: __expectString,
264
- tags: _json,
265
- targets: _json,
266
- taskArn: __expectString,
267
- taskId: __expectString,
268
- });
269
- Object.assign(contents, doc);
270
- return contents;
271
- };
272
- export const de_ListDeviceResourcesCommand = async (output, context) => {
273
- if (output.statusCode !== 200 && output.statusCode >= 300) {
274
- return de_CommandError(output, context);
275
- }
276
- const contents = map({
277
- $metadata: deserializeMetadata(output),
278
- });
279
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
280
- const doc = take(data, {
281
- nextToken: __expectString,
282
- resources: _json,
283
- });
284
- Object.assign(contents, doc);
285
- return contents;
286
- };
287
- export const de_ListDevicesCommand = async (output, context) => {
288
- if (output.statusCode !== 200 && output.statusCode >= 300) {
289
- return de_CommandError(output, context);
290
- }
291
- const contents = map({
292
- $metadata: deserializeMetadata(output),
293
- });
294
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
295
- const doc = take(data, {
296
- devices: _json,
297
- nextToken: __expectString,
298
- });
299
- Object.assign(contents, doc);
300
- return contents;
301
- };
302
- export const de_ListExecutionsCommand = async (output, context) => {
303
- if (output.statusCode !== 200 && output.statusCode >= 300) {
304
- return de_CommandError(output, context);
305
- }
306
- const contents = map({
307
- $metadata: deserializeMetadata(output),
308
- });
309
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
310
- const doc = take(data, {
311
- executions: _json,
312
- nextToken: __expectString,
313
- });
314
- Object.assign(contents, doc);
315
- return contents;
316
- };
317
- export const de_ListTagsForResourceCommand = async (output, context) => {
318
- if (output.statusCode !== 200 && output.statusCode >= 300) {
319
- return de_CommandError(output, context);
320
- }
321
- const contents = map({
322
- $metadata: deserializeMetadata(output),
323
- });
324
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
325
- const doc = take(data, {
326
- tags: _json,
327
- });
328
- Object.assign(contents, doc);
329
- return contents;
330
- };
331
- export const de_ListTasksCommand = async (output, context) => {
332
- if (output.statusCode !== 200 && output.statusCode >= 300) {
333
- return de_CommandError(output, context);
334
- }
335
- const contents = map({
336
- $metadata: deserializeMetadata(output),
337
- });
338
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
339
- const doc = take(data, {
340
- nextToken: __expectString,
341
- tasks: _json,
342
- });
343
- Object.assign(contents, doc);
344
- return contents;
345
- };
346
- export const de_TagResourceCommand = async (output, context) => {
347
- if (output.statusCode !== 200 && output.statusCode >= 300) {
348
- return de_CommandError(output, context);
349
- }
350
- const contents = map({
351
- $metadata: deserializeMetadata(output),
352
- });
353
- await collectBody(output.body, context);
354
- return contents;
355
- };
356
- export const de_UntagResourceCommand = async (output, context) => {
357
- if (output.statusCode !== 200 && output.statusCode >= 300) {
358
- return de_CommandError(output, context);
359
- }
360
- const contents = map({
361
- $metadata: deserializeMetadata(output),
362
- });
363
- await collectBody(output.body, context);
364
- return contents;
365
- };
366
- const de_CommandError = async (output, context) => {
367
- const parsedOutput = {
368
- ...output,
369
- body: await parseErrorBody(output.body, context),
370
- };
371
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
372
- switch (errorCode) {
373
- case "AccessDeniedException":
374
- case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
375
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
376
- case "InternalServerException":
377
- case "com.amazonaws.snowdevicemanagement#InternalServerException":
378
- throw await de_InternalServerExceptionRes(parsedOutput, context);
379
- case "ResourceNotFoundException":
380
- case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
381
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
382
- case "ThrottlingException":
383
- case "com.amazonaws.snowdevicemanagement#ThrottlingException":
384
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
385
- case "ValidationException":
386
- case "com.amazonaws.snowdevicemanagement#ValidationException":
387
- throw await de_ValidationExceptionRes(parsedOutput, context);
388
- case "ServiceQuotaExceededException":
389
- case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
390
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
391
- default:
392
- const parsedBody = parsedOutput.body;
393
- return throwDefaultError({
394
- output,
395
- parsedBody,
396
- errorCode,
397
- });
398
- }
399
- };
400
- const throwDefaultError = withBaseException(__BaseException);
401
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
402
- const contents = map({});
403
- const data = parsedOutput.body;
404
- const doc = take(data, {
405
- message: __expectString,
406
- });
407
- Object.assign(contents, doc);
408
- const exception = new AccessDeniedException({
409
- $metadata: deserializeMetadata(parsedOutput),
410
- ...contents,
411
- });
412
- return __decorateServiceException(exception, parsedOutput.body);
413
- };
414
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
415
- const contents = map({});
416
- const data = parsedOutput.body;
417
- const doc = take(data, {
418
- message: __expectString,
419
- });
420
- Object.assign(contents, doc);
421
- const exception = new InternalServerException({
422
- $metadata: deserializeMetadata(parsedOutput),
423
- ...contents,
424
- });
425
- return __decorateServiceException(exception, parsedOutput.body);
426
- };
427
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
428
- const contents = map({});
429
- const data = parsedOutput.body;
430
- const doc = take(data, {
431
- message: __expectString,
432
- });
433
- Object.assign(contents, doc);
434
- const exception = new ResourceNotFoundException({
435
- $metadata: deserializeMetadata(parsedOutput),
436
- ...contents,
437
- });
438
- return __decorateServiceException(exception, parsedOutput.body);
439
- };
440
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
441
- const contents = map({});
442
- const data = parsedOutput.body;
443
- const doc = take(data, {
444
- message: __expectString,
445
- });
446
- Object.assign(contents, doc);
447
- const exception = new ServiceQuotaExceededException({
448
- $metadata: deserializeMetadata(parsedOutput),
449
- ...contents,
450
- });
451
- return __decorateServiceException(exception, parsedOutput.body);
452
- };
453
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
454
- const contents = map({});
455
- const data = parsedOutput.body;
456
- const doc = take(data, {
457
- message: __expectString,
458
- });
459
- Object.assign(contents, doc);
460
- const exception = new ThrottlingException({
461
- $metadata: deserializeMetadata(parsedOutput),
462
- ...contents,
463
- });
464
- return __decorateServiceException(exception, parsedOutput.body);
465
- };
466
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
467
- const contents = map({});
468
- const data = parsedOutput.body;
469
- const doc = take(data, {
470
- message: __expectString,
471
- });
472
- Object.assign(contents, doc);
473
- const exception = new ValidationException({
474
- $metadata: deserializeMetadata(parsedOutput),
475
- ...contents,
476
- });
477
- return __decorateServiceException(exception, parsedOutput.body);
478
- };
479
- const de_EbsInstanceBlockDevice = (output, context) => {
480
- return take(output, {
481
- attachTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
482
- deleteOnTermination: __expectBoolean,
483
- status: __expectString,
484
- volumeId: __expectString,
485
- });
486
- };
487
- const de_Instance = (output, context) => {
488
- return take(output, {
489
- amiLaunchIndex: __expectInt32,
490
- blockDeviceMappings: (_) => de_InstanceBlockDeviceMappingList(_, context),
491
- cpuOptions: _json,
492
- createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
493
- imageId: __expectString,
494
- instanceId: __expectString,
495
- instanceType: __expectString,
496
- privateIpAddress: __expectString,
497
- publicIpAddress: __expectString,
498
- rootDeviceName: __expectString,
499
- securityGroups: _json,
500
- state: _json,
501
- updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
502
- });
503
- };
504
- const de_InstanceBlockDeviceMapping = (output, context) => {
505
- return take(output, {
506
- deviceName: __expectString,
507
- ebs: (_) => de_EbsInstanceBlockDevice(_, context),
508
- });
509
- };
510
- const de_InstanceBlockDeviceMappingList = (output, context) => {
511
- const retVal = (output || [])
512
- .filter((e) => e != null)
513
- .map((entry) => {
514
- return de_InstanceBlockDeviceMapping(entry, context);
515
- });
516
- return retVal;
517
- };
518
- const de_InstanceSummary = (output, context) => {
519
- return take(output, {
520
- instance: (_) => de_Instance(_, context),
521
- lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
522
- });
523
- };
524
- const de_InstanceSummaryList = (output, context) => {
525
- const retVal = (output || [])
526
- .filter((e) => e != null)
527
- .map((entry) => {
528
- return de_InstanceSummary(entry, context);
529
- });
530
- return retVal;
531
- };
532
- const deserializeMetadata = (output) => ({
533
- httpStatusCode: output.statusCode,
534
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
535
- extendedRequestId: output.headers["x-amz-id-2"],
536
- cfId: output.headers["x-amz-cf-id"],
537
- });
538
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
539
- const _jI = "jobId";
540
- const _mR = "maxResults";
541
- const _nT = "nextToken";
542
- const _s = "state";
543
- const _t = "type";
544
- const _tI = "taskId";
545
- const _tK = "tagKeys";
@@ -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 { CancelTaskCommandInput, CancelTaskCommandOutput } from "../commands/CancelTaskCommand";
4
- import { CreateTaskCommandInput, CreateTaskCommandOutput } from "../commands/CreateTaskCommand";
5
- import { DescribeDeviceCommandInput, DescribeDeviceCommandOutput } from "../commands/DescribeDeviceCommand";
6
- import { DescribeDeviceEc2InstancesCommandInput, DescribeDeviceEc2InstancesCommandOutput } from "../commands/DescribeDeviceEc2InstancesCommand";
7
- import { DescribeExecutionCommandInput, DescribeExecutionCommandOutput } from "../commands/DescribeExecutionCommand";
8
- import { DescribeTaskCommandInput, DescribeTaskCommandOutput } from "../commands/DescribeTaskCommand";
9
- import { ListDeviceResourcesCommandInput, ListDeviceResourcesCommandOutput } from "../commands/ListDeviceResourcesCommand";
10
- import { ListDevicesCommandInput, ListDevicesCommandOutput } from "../commands/ListDevicesCommand";
11
- import { ListExecutionsCommandInput, ListExecutionsCommandOutput } from "../commands/ListExecutionsCommand";
12
- import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
13
- import { ListTasksCommandInput, ListTasksCommandOutput } from "../commands/ListTasksCommand";
14
- import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
15
- import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
16
- /**
17
- * serializeAws_restJson1CancelTaskCommand
18
- */
19
- export declare const se_CancelTaskCommand: (input: CancelTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
- /**
21
- * serializeAws_restJson1CreateTaskCommand
22
- */
23
- export declare const se_CreateTaskCommand: (input: CreateTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
- /**
25
- * serializeAws_restJson1DescribeDeviceCommand
26
- */
27
- export declare const se_DescribeDeviceCommand: (input: DescribeDeviceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
- /**
29
- * serializeAws_restJson1DescribeDeviceEc2InstancesCommand
30
- */
31
- export declare const se_DescribeDeviceEc2InstancesCommand: (input: DescribeDeviceEc2InstancesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
32
- /**
33
- * serializeAws_restJson1DescribeExecutionCommand
34
- */
35
- export declare const se_DescribeExecutionCommand: (input: DescribeExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
36
- /**
37
- * serializeAws_restJson1DescribeTaskCommand
38
- */
39
- export declare const se_DescribeTaskCommand: (input: DescribeTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
40
- /**
41
- * serializeAws_restJson1ListDeviceResourcesCommand
42
- */
43
- export declare const se_ListDeviceResourcesCommand: (input: ListDeviceResourcesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
44
- /**
45
- * serializeAws_restJson1ListDevicesCommand
46
- */
47
- export declare const se_ListDevicesCommand: (input: ListDevicesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
48
- /**
49
- * serializeAws_restJson1ListExecutionsCommand
50
- */
51
- export declare const se_ListExecutionsCommand: (input: ListExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
52
- /**
53
- * serializeAws_restJson1ListTagsForResourceCommand
54
- */
55
- export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
- /**
57
- * serializeAws_restJson1ListTasksCommand
58
- */
59
- export declare const se_ListTasksCommand: (input: ListTasksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
60
- /**
61
- * serializeAws_restJson1TagResourceCommand
62
- */
63
- export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
64
- /**
65
- * serializeAws_restJson1UntagResourceCommand
66
- */
67
- export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
- /**
69
- * deserializeAws_restJson1CancelTaskCommand
70
- */
71
- export declare const de_CancelTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelTaskCommandOutput>;
72
- /**
73
- * deserializeAws_restJson1CreateTaskCommand
74
- */
75
- export declare const de_CreateTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTaskCommandOutput>;
76
- /**
77
- * deserializeAws_restJson1DescribeDeviceCommand
78
- */
79
- export declare const de_DescribeDeviceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDeviceCommandOutput>;
80
- /**
81
- * deserializeAws_restJson1DescribeDeviceEc2InstancesCommand
82
- */
83
- export declare const de_DescribeDeviceEc2InstancesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDeviceEc2InstancesCommandOutput>;
84
- /**
85
- * deserializeAws_restJson1DescribeExecutionCommand
86
- */
87
- export declare const de_DescribeExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeExecutionCommandOutput>;
88
- /**
89
- * deserializeAws_restJson1DescribeTaskCommand
90
- */
91
- export declare const de_DescribeTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeTaskCommandOutput>;
92
- /**
93
- * deserializeAws_restJson1ListDeviceResourcesCommand
94
- */
95
- export declare const de_ListDeviceResourcesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDeviceResourcesCommandOutput>;
96
- /**
97
- * deserializeAws_restJson1ListDevicesCommand
98
- */
99
- export declare const de_ListDevicesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDevicesCommandOutput>;
100
- /**
101
- * deserializeAws_restJson1ListExecutionsCommand
102
- */
103
- export declare const de_ListExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListExecutionsCommandOutput>;
104
- /**
105
- * deserializeAws_restJson1ListTagsForResourceCommand
106
- */
107
- export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
108
- /**
109
- * deserializeAws_restJson1ListTasksCommand
110
- */
111
- export declare const de_ListTasksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTasksCommandOutput>;
112
- /**
113
- * deserializeAws_restJson1TagResourceCommand
114
- */
115
- export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
116
- /**
117
- * deserializeAws_restJson1UntagResourceCommand
118
- */
119
- export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;