@aws-sdk/client-evs 3.927.0 → 3.928.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 +672 -695
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/EvsClient.js +2 -0
  4. package/dist-es/commands/AssociateEipToVlanCommand.js +3 -9
  5. package/dist-es/commands/CreateEnvironmentCommand.js +3 -9
  6. package/dist-es/commands/CreateEnvironmentHostCommand.js +3 -9
  7. package/dist-es/commands/DeleteEnvironmentCommand.js +3 -9
  8. package/dist-es/commands/DeleteEnvironmentHostCommand.js +3 -9
  9. package/dist-es/commands/DisassociateEipFromVlanCommand.js +3 -9
  10. package/dist-es/commands/GetEnvironmentCommand.js +3 -9
  11. package/dist-es/commands/ListEnvironmentHostsCommand.js +3 -9
  12. package/dist-es/commands/ListEnvironmentVlansCommand.js +3 -9
  13. package/dist-es/commands/ListEnvironmentsCommand.js +3 -9
  14. package/dist-es/commands/ListTagsForResourceCommand.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 +7 -0
  18. package/dist-es/schemas/schemas_0.js +633 -0
  19. package/dist-types/EvsClient.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 +80 -0
  25. package/dist-types/ts3.4/EvsClient.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 +85 -0
  31. package/package.json +5 -6
  32. package/dist-es/protocols/Aws_json1_0.js +0 -590
  33. package/dist-types/protocols/Aws_json1_0.d.ts +0 -119
  34. package/dist-types/ts3.4/protocols/Aws_json1_0.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 EvsClient 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,12 +110,12 @@ class EvsClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class EvsServiceException extends smithyClient.ServiceException {
113
+ let EvsServiceException$1 = class EvsServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, EvsServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
120
  const VlanState = {
122
121
  CREATED: "CREATED",
@@ -125,7 +124,7 @@ const VlanState = {
125
124
  DELETED: "DELETED",
126
125
  DELETING: "DELETING",
127
126
  };
128
- class ResourceNotFoundException extends EvsServiceException {
127
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends EvsServiceException$1 {
129
128
  name = "ResourceNotFoundException";
130
129
  $fault = "client";
131
130
  resourceId;
@@ -140,8 +139,8 @@ class ResourceNotFoundException extends EvsServiceException {
140
139
  this.resourceId = opts.resourceId;
141
140
  this.resourceType = opts.resourceType;
142
141
  }
143
- }
144
- class ThrottlingException extends EvsServiceException {
142
+ };
143
+ let ThrottlingException$1 = class ThrottlingException extends EvsServiceException$1 {
145
144
  name = "ThrottlingException";
146
145
  $fault = "client";
147
146
  $retryable = {};
@@ -155,14 +154,14 @@ class ThrottlingException extends EvsServiceException {
155
154
  Object.setPrototypeOf(this, ThrottlingException.prototype);
156
155
  this.retryAfterSeconds = opts.retryAfterSeconds;
157
156
  }
158
- }
157
+ };
159
158
  const ValidationExceptionReason = {
160
159
  CANNOT_PARSE: "cannotParse",
161
160
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
162
161
  OTHER: "other",
163
162
  UNKNOWN_OPERATION: "unknownOperation",
164
163
  };
165
- class ValidationException extends EvsServiceException {
164
+ let ValidationException$1 = class ValidationException extends EvsServiceException$1 {
166
165
  name = "ValidationException";
167
166
  $fault = "client";
168
167
  reason;
@@ -177,7 +176,7 @@ class ValidationException extends EvsServiceException {
177
176
  this.reason = opts.reason;
178
177
  this.fieldList = opts.fieldList;
179
178
  }
180
- }
179
+ };
181
180
  const _InstanceType = {
182
181
  I4I_METAL: "i4i.metal",
183
182
  };
@@ -211,7 +210,7 @@ const HostState = {
211
210
  UPDATE_FAILED: "UPDATE_FAILED",
212
211
  UPDATING: "UPDATING",
213
212
  };
214
- class ServiceQuotaExceededException extends EvsServiceException {
213
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends EvsServiceException$1 {
215
214
  name = "ServiceQuotaExceededException";
216
215
  $fault = "client";
217
216
  constructor(opts) {
@@ -222,8 +221,8 @@ class ServiceQuotaExceededException extends EvsServiceException {
222
221
  });
223
222
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
224
223
  }
225
- }
226
- class TagPolicyException extends EvsServiceException {
224
+ };
225
+ let TagPolicyException$1 = class TagPolicyException extends EvsServiceException$1 {
227
226
  name = "TagPolicyException";
228
227
  $fault = "client";
229
228
  constructor(opts) {
@@ -234,8 +233,8 @@ class TagPolicyException extends EvsServiceException {
234
233
  });
235
234
  Object.setPrototypeOf(this, TagPolicyException.prototype);
236
235
  }
237
- }
238
- class TooManyTagsException extends EvsServiceException {
236
+ };
237
+ let TooManyTagsException$1 = class TooManyTagsException extends EvsServiceException$1 {
239
238
  name = "TooManyTagsException";
240
239
  $fault = "client";
241
240
  constructor(opts) {
@@ -246,603 +245,641 @@ class TooManyTagsException extends EvsServiceException {
246
245
  });
247
246
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
248
247
  }
249
- }
250
-
251
- const se_AssociateEipToVlanCommand = async (input, context) => {
252
- const headers = sharedHeaders("AssociateEipToVlan");
253
- let body;
254
- body = JSON.stringify(se_AssociateEipToVlanRequest(input));
255
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
256
- };
257
- const se_CreateEnvironmentCommand = async (input, context) => {
258
- const headers = sharedHeaders("CreateEnvironment");
259
- let body;
260
- body = JSON.stringify(se_CreateEnvironmentRequest(input));
261
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
- };
263
- const se_CreateEnvironmentHostCommand = async (input, context) => {
264
- const headers = sharedHeaders("CreateEnvironmentHost");
265
- let body;
266
- body = JSON.stringify(se_CreateEnvironmentHostRequest(input));
267
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
268
- };
269
- const se_DeleteEnvironmentCommand = async (input, context) => {
270
- const headers = sharedHeaders("DeleteEnvironment");
271
- let body;
272
- body = JSON.stringify(se_DeleteEnvironmentRequest(input));
273
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
274
- };
275
- const se_DeleteEnvironmentHostCommand = async (input, context) => {
276
- const headers = sharedHeaders("DeleteEnvironmentHost");
277
- let body;
278
- body = JSON.stringify(se_DeleteEnvironmentHostRequest(input));
279
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
- };
281
- const se_DisassociateEipFromVlanCommand = async (input, context) => {
282
- const headers = sharedHeaders("DisassociateEipFromVlan");
283
- let body;
284
- body = JSON.stringify(se_DisassociateEipFromVlanRequest(input));
285
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
286
- };
287
- const se_GetEnvironmentCommand = async (input, context) => {
288
- const headers = sharedHeaders("GetEnvironment");
289
- let body;
290
- body = JSON.stringify(smithyClient._json(input));
291
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
292
- };
293
- const se_ListEnvironmentHostsCommand = async (input, context) => {
294
- const headers = sharedHeaders("ListEnvironmentHosts");
295
- let body;
296
- body = JSON.stringify(smithyClient._json(input));
297
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
298
- };
299
- const se_ListEnvironmentsCommand = async (input, context) => {
300
- const headers = sharedHeaders("ListEnvironments");
301
- let body;
302
- body = JSON.stringify(smithyClient._json(input));
303
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
304
- };
305
- const se_ListEnvironmentVlansCommand = async (input, context) => {
306
- const headers = sharedHeaders("ListEnvironmentVlans");
307
- let body;
308
- body = JSON.stringify(smithyClient._json(input));
309
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
310
- };
311
- const se_ListTagsForResourceCommand = async (input, context) => {
312
- const headers = sharedHeaders("ListTagsForResource");
313
- let body;
314
- body = JSON.stringify(smithyClient._json(input));
315
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
316
- };
317
- const se_TagResourceCommand = async (input, context) => {
318
- const headers = sharedHeaders("TagResource");
319
- let body;
320
- body = JSON.stringify(smithyClient._json(input));
321
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
- };
323
- const se_UntagResourceCommand = async (input, context) => {
324
- const headers = sharedHeaders("UntagResource");
325
- let body;
326
- body = JSON.stringify(smithyClient._json(input));
327
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
328
- };
329
- const de_AssociateEipToVlanCommand = async (output, context) => {
330
- if (output.statusCode >= 300) {
331
- return de_CommandError(output, context);
332
- }
333
- const data = await core$1.parseJsonBody(output.body, context);
334
- let contents = {};
335
- contents = de_AssociateEipToVlanResponse(data);
336
- const response = {
337
- $metadata: deserializeMetadata(output),
338
- ...contents,
339
- };
340
- return response;
341
- };
342
- const de_CreateEnvironmentCommand = async (output, context) => {
343
- if (output.statusCode >= 300) {
344
- return de_CommandError(output, context);
345
- }
346
- const data = await core$1.parseJsonBody(output.body, context);
347
- let contents = {};
348
- contents = de_CreateEnvironmentResponse(data);
349
- const response = {
350
- $metadata: deserializeMetadata(output),
351
- ...contents,
352
- };
353
- return response;
354
- };
355
- const de_CreateEnvironmentHostCommand = async (output, context) => {
356
- if (output.statusCode >= 300) {
357
- return de_CommandError(output, context);
358
- }
359
- const data = await core$1.parseJsonBody(output.body, context);
360
- let contents = {};
361
- contents = de_CreateEnvironmentHostResponse(data);
362
- const response = {
363
- $metadata: deserializeMetadata(output),
364
- ...contents,
365
- };
366
- return response;
367
- };
368
- const de_DeleteEnvironmentCommand = async (output, context) => {
369
- if (output.statusCode >= 300) {
370
- return de_CommandError(output, context);
371
- }
372
- const data = await core$1.parseJsonBody(output.body, context);
373
- let contents = {};
374
- contents = de_DeleteEnvironmentResponse(data);
375
- const response = {
376
- $metadata: deserializeMetadata(output),
377
- ...contents,
378
- };
379
- return response;
380
- };
381
- const de_DeleteEnvironmentHostCommand = async (output, context) => {
382
- if (output.statusCode >= 300) {
383
- return de_CommandError(output, context);
384
- }
385
- const data = await core$1.parseJsonBody(output.body, context);
386
- let contents = {};
387
- contents = de_DeleteEnvironmentHostResponse(data);
388
- const response = {
389
- $metadata: deserializeMetadata(output),
390
- ...contents,
391
- };
392
- return response;
393
- };
394
- const de_DisassociateEipFromVlanCommand = async (output, context) => {
395
- if (output.statusCode >= 300) {
396
- return de_CommandError(output, context);
397
- }
398
- const data = await core$1.parseJsonBody(output.body, context);
399
- let contents = {};
400
- contents = de_DisassociateEipFromVlanResponse(data);
401
- const response = {
402
- $metadata: deserializeMetadata(output),
403
- ...contents,
404
- };
405
- return response;
406
- };
407
- const de_GetEnvironmentCommand = async (output, context) => {
408
- if (output.statusCode >= 300) {
409
- return de_CommandError(output, context);
410
- }
411
- const data = await core$1.parseJsonBody(output.body, context);
412
- let contents = {};
413
- contents = de_GetEnvironmentResponse(data);
414
- const response = {
415
- $metadata: deserializeMetadata(output),
416
- ...contents,
417
- };
418
- return response;
419
- };
420
- const de_ListEnvironmentHostsCommand = async (output, context) => {
421
- if (output.statusCode >= 300) {
422
- return de_CommandError(output, context);
423
- }
424
- const data = await core$1.parseJsonBody(output.body, context);
425
- let contents = {};
426
- contents = de_ListEnvironmentHostsResponse(data);
427
- const response = {
428
- $metadata: deserializeMetadata(output),
429
- ...contents,
430
- };
431
- return response;
432
- };
433
- const de_ListEnvironmentsCommand = async (output, context) => {
434
- if (output.statusCode >= 300) {
435
- return de_CommandError(output, context);
436
- }
437
- const data = await core$1.parseJsonBody(output.body, context);
438
- let contents = {};
439
- contents = de_ListEnvironmentsResponse(data);
440
- const response = {
441
- $metadata: deserializeMetadata(output),
442
- ...contents,
443
- };
444
- return response;
445
- };
446
- const de_ListEnvironmentVlansCommand = async (output, context) => {
447
- if (output.statusCode >= 300) {
448
- return de_CommandError(output, context);
449
- }
450
- const data = await core$1.parseJsonBody(output.body, context);
451
- let contents = {};
452
- contents = de_ListEnvironmentVlansResponse(data);
453
- const response = {
454
- $metadata: deserializeMetadata(output),
455
- ...contents,
456
- };
457
- return response;
458
- };
459
- const de_ListTagsForResourceCommand = async (output, context) => {
460
- if (output.statusCode >= 300) {
461
- return de_CommandError(output, context);
462
- }
463
- const data = await core$1.parseJsonBody(output.body, context);
464
- let contents = {};
465
- contents = smithyClient._json(data);
466
- const response = {
467
- $metadata: deserializeMetadata(output),
468
- ...contents,
469
- };
470
- return response;
471
- };
472
- const de_TagResourceCommand = async (output, context) => {
473
- if (output.statusCode >= 300) {
474
- return de_CommandError(output, context);
475
- }
476
- const data = await core$1.parseJsonBody(output.body, context);
477
- let contents = {};
478
- contents = smithyClient._json(data);
479
- const response = {
480
- $metadata: deserializeMetadata(output),
481
- ...contents,
482
- };
483
- return response;
484
- };
485
- const de_UntagResourceCommand = async (output, context) => {
486
- if (output.statusCode >= 300) {
487
- return de_CommandError(output, context);
488
- }
489
- const data = await core$1.parseJsonBody(output.body, context);
490
- let contents = {};
491
- contents = smithyClient._json(data);
492
- const response = {
493
- $metadata: deserializeMetadata(output),
494
- ...contents,
495
- };
496
- return response;
497
- };
498
- const de_CommandError = async (output, context) => {
499
- const parsedOutput = {
500
- ...output,
501
- body: await core$1.parseJsonErrorBody(output.body, context),
502
- };
503
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
504
- switch (errorCode) {
505
- case "ResourceNotFoundException":
506
- case "com.amazonaws.evs#ResourceNotFoundException":
507
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
508
- case "ThrottlingException":
509
- case "com.amazonaws.evs#ThrottlingException":
510
- throw await de_ThrottlingExceptionRes(parsedOutput);
511
- case "ValidationException":
512
- case "com.amazonaws.evs#ValidationException":
513
- throw await de_ValidationExceptionRes(parsedOutput);
514
- case "ServiceQuotaExceededException":
515
- case "com.amazonaws.evs#ServiceQuotaExceededException":
516
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
517
- case "TagPolicyException":
518
- case "com.amazonaws.evs#TagPolicyException":
519
- throw await de_TagPolicyExceptionRes(parsedOutput);
520
- case "TooManyTagsException":
521
- case "com.amazonaws.evs#TooManyTagsException":
522
- throw await de_TooManyTagsExceptionRes(parsedOutput);
523
- default:
524
- const parsedBody = parsedOutput.body;
525
- return throwDefaultError({
526
- output,
527
- parsedBody,
528
- errorCode,
529
- });
530
- }
531
- };
532
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
533
- const body = parsedOutput.body;
534
- const deserialized = smithyClient._json(body);
535
- const exception = new ResourceNotFoundException({
536
- $metadata: deserializeMetadata(parsedOutput),
537
- ...deserialized,
538
- });
539
- return smithyClient.decorateServiceException(exception, body);
540
- };
541
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
542
- const body = parsedOutput.body;
543
- const deserialized = smithyClient._json(body);
544
- const exception = new ServiceQuotaExceededException({
545
- $metadata: deserializeMetadata(parsedOutput),
546
- ...deserialized,
547
- });
548
- return smithyClient.decorateServiceException(exception, body);
549
- };
550
- const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
551
- const body = parsedOutput.body;
552
- const deserialized = smithyClient._json(body);
553
- const exception = new TagPolicyException({
554
- $metadata: deserializeMetadata(parsedOutput),
555
- ...deserialized,
556
- });
557
- return smithyClient.decorateServiceException(exception, body);
558
- };
559
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
560
- const body = parsedOutput.body;
561
- const deserialized = smithyClient._json(body);
562
- const exception = new ThrottlingException({
563
- $metadata: deserializeMetadata(parsedOutput),
564
- ...deserialized,
565
- });
566
- return smithyClient.decorateServiceException(exception, body);
567
- };
568
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
569
- const body = parsedOutput.body;
570
- const deserialized = smithyClient._json(body);
571
- const exception = new TooManyTagsException({
572
- $metadata: deserializeMetadata(parsedOutput),
573
- ...deserialized,
574
- });
575
- return smithyClient.decorateServiceException(exception, body);
576
- };
577
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
578
- const body = parsedOutput.body;
579
- const deserialized = smithyClient._json(body);
580
- const exception = new ValidationException({
581
- $metadata: deserializeMetadata(parsedOutput),
582
- ...deserialized,
583
- });
584
- return smithyClient.decorateServiceException(exception, body);
585
- };
586
- const se_AssociateEipToVlanRequest = (input, context) => {
587
- return smithyClient.take(input, {
588
- allocationId: [],
589
- clientToken: [true, (_) => _ ?? uuid.v4()],
590
- environmentId: [],
591
- vlanName: [],
592
- });
593
- };
594
- const se_CreateEnvironmentHostRequest = (input, context) => {
595
- return smithyClient.take(input, {
596
- clientToken: [true, (_) => _ ?? uuid.v4()],
597
- environmentId: [],
598
- host: smithyClient._json,
599
- });
600
- };
601
- const se_CreateEnvironmentRequest = (input, context) => {
602
- return smithyClient.take(input, {
603
- clientToken: [true, (_) => _ ?? uuid.v4()],
604
- connectivityInfo: smithyClient._json,
605
- environmentName: [],
606
- hosts: smithyClient._json,
607
- initialVlans: smithyClient._json,
608
- kmsKeyId: [],
609
- licenseInfo: smithyClient._json,
610
- serviceAccessSecurityGroups: smithyClient._json,
611
- serviceAccessSubnetId: [],
612
- siteId: [],
613
- tags: smithyClient._json,
614
- termsAccepted: [],
615
- vcfHostnames: smithyClient._json,
616
- vcfVersion: [],
617
- vpcId: [],
618
- });
619
- };
620
- const se_DeleteEnvironmentHostRequest = (input, context) => {
621
- return smithyClient.take(input, {
622
- clientToken: [true, (_) => _ ?? uuid.v4()],
623
- environmentId: [],
624
- hostName: [],
625
- });
626
- };
627
- const se_DeleteEnvironmentRequest = (input, context) => {
628
- return smithyClient.take(input, {
629
- clientToken: [true, (_) => _ ?? uuid.v4()],
630
- environmentId: [],
631
- });
632
- };
633
- const se_DisassociateEipFromVlanRequest = (input, context) => {
634
- return smithyClient.take(input, {
635
- associationId: [],
636
- clientToken: [true, (_) => _ ?? uuid.v4()],
637
- environmentId: [],
638
- vlanName: [],
639
- });
640
- };
641
- const de_AssociateEipToVlanResponse = (output, context) => {
642
- return smithyClient.take(output, {
643
- vlan: (_) => de_Vlan(_),
644
- });
645
- };
646
- const de_Check = (output, context) => {
647
- return smithyClient.take(output, {
648
- impairedSince: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
649
- result: smithyClient.expectString,
650
- type: smithyClient.expectString,
651
- });
652
- };
653
- const de_ChecksList = (output, context) => {
654
- const retVal = (output || [])
655
- .filter((e) => e != null)
656
- .map((entry) => {
657
- return de_Check(entry);
658
- });
659
- return retVal;
660
- };
661
- const de_CreateEnvironmentHostResponse = (output, context) => {
662
- return smithyClient.take(output, {
663
- environmentSummary: (_) => de_EnvironmentSummary(_),
664
- host: (_) => de_Host(_),
665
- });
666
- };
667
- const de_CreateEnvironmentResponse = (output, context) => {
668
- return smithyClient.take(output, {
669
- environment: (_) => de_Environment(_),
670
- });
671
- };
672
- const de_DeleteEnvironmentHostResponse = (output, context) => {
673
- return smithyClient.take(output, {
674
- environmentSummary: (_) => de_EnvironmentSummary(_),
675
- host: (_) => de_Host(_),
676
- });
677
- };
678
- const de_DeleteEnvironmentResponse = (output, context) => {
679
- return smithyClient.take(output, {
680
- environment: (_) => de_Environment(_),
681
- });
682
- };
683
- const de_DisassociateEipFromVlanResponse = (output, context) => {
684
- return smithyClient.take(output, {
685
- vlan: (_) => de_Vlan(_),
686
- });
687
- };
688
- const de_Environment = (output, context) => {
689
- return smithyClient.take(output, {
690
- checks: (_) => de_ChecksList(_),
691
- connectivityInfo: smithyClient._json,
692
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
693
- credentials: smithyClient._json,
694
- environmentArn: smithyClient.expectString,
695
- environmentId: smithyClient.expectString,
696
- environmentName: smithyClient.expectString,
697
- environmentState: smithyClient.expectString,
698
- environmentStatus: smithyClient.expectString,
699
- kmsKeyId: smithyClient.expectString,
700
- licenseInfo: smithyClient._json,
701
- modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
702
- serviceAccessSecurityGroups: smithyClient._json,
703
- serviceAccessSubnetId: smithyClient.expectString,
704
- siteId: smithyClient.expectString,
705
- stateDetails: smithyClient.expectString,
706
- termsAccepted: smithyClient.expectBoolean,
707
- vcfHostnames: smithyClient._json,
708
- vcfVersion: smithyClient.expectString,
709
- vpcId: smithyClient.expectString,
710
- });
711
- };
712
- const de_EnvironmentSummary = (output, context) => {
713
- return smithyClient.take(output, {
714
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
715
- environmentArn: smithyClient.expectString,
716
- environmentId: smithyClient.expectString,
717
- environmentName: smithyClient.expectString,
718
- environmentState: smithyClient.expectString,
719
- environmentStatus: smithyClient.expectString,
720
- modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
721
- vcfVersion: smithyClient.expectString,
722
- });
723
- };
724
- const de_EnvironmentSummaryList = (output, context) => {
725
- const retVal = (output || [])
726
- .filter((e) => e != null)
727
- .map((entry) => {
728
- return de_EnvironmentSummary(entry);
729
- });
730
- return retVal;
731
- };
732
- const de_GetEnvironmentResponse = (output, context) => {
733
- return smithyClient.take(output, {
734
- environment: (_) => de_Environment(_),
735
- });
736
- };
737
- const de_Host = (output, context) => {
738
- return smithyClient.take(output, {
739
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
740
- dedicatedHostId: smithyClient.expectString,
741
- ec2InstanceId: smithyClient.expectString,
742
- hostName: smithyClient.expectString,
743
- hostState: smithyClient.expectString,
744
- instanceType: smithyClient.expectString,
745
- ipAddress: smithyClient.expectString,
746
- keyName: smithyClient.expectString,
747
- modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
748
- networkInterfaces: smithyClient._json,
749
- placementGroupId: smithyClient.expectString,
750
- stateDetails: smithyClient.expectString,
751
- });
752
- };
753
- const de_HostList = (output, context) => {
754
- const retVal = (output || [])
755
- .filter((e) => e != null)
756
- .map((entry) => {
757
- return de_Host(entry);
758
- });
759
- return retVal;
760
- };
761
- const de_ListEnvironmentHostsResponse = (output, context) => {
762
- return smithyClient.take(output, {
763
- environmentHosts: (_) => de_HostList(_),
764
- nextToken: smithyClient.expectString,
765
- });
766
- };
767
- const de_ListEnvironmentsResponse = (output, context) => {
768
- return smithyClient.take(output, {
769
- environmentSummaries: (_) => de_EnvironmentSummaryList(_),
770
- nextToken: smithyClient.expectString,
771
- });
772
- };
773
- const de_ListEnvironmentVlansResponse = (output, context) => {
774
- return smithyClient.take(output, {
775
- environmentVlans: (_) => de_VlanList(_),
776
- nextToken: smithyClient.expectString,
777
- });
778
- };
779
- const de_Vlan = (output, context) => {
780
- return smithyClient.take(output, {
781
- availabilityZone: smithyClient.expectString,
782
- cidr: smithyClient.expectString,
783
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
784
- eipAssociations: smithyClient._json,
785
- functionName: smithyClient.expectString,
786
- isPublic: smithyClient.expectBoolean,
787
- modifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
788
- networkAclId: smithyClient.expectString,
789
- stateDetails: smithyClient.expectString,
790
- subnetId: smithyClient.expectString,
791
- vlanId: smithyClient.expectInt32,
792
- vlanState: smithyClient.expectString,
793
- });
794
- };
795
- const de_VlanList = (output, context) => {
796
- const retVal = (output || [])
797
- .filter((e) => e != null)
798
- .map((entry) => {
799
- return de_Vlan(entry);
800
- });
801
- return retVal;
802
- };
803
- const deserializeMetadata = (output) => ({
804
- httpStatusCode: output.statusCode,
805
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
806
- extendedRequestId: output.headers["x-amz-id-2"],
807
- cfId: output.headers["x-amz-cf-id"],
808
- });
809
- const throwDefaultError = smithyClient.withBaseException(EvsServiceException);
810
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
811
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
812
- const contents = {
813
- protocol,
814
- hostname,
815
- port,
816
- method: "POST",
817
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
818
- headers,
819
- };
820
- if (body !== undefined) {
821
- contents.body = body;
822
- }
823
- return new protocolHttp.HttpRequest(contents);
824
248
  };
825
- function sharedHeaders(operation) {
826
- return {
827
- "content-type": "application/x-amz-json-1.0",
828
- "x-amz-target": `AmazonElasticVMwareService.${operation}`,
829
- };
830
- }
249
+
250
+ const _AETV = "AssociateEipToVlan";
251
+ const _AETVR = "AssociateEipToVlanRequest";
252
+ const _AETVRs = "AssociateEipToVlanResponse";
253
+ const _C = "Check";
254
+ const _CE = "CreateEnvironment";
255
+ const _CEH = "CreateEnvironmentHost";
256
+ const _CEHR = "CreateEnvironmentHostRequest";
257
+ const _CEHRr = "CreateEnvironmentHostResponse";
258
+ const _CER = "CreateEnvironmentRequest";
259
+ const _CERr = "CreateEnvironmentResponse";
260
+ const _CI = "ConnectivityInfo";
261
+ const _CL = "ChecksList";
262
+ const _DE = "DeleteEnvironment";
263
+ const _DEFV = "DisassociateEipFromVlan";
264
+ const _DEFVR = "DisassociateEipFromVlanRequest";
265
+ const _DEFVRi = "DisassociateEipFromVlanResponse";
266
+ const _DEH = "DeleteEnvironmentHost";
267
+ const _DEHR = "DeleteEnvironmentHostRequest";
268
+ const _DEHRe = "DeleteEnvironmentHostResponse";
269
+ const _DER = "DeleteEnvironmentRequest";
270
+ const _DERe = "DeleteEnvironmentResponse";
271
+ const _E = "Environment";
272
+ const _EA = "EipAssociation";
273
+ const _EAL = "EipAssociationList";
274
+ const _ES = "EnvironmentSummary";
275
+ const _ESL = "EnvironmentSummaryList";
276
+ const _GE = "GetEnvironment";
277
+ const _GER = "GetEnvironmentRequest";
278
+ const _GERe = "GetEnvironmentResponse";
279
+ const _H = "Host";
280
+ const _HIFC = "HostInfoForCreate";
281
+ const _HIFCL = "HostInfoForCreateList";
282
+ const _HL = "HostList";
283
+ const _IV = "InitialVlans";
284
+ const _IVI = "InitialVlanInfo";
285
+ const _LE = "ListEnvironments";
286
+ const _LEH = "ListEnvironmentHosts";
287
+ const _LEHR = "ListEnvironmentHostsRequest";
288
+ const _LEHRi = "ListEnvironmentHostsResponse";
289
+ const _LER = "ListEnvironmentsRequest";
290
+ const _LERi = "ListEnvironmentsResponse";
291
+ const _LEV = "ListEnvironmentVlans";
292
+ const _LEVR = "ListEnvironmentVlansRequest";
293
+ const _LEVRi = "ListEnvironmentVlansResponse";
294
+ const _LI = "LicenseInfo";
295
+ const _LIL = "LicenseInfoList";
296
+ const _LTFR = "ListTagsForResource";
297
+ const _LTFRR = "ListTagsForResourceRequest";
298
+ const _LTFRRi = "ListTagsForResourceResponse";
299
+ const _NI = "NetworkInterface";
300
+ const _NIL = "NetworkInterfaceList";
301
+ const _RA = "Retry-After";
302
+ const _RNFE = "ResourceNotFoundException";
303
+ const _S = "Secret";
304
+ const _SASG = "ServiceAccessSecurityGroups";
305
+ const _SL = "SecretList";
306
+ const _SQEE = "ServiceQuotaExceededException";
307
+ const _TE = "ThrottlingException";
308
+ const _TMTE = "TooManyTagsException";
309
+ const _TPE = "TagPolicyException";
310
+ const _TR = "TagResource";
311
+ const _TRR = "TagResourceRequest";
312
+ const _TRRa = "TagResourceResponse";
313
+ const _UR = "UntagResource";
314
+ const _URR = "UntagResourceRequest";
315
+ const _URRn = "UntagResourceResponse";
316
+ const _V = "Vlan";
317
+ const _VE = "ValidationException";
318
+ const _VEF = "ValidationExceptionField";
319
+ const _VEFL = "ValidationExceptionFieldList";
320
+ const _VH = "VcfHostnames";
321
+ const _VL = "VlanList";
322
+ const _aI = "allocationId";
323
+ const _aIs = "associationId";
324
+ const _aZ = "availabilityZone";
325
+ const _c = "checks";
326
+ const _cA = "createdAt";
327
+ const _cB = "cloudBuilder";
328
+ const _cI = "connectivityInfo";
329
+ const _cT = "clientToken";
330
+ const _ci = "cidr";
331
+ const _cl = "client";
332
+ const _cr = "credentials";
333
+ const _dHI = "dedicatedHostId";
334
+ const _e = "environment";
335
+ const _eA = "environmentArn";
336
+ const _eAi = "eipAssociations";
337
+ const _eH = "environmentHosts";
338
+ const _eI = "environmentId";
339
+ const _eII = "ec2InstanceId";
340
+ const _eN = "environmentName";
341
+ const _eS = "environmentSummary";
342
+ const _eSn = "environmentState";
343
+ const _eSnv = "environmentStatus";
344
+ const _eSnvi = "environmentSummaries";
345
+ const _eV = "expansionVlan1";
346
+ const _eVT = "edgeVTep";
347
+ const _eVn = "environmentVlans";
348
+ const _eVx = "expansionVlan2";
349
+ const _er = "error";
350
+ const _fL = "fieldList";
351
+ const _fN = "functionName";
352
+ const _h = "host";
353
+ const _hE = "httpError";
354
+ const _hH = "httpHeader";
355
+ const _hN = "hostName";
356
+ const _hNAI = "hcxNetworkAclId";
357
+ const _hQ = "httpQuery";
358
+ const _hS = "hostState";
359
+ const _hc = "hcx";
360
+ const _ho = "hosts";
361
+ const _iA = "ipAddress";
362
+ const _iHP = "isHcxPublic";
363
+ const _iP = "isPublic";
364
+ const _iS = "impairedSince";
365
+ const _iT = "instanceType";
366
+ const _iV = "initialVlans";
367
+ const _kKI = "kmsKeyId";
368
+ const _kN = "keyName";
369
+ const _lI = "licenseInfo";
370
+ const _m = "message";
371
+ const _mA = "modifiedAt";
372
+ const _mR = "maxResults";
373
+ const _n = "name";
374
+ const _nAI = "networkAclId";
375
+ const _nE = "nsxEdge1";
376
+ const _nEs = "nsxEdge2";
377
+ const _nI = "networkInterfaces";
378
+ const _nII = "networkInterfaceId";
379
+ const _nM = "nsxManager1";
380
+ const _nMs = "nsxManager2";
381
+ const _nMsx = "nsxManager3";
382
+ const _nT = "nextToken";
383
+ const _nU = "nsxUplink";
384
+ const _ns = "nsx";
385
+ const _pGI = "placementGroupId";
386
+ const _pRSP = "privateRouteServerPeerings";
387
+ const _r = "result";
388
+ const _rA = "resourceArn";
389
+ const _rAS = "retryAfterSeconds";
390
+ const _rI = "resourceId";
391
+ const _rT = "resourceType";
392
+ const _re = "reason";
393
+ const _s = "state";
394
+ const _sA = "secretArn";
395
+ const _sASG = "serviceAccessSecurityGroups";
396
+ const _sASI = "serviceAccessSubnetId";
397
+ const _sD = "stateDetails";
398
+ const _sG = "securityGroups";
399
+ const _sI = "siteId";
400
+ const _sIu = "subnetId";
401
+ const _sK = "solutionKey";
402
+ const _sM = "sddcManager";
403
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.evs";
404
+ const _t = "type";
405
+ const _tA = "termsAccepted";
406
+ const _tK = "tagKeys";
407
+ const _ta = "tags";
408
+ const _v = "vlan";
409
+ const _vC = "vCenter";
410
+ const _vH = "vcfHostnames";
411
+ const _vI = "vpcId";
412
+ const _vIl = "vlanId";
413
+ const _vK = "vsanKey";
414
+ const _vM = "vmkManagement";
415
+ const _vMm = "vmManagement";
416
+ const _vMo = "vMotion";
417
+ const _vN = "vlanName";
418
+ const _vS = "vSan";
419
+ const _vSl = "vlanState";
420
+ const _vT = "vTep";
421
+ const _vV = "vcfVersion";
422
+ const n0 = "com.amazonaws.evs";
423
+ var AssociateEipToVlanRequest = [
424
+ 3,
425
+ n0,
426
+ _AETVR,
427
+ 0,
428
+ [_cT, _eI, _vN, _aI],
429
+ [[0, 4], 0, 0, 0],
430
+ ];
431
+ var AssociateEipToVlanResponse = [3, n0, _AETVRs, 0, [_v], [() => Vlan]];
432
+ var Check = [3, n0, _C, 0, [_t, _r, _iS], [0, 0, 4]];
433
+ var ConnectivityInfo = [3, n0, _CI, 0, [_pRSP], [64 | 0]];
434
+ var CreateEnvironmentHostRequest = [
435
+ 3,
436
+ n0,
437
+ _CEHR,
438
+ 0,
439
+ [_cT, _eI, _h],
440
+ [[0, 4], 0, () => HostInfoForCreate],
441
+ ];
442
+ var CreateEnvironmentHostResponse = [
443
+ 3,
444
+ n0,
445
+ _CEHRr,
446
+ 0,
447
+ [_eS, _h],
448
+ [() => EnvironmentSummary, () => Host],
449
+ ];
450
+ var CreateEnvironmentRequest = [
451
+ 3,
452
+ n0,
453
+ _CER,
454
+ 0,
455
+ [_cT, _eN, _kKI, _ta, _sASG, _vI, _sASI, _vV, _tA, _lI, _iV, _ho, _cI, _vH, _sI],
456
+ [
457
+ [0, 4],
458
+ 0,
459
+ 0,
460
+ 128 | 0,
461
+ () => ServiceAccessSecurityGroups,
462
+ 0,
463
+ 0,
464
+ 0,
465
+ 2,
466
+ () => LicenseInfoList,
467
+ () => InitialVlans,
468
+ () => HostInfoForCreateList,
469
+ () => ConnectivityInfo,
470
+ () => VcfHostnames,
471
+ 0,
472
+ ],
473
+ ];
474
+ var CreateEnvironmentResponse = [3, n0, _CERr, 0, [_e], [() => Environment]];
475
+ var DeleteEnvironmentHostRequest = [3, n0, _DEHR, 0, [_cT, _eI, _hN], [[0, 4], 0, 0]];
476
+ var DeleteEnvironmentHostResponse = [
477
+ 3,
478
+ n0,
479
+ _DEHRe,
480
+ 0,
481
+ [_eS, _h],
482
+ [() => EnvironmentSummary, () => Host],
483
+ ];
484
+ var DeleteEnvironmentRequest = [
485
+ 3,
486
+ n0,
487
+ _DER,
488
+ 0,
489
+ [_cT, _eI],
490
+ [
491
+ [0, 4],
492
+ [0, 1],
493
+ ],
494
+ ];
495
+ var DeleteEnvironmentResponse = [3, n0, _DERe, 0, [_e], [() => Environment]];
496
+ var DisassociateEipFromVlanRequest = [
497
+ 3,
498
+ n0,
499
+ _DEFVR,
500
+ 0,
501
+ [_cT, _eI, _vN, _aIs],
502
+ [[0, 4], 0, 0, 0],
503
+ ];
504
+ var DisassociateEipFromVlanResponse = [3, n0, _DEFVRi, 0, [_v], [() => Vlan]];
505
+ var EipAssociation = [3, n0, _EA, 0, [_aIs, _aI, _iA], [0, 0, 0]];
506
+ var Environment = [
507
+ 3,
508
+ n0,
509
+ _E,
510
+ 0,
511
+ [_eI, _eSn, _sD, _cA, _mA, _eA, _eN, _vI, _sASI, _vV, _tA, _lI, _sI, _eSnv, _c, _cI, _vH, _kKI, _sASG, _cr],
512
+ [
513
+ 0,
514
+ 0,
515
+ 0,
516
+ 4,
517
+ 4,
518
+ 0,
519
+ 0,
520
+ 0,
521
+ 0,
522
+ 0,
523
+ 2,
524
+ () => LicenseInfoList,
525
+ 0,
526
+ 0,
527
+ () => ChecksList,
528
+ () => ConnectivityInfo,
529
+ () => VcfHostnames,
530
+ 0,
531
+ () => ServiceAccessSecurityGroups,
532
+ () => SecretList,
533
+ ],
534
+ ];
535
+ var EnvironmentSummary = [
536
+ 3,
537
+ n0,
538
+ _ES,
539
+ 0,
540
+ [_eI, _eN, _vV, _eSnv, _eSn, _cA, _mA, _eA],
541
+ [0, 0, 0, 0, 0, 4, 4, 0],
542
+ ];
543
+ var GetEnvironmentRequest = [3, n0, _GER, 0, [_eI], [[0, 1]]];
544
+ var GetEnvironmentResponse = [3, n0, _GERe, 0, [_e], [() => Environment]];
545
+ var Host = [
546
+ 3,
547
+ n0,
548
+ _H,
549
+ 0,
550
+ [_hN, _iA, _kN, _iT, _pGI, _dHI, _cA, _mA, _hS, _sD, _eII, _nI],
551
+ [0, 0, 0, 0, 0, 0, 4, 4, 0, 0, 0, () => NetworkInterfaceList],
552
+ ];
553
+ var HostInfoForCreate = [3, n0, _HIFC, 0, [_hN, _kN, _iT, _pGI, _dHI], [0, 0, 0, 0, 0]];
554
+ var InitialVlanInfo = [3, n0, _IVI, 0, [_ci], [0]];
555
+ var InitialVlans = [
556
+ 3,
557
+ n0,
558
+ _IV,
559
+ 0,
560
+ [_vM, _vMm, _vMo, _vS, _vT, _eVT, _nU, _hc, _eV, _eVx, _iHP, _hNAI],
561
+ [
562
+ () => InitialVlanInfo,
563
+ () => InitialVlanInfo,
564
+ () => InitialVlanInfo,
565
+ () => InitialVlanInfo,
566
+ () => InitialVlanInfo,
567
+ () => InitialVlanInfo,
568
+ () => InitialVlanInfo,
569
+ () => InitialVlanInfo,
570
+ () => InitialVlanInfo,
571
+ () => InitialVlanInfo,
572
+ 2,
573
+ 0,
574
+ ],
575
+ ];
576
+ var LicenseInfo = [3, n0, _LI, 0, [_sK, _vK], [0, 0]];
577
+ var ListEnvironmentHostsRequest = [
578
+ 3,
579
+ n0,
580
+ _LEHR,
581
+ 0,
582
+ [_nT, _mR, _eI],
583
+ [
584
+ [
585
+ 0,
586
+ {
587
+ [_hQ]: _nT,
588
+ },
589
+ ],
590
+ [
591
+ 1,
592
+ {
593
+ [_hQ]: _mR,
594
+ },
595
+ ],
596
+ [0, 1],
597
+ ],
598
+ ];
599
+ var ListEnvironmentHostsResponse = [3, n0, _LEHRi, 0, [_nT, _eH], [0, () => HostList]];
600
+ var ListEnvironmentsRequest = [
601
+ 3,
602
+ n0,
603
+ _LER,
604
+ 0,
605
+ [_nT, _mR, _s],
606
+ [
607
+ [
608
+ 0,
609
+ {
610
+ [_hQ]: _nT,
611
+ },
612
+ ],
613
+ [
614
+ 1,
615
+ {
616
+ [_hQ]: _mR,
617
+ },
618
+ ],
619
+ [
620
+ 64 | 0,
621
+ {
622
+ [_hQ]: _s,
623
+ },
624
+ ],
625
+ ],
626
+ ];
627
+ var ListEnvironmentsResponse = [
628
+ 3,
629
+ n0,
630
+ _LERi,
631
+ 0,
632
+ [_nT, _eSnvi],
633
+ [0, () => EnvironmentSummaryList],
634
+ ];
635
+ var ListEnvironmentVlansRequest = [
636
+ 3,
637
+ n0,
638
+ _LEVR,
639
+ 0,
640
+ [_nT, _mR, _eI],
641
+ [
642
+ [
643
+ 0,
644
+ {
645
+ [_hQ]: _nT,
646
+ },
647
+ ],
648
+ [
649
+ 1,
650
+ {
651
+ [_hQ]: _mR,
652
+ },
653
+ ],
654
+ [0, 1],
655
+ ],
656
+ ];
657
+ var ListEnvironmentVlansResponse = [3, n0, _LEVRi, 0, [_nT, _eVn], [0, () => VlanList]];
658
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [0]];
659
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_ta], [128 | 0]];
660
+ var NetworkInterface = [3, n0, _NI, 0, [_nII], [0]];
661
+ var ResourceNotFoundException = [
662
+ -3,
663
+ n0,
664
+ _RNFE,
665
+ {
666
+ [_er]: _cl,
667
+ [_hE]: 404,
668
+ },
669
+ [_m, _rI, _rT],
670
+ [0, 0, 0],
671
+ ];
672
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
673
+ var Secret = [3, n0, _S, 0, [_sA], [0]];
674
+ var ServiceAccessSecurityGroups = [3, n0, _SASG, 0, [_sG], [64 | 0]];
675
+ var ServiceQuotaExceededException = [
676
+ -3,
677
+ n0,
678
+ _SQEE,
679
+ {
680
+ [_er]: _cl,
681
+ [_hE]: 402,
682
+ },
683
+ [_m],
684
+ [0],
685
+ ];
686
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
687
+ var TagPolicyException = [
688
+ -3,
689
+ n0,
690
+ _TPE,
691
+ {
692
+ [_er]: _cl,
693
+ [_hE]: 400,
694
+ },
695
+ [_m],
696
+ [0],
697
+ ];
698
+ schema.TypeRegistry.for(n0).registerError(TagPolicyException, TagPolicyException$1);
699
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _ta], [0, 128 | 0]];
700
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
701
+ var ThrottlingException = [
702
+ -3,
703
+ n0,
704
+ _TE,
705
+ {
706
+ [_er]: _cl,
707
+ [_hE]: 429,
708
+ },
709
+ [_m, _rAS],
710
+ [
711
+ 0,
712
+ [
713
+ 1,
714
+ {
715
+ [_hH]: _RA,
716
+ },
717
+ ],
718
+ ],
719
+ ];
720
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
721
+ var TooManyTagsException = [
722
+ -3,
723
+ n0,
724
+ _TMTE,
725
+ {
726
+ [_er]: _cl,
727
+ [_hE]: 400,
728
+ },
729
+ [_m],
730
+ [0],
731
+ ];
732
+ schema.TypeRegistry.for(n0).registerError(TooManyTagsException, TooManyTagsException$1);
733
+ var UntagResourceRequest = [3, n0, _URR, 0, [_rA, _tK], [0, 64 | 0]];
734
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
735
+ var ValidationException = [
736
+ -3,
737
+ n0,
738
+ _VE,
739
+ {
740
+ [_er]: _cl,
741
+ [_hE]: 400,
742
+ },
743
+ [_m, _re, _fL],
744
+ [0, 0, () => ValidationExceptionFieldList],
745
+ ];
746
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
747
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
748
+ var VcfHostnames = [
749
+ 3,
750
+ n0,
751
+ _VH,
752
+ 0,
753
+ [_vC, _ns, _nM, _nMs, _nMsx, _nE, _nEs, _sM, _cB],
754
+ [0, 0, 0, 0, 0, 0, 0, 0, 0],
755
+ ];
756
+ var Vlan = [
757
+ 3,
758
+ n0,
759
+ _V,
760
+ 0,
761
+ [_vIl, _ci, _aZ, _fN, _sIu, _cA, _mA, _vSl, _sD, _eAi, _iP, _nAI],
762
+ [1, 0, 0, 0, 0, 4, 4, 0, 0, () => EipAssociationList, 2, 0],
763
+ ];
764
+ var EvsServiceException = [-3, _sm, "EvsServiceException", 0, [], []];
765
+ schema.TypeRegistry.for(_sm).registerError(EvsServiceException, EvsServiceException$1);
766
+ var ChecksList = [1, n0, _CL, 0, () => Check];
767
+ var EipAssociationList = [1, n0, _EAL, 0, () => EipAssociation];
768
+ var EnvironmentSummaryList = [1, n0, _ESL, 0, () => EnvironmentSummary];
769
+ var HostInfoForCreateList = [1, n0, _HIFCL, 0, () => HostInfoForCreate];
770
+ var HostList = [1, n0, _HL, 0, () => Host];
771
+ var LicenseInfoList = [1, n0, _LIL, 0, () => LicenseInfo];
772
+ var NetworkInterfaceList = [1, n0, _NIL, 0, () => NetworkInterface];
773
+ var SecretList = [1, n0, _SL, 0, () => Secret];
774
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
775
+ var VlanList = [1, n0, _VL, 0, () => Vlan];
776
+ var AssociateEipToVlan = [
777
+ 9,
778
+ n0,
779
+ _AETV,
780
+ 2,
781
+ () => AssociateEipToVlanRequest,
782
+ () => AssociateEipToVlanResponse,
783
+ ];
784
+ var CreateEnvironment = [
785
+ 9,
786
+ n0,
787
+ _CE,
788
+ 2,
789
+ () => CreateEnvironmentRequest,
790
+ () => CreateEnvironmentResponse,
791
+ ];
792
+ var CreateEnvironmentHost = [
793
+ 9,
794
+ n0,
795
+ _CEH,
796
+ 2,
797
+ () => CreateEnvironmentHostRequest,
798
+ () => CreateEnvironmentHostResponse,
799
+ ];
800
+ var DeleteEnvironment = [
801
+ 9,
802
+ n0,
803
+ _DE,
804
+ 2,
805
+ () => DeleteEnvironmentRequest,
806
+ () => DeleteEnvironmentResponse,
807
+ ];
808
+ var DeleteEnvironmentHost = [
809
+ 9,
810
+ n0,
811
+ _DEH,
812
+ 2,
813
+ () => DeleteEnvironmentHostRequest,
814
+ () => DeleteEnvironmentHostResponse,
815
+ ];
816
+ var DisassociateEipFromVlan = [
817
+ 9,
818
+ n0,
819
+ _DEFV,
820
+ 2,
821
+ () => DisassociateEipFromVlanRequest,
822
+ () => DisassociateEipFromVlanResponse,
823
+ ];
824
+ var GetEnvironment = [
825
+ 9,
826
+ n0,
827
+ _GE,
828
+ 0,
829
+ () => GetEnvironmentRequest,
830
+ () => GetEnvironmentResponse,
831
+ ];
832
+ var ListEnvironmentHosts = [
833
+ 9,
834
+ n0,
835
+ _LEH,
836
+ 0,
837
+ () => ListEnvironmentHostsRequest,
838
+ () => ListEnvironmentHostsResponse,
839
+ ];
840
+ var ListEnvironments = [
841
+ 9,
842
+ n0,
843
+ _LE,
844
+ 0,
845
+ () => ListEnvironmentsRequest,
846
+ () => ListEnvironmentsResponse,
847
+ ];
848
+ var ListEnvironmentVlans = [
849
+ 9,
850
+ n0,
851
+ _LEV,
852
+ 0,
853
+ () => ListEnvironmentVlansRequest,
854
+ () => ListEnvironmentVlansResponse,
855
+ ];
856
+ var ListTagsForResource = [
857
+ 9,
858
+ n0,
859
+ _LTFR,
860
+ 0,
861
+ () => ListTagsForResourceRequest,
862
+ () => ListTagsForResourceResponse,
863
+ ];
864
+ var TagResource = [9, n0, _TR, 2, () => TagResourceRequest, () => TagResourceResponse];
865
+ var UntagResource = [
866
+ 9,
867
+ n0,
868
+ _UR,
869
+ 2,
870
+ () => UntagResourceRequest,
871
+ () => UntagResourceResponse,
872
+ ];
831
873
 
832
874
  class AssociateEipToVlanCommand extends smithyClient.Command
833
875
  .classBuilder()
834
876
  .ep(commonParams)
835
877
  .m(function (Command, cs, config, o) {
836
- return [
837
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
838
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
839
- ];
878
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
840
879
  })
841
880
  .s("AmazonElasticVMwareService", "AssociateEipToVlan", {})
842
881
  .n("EvsClient", "AssociateEipToVlanCommand")
843
- .f(void 0, void 0)
844
- .ser(se_AssociateEipToVlanCommand)
845
- .de(de_AssociateEipToVlanCommand)
882
+ .sc(AssociateEipToVlan)
846
883
  .build() {
847
884
  }
848
885
 
@@ -850,16 +887,11 @@ class CreateEnvironmentCommand extends smithyClient.Command
850
887
  .classBuilder()
851
888
  .ep(commonParams)
852
889
  .m(function (Command, cs, config, o) {
853
- return [
854
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
855
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
856
- ];
890
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
857
891
  })
858
892
  .s("AmazonElasticVMwareService", "CreateEnvironment", {})
859
893
  .n("EvsClient", "CreateEnvironmentCommand")
860
- .f(void 0, void 0)
861
- .ser(se_CreateEnvironmentCommand)
862
- .de(de_CreateEnvironmentCommand)
894
+ .sc(CreateEnvironment)
863
895
  .build() {
864
896
  }
865
897
 
@@ -867,16 +899,11 @@ class CreateEnvironmentHostCommand extends smithyClient.Command
867
899
  .classBuilder()
868
900
  .ep(commonParams)
869
901
  .m(function (Command, cs, config, o) {
870
- return [
871
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
872
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
873
- ];
902
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
874
903
  })
875
904
  .s("AmazonElasticVMwareService", "CreateEnvironmentHost", {})
876
905
  .n("EvsClient", "CreateEnvironmentHostCommand")
877
- .f(void 0, void 0)
878
- .ser(se_CreateEnvironmentHostCommand)
879
- .de(de_CreateEnvironmentHostCommand)
906
+ .sc(CreateEnvironmentHost)
880
907
  .build() {
881
908
  }
882
909
 
@@ -884,16 +911,11 @@ class DeleteEnvironmentCommand extends smithyClient.Command
884
911
  .classBuilder()
885
912
  .ep(commonParams)
886
913
  .m(function (Command, cs, config, o) {
887
- return [
888
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
889
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
890
- ];
914
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
891
915
  })
892
916
  .s("AmazonElasticVMwareService", "DeleteEnvironment", {})
893
917
  .n("EvsClient", "DeleteEnvironmentCommand")
894
- .f(void 0, void 0)
895
- .ser(se_DeleteEnvironmentCommand)
896
- .de(de_DeleteEnvironmentCommand)
918
+ .sc(DeleteEnvironment)
897
919
  .build() {
898
920
  }
899
921
 
@@ -901,16 +923,11 @@ class DeleteEnvironmentHostCommand extends smithyClient.Command
901
923
  .classBuilder()
902
924
  .ep(commonParams)
903
925
  .m(function (Command, cs, config, o) {
904
- return [
905
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
906
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
907
- ];
926
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
908
927
  })
909
928
  .s("AmazonElasticVMwareService", "DeleteEnvironmentHost", {})
910
929
  .n("EvsClient", "DeleteEnvironmentHostCommand")
911
- .f(void 0, void 0)
912
- .ser(se_DeleteEnvironmentHostCommand)
913
- .de(de_DeleteEnvironmentHostCommand)
930
+ .sc(DeleteEnvironmentHost)
914
931
  .build() {
915
932
  }
916
933
 
@@ -918,16 +935,11 @@ class DisassociateEipFromVlanCommand extends smithyClient.Command
918
935
  .classBuilder()
919
936
  .ep(commonParams)
920
937
  .m(function (Command, cs, config, o) {
921
- return [
922
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
923
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
924
- ];
938
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
925
939
  })
926
940
  .s("AmazonElasticVMwareService", "DisassociateEipFromVlan", {})
927
941
  .n("EvsClient", "DisassociateEipFromVlanCommand")
928
- .f(void 0, void 0)
929
- .ser(se_DisassociateEipFromVlanCommand)
930
- .de(de_DisassociateEipFromVlanCommand)
942
+ .sc(DisassociateEipFromVlan)
931
943
  .build() {
932
944
  }
933
945
 
@@ -935,16 +947,11 @@ class GetEnvironmentCommand extends smithyClient.Command
935
947
  .classBuilder()
936
948
  .ep(commonParams)
937
949
  .m(function (Command, cs, config, o) {
938
- return [
939
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
940
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
941
- ];
950
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
942
951
  })
943
952
  .s("AmazonElasticVMwareService", "GetEnvironment", {})
944
953
  .n("EvsClient", "GetEnvironmentCommand")
945
- .f(void 0, void 0)
946
- .ser(se_GetEnvironmentCommand)
947
- .de(de_GetEnvironmentCommand)
954
+ .sc(GetEnvironment)
948
955
  .build() {
949
956
  }
950
957
 
@@ -952,16 +959,11 @@ class ListEnvironmentHostsCommand extends smithyClient.Command
952
959
  .classBuilder()
953
960
  .ep(commonParams)
954
961
  .m(function (Command, cs, config, o) {
955
- return [
956
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
957
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
958
- ];
962
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
959
963
  })
960
964
  .s("AmazonElasticVMwareService", "ListEnvironmentHosts", {})
961
965
  .n("EvsClient", "ListEnvironmentHostsCommand")
962
- .f(void 0, void 0)
963
- .ser(se_ListEnvironmentHostsCommand)
964
- .de(de_ListEnvironmentHostsCommand)
966
+ .sc(ListEnvironmentHosts)
965
967
  .build() {
966
968
  }
967
969
 
@@ -969,16 +971,11 @@ class ListEnvironmentsCommand extends smithyClient.Command
969
971
  .classBuilder()
970
972
  .ep(commonParams)
971
973
  .m(function (Command, cs, config, o) {
972
- return [
973
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
974
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
975
- ];
974
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
976
975
  })
977
976
  .s("AmazonElasticVMwareService", "ListEnvironments", {})
978
977
  .n("EvsClient", "ListEnvironmentsCommand")
979
- .f(void 0, void 0)
980
- .ser(se_ListEnvironmentsCommand)
981
- .de(de_ListEnvironmentsCommand)
978
+ .sc(ListEnvironments)
982
979
  .build() {
983
980
  }
984
981
 
@@ -986,16 +983,11 @@ class ListEnvironmentVlansCommand extends smithyClient.Command
986
983
  .classBuilder()
987
984
  .ep(commonParams)
988
985
  .m(function (Command, cs, config, o) {
989
- return [
990
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
991
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
992
- ];
986
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
993
987
  })
994
988
  .s("AmazonElasticVMwareService", "ListEnvironmentVlans", {})
995
989
  .n("EvsClient", "ListEnvironmentVlansCommand")
996
- .f(void 0, void 0)
997
- .ser(se_ListEnvironmentVlansCommand)
998
- .de(de_ListEnvironmentVlansCommand)
990
+ .sc(ListEnvironmentVlans)
999
991
  .build() {
1000
992
  }
1001
993
 
@@ -1003,16 +995,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
1003
995
  .classBuilder()
1004
996
  .ep(commonParams)
1005
997
  .m(function (Command, cs, config, o) {
1006
- return [
1007
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1008
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1009
- ];
998
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1010
999
  })
1011
1000
  .s("AmazonElasticVMwareService", "ListTagsForResource", {})
1012
1001
  .n("EvsClient", "ListTagsForResourceCommand")
1013
- .f(void 0, void 0)
1014
- .ser(se_ListTagsForResourceCommand)
1015
- .de(de_ListTagsForResourceCommand)
1002
+ .sc(ListTagsForResource)
1016
1003
  .build() {
1017
1004
  }
1018
1005
 
@@ -1020,16 +1007,11 @@ class TagResourceCommand extends smithyClient.Command
1020
1007
  .classBuilder()
1021
1008
  .ep(commonParams)
1022
1009
  .m(function (Command, cs, config, o) {
1023
- return [
1024
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1025
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1026
- ];
1010
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1027
1011
  })
1028
1012
  .s("AmazonElasticVMwareService", "TagResource", {})
1029
1013
  .n("EvsClient", "TagResourceCommand")
1030
- .f(void 0, void 0)
1031
- .ser(se_TagResourceCommand)
1032
- .de(de_TagResourceCommand)
1014
+ .sc(TagResource)
1033
1015
  .build() {
1034
1016
  }
1035
1017
 
@@ -1037,16 +1019,11 @@ class UntagResourceCommand extends smithyClient.Command
1037
1019
  .classBuilder()
1038
1020
  .ep(commonParams)
1039
1021
  .m(function (Command, cs, config, o) {
1040
- return [
1041
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1042
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1043
- ];
1022
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1044
1023
  })
1045
1024
  .s("AmazonElasticVMwareService", "UntagResource", {})
1046
1025
  .n("EvsClient", "UntagResourceCommand")
1047
- .f(void 0, void 0)
1048
- .ser(se_UntagResourceCommand)
1049
- .de(de_UntagResourceCommand)
1026
+ .sc(UntagResource)
1050
1027
  .build() {
1051
1028
  }
1052
1029
 
@@ -1094,21 +1071,21 @@ exports.DisassociateEipFromVlanCommand = DisassociateEipFromVlanCommand;
1094
1071
  exports.EnvironmentState = EnvironmentState;
1095
1072
  exports.Evs = Evs;
1096
1073
  exports.EvsClient = EvsClient;
1097
- exports.EvsServiceException = EvsServiceException;
1074
+ exports.EvsServiceException = EvsServiceException$1;
1098
1075
  exports.GetEnvironmentCommand = GetEnvironmentCommand;
1099
1076
  exports.HostState = HostState;
1100
1077
  exports.ListEnvironmentHostsCommand = ListEnvironmentHostsCommand;
1101
1078
  exports.ListEnvironmentVlansCommand = ListEnvironmentVlansCommand;
1102
1079
  exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
1103
1080
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1104
- exports.ResourceNotFoundException = ResourceNotFoundException;
1105
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1106
- exports.TagPolicyException = TagPolicyException;
1081
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1082
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1083
+ exports.TagPolicyException = TagPolicyException$1;
1107
1084
  exports.TagResourceCommand = TagResourceCommand;
1108
- exports.ThrottlingException = ThrottlingException;
1109
- exports.TooManyTagsException = TooManyTagsException;
1085
+ exports.ThrottlingException = ThrottlingException$1;
1086
+ exports.TooManyTagsException = TooManyTagsException$1;
1110
1087
  exports.UntagResourceCommand = UntagResourceCommand;
1111
- exports.ValidationException = ValidationException;
1088
+ exports.ValidationException = ValidationException$1;
1112
1089
  exports.ValidationExceptionReason = ValidationExceptionReason;
1113
1090
  exports.VcfVersion = VcfVersion;
1114
1091
  exports.VlanState = VlanState;