@aws-sdk/client-snow-device-management 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.
Files changed (34) hide show
  1. package/dist-cjs/index.js +667 -648
  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/runtimeConfig.shared.js +2 -0
  18. package/dist-es/schemas/schemas_0.js +630 -0
  19. package/dist-types/SnowDeviceManagementClient.d.ts +10 -1
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  21. package/dist-types/runtimeConfig.d.ts +1 -0
  22. package/dist-types/runtimeConfig.native.d.ts +1 -0
  23. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  24. package/dist-types/schemas/schemas_0.d.ts +76 -0
  25. package/dist-types/ts3.4/SnowDeviceManagementClient.d.ts +4 -0
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  30. package/dist-types/ts3.4/schemas/schemas_0.d.ts +81 -0
  31. package/package.json +5 -6
  32. package/dist-es/protocols/Aws_restJson1.js +0 -545
  33. package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class SnowDeviceManagementClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class SnowDeviceManagementClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class SnowDeviceManagementServiceException extends smithyClient.ServiceException {
113
+ let SnowDeviceManagementServiceException$1 = class SnowDeviceManagementServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, SnowDeviceManagementServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class AccessDeniedException extends SnowDeviceManagementServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends SnowDeviceManagementServiceException$1 {
122
121
  name = "AccessDeniedException";
123
122
  $fault = "client";
124
123
  constructor(opts) {
@@ -129,14 +128,14 @@ class AccessDeniedException extends SnowDeviceManagementServiceException {
129
128
  });
130
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
130
  }
132
- }
131
+ };
133
132
  const AttachmentStatus = {
134
133
  ATTACHED: "ATTACHED",
135
134
  ATTACHING: "ATTACHING",
136
135
  DETACHED: "DETACHED",
137
136
  DETACHING: "DETACHING",
138
137
  };
139
- class InternalServerException extends SnowDeviceManagementServiceException {
138
+ let InternalServerException$1 = class InternalServerException extends SnowDeviceManagementServiceException$1 {
140
139
  name = "InternalServerException";
141
140
  $fault = "server";
142
141
  $retryable = {};
@@ -148,8 +147,8 @@ class InternalServerException extends SnowDeviceManagementServiceException {
148
147
  });
149
148
  Object.setPrototypeOf(this, InternalServerException.prototype);
150
149
  }
151
- }
152
- class ResourceNotFoundException extends SnowDeviceManagementServiceException {
150
+ };
151
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends SnowDeviceManagementServiceException$1 {
153
152
  name = "ResourceNotFoundException";
154
153
  $fault = "client";
155
154
  constructor(opts) {
@@ -160,8 +159,8 @@ class ResourceNotFoundException extends SnowDeviceManagementServiceException {
160
159
  });
161
160
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
162
161
  }
163
- }
164
- class ThrottlingException extends SnowDeviceManagementServiceException {
162
+ };
163
+ let ThrottlingException$1 = class ThrottlingException extends SnowDeviceManagementServiceException$1 {
165
164
  name = "ThrottlingException";
166
165
  $fault = "client";
167
166
  $retryable = {
@@ -175,8 +174,8 @@ class ThrottlingException extends SnowDeviceManagementServiceException {
175
174
  });
176
175
  Object.setPrototypeOf(this, ThrottlingException.prototype);
177
176
  }
178
- }
179
- class ValidationException extends SnowDeviceManagementServiceException {
177
+ };
178
+ let ValidationException$1 = class ValidationException extends SnowDeviceManagementServiceException$1 {
180
179
  name = "ValidationException";
181
180
  $fault = "client";
182
181
  constructor(opts) {
@@ -187,7 +186,7 @@ class ValidationException extends SnowDeviceManagementServiceException {
187
186
  });
188
187
  Object.setPrototypeOf(this, ValidationException.prototype);
189
188
  }
190
- }
189
+ };
191
190
  exports.Command = void 0;
192
191
  (function (Command) {
193
192
  Command.visit = (value, visitor) => {
@@ -198,7 +197,7 @@ exports.Command = void 0;
198
197
  return visitor._(value.$unknown[0], value.$unknown[1]);
199
198
  };
200
199
  })(exports.Command || (exports.Command = {}));
201
- class ServiceQuotaExceededException extends SnowDeviceManagementServiceException {
200
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends SnowDeviceManagementServiceException$1 {
202
201
  name = "ServiceQuotaExceededException";
203
202
  $fault = "client";
204
203
  constructor(opts) {
@@ -209,7 +208,7 @@ class ServiceQuotaExceededException extends SnowDeviceManagementServiceException
209
208
  });
210
209
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
211
210
  }
212
- }
211
+ };
213
212
  const UnlockState = {
214
213
  LOCKED: "LOCKED",
215
214
  UNLOCKED: "UNLOCKED",
@@ -249,559 +248,639 @@ const TaskState = {
249
248
  IN_PROGRESS: "IN_PROGRESS",
250
249
  };
251
250
 
252
- const se_CancelTaskCommand = async (input, context) => {
253
- const b = core.requestBuilder(input, context);
254
- const headers = {};
255
- b.bp("/task/{taskId}/cancel");
256
- b.p("taskId", () => input.taskId, "{taskId}", false);
257
- let body;
258
- b.m("POST").h(headers).b(body);
259
- return b.build();
260
- };
261
- const se_CreateTaskCommand = async (input, context) => {
262
- const b = core.requestBuilder(input, context);
263
- const headers = {
264
- "content-type": "application/json",
265
- };
266
- b.bp("/task");
267
- let body;
268
- body = JSON.stringify(smithyClient.take(input, {
269
- clientToken: [true, (_) => _ ?? uuid.v4()],
270
- command: (_) => smithyClient._json(_),
271
- description: [],
272
- tags: (_) => smithyClient._json(_),
273
- targets: (_) => smithyClient._json(_),
274
- }));
275
- b.m("POST").h(headers).b(body);
276
- return b.build();
277
- };
278
- const se_DescribeDeviceCommand = async (input, context) => {
279
- const b = core.requestBuilder(input, context);
280
- const headers = {};
281
- b.bp("/managed-device/{managedDeviceId}/describe");
282
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
283
- let body;
284
- b.m("POST").h(headers).b(body);
285
- return b.build();
286
- };
287
- const se_DescribeDeviceEc2InstancesCommand = async (input, context) => {
288
- const b = core.requestBuilder(input, context);
289
- const headers = {
290
- "content-type": "application/json",
291
- };
292
- b.bp("/managed-device/{managedDeviceId}/resources/ec2/describe");
293
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
294
- let body;
295
- body = JSON.stringify(smithyClient.take(input, {
296
- instanceIds: (_) => smithyClient._json(_),
297
- }));
298
- b.m("POST").h(headers).b(body);
299
- return b.build();
300
- };
301
- const se_DescribeExecutionCommand = async (input, context) => {
302
- const b = core.requestBuilder(input, context);
303
- const headers = {};
304
- b.bp("/task/{taskId}/execution/{managedDeviceId}");
305
- b.p("taskId", () => input.taskId, "{taskId}", false);
306
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
307
- let body;
308
- b.m("POST").h(headers).b(body);
309
- return b.build();
310
- };
311
- const se_DescribeTaskCommand = async (input, context) => {
312
- const b = core.requestBuilder(input, context);
313
- const headers = {};
314
- b.bp("/task/{taskId}");
315
- b.p("taskId", () => input.taskId, "{taskId}", false);
316
- let body;
317
- b.m("POST").h(headers).b(body);
318
- return b.build();
319
- };
320
- const se_ListDeviceResourcesCommand = async (input, context) => {
321
- const b = core.requestBuilder(input, context);
322
- const headers = {};
323
- b.bp("/managed-device/{managedDeviceId}/resources");
324
- b.p("managedDeviceId", () => input.managedDeviceId, "{managedDeviceId}", false);
325
- const query = smithyClient.map({
326
- [_t]: [, input[_t]],
327
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
328
- [_nT]: [, input[_nT]],
329
- });
330
- let body;
331
- b.m("GET").h(headers).q(query).b(body);
332
- return b.build();
333
- };
334
- const se_ListDevicesCommand = async (input, context) => {
335
- const b = core.requestBuilder(input, context);
336
- const headers = {};
337
- b.bp("/managed-devices");
338
- const query = smithyClient.map({
339
- [_jI]: [, input[_jI]],
340
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
341
- [_nT]: [, input[_nT]],
342
- });
343
- let body;
344
- b.m("GET").h(headers).q(query).b(body);
345
- return b.build();
346
- };
347
- const se_ListExecutionsCommand = async (input, context) => {
348
- const b = core.requestBuilder(input, context);
349
- const headers = {};
350
- b.bp("/executions");
351
- const query = smithyClient.map({
352
- [_tI]: [, smithyClient.expectNonNull(input[_tI], `taskId`)],
353
- [_s]: [, input[_s]],
354
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
355
- [_nT]: [, input[_nT]],
356
- });
357
- let body;
358
- b.m("GET").h(headers).q(query).b(body);
359
- return b.build();
360
- };
361
- const se_ListTagsForResourceCommand = async (input, context) => {
362
- const b = core.requestBuilder(input, context);
363
- const headers = {};
364
- b.bp("/tags/{resourceArn}");
365
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
366
- let body;
367
- b.m("GET").h(headers).b(body);
368
- return b.build();
369
- };
370
- const se_ListTasksCommand = async (input, context) => {
371
- const b = core.requestBuilder(input, context);
372
- const headers = {};
373
- b.bp("/tasks");
374
- const query = smithyClient.map({
375
- [_s]: [, input[_s]],
376
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
377
- [_nT]: [, input[_nT]],
378
- });
379
- let body;
380
- b.m("GET").h(headers).q(query).b(body);
381
- return b.build();
382
- };
383
- const se_TagResourceCommand = async (input, context) => {
384
- const b = core.requestBuilder(input, context);
385
- const headers = {
386
- "content-type": "application/json",
387
- };
388
- b.bp("/tags/{resourceArn}");
389
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
390
- let body;
391
- body = JSON.stringify(smithyClient.take(input, {
392
- tags: (_) => smithyClient._json(_),
393
- }));
394
- b.m("POST").h(headers).b(body);
395
- return b.build();
396
- };
397
- const se_UntagResourceCommand = async (input, context) => {
398
- const b = core.requestBuilder(input, context);
399
- const headers = {};
400
- b.bp("/tags/{resourceArn}");
401
- b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
402
- const query = smithyClient.map({
403
- [_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
404
- });
405
- let body;
406
- b.m("DELETE").h(headers).q(query).b(body);
407
- return b.build();
408
- };
409
- const de_CancelTaskCommand = async (output, context) => {
410
- if (output.statusCode !== 200 && output.statusCode >= 300) {
411
- return de_CommandError(output, context);
412
- }
413
- const contents = smithyClient.map({
414
- $metadata: deserializeMetadata(output),
415
- });
416
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
417
- const doc = smithyClient.take(data, {
418
- taskId: smithyClient.expectString,
419
- });
420
- Object.assign(contents, doc);
421
- return contents;
422
- };
423
- const de_CreateTaskCommand = async (output, context) => {
424
- if (output.statusCode !== 200 && output.statusCode >= 300) {
425
- return de_CommandError(output, context);
426
- }
427
- const contents = smithyClient.map({
428
- $metadata: deserializeMetadata(output),
429
- });
430
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
431
- const doc = smithyClient.take(data, {
432
- taskArn: smithyClient.expectString,
433
- taskId: smithyClient.expectString,
434
- });
435
- Object.assign(contents, doc);
436
- return contents;
437
- };
438
- const de_DescribeDeviceCommand = async (output, context) => {
439
- if (output.statusCode !== 200 && output.statusCode >= 300) {
440
- return de_CommandError(output, context);
441
- }
442
- const contents = smithyClient.map({
443
- $metadata: deserializeMetadata(output),
444
- });
445
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
446
- const doc = smithyClient.take(data, {
447
- associatedWithJob: smithyClient.expectString,
448
- deviceCapacities: smithyClient._json,
449
- deviceState: smithyClient.expectString,
450
- deviceType: smithyClient.expectString,
451
- lastReachedOutAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
452
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
453
- managedDeviceArn: smithyClient.expectString,
454
- managedDeviceId: smithyClient.expectString,
455
- physicalNetworkInterfaces: smithyClient._json,
456
- software: smithyClient._json,
457
- tags: smithyClient._json,
458
- });
459
- Object.assign(contents, doc);
460
- return contents;
461
- };
462
- const de_DescribeDeviceEc2InstancesCommand = async (output, context) => {
463
- if (output.statusCode !== 200 && output.statusCode >= 300) {
464
- return de_CommandError(output, context);
465
- }
466
- const contents = smithyClient.map({
467
- $metadata: deserializeMetadata(output),
468
- });
469
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
470
- const doc = smithyClient.take(data, {
471
- instances: (_) => de_InstanceSummaryList(_),
472
- });
473
- Object.assign(contents, doc);
474
- return contents;
475
- };
476
- const de_DescribeExecutionCommand = async (output, context) => {
477
- if (output.statusCode !== 200 && output.statusCode >= 300) {
478
- return de_CommandError(output, context);
479
- }
480
- const contents = smithyClient.map({
481
- $metadata: deserializeMetadata(output),
482
- });
483
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
484
- const doc = smithyClient.take(data, {
485
- executionId: smithyClient.expectString,
486
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
487
- managedDeviceId: smithyClient.expectString,
488
- startedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
489
- state: smithyClient.expectString,
490
- taskId: smithyClient.expectString,
491
- });
492
- Object.assign(contents, doc);
493
- return contents;
494
- };
495
- const de_DescribeTaskCommand = async (output, context) => {
496
- if (output.statusCode !== 200 && output.statusCode >= 300) {
497
- return de_CommandError(output, context);
498
- }
499
- const contents = smithyClient.map({
500
- $metadata: deserializeMetadata(output),
501
- });
502
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
503
- const doc = smithyClient.take(data, {
504
- completedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
505
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
506
- description: smithyClient.expectString,
507
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
508
- state: smithyClient.expectString,
509
- tags: smithyClient._json,
510
- targets: smithyClient._json,
511
- taskArn: smithyClient.expectString,
512
- taskId: smithyClient.expectString,
513
- });
514
- Object.assign(contents, doc);
515
- return contents;
516
- };
517
- const de_ListDeviceResourcesCommand = async (output, context) => {
518
- if (output.statusCode !== 200 && output.statusCode >= 300) {
519
- return de_CommandError(output, context);
520
- }
521
- const contents = smithyClient.map({
522
- $metadata: deserializeMetadata(output),
523
- });
524
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
525
- const doc = smithyClient.take(data, {
526
- nextToken: smithyClient.expectString,
527
- resources: smithyClient._json,
528
- });
529
- Object.assign(contents, doc);
530
- return contents;
531
- };
532
- const de_ListDevicesCommand = async (output, context) => {
533
- if (output.statusCode !== 200 && output.statusCode >= 300) {
534
- return de_CommandError(output, context);
535
- }
536
- const contents = smithyClient.map({
537
- $metadata: deserializeMetadata(output),
538
- });
539
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
540
- const doc = smithyClient.take(data, {
541
- devices: smithyClient._json,
542
- nextToken: smithyClient.expectString,
543
- });
544
- Object.assign(contents, doc);
545
- return contents;
546
- };
547
- const de_ListExecutionsCommand = async (output, context) => {
548
- if (output.statusCode !== 200 && output.statusCode >= 300) {
549
- return de_CommandError(output, context);
550
- }
551
- const contents = smithyClient.map({
552
- $metadata: deserializeMetadata(output),
553
- });
554
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
555
- const doc = smithyClient.take(data, {
556
- executions: smithyClient._json,
557
- nextToken: smithyClient.expectString,
558
- });
559
- Object.assign(contents, doc);
560
- return contents;
561
- };
562
- const de_ListTagsForResourceCommand = async (output, context) => {
563
- if (output.statusCode !== 200 && output.statusCode >= 300) {
564
- return de_CommandError(output, context);
565
- }
566
- const contents = smithyClient.map({
567
- $metadata: deserializeMetadata(output),
568
- });
569
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
570
- const doc = smithyClient.take(data, {
571
- tags: smithyClient._json,
572
- });
573
- Object.assign(contents, doc);
574
- return contents;
575
- };
576
- const de_ListTasksCommand = async (output, context) => {
577
- if (output.statusCode !== 200 && output.statusCode >= 300) {
578
- return de_CommandError(output, context);
579
- }
580
- const contents = smithyClient.map({
581
- $metadata: deserializeMetadata(output),
582
- });
583
- const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
584
- const doc = smithyClient.take(data, {
585
- nextToken: smithyClient.expectString,
586
- tasks: smithyClient._json,
587
- });
588
- Object.assign(contents, doc);
589
- return contents;
590
- };
591
- const de_TagResourceCommand = async (output, context) => {
592
- if (output.statusCode !== 200 && output.statusCode >= 300) {
593
- return de_CommandError(output, context);
594
- }
595
- const contents = smithyClient.map({
596
- $metadata: deserializeMetadata(output),
597
- });
598
- await smithyClient.collectBody(output.body, context);
599
- return contents;
600
- };
601
- const de_UntagResourceCommand = async (output, context) => {
602
- if (output.statusCode !== 200 && output.statusCode >= 300) {
603
- return de_CommandError(output, context);
604
- }
605
- const contents = smithyClient.map({
606
- $metadata: deserializeMetadata(output),
607
- });
608
- await smithyClient.collectBody(output.body, context);
609
- return contents;
610
- };
611
- const de_CommandError = async (output, context) => {
612
- const parsedOutput = {
613
- ...output,
614
- body: await core$1.parseJsonErrorBody(output.body, context),
615
- };
616
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
617
- switch (errorCode) {
618
- case "AccessDeniedException":
619
- case "com.amazonaws.snowdevicemanagement#AccessDeniedException":
620
- throw await de_AccessDeniedExceptionRes(parsedOutput);
621
- case "InternalServerException":
622
- case "com.amazonaws.snowdevicemanagement#InternalServerException":
623
- throw await de_InternalServerExceptionRes(parsedOutput);
624
- case "ResourceNotFoundException":
625
- case "com.amazonaws.snowdevicemanagement#ResourceNotFoundException":
626
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
627
- case "ThrottlingException":
628
- case "com.amazonaws.snowdevicemanagement#ThrottlingException":
629
- throw await de_ThrottlingExceptionRes(parsedOutput);
630
- case "ValidationException":
631
- case "com.amazonaws.snowdevicemanagement#ValidationException":
632
- throw await de_ValidationExceptionRes(parsedOutput);
633
- case "ServiceQuotaExceededException":
634
- case "com.amazonaws.snowdevicemanagement#ServiceQuotaExceededException":
635
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
636
- default:
637
- const parsedBody = parsedOutput.body;
638
- return throwDefaultError({
639
- output,
640
- parsedBody,
641
- errorCode,
642
- });
643
- }
644
- };
645
- const throwDefaultError = smithyClient.withBaseException(SnowDeviceManagementServiceException);
646
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
647
- const contents = smithyClient.map({});
648
- const data = parsedOutput.body;
649
- const doc = smithyClient.take(data, {
650
- message: smithyClient.expectString,
651
- });
652
- Object.assign(contents, doc);
653
- const exception = new AccessDeniedException({
654
- $metadata: deserializeMetadata(parsedOutput),
655
- ...contents,
656
- });
657
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
658
- };
659
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
660
- const contents = smithyClient.map({});
661
- const data = parsedOutput.body;
662
- const doc = smithyClient.take(data, {
663
- message: smithyClient.expectString,
664
- });
665
- Object.assign(contents, doc);
666
- const exception = new InternalServerException({
667
- $metadata: deserializeMetadata(parsedOutput),
668
- ...contents,
669
- });
670
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
671
- };
672
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
673
- const contents = smithyClient.map({});
674
- const data = parsedOutput.body;
675
- const doc = smithyClient.take(data, {
676
- message: smithyClient.expectString,
677
- });
678
- Object.assign(contents, doc);
679
- const exception = new ResourceNotFoundException({
680
- $metadata: deserializeMetadata(parsedOutput),
681
- ...contents,
682
- });
683
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
684
- };
685
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
686
- const contents = smithyClient.map({});
687
- const data = parsedOutput.body;
688
- const doc = smithyClient.take(data, {
689
- message: smithyClient.expectString,
690
- });
691
- Object.assign(contents, doc);
692
- const exception = new ServiceQuotaExceededException({
693
- $metadata: deserializeMetadata(parsedOutput),
694
- ...contents,
695
- });
696
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
697
- };
698
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
699
- const contents = smithyClient.map({});
700
- const data = parsedOutput.body;
701
- const doc = smithyClient.take(data, {
702
- message: smithyClient.expectString,
703
- });
704
- Object.assign(contents, doc);
705
- const exception = new ThrottlingException({
706
- $metadata: deserializeMetadata(parsedOutput),
707
- ...contents,
708
- });
709
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
710
- };
711
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
712
- const contents = smithyClient.map({});
713
- const data = parsedOutput.body;
714
- const doc = smithyClient.take(data, {
715
- message: smithyClient.expectString,
716
- });
717
- Object.assign(contents, doc);
718
- const exception = new ValidationException({
719
- $metadata: deserializeMetadata(parsedOutput),
720
- ...contents,
721
- });
722
- return smithyClient.decorateServiceException(exception, parsedOutput.body);
723
- };
724
- const de_EbsInstanceBlockDevice = (output, context) => {
725
- return smithyClient.take(output, {
726
- attachTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
727
- deleteOnTermination: smithyClient.expectBoolean,
728
- status: smithyClient.expectString,
729
- volumeId: smithyClient.expectString,
730
- });
731
- };
732
- const de_Instance = (output, context) => {
733
- return smithyClient.take(output, {
734
- amiLaunchIndex: smithyClient.expectInt32,
735
- blockDeviceMappings: (_) => de_InstanceBlockDeviceMappingList(_),
736
- cpuOptions: smithyClient._json,
737
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
738
- imageId: smithyClient.expectString,
739
- instanceId: smithyClient.expectString,
740
- instanceType: smithyClient.expectString,
741
- privateIpAddress: smithyClient.expectString,
742
- publicIpAddress: smithyClient.expectString,
743
- rootDeviceName: smithyClient.expectString,
744
- securityGroups: smithyClient._json,
745
- state: smithyClient._json,
746
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
747
- });
748
- };
749
- const de_InstanceBlockDeviceMapping = (output, context) => {
750
- return smithyClient.take(output, {
751
- deviceName: smithyClient.expectString,
752
- ebs: (_) => de_EbsInstanceBlockDevice(_),
753
- });
754
- };
755
- const de_InstanceBlockDeviceMappingList = (output, context) => {
756
- const retVal = (output || [])
757
- .filter((e) => e != null)
758
- .map((entry) => {
759
- return de_InstanceBlockDeviceMapping(entry);
760
- });
761
- return retVal;
762
- };
763
- const de_InstanceSummary = (output, context) => {
764
- return smithyClient.take(output, {
765
- instance: (_) => de_Instance(_),
766
- lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
767
- });
768
- };
769
- const de_InstanceSummaryList = (output, context) => {
770
- const retVal = (output || [])
771
- .filter((e) => e != null)
772
- .map((entry) => {
773
- return de_InstanceSummary(entry);
774
- });
775
- return retVal;
776
- };
777
- const deserializeMetadata = (output) => ({
778
- httpStatusCode: output.statusCode,
779
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
780
- extendedRequestId: output.headers["x-amz-id-2"],
781
- cfId: output.headers["x-amz-cf-id"],
782
- });
251
+ const _ADE = "AccessDeniedException";
252
+ const _C = "Capacity";
253
+ const _CL = "CapacityList";
254
+ const _CO = "CpuOptions";
255
+ const _CT = "CancelTask";
256
+ const _CTI = "CancelTaskInput";
257
+ const _CTIr = "CreateTaskInput";
258
+ const _CTO = "CancelTaskOutput";
259
+ const _CTOr = "CreateTaskOutput";
260
+ const _CTr = "CreateTask";
261
+ const _Co = "Command";
262
+ const _DD = "DescribeDevice";
263
+ const _DDEI = "DescribeDeviceEc2Input";
264
+ const _DDEIe = "DescribeDeviceEc2Instances";
265
+ const _DDEO = "DescribeDeviceEc2Output";
266
+ const _DDI = "DescribeDeviceInput";
267
+ const _DDO = "DescribeDeviceOutput";
268
+ const _DE = "DescribeExecution";
269
+ const _DEI = "DescribeExecutionInput";
270
+ const _DEO = "DescribeExecutionOutput";
271
+ const _DS = "DeviceSummary";
272
+ const _DSL = "DeviceSummaryList";
273
+ const _DT = "DescribeTask";
274
+ const _DTI = "DescribeTaskInput";
275
+ const _DTO = "DescribeTaskOutput";
276
+ const _EIBD = "EbsInstanceBlockDevice";
277
+ const _ES = "ExecutionSummary";
278
+ const _ESL = "ExecutionSummaryList";
279
+ const _I = "Instance";
280
+ const _IBDM = "InstanceBlockDeviceMapping";
281
+ const _IBDML = "InstanceBlockDeviceMappingList";
282
+ const _IS = "InstanceState";
283
+ const _ISE = "InternalServerException";
284
+ const _ISL = "InstanceSummaryList";
285
+ const _ISn = "InstanceSummary";
286
+ const _LD = "ListDevices";
287
+ const _LDI = "ListDevicesInput";
288
+ const _LDO = "ListDevicesOutput";
289
+ const _LDR = "ListDeviceResources";
290
+ const _LDRI = "ListDeviceResourcesInput";
291
+ const _LDRO = "ListDeviceResourcesOutput";
292
+ const _LE = "ListExecutions";
293
+ const _LEI = "ListExecutionsInput";
294
+ const _LEO = "ListExecutionsOutput";
295
+ const _LT = "ListTasks";
296
+ const _LTFR = "ListTagsForResource";
297
+ const _LTFRI = "ListTagsForResourceInput";
298
+ const _LTFRO = "ListTagsForResourceOutput";
299
+ const _LTI = "ListTasksInput";
300
+ const _LTO = "ListTasksOutput";
301
+ const _PNI = "PhysicalNetworkInterface";
302
+ const _PNIL = "PhysicalNetworkInterfaceList";
303
+ const _R = "Reboot";
304
+ const _RNFE = "ResourceNotFoundException";
305
+ const _RS = "ResourceSummary";
306
+ const _RSL = "ResourceSummaryList";
307
+ const _SGI = "SecurityGroupIdentifier";
308
+ const _SGIL = "SecurityGroupIdentifierList";
309
+ const _SI = "SoftwareInformation";
310
+ const _SQEE = "ServiceQuotaExceededException";
311
+ const _TE = "ThrottlingException";
312
+ const _TR = "TagResource";
313
+ const _TRI = "TagResourceInput";
314
+ const _TS = "TaskSummary";
315
+ const _TSL = "TaskSummaryList";
316
+ const _U = "Unlock";
317
+ const _UR = "UntagResource";
318
+ const _URI = "UntagResourceInput";
319
+ const _VE = "ValidationException";
320
+ const _a = "available";
321
+ const _aLI = "amiLaunchIndex";
322
+ const _aT = "attachTime";
323
+ const _aWJ = "associatedWithJob";
324
+ const _ar = "arn";
325
+ const _bDM = "blockDeviceMappings";
326
+ const _c = "client";
327
+ const _cA = "createdAt";
328
+ const _cAo = "completedAt";
329
+ const _cC = "coreCount";
330
+ const _cO = "cpuOptions";
331
+ const _cT = "clientToken";
332
+ const _co = "command";
333
+ const _cod = "code";
334
+ const _d = "description";
335
+ const _dC = "deviceCapacities";
336
+ const _dG = "defaultGateway";
337
+ const _dN = "deviceName";
338
+ const _dOT = "deleteOnTermination";
339
+ const _dS = "deviceState";
340
+ const _dT = "deviceType";
341
+ const _de = "devices";
342
+ const _e = "error";
343
+ const _eI = "executionId";
344
+ const _eb = "ebs";
345
+ const _ex = "executions";
346
+ const _gI = "groupId";
347
+ const _gN = "groupName";
348
+ const _h = "http";
349
+ const _hE = "httpError";
350
+ const _hQ = "httpQuery";
351
+ const _i = "instances";
352
+ const _iA = "ipAddress";
353
+ const _iAA = "ipAddressAssignment";
354
+ const _iI = "instanceIds";
355
+ const _iIm = "imageId";
356
+ const _iIn = "instanceId";
357
+ const _iS = "installState";
358
+ const _iT = "instanceType";
359
+ const _iV = "installedVersion";
360
+ const _iVn = "installingVersion";
361
+ const _id = "id";
362
+ const _in = "instance";
783
363
  const _jI = "jobId";
364
+ const _lROA = "lastReachedOutAt";
365
+ const _lUA = "lastUpdatedAt";
366
+ const _m = "message";
367
+ const _mA = "macAddress";
368
+ const _mDA = "managedDeviceArn";
369
+ const _mDI = "managedDeviceId";
784
370
  const _mR = "maxResults";
371
+ const _n = "name";
785
372
  const _nT = "nextToken";
786
- const _s = "state";
787
- const _t = "type";
373
+ const _ne = "netmask";
374
+ const _pCT = "physicalConnectorType";
375
+ const _pIA = "privateIpAddress";
376
+ const _pIAu = "publicIpAddress";
377
+ const _pNI = "physicalNetworkInterfaces";
378
+ const _pNII = "physicalNetworkInterfaceId";
379
+ const _r = "resources";
380
+ const _rA = "resourceArn";
381
+ const _rDN = "rootDeviceName";
382
+ const _rT = "resourceType";
383
+ const _re = "reboot";
384
+ const _s = "software";
385
+ const _sA = "startedAt";
386
+ const _sG = "securityGroups";
387
+ const _se = "server";
388
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.snowdevicemanagement";
389
+ const _st = "state";
390
+ const _sta = "status";
391
+ const _t = "total";
392
+ const _tA = "taskArn";
788
393
  const _tI = "taskId";
789
394
  const _tK = "tagKeys";
395
+ const _tPC = "threadsPerCore";
396
+ const _ta = "targets";
397
+ const _tag = "tags";
398
+ const _tas = "tasks";
399
+ const _ty = "type";
400
+ const _u = "unit";
401
+ const _uA = "updatedAt";
402
+ const _un = "unlock";
403
+ const _us = "used";
404
+ const _vI = "volumeId";
405
+ const n0 = "com.amazonaws.snowdevicemanagement";
406
+ var AccessDeniedException = [
407
+ -3,
408
+ n0,
409
+ _ADE,
410
+ {
411
+ [_e]: _c,
412
+ [_hE]: 403,
413
+ },
414
+ [_m],
415
+ [0],
416
+ ];
417
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
418
+ var CancelTaskInput = [3, n0, _CTI, 0, [_tI], [[0, 1]]];
419
+ var CancelTaskOutput = [3, n0, _CTO, 0, [_tI], [0]];
420
+ var Capacity = [3, n0, _C, 0, [_n, _u, _t, _us, _a], [0, 0, 1, 1, 1]];
421
+ var CpuOptions = [3, n0, _CO, 0, [_cC, _tPC], [1, 1]];
422
+ var CreateTaskInput = [
423
+ 3,
424
+ n0,
425
+ _CTIr,
426
+ 0,
427
+ [_ta, _co, _d, _tag, _cT],
428
+ [64 | 0, () => Command, 0, 128 | 0, [0, 4]],
429
+ ];
430
+ var CreateTaskOutput = [3, n0, _CTOr, 0, [_tI, _tA], [0, 0]];
431
+ var DescribeDeviceEc2Input = [3, n0, _DDEI, 0, [_mDI, _iI], [[0, 1], 64 | 0]];
432
+ var DescribeDeviceEc2Output = [3, n0, _DDEO, 0, [_i], [() => InstanceSummaryList]];
433
+ var DescribeDeviceInput = [3, n0, _DDI, 0, [_mDI], [[0, 1]]];
434
+ var DescribeDeviceOutput = [
435
+ 3,
436
+ n0,
437
+ _DDO,
438
+ 0,
439
+ [_lROA, _lUA, _tag, _mDI, _mDA, _dT, _aWJ, _dS, _pNI, _dC, _s],
440
+ [4, 4, 128 | 0, 0, 0, 0, 0, 0, () => PhysicalNetworkInterfaceList, () => CapacityList, () => SoftwareInformation],
441
+ ];
442
+ var DescribeExecutionInput = [
443
+ 3,
444
+ n0,
445
+ _DEI,
446
+ 0,
447
+ [_tI, _mDI],
448
+ [
449
+ [0, 1],
450
+ [0, 1],
451
+ ],
452
+ ];
453
+ var DescribeExecutionOutput = [
454
+ 3,
455
+ n0,
456
+ _DEO,
457
+ 0,
458
+ [_tI, _eI, _mDI, _st, _sA, _lUA],
459
+ [0, 0, 0, 0, 4, 4],
460
+ ];
461
+ var DescribeTaskInput = [3, n0, _DTI, 0, [_tI], [[0, 1]]];
462
+ var DescribeTaskOutput = [
463
+ 3,
464
+ n0,
465
+ _DTO,
466
+ 0,
467
+ [_tI, _tA, _ta, _st, _cA, _lUA, _cAo, _d, _tag],
468
+ [0, 0, 64 | 0, 0, 4, 4, 4, 0, 128 | 0],
469
+ ];
470
+ var DeviceSummary = [3, n0, _DS, 0, [_mDI, _mDA, _aWJ, _tag], [0, 0, 0, 128 | 0]];
471
+ var EbsInstanceBlockDevice = [3, n0, _EIBD, 0, [_aT, _dOT, _sta, _vI], [4, 2, 0, 0]];
472
+ var ExecutionSummary = [3, n0, _ES, 0, [_tI, _eI, _mDI, _st], [0, 0, 0, 0]];
473
+ var Instance = [
474
+ 3,
475
+ n0,
476
+ _I,
477
+ 0,
478
+ [_iIm, _aLI, _iIn, _st, _iT, _pIA, _pIAu, _cA, _uA, _bDM, _sG, _cO, _rDN],
479
+ [
480
+ 0,
481
+ 1,
482
+ 0,
483
+ () => InstanceState,
484
+ 0,
485
+ 0,
486
+ 0,
487
+ 4,
488
+ 4,
489
+ () => InstanceBlockDeviceMappingList,
490
+ () => SecurityGroupIdentifierList,
491
+ () => CpuOptions,
492
+ 0,
493
+ ],
494
+ ];
495
+ var InstanceBlockDeviceMapping = [
496
+ 3,
497
+ n0,
498
+ _IBDM,
499
+ 0,
500
+ [_dN, _eb],
501
+ [0, () => EbsInstanceBlockDevice],
502
+ ];
503
+ var InstanceState = [3, n0, _IS, 0, [_cod, _n], [1, 0]];
504
+ var InstanceSummary = [3, n0, _ISn, 0, [_in, _lUA], [() => Instance, 4]];
505
+ var InternalServerException = [
506
+ -3,
507
+ n0,
508
+ _ISE,
509
+ {
510
+ [_e]: _se,
511
+ [_hE]: 500,
512
+ },
513
+ [_m],
514
+ [0],
515
+ ];
516
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
517
+ var ListDeviceResourcesInput = [
518
+ 3,
519
+ n0,
520
+ _LDRI,
521
+ 0,
522
+ [_mDI, _ty, _mR, _nT],
523
+ [
524
+ [0, 1],
525
+ [
526
+ 0,
527
+ {
528
+ [_hQ]: _ty,
529
+ },
530
+ ],
531
+ [
532
+ 1,
533
+ {
534
+ [_hQ]: _mR,
535
+ },
536
+ ],
537
+ [
538
+ 0,
539
+ {
540
+ [_hQ]: _nT,
541
+ },
542
+ ],
543
+ ],
544
+ ];
545
+ var ListDeviceResourcesOutput = [
546
+ 3,
547
+ n0,
548
+ _LDRO,
549
+ 0,
550
+ [_r, _nT],
551
+ [() => ResourceSummaryList, 0],
552
+ ];
553
+ var ListDevicesInput = [
554
+ 3,
555
+ n0,
556
+ _LDI,
557
+ 0,
558
+ [_jI, _mR, _nT],
559
+ [
560
+ [
561
+ 0,
562
+ {
563
+ [_hQ]: _jI,
564
+ },
565
+ ],
566
+ [
567
+ 1,
568
+ {
569
+ [_hQ]: _mR,
570
+ },
571
+ ],
572
+ [
573
+ 0,
574
+ {
575
+ [_hQ]: _nT,
576
+ },
577
+ ],
578
+ ],
579
+ ];
580
+ var ListDevicesOutput = [3, n0, _LDO, 0, [_de, _nT], [() => DeviceSummaryList, 0]];
581
+ var ListExecutionsInput = [
582
+ 3,
583
+ n0,
584
+ _LEI,
585
+ 0,
586
+ [_tI, _st, _mR, _nT],
587
+ [
588
+ [
589
+ 0,
590
+ {
591
+ [_hQ]: _tI,
592
+ },
593
+ ],
594
+ [
595
+ 0,
596
+ {
597
+ [_hQ]: _st,
598
+ },
599
+ ],
600
+ [
601
+ 1,
602
+ {
603
+ [_hQ]: _mR,
604
+ },
605
+ ],
606
+ [
607
+ 0,
608
+ {
609
+ [_hQ]: _nT,
610
+ },
611
+ ],
612
+ ],
613
+ ];
614
+ var ListExecutionsOutput = [3, n0, _LEO, 0, [_ex, _nT], [() => ExecutionSummaryList, 0]];
615
+ var ListTagsForResourceInput = [3, n0, _LTFRI, 0, [_rA], [[0, 1]]];
616
+ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_tag], [128 | 0]];
617
+ var ListTasksInput = [
618
+ 3,
619
+ n0,
620
+ _LTI,
621
+ 0,
622
+ [_st, _mR, _nT],
623
+ [
624
+ [
625
+ 0,
626
+ {
627
+ [_hQ]: _st,
628
+ },
629
+ ],
630
+ [
631
+ 1,
632
+ {
633
+ [_hQ]: _mR,
634
+ },
635
+ ],
636
+ [
637
+ 0,
638
+ {
639
+ [_hQ]: _nT,
640
+ },
641
+ ],
642
+ ],
643
+ ];
644
+ var ListTasksOutput = [3, n0, _LTO, 0, [_tas, _nT], [() => TaskSummaryList, 0]];
645
+ var PhysicalNetworkInterface = [
646
+ 3,
647
+ n0,
648
+ _PNI,
649
+ 0,
650
+ [_pNII, _pCT, _iAA, _iA, _ne, _dG, _mA],
651
+ [0, 0, 0, 0, 0, 0, 0],
652
+ ];
653
+ var Reboot = [3, n0, _R, 0, [], []];
654
+ var ResourceNotFoundException = [
655
+ -3,
656
+ n0,
657
+ _RNFE,
658
+ {
659
+ [_e]: _c,
660
+ [_hE]: 404,
661
+ },
662
+ [_m],
663
+ [0],
664
+ ];
665
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
666
+ var ResourceSummary = [3, n0, _RS, 0, [_rT, _ar, _id], [0, 0, 0]];
667
+ var SecurityGroupIdentifier = [3, n0, _SGI, 0, [_gI, _gN], [0, 0]];
668
+ var ServiceQuotaExceededException = [
669
+ -3,
670
+ n0,
671
+ _SQEE,
672
+ {
673
+ [_e]: _c,
674
+ [_hE]: 402,
675
+ },
676
+ [_m],
677
+ [0],
678
+ ];
679
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
680
+ var SoftwareInformation = [3, n0, _SI, 0, [_iV, _iVn, _iS], [0, 0, 0]];
681
+ var TagResourceInput = [3, n0, _TRI, 0, [_rA, _tag], [[0, 1], 128 | 0]];
682
+ var TaskSummary = [3, n0, _TS, 0, [_tI, _tA, _st, _tag], [0, 0, 0, 128 | 0]];
683
+ var ThrottlingException = [
684
+ -3,
685
+ n0,
686
+ _TE,
687
+ {
688
+ [_e]: _c,
689
+ [_hE]: 429,
690
+ },
691
+ [_m],
692
+ [0],
693
+ ];
694
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
695
+ var Unlock = [3, n0, _U, 0, [], []];
696
+ var UntagResourceInput = [
697
+ 3,
698
+ n0,
699
+ _URI,
700
+ 0,
701
+ [_rA, _tK],
702
+ [
703
+ [0, 1],
704
+ [
705
+ 64 | 0,
706
+ {
707
+ [_hQ]: _tK,
708
+ },
709
+ ],
710
+ ],
711
+ ];
712
+ var ValidationException = [
713
+ -3,
714
+ n0,
715
+ _VE,
716
+ {
717
+ [_e]: _c,
718
+ [_hE]: 400,
719
+ },
720
+ [_m],
721
+ [0],
722
+ ];
723
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
724
+ var __Unit = "unit";
725
+ var SnowDeviceManagementServiceException = [
726
+ -3,
727
+ _sm,
728
+ "SnowDeviceManagementServiceException",
729
+ 0,
730
+ [],
731
+ [],
732
+ ];
733
+ schema.TypeRegistry.for(_sm).registerError(SnowDeviceManagementServiceException, SnowDeviceManagementServiceException$1);
734
+ var CapacityList = [1, n0, _CL, 0, () => Capacity];
735
+ var DeviceSummaryList = [1, n0, _DSL, 0, () => DeviceSummary];
736
+ var ExecutionSummaryList = [1, n0, _ESL, 0, () => ExecutionSummary];
737
+ var InstanceBlockDeviceMappingList = [1, n0, _IBDML, 0, () => InstanceBlockDeviceMapping];
738
+ var InstanceSummaryList = [1, n0, _ISL, 0, () => InstanceSummary];
739
+ var PhysicalNetworkInterfaceList = [1, n0, _PNIL, 0, () => PhysicalNetworkInterface];
740
+ var ResourceSummaryList = [1, n0, _RSL, 0, () => ResourceSummary];
741
+ var SecurityGroupIdentifierList = [1, n0, _SGIL, 0, () => SecurityGroupIdentifier];
742
+ var TaskSummaryList = [1, n0, _TSL, 0, () => TaskSummary];
743
+ var Command = [3, n0, _Co, 0, [_un, _re], [() => Unlock, () => Reboot]];
744
+ var CancelTask = [
745
+ 9,
746
+ n0,
747
+ _CT,
748
+ {
749
+ [_h]: ["POST", "/task/{taskId}/cancel", 200],
750
+ },
751
+ () => CancelTaskInput,
752
+ () => CancelTaskOutput,
753
+ ];
754
+ var CreateTask = [
755
+ 9,
756
+ n0,
757
+ _CTr,
758
+ {
759
+ [_h]: ["POST", "/task", 200],
760
+ },
761
+ () => CreateTaskInput,
762
+ () => CreateTaskOutput,
763
+ ];
764
+ var DescribeDevice = [
765
+ 9,
766
+ n0,
767
+ _DD,
768
+ {
769
+ [_h]: ["POST", "/managed-device/{managedDeviceId}/describe", 200],
770
+ },
771
+ () => DescribeDeviceInput,
772
+ () => DescribeDeviceOutput,
773
+ ];
774
+ var DescribeDeviceEc2Instances = [
775
+ 9,
776
+ n0,
777
+ _DDEIe,
778
+ {
779
+ [_h]: ["POST", "/managed-device/{managedDeviceId}/resources/ec2/describe", 200],
780
+ },
781
+ () => DescribeDeviceEc2Input,
782
+ () => DescribeDeviceEc2Output,
783
+ ];
784
+ var DescribeExecution = [
785
+ 9,
786
+ n0,
787
+ _DE,
788
+ {
789
+ [_h]: ["POST", "/task/{taskId}/execution/{managedDeviceId}", 200],
790
+ },
791
+ () => DescribeExecutionInput,
792
+ () => DescribeExecutionOutput,
793
+ ];
794
+ var DescribeTask = [
795
+ 9,
796
+ n0,
797
+ _DT,
798
+ {
799
+ [_h]: ["POST", "/task/{taskId}", 200],
800
+ },
801
+ () => DescribeTaskInput,
802
+ () => DescribeTaskOutput,
803
+ ];
804
+ var ListDeviceResources = [
805
+ 9,
806
+ n0,
807
+ _LDR,
808
+ {
809
+ [_h]: ["GET", "/managed-device/{managedDeviceId}/resources", 200],
810
+ },
811
+ () => ListDeviceResourcesInput,
812
+ () => ListDeviceResourcesOutput,
813
+ ];
814
+ var ListDevices = [
815
+ 9,
816
+ n0,
817
+ _LD,
818
+ {
819
+ [_h]: ["GET", "/managed-devices", 200],
820
+ },
821
+ () => ListDevicesInput,
822
+ () => ListDevicesOutput,
823
+ ];
824
+ var ListExecutions = [
825
+ 9,
826
+ n0,
827
+ _LE,
828
+ {
829
+ [_h]: ["GET", "/executions", 200],
830
+ },
831
+ () => ListExecutionsInput,
832
+ () => ListExecutionsOutput,
833
+ ];
834
+ var ListTagsForResource = [
835
+ 9,
836
+ n0,
837
+ _LTFR,
838
+ {
839
+ [_h]: ["GET", "/tags/{resourceArn}", 200],
840
+ },
841
+ () => ListTagsForResourceInput,
842
+ () => ListTagsForResourceOutput,
843
+ ];
844
+ var ListTasks = [
845
+ 9,
846
+ n0,
847
+ _LT,
848
+ {
849
+ [_h]: ["GET", "/tasks", 200],
850
+ },
851
+ () => ListTasksInput,
852
+ () => ListTasksOutput,
853
+ ];
854
+ var TagResource = [
855
+ 9,
856
+ n0,
857
+ _TR,
858
+ {
859
+ [_h]: ["POST", "/tags/{resourceArn}", 200],
860
+ },
861
+ () => TagResourceInput,
862
+ () => __Unit,
863
+ ];
864
+ var UntagResource = [
865
+ 9,
866
+ n0,
867
+ _UR,
868
+ {
869
+ [_h]: ["DELETE", "/tags/{resourceArn}", 200],
870
+ },
871
+ () => UntagResourceInput,
872
+ () => __Unit,
873
+ ];
790
874
 
791
875
  class CancelTaskCommand extends smithyClient.Command
792
876
  .classBuilder()
793
877
  .ep(commonParams)
794
878
  .m(function (Command, cs, config, o) {
795
- return [
796
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
797
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
798
- ];
879
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
799
880
  })
800
881
  .s("SnowDeviceManagement", "CancelTask", {})
801
882
  .n("SnowDeviceManagementClient", "CancelTaskCommand")
802
- .f(void 0, void 0)
803
- .ser(se_CancelTaskCommand)
804
- .de(de_CancelTaskCommand)
883
+ .sc(CancelTask)
805
884
  .build() {
806
885
  }
807
886
 
@@ -809,16 +888,11 @@ class CreateTaskCommand extends smithyClient.Command
809
888
  .classBuilder()
810
889
  .ep(commonParams)
811
890
  .m(function (Command, cs, config, o) {
812
- return [
813
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
814
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
815
- ];
891
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
816
892
  })
817
893
  .s("SnowDeviceManagement", "CreateTask", {})
818
894
  .n("SnowDeviceManagementClient", "CreateTaskCommand")
819
- .f(void 0, void 0)
820
- .ser(se_CreateTaskCommand)
821
- .de(de_CreateTaskCommand)
895
+ .sc(CreateTask)
822
896
  .build() {
823
897
  }
824
898
 
@@ -826,16 +900,11 @@ class DescribeDeviceCommand extends smithyClient.Command
826
900
  .classBuilder()
827
901
  .ep(commonParams)
828
902
  .m(function (Command, cs, config, o) {
829
- return [
830
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
831
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
832
- ];
903
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
833
904
  })
834
905
  .s("SnowDeviceManagement", "DescribeDevice", {})
835
906
  .n("SnowDeviceManagementClient", "DescribeDeviceCommand")
836
- .f(void 0, void 0)
837
- .ser(se_DescribeDeviceCommand)
838
- .de(de_DescribeDeviceCommand)
907
+ .sc(DescribeDevice)
839
908
  .build() {
840
909
  }
841
910
 
@@ -843,16 +912,11 @@ class DescribeDeviceEc2InstancesCommand extends smithyClient.Command
843
912
  .classBuilder()
844
913
  .ep(commonParams)
845
914
  .m(function (Command, cs, config, o) {
846
- return [
847
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
848
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
849
- ];
915
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
850
916
  })
851
917
  .s("SnowDeviceManagement", "DescribeDeviceEc2Instances", {})
852
918
  .n("SnowDeviceManagementClient", "DescribeDeviceEc2InstancesCommand")
853
- .f(void 0, void 0)
854
- .ser(se_DescribeDeviceEc2InstancesCommand)
855
- .de(de_DescribeDeviceEc2InstancesCommand)
919
+ .sc(DescribeDeviceEc2Instances)
856
920
  .build() {
857
921
  }
858
922
 
@@ -860,16 +924,11 @@ class DescribeExecutionCommand extends smithyClient.Command
860
924
  .classBuilder()
861
925
  .ep(commonParams)
862
926
  .m(function (Command, cs, config, o) {
863
- return [
864
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
865
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
866
- ];
927
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
867
928
  })
868
929
  .s("SnowDeviceManagement", "DescribeExecution", {})
869
930
  .n("SnowDeviceManagementClient", "DescribeExecutionCommand")
870
- .f(void 0, void 0)
871
- .ser(se_DescribeExecutionCommand)
872
- .de(de_DescribeExecutionCommand)
931
+ .sc(DescribeExecution)
873
932
  .build() {
874
933
  }
875
934
 
@@ -877,16 +936,11 @@ class DescribeTaskCommand extends smithyClient.Command
877
936
  .classBuilder()
878
937
  .ep(commonParams)
879
938
  .m(function (Command, cs, config, o) {
880
- return [
881
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
882
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
883
- ];
939
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
884
940
  })
885
941
  .s("SnowDeviceManagement", "DescribeTask", {})
886
942
  .n("SnowDeviceManagementClient", "DescribeTaskCommand")
887
- .f(void 0, void 0)
888
- .ser(se_DescribeTaskCommand)
889
- .de(de_DescribeTaskCommand)
943
+ .sc(DescribeTask)
890
944
  .build() {
891
945
  }
892
946
 
@@ -894,16 +948,11 @@ class ListDeviceResourcesCommand extends smithyClient.Command
894
948
  .classBuilder()
895
949
  .ep(commonParams)
896
950
  .m(function (Command, cs, config, o) {
897
- return [
898
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
899
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
900
- ];
951
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
901
952
  })
902
953
  .s("SnowDeviceManagement", "ListDeviceResources", {})
903
954
  .n("SnowDeviceManagementClient", "ListDeviceResourcesCommand")
904
- .f(void 0, void 0)
905
- .ser(se_ListDeviceResourcesCommand)
906
- .de(de_ListDeviceResourcesCommand)
955
+ .sc(ListDeviceResources)
907
956
  .build() {
908
957
  }
909
958
 
@@ -911,16 +960,11 @@ class ListDevicesCommand extends smithyClient.Command
911
960
  .classBuilder()
912
961
  .ep(commonParams)
913
962
  .m(function (Command, cs, config, o) {
914
- return [
915
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
916
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
917
- ];
963
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
918
964
  })
919
965
  .s("SnowDeviceManagement", "ListDevices", {})
920
966
  .n("SnowDeviceManagementClient", "ListDevicesCommand")
921
- .f(void 0, void 0)
922
- .ser(se_ListDevicesCommand)
923
- .de(de_ListDevicesCommand)
967
+ .sc(ListDevices)
924
968
  .build() {
925
969
  }
926
970
 
@@ -928,16 +972,11 @@ class ListExecutionsCommand extends smithyClient.Command
928
972
  .classBuilder()
929
973
  .ep(commonParams)
930
974
  .m(function (Command, cs, config, o) {
931
- return [
932
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
933
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
934
- ];
975
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
935
976
  })
936
977
  .s("SnowDeviceManagement", "ListExecutions", {})
937
978
  .n("SnowDeviceManagementClient", "ListExecutionsCommand")
938
- .f(void 0, void 0)
939
- .ser(se_ListExecutionsCommand)
940
- .de(de_ListExecutionsCommand)
979
+ .sc(ListExecutions)
941
980
  .build() {
942
981
  }
943
982
 
@@ -945,16 +984,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
945
984
  .classBuilder()
946
985
  .ep(commonParams)
947
986
  .m(function (Command, cs, config, o) {
948
- return [
949
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
950
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
951
- ];
987
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
952
988
  })
953
989
  .s("SnowDeviceManagement", "ListTagsForResource", {})
954
990
  .n("SnowDeviceManagementClient", "ListTagsForResourceCommand")
955
- .f(void 0, void 0)
956
- .ser(se_ListTagsForResourceCommand)
957
- .de(de_ListTagsForResourceCommand)
991
+ .sc(ListTagsForResource)
958
992
  .build() {
959
993
  }
960
994
 
@@ -962,16 +996,11 @@ class ListTasksCommand extends smithyClient.Command
962
996
  .classBuilder()
963
997
  .ep(commonParams)
964
998
  .m(function (Command, cs, config, o) {
965
- return [
966
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
967
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
968
- ];
999
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
969
1000
  })
970
1001
  .s("SnowDeviceManagement", "ListTasks", {})
971
1002
  .n("SnowDeviceManagementClient", "ListTasksCommand")
972
- .f(void 0, void 0)
973
- .ser(se_ListTasksCommand)
974
- .de(de_ListTasksCommand)
1003
+ .sc(ListTasks)
975
1004
  .build() {
976
1005
  }
977
1006
 
@@ -979,16 +1008,11 @@ class TagResourceCommand extends smithyClient.Command
979
1008
  .classBuilder()
980
1009
  .ep(commonParams)
981
1010
  .m(function (Command, cs, config, o) {
982
- return [
983
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
984
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
985
- ];
1011
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
986
1012
  })
987
1013
  .s("SnowDeviceManagement", "TagResource", {})
988
1014
  .n("SnowDeviceManagementClient", "TagResourceCommand")
989
- .f(void 0, void 0)
990
- .ser(se_TagResourceCommand)
991
- .de(de_TagResourceCommand)
1015
+ .sc(TagResource)
992
1016
  .build() {
993
1017
  }
994
1018
 
@@ -996,16 +1020,11 @@ class UntagResourceCommand extends smithyClient.Command
996
1020
  .classBuilder()
997
1021
  .ep(commonParams)
998
1022
  .m(function (Command, cs, config, o) {
999
- return [
1000
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1001
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1002
- ];
1023
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1003
1024
  })
1004
1025
  .s("SnowDeviceManagement", "UntagResource", {})
1005
1026
  .n("SnowDeviceManagementClient", "UntagResourceCommand")
1006
- .f(void 0, void 0)
1007
- .ser(se_UntagResourceCommand)
1008
- .de(de_UntagResourceCommand)
1027
+ .sc(UntagResource)
1009
1028
  .build() {
1010
1029
  }
1011
1030
 
@@ -1044,7 +1063,7 @@ Object.defineProperty(exports, "__Client", {
1044
1063
  enumerable: true,
1045
1064
  get: function () { return smithyClient.Client; }
1046
1065
  });
1047
- exports.AccessDeniedException = AccessDeniedException;
1066
+ exports.AccessDeniedException = AccessDeniedException$1;
1048
1067
  exports.AttachmentStatus = AttachmentStatus;
1049
1068
  exports.CancelTaskCommand = CancelTaskCommand;
1050
1069
  exports.CreateTaskCommand = CreateTaskCommand;
@@ -1054,7 +1073,7 @@ exports.DescribeExecutionCommand = DescribeExecutionCommand;
1054
1073
  exports.DescribeTaskCommand = DescribeTaskCommand;
1055
1074
  exports.ExecutionState = ExecutionState;
1056
1075
  exports.InstanceStateName = InstanceStateName;
1057
- exports.InternalServerException = InternalServerException;
1076
+ exports.InternalServerException = InternalServerException$1;
1058
1077
  exports.IpAddressAssignment = IpAddressAssignment;
1059
1078
  exports.ListDeviceResourcesCommand = ListDeviceResourcesCommand;
1060
1079
  exports.ListDevicesCommand = ListDevicesCommand;
@@ -1062,17 +1081,17 @@ exports.ListExecutionsCommand = ListExecutionsCommand;
1062
1081
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1063
1082
  exports.ListTasksCommand = ListTasksCommand;
1064
1083
  exports.PhysicalConnectorType = PhysicalConnectorType;
1065
- exports.ResourceNotFoundException = ResourceNotFoundException;
1066
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1084
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1085
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1067
1086
  exports.SnowDeviceManagement = SnowDeviceManagement;
1068
1087
  exports.SnowDeviceManagementClient = SnowDeviceManagementClient;
1069
- exports.SnowDeviceManagementServiceException = SnowDeviceManagementServiceException;
1088
+ exports.SnowDeviceManagementServiceException = SnowDeviceManagementServiceException$1;
1070
1089
  exports.TagResourceCommand = TagResourceCommand;
1071
1090
  exports.TaskState = TaskState;
1072
- exports.ThrottlingException = ThrottlingException;
1091
+ exports.ThrottlingException = ThrottlingException$1;
1073
1092
  exports.UnlockState = UnlockState;
1074
1093
  exports.UntagResourceCommand = UntagResourceCommand;
1075
- exports.ValidationException = ValidationException;
1094
+ exports.ValidationException = ValidationException$1;
1076
1095
  exports.paginateListDeviceResources = paginateListDeviceResources;
1077
1096
  exports.paginateListDevices = paginateListDevices;
1078
1097
  exports.paginateListExecutions = paginateListExecutions;