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