@aws-sdk/client-elastic-load-balancing-v2 3.454.0 → 3.460.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 (86) hide show
  1. package/README.md +114 -34
  2. package/dist-cjs/ElasticLoadBalancingV2.js +20 -0
  3. package/dist-cjs/commands/AddTrustStoreRevocationsCommand.js +51 -0
  4. package/dist-cjs/commands/CreateTrustStoreCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteTrustStoreCommand.js +51 -0
  6. package/dist-cjs/commands/DescribeTrustStoreAssociationsCommand.js +51 -0
  7. package/dist-cjs/commands/DescribeTrustStoreRevocationsCommand.js +51 -0
  8. package/dist-cjs/commands/DescribeTrustStoresCommand.js +51 -0
  9. package/dist-cjs/commands/GetTrustStoreCaCertificatesBundleCommand.js +51 -0
  10. package/dist-cjs/commands/GetTrustStoreRevocationContentCommand.js +51 -0
  11. package/dist-cjs/commands/ModifyTrustStoreCommand.js +51 -0
  12. package/dist-cjs/commands/RemoveTrustStoreRevocationsCommand.js +51 -0
  13. package/dist-cjs/commands/index.js +10 -0
  14. package/dist-cjs/models/models_0.js +175 -2
  15. package/dist-cjs/pagination/DescribeTrustStoreAssociationsPaginator.js +29 -0
  16. package/dist-cjs/pagination/DescribeTrustStoreRevocationsPaginator.js +29 -0
  17. package/dist-cjs/pagination/DescribeTrustStoresPaginator.js +29 -0
  18. package/dist-cjs/pagination/index.js +3 -0
  19. package/dist-cjs/protocols/Aws_query.js +1187 -19
  20. package/dist-es/ElasticLoadBalancingV2.js +20 -0
  21. package/dist-es/commands/AddTrustStoreRevocationsCommand.js +47 -0
  22. package/dist-es/commands/CreateTrustStoreCommand.js +47 -0
  23. package/dist-es/commands/DeleteTrustStoreCommand.js +47 -0
  24. package/dist-es/commands/DescribeTrustStoreAssociationsCommand.js +47 -0
  25. package/dist-es/commands/DescribeTrustStoreRevocationsCommand.js +47 -0
  26. package/dist-es/commands/DescribeTrustStoresCommand.js +47 -0
  27. package/dist-es/commands/GetTrustStoreCaCertificatesBundleCommand.js +47 -0
  28. package/dist-es/commands/GetTrustStoreRevocationContentCommand.js +47 -0
  29. package/dist-es/commands/ModifyTrustStoreCommand.js +47 -0
  30. package/dist-es/commands/RemoveTrustStoreRevocationsCommand.js +47 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/models/models_0.js +162 -0
  33. package/dist-es/pagination/DescribeTrustStoreAssociationsPaginator.js +25 -0
  34. package/dist-es/pagination/DescribeTrustStoreRevocationsPaginator.js +25 -0
  35. package/dist-es/pagination/DescribeTrustStoresPaginator.js +25 -0
  36. package/dist-es/pagination/index.js +3 -0
  37. package/dist-es/protocols/Aws_query.js +1167 -19
  38. package/dist-types/ElasticLoadBalancingV2.d.ts +70 -0
  39. package/dist-types/ElasticLoadBalancingV2Client.d.ts +12 -2
  40. package/dist-types/commands/AddTagsCommand.d.ts +5 -2
  41. package/dist-types/commands/AddTrustStoreRevocationsCommand.d.ts +100 -0
  42. package/dist-types/commands/CreateListenerCommand.d.ts +17 -1
  43. package/dist-types/commands/CreateLoadBalancerCommand.d.ts +1 -1
  44. package/dist-types/commands/CreateRuleCommand.d.ts +1 -1
  45. package/dist-types/commands/CreateTargetGroupCommand.d.ts +1 -1
  46. package/dist-types/commands/CreateTrustStoreCommand.d.ts +108 -0
  47. package/dist-types/commands/DeleteTrustStoreCommand.d.ts +77 -0
  48. package/dist-types/commands/DescribeListenersCommand.d.ts +5 -0
  49. package/dist-types/commands/DescribeTagsCommand.d.ts +3 -0
  50. package/dist-types/commands/DescribeTargetHealthCommand.d.ts +7 -0
  51. package/dist-types/commands/DescribeTrustStoreAssociationsCommand.d.ts +83 -0
  52. package/dist-types/commands/DescribeTrustStoreRevocationsCommand.d.ts +93 -0
  53. package/dist-types/commands/DescribeTrustStoresCommand.d.ts +93 -0
  54. package/dist-types/commands/GetTrustStoreCaCertificatesBundleCommand.d.ts +78 -0
  55. package/dist-types/commands/GetTrustStoreRevocationContentCommand.d.ts +82 -0
  56. package/dist-types/commands/ModifyListenerCommand.d.ts +16 -0
  57. package/dist-types/commands/ModifyTrustStoreCommand.d.ts +93 -0
  58. package/dist-types/commands/RemoveTagsCommand.d.ts +4 -1
  59. package/dist-types/commands/RemoveTrustStoreRevocationsCommand.d.ts +80 -0
  60. package/dist-types/commands/index.d.ts +10 -0
  61. package/dist-types/models/models_0.d.ts +712 -2
  62. package/dist-types/pagination/DescribeTrustStoreAssociationsPaginator.d.ts +7 -0
  63. package/dist-types/pagination/DescribeTrustStoreRevocationsPaginator.d.ts +7 -0
  64. package/dist-types/pagination/DescribeTrustStoresPaginator.d.ts +7 -0
  65. package/dist-types/pagination/index.d.ts +3 -0
  66. package/dist-types/protocols/Aws_query.d.ts +90 -0
  67. package/dist-types/ts3.4/ElasticLoadBalancingV2.d.ts +176 -0
  68. package/dist-types/ts3.4/ElasticLoadBalancingV2Client.d.ts +60 -0
  69. package/dist-types/ts3.4/commands/AddTrustStoreRevocationsCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/CreateTrustStoreCommand.d.ts +38 -0
  71. package/dist-types/ts3.4/commands/DeleteTrustStoreCommand.d.ts +38 -0
  72. package/dist-types/ts3.4/commands/DescribeTrustStoreAssociationsCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/DescribeTrustStoreRevocationsCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/DescribeTrustStoresCommand.d.ts +39 -0
  75. package/dist-types/ts3.4/commands/GetTrustStoreCaCertificatesBundleCommand.d.ts +42 -0
  76. package/dist-types/ts3.4/commands/GetTrustStoreRevocationContentCommand.d.ts +42 -0
  77. package/dist-types/ts3.4/commands/ModifyTrustStoreCommand.d.ts +38 -0
  78. package/dist-types/ts3.4/commands/RemoveTrustStoreRevocationsCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  80. package/dist-types/ts3.4/models/models_0.d.ts +254 -0
  81. package/dist-types/ts3.4/pagination/DescribeTrustStoreAssociationsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/DescribeTrustStoreRevocationsPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/DescribeTrustStoresPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  85. package/dist-types/ts3.4/protocols/Aws_query.d.ts +120 -0
  86. package/package.json +12 -12
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
2
  import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@smithy/smithy-client";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { ElasticLoadBalancingV2ServiceException as __BaseException } from "../models/ElasticLoadBalancingV2ServiceException";
5
- import { AllocationIdNotFoundException, ALPNPolicyNotSupportedException, AvailabilityZoneNotSupportedException, CertificateNotFoundException, DuplicateListenerException, DuplicateLoadBalancerNameException, DuplicateTagKeysException, DuplicateTargetGroupNameException, HealthUnavailableException, IncompatibleProtocolsException, InvalidConfigurationRequestException, InvalidLoadBalancerActionException, InvalidSchemeException, InvalidSecurityGroupException, InvalidSubnetException, InvalidTargetException, ListenerNotFoundException, LoadBalancerNotFoundException, OperationNotPermittedException, PriorityInUseException, ResourceInUseException, RuleNotFoundException, SSLPolicyNotFoundException, SubnetNotFoundException, TargetGroupAssociationLimitException, TargetGroupNotFoundException, TooManyActionsException, TooManyCertificatesException, TooManyListenersException, TooManyLoadBalancersException, TooManyRegistrationsForTargetIdException, TooManyRulesException, TooManyTagsException, TooManyTargetGroupsException, TooManyTargetsException, TooManyUniqueTargetGroupsPerLoadBalancerException, UnsupportedProtocolException, } from "../models/models_0";
5
+ import { AllocationIdNotFoundException, ALPNPolicyNotSupportedException, AvailabilityZoneNotSupportedException, CaCertificatesBundleNotFoundException, CertificateNotFoundException, DuplicateListenerException, DuplicateLoadBalancerNameException, DuplicateTagKeysException, DuplicateTargetGroupNameException, DuplicateTrustStoreNameException, HealthUnavailableException, IncompatibleProtocolsException, InvalidCaCertificatesBundleException, InvalidConfigurationRequestException, InvalidLoadBalancerActionException, InvalidRevocationContentException, InvalidSchemeException, InvalidSecurityGroupException, InvalidSubnetException, InvalidTargetException, ListenerNotFoundException, LoadBalancerNotFoundException, OperationNotPermittedException, PriorityInUseException, ResourceInUseException, RevocationContentNotFoundException, RevocationIdNotFoundException, RuleNotFoundException, SSLPolicyNotFoundException, SubnetNotFoundException, TargetGroupAssociationLimitException, TargetGroupNotFoundException, TooManyActionsException, TooManyCertificatesException, TooManyListenersException, TooManyLoadBalancersException, TooManyRegistrationsForTargetIdException, TooManyRulesException, TooManyTagsException, TooManyTargetGroupsException, TooManyTargetsException, TooManyTrustStoreRevocationEntriesException, TooManyTrustStoresException, TooManyUniqueTargetGroupsPerLoadBalancerException, TrustStoreInUseException, TrustStoreNotFoundException, TrustStoreNotReadyException, UnsupportedProtocolException, } from "../models/models_0";
6
6
  export const se_AddListenerCertificatesCommand = async (input, context) => {
7
7
  const headers = SHARED_HEADERS;
8
8
  let body;
@@ -23,6 +23,16 @@ export const se_AddTagsCommand = async (input, context) => {
23
23
  });
24
24
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
25
25
  };
26
+ export const se_AddTrustStoreRevocationsCommand = async (input, context) => {
27
+ const headers = SHARED_HEADERS;
28
+ let body;
29
+ body = buildFormUrlencodedString({
30
+ ...se_AddTrustStoreRevocationsInput(input, context),
31
+ Action: "AddTrustStoreRevocations",
32
+ Version: "2015-12-01",
33
+ });
34
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
+ };
26
36
  export const se_CreateListenerCommand = async (input, context) => {
27
37
  const headers = SHARED_HEADERS;
28
38
  let body;
@@ -63,6 +73,16 @@ export const se_CreateTargetGroupCommand = async (input, context) => {
63
73
  });
64
74
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
75
  };
76
+ export const se_CreateTrustStoreCommand = async (input, context) => {
77
+ const headers = SHARED_HEADERS;
78
+ let body;
79
+ body = buildFormUrlencodedString({
80
+ ...se_CreateTrustStoreInput(input, context),
81
+ Action: "CreateTrustStore",
82
+ Version: "2015-12-01",
83
+ });
84
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
+ };
66
86
  export const se_DeleteListenerCommand = async (input, context) => {
67
87
  const headers = SHARED_HEADERS;
68
88
  let body;
@@ -103,6 +123,16 @@ export const se_DeleteTargetGroupCommand = async (input, context) => {
103
123
  });
104
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
125
  };
126
+ export const se_DeleteTrustStoreCommand = async (input, context) => {
127
+ const headers = SHARED_HEADERS;
128
+ let body;
129
+ body = buildFormUrlencodedString({
130
+ ...se_DeleteTrustStoreInput(input, context),
131
+ Action: "DeleteTrustStore",
132
+ Version: "2015-12-01",
133
+ });
134
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
135
+ };
106
136
  export const se_DeregisterTargetsCommand = async (input, context) => {
107
137
  const headers = SHARED_HEADERS;
108
138
  let body;
@@ -223,6 +253,56 @@ export const se_DescribeTargetHealthCommand = async (input, context) => {
223
253
  });
224
254
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
225
255
  };
256
+ export const se_DescribeTrustStoreAssociationsCommand = async (input, context) => {
257
+ const headers = SHARED_HEADERS;
258
+ let body;
259
+ body = buildFormUrlencodedString({
260
+ ...se_DescribeTrustStoreAssociationsInput(input, context),
261
+ Action: "DescribeTrustStoreAssociations",
262
+ Version: "2015-12-01",
263
+ });
264
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
265
+ };
266
+ export const se_DescribeTrustStoreRevocationsCommand = async (input, context) => {
267
+ const headers = SHARED_HEADERS;
268
+ let body;
269
+ body = buildFormUrlencodedString({
270
+ ...se_DescribeTrustStoreRevocationsInput(input, context),
271
+ Action: "DescribeTrustStoreRevocations",
272
+ Version: "2015-12-01",
273
+ });
274
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
+ };
276
+ export const se_DescribeTrustStoresCommand = async (input, context) => {
277
+ const headers = SHARED_HEADERS;
278
+ let body;
279
+ body = buildFormUrlencodedString({
280
+ ...se_DescribeTrustStoresInput(input, context),
281
+ Action: "DescribeTrustStores",
282
+ Version: "2015-12-01",
283
+ });
284
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
285
+ };
286
+ export const se_GetTrustStoreCaCertificatesBundleCommand = async (input, context) => {
287
+ const headers = SHARED_HEADERS;
288
+ let body;
289
+ body = buildFormUrlencodedString({
290
+ ...se_GetTrustStoreCaCertificatesBundleInput(input, context),
291
+ Action: "GetTrustStoreCaCertificatesBundle",
292
+ Version: "2015-12-01",
293
+ });
294
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
+ };
296
+ export const se_GetTrustStoreRevocationContentCommand = async (input, context) => {
297
+ const headers = SHARED_HEADERS;
298
+ let body;
299
+ body = buildFormUrlencodedString({
300
+ ...se_GetTrustStoreRevocationContentInput(input, context),
301
+ Action: "GetTrustStoreRevocationContent",
302
+ Version: "2015-12-01",
303
+ });
304
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
+ };
226
306
  export const se_ModifyListenerCommand = async (input, context) => {
227
307
  const headers = SHARED_HEADERS;
228
308
  let body;
@@ -273,6 +353,16 @@ export const se_ModifyTargetGroupAttributesCommand = async (input, context) => {
273
353
  });
274
354
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
355
  };
356
+ export const se_ModifyTrustStoreCommand = async (input, context) => {
357
+ const headers = SHARED_HEADERS;
358
+ let body;
359
+ body = buildFormUrlencodedString({
360
+ ...se_ModifyTrustStoreInput(input, context),
361
+ Action: "ModifyTrustStore",
362
+ Version: "2015-12-01",
363
+ });
364
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
+ };
276
366
  export const se_RegisterTargetsCommand = async (input, context) => {
277
367
  const headers = SHARED_HEADERS;
278
368
  let body;
@@ -303,6 +393,16 @@ export const se_RemoveTagsCommand = async (input, context) => {
303
393
  });
304
394
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
395
  };
396
+ export const se_RemoveTrustStoreRevocationsCommand = async (input, context) => {
397
+ const headers = SHARED_HEADERS;
398
+ let body;
399
+ body = buildFormUrlencodedString({
400
+ ...se_RemoveTrustStoreRevocationsInput(input, context),
401
+ Action: "RemoveTrustStoreRevocations",
402
+ Version: "2015-12-01",
403
+ });
404
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
405
+ };
306
406
  export const se_SetIpAddressTypeCommand = async (input, context) => {
307
407
  const headers = SHARED_HEADERS;
308
408
  let body;
@@ -419,6 +519,50 @@ const de_AddTagsCommandError = async (output, context) => {
419
519
  case "TooManyTags":
420
520
  case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
421
521
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
522
+ case "TrustStoreNotFound":
523
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
524
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
525
+ default:
526
+ const parsedBody = parsedOutput.body;
527
+ return throwDefaultError({
528
+ output,
529
+ parsedBody: parsedBody.Error,
530
+ errorCode,
531
+ });
532
+ }
533
+ };
534
+ export const de_AddTrustStoreRevocationsCommand = async (output, context) => {
535
+ if (output.statusCode >= 300) {
536
+ return de_AddTrustStoreRevocationsCommandError(output, context);
537
+ }
538
+ const data = await parseBody(output.body, context);
539
+ let contents = {};
540
+ contents = de_AddTrustStoreRevocationsOutput(data.AddTrustStoreRevocationsResult, context);
541
+ const response = {
542
+ $metadata: deserializeMetadata(output),
543
+ ...contents,
544
+ };
545
+ return response;
546
+ };
547
+ const de_AddTrustStoreRevocationsCommandError = async (output, context) => {
548
+ const parsedOutput = {
549
+ ...output,
550
+ body: await parseErrorBody(output.body, context),
551
+ };
552
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
553
+ switch (errorCode) {
554
+ case "InvalidRevocationContent":
555
+ case "com.amazonaws.elasticloadbalancingv2#InvalidRevocationContentException":
556
+ throw await de_InvalidRevocationContentExceptionRes(parsedOutput, context);
557
+ case "RevocationContentNotFound":
558
+ case "com.amazonaws.elasticloadbalancingv2#RevocationContentNotFoundException":
559
+ throw await de_RevocationContentNotFoundExceptionRes(parsedOutput, context);
560
+ case "TooManyTrustStoreRevocationEntries":
561
+ case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoreRevocationEntriesException":
562
+ throw await de_TooManyTrustStoreRevocationEntriesExceptionRes(parsedOutput, context);
563
+ case "TrustStoreNotFound":
564
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
565
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
422
566
  default:
423
567
  const parsedBody = parsedOutput.body;
424
568
  return throwDefaultError({
@@ -499,6 +643,12 @@ const de_CreateListenerCommandError = async (output, context) => {
499
643
  case "TooManyUniqueTargetGroupsPerLoadBalancer":
500
644
  case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
501
645
  throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
646
+ case "TrustStoreNotFound":
647
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
648
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
649
+ case "TrustStoreNotReady":
650
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException":
651
+ throw await de_TrustStoreNotReadyExceptionRes(parsedOutput, context);
502
652
  case "UnsupportedProtocol":
503
653
  case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
504
654
  throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
@@ -694,6 +844,53 @@ const de_CreateTargetGroupCommandError = async (output, context) => {
694
844
  });
695
845
  }
696
846
  };
847
+ export const de_CreateTrustStoreCommand = async (output, context) => {
848
+ if (output.statusCode >= 300) {
849
+ return de_CreateTrustStoreCommandError(output, context);
850
+ }
851
+ const data = await parseBody(output.body, context);
852
+ let contents = {};
853
+ contents = de_CreateTrustStoreOutput(data.CreateTrustStoreResult, context);
854
+ const response = {
855
+ $metadata: deserializeMetadata(output),
856
+ ...contents,
857
+ };
858
+ return response;
859
+ };
860
+ const de_CreateTrustStoreCommandError = async (output, context) => {
861
+ const parsedOutput = {
862
+ ...output,
863
+ body: await parseErrorBody(output.body, context),
864
+ };
865
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
866
+ switch (errorCode) {
867
+ case "CaCertificatesBundleNotFound":
868
+ case "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException":
869
+ throw await de_CaCertificatesBundleNotFoundExceptionRes(parsedOutput, context);
870
+ case "DuplicateTagKeys":
871
+ case "com.amazonaws.elasticloadbalancingv2#DuplicateTagKeysException":
872
+ throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
873
+ case "DuplicateTrustStoreName":
874
+ case "com.amazonaws.elasticloadbalancingv2#DuplicateTrustStoreNameException":
875
+ throw await de_DuplicateTrustStoreNameExceptionRes(parsedOutput, context);
876
+ case "InvalidCaCertificatesBundle":
877
+ case "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException":
878
+ throw await de_InvalidCaCertificatesBundleExceptionRes(parsedOutput, context);
879
+ case "TooManyTags":
880
+ case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
881
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
882
+ case "TooManyTrustStores":
883
+ case "com.amazonaws.elasticloadbalancingv2#TooManyTrustStoresException":
884
+ throw await de_TooManyTrustStoresExceptionRes(parsedOutput, context);
885
+ default:
886
+ const parsedBody = parsedOutput.body;
887
+ return throwDefaultError({
888
+ output,
889
+ parsedBody: parsedBody.Error,
890
+ errorCode,
891
+ });
892
+ }
893
+ };
697
894
  export const de_DeleteListenerCommand = async (output, context) => {
698
895
  if (output.statusCode >= 300) {
699
896
  return de_DeleteListenerCommandError(output, context);
@@ -834,6 +1031,41 @@ const de_DeleteTargetGroupCommandError = async (output, context) => {
834
1031
  });
835
1032
  }
836
1033
  };
1034
+ export const de_DeleteTrustStoreCommand = async (output, context) => {
1035
+ if (output.statusCode >= 300) {
1036
+ return de_DeleteTrustStoreCommandError(output, context);
1037
+ }
1038
+ const data = await parseBody(output.body, context);
1039
+ let contents = {};
1040
+ contents = de_DeleteTrustStoreOutput(data.DeleteTrustStoreResult, context);
1041
+ const response = {
1042
+ $metadata: deserializeMetadata(output),
1043
+ ...contents,
1044
+ };
1045
+ return response;
1046
+ };
1047
+ const de_DeleteTrustStoreCommandError = async (output, context) => {
1048
+ const parsedOutput = {
1049
+ ...output,
1050
+ body: await parseErrorBody(output.body, context),
1051
+ };
1052
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1053
+ switch (errorCode) {
1054
+ case "TrustStoreInUse":
1055
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreInUseException":
1056
+ throw await de_TrustStoreInUseExceptionRes(parsedOutput, context);
1057
+ case "TrustStoreNotFound":
1058
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1059
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1060
+ default:
1061
+ const parsedBody = parsedOutput.body;
1062
+ return throwDefaultError({
1063
+ output,
1064
+ parsedBody: parsedBody.Error,
1065
+ errorCode,
1066
+ });
1067
+ }
1068
+ };
837
1069
  export const de_DeregisterTargetsCommand = async (output, context) => {
838
1070
  if (output.statusCode >= 300) {
839
1071
  return de_DeregisterTargetsCommandError(output, context);
@@ -1131,6 +1363,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
1131
1363
  case "TargetGroupNotFound":
1132
1364
  case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
1133
1365
  throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
1366
+ case "TrustStoreNotFound":
1367
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1368
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1134
1369
  default:
1135
1370
  const parsedBody = parsedOutput.body;
1136
1371
  return throwDefaultError({
@@ -1220,22 +1455,188 @@ export const de_DescribeTargetHealthCommand = async (output, context) => {
1220
1455
  };
1221
1456
  return response;
1222
1457
  };
1223
- const de_DescribeTargetHealthCommandError = async (output, context) => {
1458
+ const de_DescribeTargetHealthCommandError = async (output, context) => {
1459
+ const parsedOutput = {
1460
+ ...output,
1461
+ body: await parseErrorBody(output.body, context),
1462
+ };
1463
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1464
+ switch (errorCode) {
1465
+ case "HealthUnavailable":
1466
+ case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException":
1467
+ throw await de_HealthUnavailableExceptionRes(parsedOutput, context);
1468
+ case "InvalidTarget":
1469
+ case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
1470
+ throw await de_InvalidTargetExceptionRes(parsedOutput, context);
1471
+ case "TargetGroupNotFound":
1472
+ case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
1473
+ throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
1474
+ default:
1475
+ const parsedBody = parsedOutput.body;
1476
+ return throwDefaultError({
1477
+ output,
1478
+ parsedBody: parsedBody.Error,
1479
+ errorCode,
1480
+ });
1481
+ }
1482
+ };
1483
+ export const de_DescribeTrustStoreAssociationsCommand = async (output, context) => {
1484
+ if (output.statusCode >= 300) {
1485
+ return de_DescribeTrustStoreAssociationsCommandError(output, context);
1486
+ }
1487
+ const data = await parseBody(output.body, context);
1488
+ let contents = {};
1489
+ contents = de_DescribeTrustStoreAssociationsOutput(data.DescribeTrustStoreAssociationsResult, context);
1490
+ const response = {
1491
+ $metadata: deserializeMetadata(output),
1492
+ ...contents,
1493
+ };
1494
+ return response;
1495
+ };
1496
+ const de_DescribeTrustStoreAssociationsCommandError = async (output, context) => {
1497
+ const parsedOutput = {
1498
+ ...output,
1499
+ body: await parseErrorBody(output.body, context),
1500
+ };
1501
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1502
+ switch (errorCode) {
1503
+ case "TrustStoreNotFound":
1504
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1505
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1506
+ default:
1507
+ const parsedBody = parsedOutput.body;
1508
+ return throwDefaultError({
1509
+ output,
1510
+ parsedBody: parsedBody.Error,
1511
+ errorCode,
1512
+ });
1513
+ }
1514
+ };
1515
+ export const de_DescribeTrustStoreRevocationsCommand = async (output, context) => {
1516
+ if (output.statusCode >= 300) {
1517
+ return de_DescribeTrustStoreRevocationsCommandError(output, context);
1518
+ }
1519
+ const data = await parseBody(output.body, context);
1520
+ let contents = {};
1521
+ contents = de_DescribeTrustStoreRevocationsOutput(data.DescribeTrustStoreRevocationsResult, context);
1522
+ const response = {
1523
+ $metadata: deserializeMetadata(output),
1524
+ ...contents,
1525
+ };
1526
+ return response;
1527
+ };
1528
+ const de_DescribeTrustStoreRevocationsCommandError = async (output, context) => {
1529
+ const parsedOutput = {
1530
+ ...output,
1531
+ body: await parseErrorBody(output.body, context),
1532
+ };
1533
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1534
+ switch (errorCode) {
1535
+ case "RevocationIdNotFound":
1536
+ case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
1537
+ throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
1538
+ case "TrustStoreNotFound":
1539
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1540
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1541
+ default:
1542
+ const parsedBody = parsedOutput.body;
1543
+ return throwDefaultError({
1544
+ output,
1545
+ parsedBody: parsedBody.Error,
1546
+ errorCode,
1547
+ });
1548
+ }
1549
+ };
1550
+ export const de_DescribeTrustStoresCommand = async (output, context) => {
1551
+ if (output.statusCode >= 300) {
1552
+ return de_DescribeTrustStoresCommandError(output, context);
1553
+ }
1554
+ const data = await parseBody(output.body, context);
1555
+ let contents = {};
1556
+ contents = de_DescribeTrustStoresOutput(data.DescribeTrustStoresResult, context);
1557
+ const response = {
1558
+ $metadata: deserializeMetadata(output),
1559
+ ...contents,
1560
+ };
1561
+ return response;
1562
+ };
1563
+ const de_DescribeTrustStoresCommandError = async (output, context) => {
1564
+ const parsedOutput = {
1565
+ ...output,
1566
+ body: await parseErrorBody(output.body, context),
1567
+ };
1568
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1569
+ switch (errorCode) {
1570
+ case "TrustStoreNotFound":
1571
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1572
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1573
+ default:
1574
+ const parsedBody = parsedOutput.body;
1575
+ return throwDefaultError({
1576
+ output,
1577
+ parsedBody: parsedBody.Error,
1578
+ errorCode,
1579
+ });
1580
+ }
1581
+ };
1582
+ export const de_GetTrustStoreCaCertificatesBundleCommand = async (output, context) => {
1583
+ if (output.statusCode >= 300) {
1584
+ return de_GetTrustStoreCaCertificatesBundleCommandError(output, context);
1585
+ }
1586
+ const data = await parseBody(output.body, context);
1587
+ let contents = {};
1588
+ contents = de_GetTrustStoreCaCertificatesBundleOutput(data.GetTrustStoreCaCertificatesBundleResult, context);
1589
+ const response = {
1590
+ $metadata: deserializeMetadata(output),
1591
+ ...contents,
1592
+ };
1593
+ return response;
1594
+ };
1595
+ const de_GetTrustStoreCaCertificatesBundleCommandError = async (output, context) => {
1596
+ const parsedOutput = {
1597
+ ...output,
1598
+ body: await parseErrorBody(output.body, context),
1599
+ };
1600
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1601
+ switch (errorCode) {
1602
+ case "TrustStoreNotFound":
1603
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1604
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1605
+ default:
1606
+ const parsedBody = parsedOutput.body;
1607
+ return throwDefaultError({
1608
+ output,
1609
+ parsedBody: parsedBody.Error,
1610
+ errorCode,
1611
+ });
1612
+ }
1613
+ };
1614
+ export const de_GetTrustStoreRevocationContentCommand = async (output, context) => {
1615
+ if (output.statusCode >= 300) {
1616
+ return de_GetTrustStoreRevocationContentCommandError(output, context);
1617
+ }
1618
+ const data = await parseBody(output.body, context);
1619
+ let contents = {};
1620
+ contents = de_GetTrustStoreRevocationContentOutput(data.GetTrustStoreRevocationContentResult, context);
1621
+ const response = {
1622
+ $metadata: deserializeMetadata(output),
1623
+ ...contents,
1624
+ };
1625
+ return response;
1626
+ };
1627
+ const de_GetTrustStoreRevocationContentCommandError = async (output, context) => {
1224
1628
  const parsedOutput = {
1225
1629
  ...output,
1226
1630
  body: await parseErrorBody(output.body, context),
1227
1631
  };
1228
1632
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1229
1633
  switch (errorCode) {
1230
- case "HealthUnavailable":
1231
- case "com.amazonaws.elasticloadbalancingv2#HealthUnavailableException":
1232
- throw await de_HealthUnavailableExceptionRes(parsedOutput, context);
1233
- case "InvalidTarget":
1234
- case "com.amazonaws.elasticloadbalancingv2#InvalidTargetException":
1235
- throw await de_InvalidTargetExceptionRes(parsedOutput, context);
1236
- case "TargetGroupNotFound":
1237
- case "com.amazonaws.elasticloadbalancingv2#TargetGroupNotFoundException":
1238
- throw await de_TargetGroupNotFoundExceptionRes(parsedOutput, context);
1634
+ case "RevocationIdNotFound":
1635
+ case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
1636
+ throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
1637
+ case "TrustStoreNotFound":
1638
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1639
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1239
1640
  default:
1240
1641
  const parsedBody = parsedOutput.body;
1241
1642
  return throwDefaultError({
@@ -1313,6 +1714,12 @@ const de_ModifyListenerCommandError = async (output, context) => {
1313
1714
  case "TooManyUniqueTargetGroupsPerLoadBalancer":
1314
1715
  case "com.amazonaws.elasticloadbalancingv2#TooManyUniqueTargetGroupsPerLoadBalancerException":
1315
1716
  throw await de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes(parsedOutput, context);
1717
+ case "TrustStoreNotFound":
1718
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1719
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1720
+ case "TrustStoreNotReady":
1721
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotReadyException":
1722
+ throw await de_TrustStoreNotReadyExceptionRes(parsedOutput, context);
1316
1723
  case "UnsupportedProtocol":
1317
1724
  case "com.amazonaws.elasticloadbalancingv2#UnsupportedProtocolException":
1318
1725
  throw await de_UnsupportedProtocolExceptionRes(parsedOutput, context);
@@ -1492,6 +1899,44 @@ const de_ModifyTargetGroupAttributesCommandError = async (output, context) => {
1492
1899
  });
1493
1900
  }
1494
1901
  };
1902
+ export const de_ModifyTrustStoreCommand = async (output, context) => {
1903
+ if (output.statusCode >= 300) {
1904
+ return de_ModifyTrustStoreCommandError(output, context);
1905
+ }
1906
+ const data = await parseBody(output.body, context);
1907
+ let contents = {};
1908
+ contents = de_ModifyTrustStoreOutput(data.ModifyTrustStoreResult, context);
1909
+ const response = {
1910
+ $metadata: deserializeMetadata(output),
1911
+ ...contents,
1912
+ };
1913
+ return response;
1914
+ };
1915
+ const de_ModifyTrustStoreCommandError = async (output, context) => {
1916
+ const parsedOutput = {
1917
+ ...output,
1918
+ body: await parseErrorBody(output.body, context),
1919
+ };
1920
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
1921
+ switch (errorCode) {
1922
+ case "CaCertificatesBundleNotFound":
1923
+ case "com.amazonaws.elasticloadbalancingv2#CaCertificatesBundleNotFoundException":
1924
+ throw await de_CaCertificatesBundleNotFoundExceptionRes(parsedOutput, context);
1925
+ case "InvalidCaCertificatesBundle":
1926
+ case "com.amazonaws.elasticloadbalancingv2#InvalidCaCertificatesBundleException":
1927
+ throw await de_InvalidCaCertificatesBundleExceptionRes(parsedOutput, context);
1928
+ case "TrustStoreNotFound":
1929
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
1930
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1931
+ default:
1932
+ const parsedBody = parsedOutput.body;
1933
+ return throwDefaultError({
1934
+ output,
1935
+ parsedBody: parsedBody.Error,
1936
+ errorCode,
1937
+ });
1938
+ }
1939
+ };
1495
1940
  export const de_RegisterTargetsCommand = async (output, context) => {
1496
1941
  if (output.statusCode >= 300) {
1497
1942
  return de_RegisterTargetsCommandError(output, context);
@@ -1603,6 +2048,44 @@ const de_RemoveTagsCommandError = async (output, context) => {
1603
2048
  case "TooManyTags":
1604
2049
  case "com.amazonaws.elasticloadbalancingv2#TooManyTagsException":
1605
2050
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2051
+ case "TrustStoreNotFound":
2052
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
2053
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
2054
+ default:
2055
+ const parsedBody = parsedOutput.body;
2056
+ return throwDefaultError({
2057
+ output,
2058
+ parsedBody: parsedBody.Error,
2059
+ errorCode,
2060
+ });
2061
+ }
2062
+ };
2063
+ export const de_RemoveTrustStoreRevocationsCommand = async (output, context) => {
2064
+ if (output.statusCode >= 300) {
2065
+ return de_RemoveTrustStoreRevocationsCommandError(output, context);
2066
+ }
2067
+ const data = await parseBody(output.body, context);
2068
+ let contents = {};
2069
+ contents = de_RemoveTrustStoreRevocationsOutput(data.RemoveTrustStoreRevocationsResult, context);
2070
+ const response = {
2071
+ $metadata: deserializeMetadata(output),
2072
+ ...contents,
2073
+ };
2074
+ return response;
2075
+ };
2076
+ const de_RemoveTrustStoreRevocationsCommandError = async (output, context) => {
2077
+ const parsedOutput = {
2078
+ ...output,
2079
+ body: await parseErrorBody(output.body, context),
2080
+ };
2081
+ const errorCode = loadQueryErrorCode(output, parsedOutput.body);
2082
+ switch (errorCode) {
2083
+ case "RevocationIdNotFound":
2084
+ case "com.amazonaws.elasticloadbalancingv2#RevocationIdNotFoundException":
2085
+ throw await de_RevocationIdNotFoundExceptionRes(parsedOutput, context);
2086
+ case "TrustStoreNotFound":
2087
+ case "com.amazonaws.elasticloadbalancingv2#TrustStoreNotFoundException":
2088
+ throw await de_TrustStoreNotFoundExceptionRes(parsedOutput, context);
1606
2089
  default:
1607
2090
  const parsedBody = parsedOutput.body;
1608
2091
  return throwDefaultError({
@@ -1800,6 +2283,15 @@ const de_AvailabilityZoneNotSupportedExceptionRes = async (parsedOutput, context
1800
2283
  });
1801
2284
  return __decorateServiceException(exception, body);
1802
2285
  };
2286
+ const de_CaCertificatesBundleNotFoundExceptionRes = async (parsedOutput, context) => {
2287
+ const body = parsedOutput.body;
2288
+ const deserialized = de_CaCertificatesBundleNotFoundException(body.Error, context);
2289
+ const exception = new CaCertificatesBundleNotFoundException({
2290
+ $metadata: deserializeMetadata(parsedOutput),
2291
+ ...deserialized,
2292
+ });
2293
+ return __decorateServiceException(exception, body);
2294
+ };
1803
2295
  const de_CertificateNotFoundExceptionRes = async (parsedOutput, context) => {
1804
2296
  const body = parsedOutput.body;
1805
2297
  const deserialized = de_CertificateNotFoundException(body.Error, context);
@@ -1845,6 +2337,15 @@ const de_DuplicateTargetGroupNameExceptionRes = async (parsedOutput, context) =>
1845
2337
  });
1846
2338
  return __decorateServiceException(exception, body);
1847
2339
  };
2340
+ const de_DuplicateTrustStoreNameExceptionRes = async (parsedOutput, context) => {
2341
+ const body = parsedOutput.body;
2342
+ const deserialized = de_DuplicateTrustStoreNameException(body.Error, context);
2343
+ const exception = new DuplicateTrustStoreNameException({
2344
+ $metadata: deserializeMetadata(parsedOutput),
2345
+ ...deserialized,
2346
+ });
2347
+ return __decorateServiceException(exception, body);
2348
+ };
1848
2349
  const de_HealthUnavailableExceptionRes = async (parsedOutput, context) => {
1849
2350
  const body = parsedOutput.body;
1850
2351
  const deserialized = de_HealthUnavailableException(body.Error, context);
@@ -1863,6 +2364,15 @@ const de_IncompatibleProtocolsExceptionRes = async (parsedOutput, context) => {
1863
2364
  });
1864
2365
  return __decorateServiceException(exception, body);
1865
2366
  };
2367
+ const de_InvalidCaCertificatesBundleExceptionRes = async (parsedOutput, context) => {
2368
+ const body = parsedOutput.body;
2369
+ const deserialized = de_InvalidCaCertificatesBundleException(body.Error, context);
2370
+ const exception = new InvalidCaCertificatesBundleException({
2371
+ $metadata: deserializeMetadata(parsedOutput),
2372
+ ...deserialized,
2373
+ });
2374
+ return __decorateServiceException(exception, body);
2375
+ };
1866
2376
  const de_InvalidConfigurationRequestExceptionRes = async (parsedOutput, context) => {
1867
2377
  const body = parsedOutput.body;
1868
2378
  const deserialized = de_InvalidConfigurationRequestException(body.Error, context);
@@ -1881,6 +2391,15 @@ const de_InvalidLoadBalancerActionExceptionRes = async (parsedOutput, context) =
1881
2391
  });
1882
2392
  return __decorateServiceException(exception, body);
1883
2393
  };
2394
+ const de_InvalidRevocationContentExceptionRes = async (parsedOutput, context) => {
2395
+ const body = parsedOutput.body;
2396
+ const deserialized = de_InvalidRevocationContentException(body.Error, context);
2397
+ const exception = new InvalidRevocationContentException({
2398
+ $metadata: deserializeMetadata(parsedOutput),
2399
+ ...deserialized,
2400
+ });
2401
+ return __decorateServiceException(exception, body);
2402
+ };
1884
2403
  const de_InvalidSchemeExceptionRes = async (parsedOutput, context) => {
1885
2404
  const body = parsedOutput.body;
1886
2405
  const deserialized = de_InvalidSchemeException(body.Error, context);
@@ -1962,6 +2481,24 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1962
2481
  });
1963
2482
  return __decorateServiceException(exception, body);
1964
2483
  };
2484
+ const de_RevocationContentNotFoundExceptionRes = async (parsedOutput, context) => {
2485
+ const body = parsedOutput.body;
2486
+ const deserialized = de_RevocationContentNotFoundException(body.Error, context);
2487
+ const exception = new RevocationContentNotFoundException({
2488
+ $metadata: deserializeMetadata(parsedOutput),
2489
+ ...deserialized,
2490
+ });
2491
+ return __decorateServiceException(exception, body);
2492
+ };
2493
+ const de_RevocationIdNotFoundExceptionRes = async (parsedOutput, context) => {
2494
+ const body = parsedOutput.body;
2495
+ const deserialized = de_RevocationIdNotFoundException(body.Error, context);
2496
+ const exception = new RevocationIdNotFoundException({
2497
+ $metadata: deserializeMetadata(parsedOutput),
2498
+ ...deserialized,
2499
+ });
2500
+ return __decorateServiceException(exception, body);
2501
+ };
1965
2502
  const de_RuleNotFoundExceptionRes = async (parsedOutput, context) => {
1966
2503
  const body = parsedOutput.body;
1967
2504
  const deserialized = de_RuleNotFoundException(body.Error, context);
@@ -2088,6 +2625,24 @@ const de_TooManyTargetsExceptionRes = async (parsedOutput, context) => {
2088
2625
  });
2089
2626
  return __decorateServiceException(exception, body);
2090
2627
  };
2628
+ const de_TooManyTrustStoreRevocationEntriesExceptionRes = async (parsedOutput, context) => {
2629
+ const body = parsedOutput.body;
2630
+ const deserialized = de_TooManyTrustStoreRevocationEntriesException(body.Error, context);
2631
+ const exception = new TooManyTrustStoreRevocationEntriesException({
2632
+ $metadata: deserializeMetadata(parsedOutput),
2633
+ ...deserialized,
2634
+ });
2635
+ return __decorateServiceException(exception, body);
2636
+ };
2637
+ const de_TooManyTrustStoresExceptionRes = async (parsedOutput, context) => {
2638
+ const body = parsedOutput.body;
2639
+ const deserialized = de_TooManyTrustStoresException(body.Error, context);
2640
+ const exception = new TooManyTrustStoresException({
2641
+ $metadata: deserializeMetadata(parsedOutput),
2642
+ ...deserialized,
2643
+ });
2644
+ return __decorateServiceException(exception, body);
2645
+ };
2091
2646
  const de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes = async (parsedOutput, context) => {
2092
2647
  const body = parsedOutput.body;
2093
2648
  const deserialized = de_TooManyUniqueTargetGroupsPerLoadBalancerException(body.Error, context);
@@ -2097,6 +2652,33 @@ const de_TooManyUniqueTargetGroupsPerLoadBalancerExceptionRes = async (parsedOut
2097
2652
  });
2098
2653
  return __decorateServiceException(exception, body);
2099
2654
  };
2655
+ const de_TrustStoreInUseExceptionRes = async (parsedOutput, context) => {
2656
+ const body = parsedOutput.body;
2657
+ const deserialized = de_TrustStoreInUseException(body.Error, context);
2658
+ const exception = new TrustStoreInUseException({
2659
+ $metadata: deserializeMetadata(parsedOutput),
2660
+ ...deserialized,
2661
+ });
2662
+ return __decorateServiceException(exception, body);
2663
+ };
2664
+ const de_TrustStoreNotFoundExceptionRes = async (parsedOutput, context) => {
2665
+ const body = parsedOutput.body;
2666
+ const deserialized = de_TrustStoreNotFoundException(body.Error, context);
2667
+ const exception = new TrustStoreNotFoundException({
2668
+ $metadata: deserializeMetadata(parsedOutput),
2669
+ ...deserialized,
2670
+ });
2671
+ return __decorateServiceException(exception, body);
2672
+ };
2673
+ const de_TrustStoreNotReadyExceptionRes = async (parsedOutput, context) => {
2674
+ const body = parsedOutput.body;
2675
+ const deserialized = de_TrustStoreNotReadyException(body.Error, context);
2676
+ const exception = new TrustStoreNotReadyException({
2677
+ $metadata: deserializeMetadata(parsedOutput),
2678
+ ...deserialized,
2679
+ });
2680
+ return __decorateServiceException(exception, body);
2681
+ };
2100
2682
  const de_UnsupportedProtocolExceptionRes = async (parsedOutput, context) => {
2101
2683
  const body = parsedOutput.body;
2102
2684
  const deserialized = de_UnsupportedProtocolException(body.Error, context);
@@ -2210,6 +2792,23 @@ const se_AddTagsInput = (input, context) => {
2210
2792
  }
2211
2793
  return entries;
2212
2794
  };
2795
+ const se_AddTrustStoreRevocationsInput = (input, context) => {
2796
+ const entries = {};
2797
+ if (input.TrustStoreArn != null) {
2798
+ entries["TrustStoreArn"] = input.TrustStoreArn;
2799
+ }
2800
+ if (input.RevocationContents != null) {
2801
+ const memberEntries = se_RevocationContents(input.RevocationContents, context);
2802
+ if (input.RevocationContents?.length === 0) {
2803
+ entries.RevocationContents = [];
2804
+ }
2805
+ Object.entries(memberEntries).forEach(([key, value]) => {
2806
+ const loc = `RevocationContents.${key}`;
2807
+ entries[loc] = value;
2808
+ });
2809
+ }
2810
+ return entries;
2811
+ };
2213
2812
  const se_AlpnPolicyName = (input, context) => {
2214
2813
  const entries = {};
2215
2814
  let counter = 1;
@@ -2401,6 +3000,13 @@ const se_CreateListenerInput = (input, context) => {
2401
3000
  entries[loc] = value;
2402
3001
  });
2403
3002
  }
3003
+ if (input.MutualAuthentication != null) {
3004
+ const memberEntries = se_MutualAuthenticationAttributes(input.MutualAuthentication, context);
3005
+ Object.entries(memberEntries).forEach(([key, value]) => {
3006
+ const loc = `MutualAuthentication.${key}`;
3007
+ entries[loc] = value;
3008
+ });
3009
+ }
2404
3010
  return entries;
2405
3011
  };
2406
3012
  const se_CreateLoadBalancerInput = (input, context) => {
@@ -2568,6 +3174,32 @@ const se_CreateTargetGroupInput = (input, context) => {
2568
3174
  }
2569
3175
  return entries;
2570
3176
  };
3177
+ const se_CreateTrustStoreInput = (input, context) => {
3178
+ const entries = {};
3179
+ if (input.Name != null) {
3180
+ entries["Name"] = input.Name;
3181
+ }
3182
+ if (input.CaCertificatesBundleS3Bucket != null) {
3183
+ entries["CaCertificatesBundleS3Bucket"] = input.CaCertificatesBundleS3Bucket;
3184
+ }
3185
+ if (input.CaCertificatesBundleS3Key != null) {
3186
+ entries["CaCertificatesBundleS3Key"] = input.CaCertificatesBundleS3Key;
3187
+ }
3188
+ if (input.CaCertificatesBundleS3ObjectVersion != null) {
3189
+ entries["CaCertificatesBundleS3ObjectVersion"] = input.CaCertificatesBundleS3ObjectVersion;
3190
+ }
3191
+ if (input.Tags != null) {
3192
+ const memberEntries = se_TagList(input.Tags, context);
3193
+ if (input.Tags?.length === 0) {
3194
+ entries.Tags = [];
3195
+ }
3196
+ Object.entries(memberEntries).forEach(([key, value]) => {
3197
+ const loc = `Tags.${key}`;
3198
+ entries[loc] = value;
3199
+ });
3200
+ }
3201
+ return entries;
3202
+ };
2571
3203
  const se_DeleteListenerInput = (input, context) => {
2572
3204
  const entries = {};
2573
3205
  if (input.ListenerArn != null) {
@@ -2596,6 +3228,13 @@ const se_DeleteTargetGroupInput = (input, context) => {
2596
3228
  }
2597
3229
  return entries;
2598
3230
  };
3231
+ const se_DeleteTrustStoreInput = (input, context) => {
3232
+ const entries = {};
3233
+ if (input.TrustStoreArn != null) {
3234
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3235
+ }
3236
+ return entries;
3237
+ };
2599
3238
  const se_DeregisterTargetsInput = (input, context) => {
2600
3239
  const entries = {};
2601
3240
  if (input.TargetGroupArn != null) {
@@ -2811,6 +3450,82 @@ const se_DescribeTargetHealthInput = (input, context) => {
2811
3450
  entries[loc] = value;
2812
3451
  });
2813
3452
  }
3453
+ if (input.Include != null) {
3454
+ const memberEntries = se_ListOfDescribeTargetHealthIncludeOptions(input.Include, context);
3455
+ if (input.Include?.length === 0) {
3456
+ entries.Include = [];
3457
+ }
3458
+ Object.entries(memberEntries).forEach(([key, value]) => {
3459
+ const loc = `Include.${key}`;
3460
+ entries[loc] = value;
3461
+ });
3462
+ }
3463
+ return entries;
3464
+ };
3465
+ const se_DescribeTrustStoreAssociationsInput = (input, context) => {
3466
+ const entries = {};
3467
+ if (input.TrustStoreArn != null) {
3468
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3469
+ }
3470
+ if (input.Marker != null) {
3471
+ entries["Marker"] = input.Marker;
3472
+ }
3473
+ if (input.PageSize != null) {
3474
+ entries["PageSize"] = input.PageSize;
3475
+ }
3476
+ return entries;
3477
+ };
3478
+ const se_DescribeTrustStoreRevocationsInput = (input, context) => {
3479
+ const entries = {};
3480
+ if (input.TrustStoreArn != null) {
3481
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3482
+ }
3483
+ if (input.RevocationIds != null) {
3484
+ const memberEntries = se_RevocationIds(input.RevocationIds, context);
3485
+ if (input.RevocationIds?.length === 0) {
3486
+ entries.RevocationIds = [];
3487
+ }
3488
+ Object.entries(memberEntries).forEach(([key, value]) => {
3489
+ const loc = `RevocationIds.${key}`;
3490
+ entries[loc] = value;
3491
+ });
3492
+ }
3493
+ if (input.Marker != null) {
3494
+ entries["Marker"] = input.Marker;
3495
+ }
3496
+ if (input.PageSize != null) {
3497
+ entries["PageSize"] = input.PageSize;
3498
+ }
3499
+ return entries;
3500
+ };
3501
+ const se_DescribeTrustStoresInput = (input, context) => {
3502
+ const entries = {};
3503
+ if (input.TrustStoreArns != null) {
3504
+ const memberEntries = se_TrustStoreArns(input.TrustStoreArns, context);
3505
+ if (input.TrustStoreArns?.length === 0) {
3506
+ entries.TrustStoreArns = [];
3507
+ }
3508
+ Object.entries(memberEntries).forEach(([key, value]) => {
3509
+ const loc = `TrustStoreArns.${key}`;
3510
+ entries[loc] = value;
3511
+ });
3512
+ }
3513
+ if (input.Names != null) {
3514
+ const memberEntries = se_TrustStoreNames(input.Names, context);
3515
+ if (input.Names?.length === 0) {
3516
+ entries.Names = [];
3517
+ }
3518
+ Object.entries(memberEntries).forEach(([key, value]) => {
3519
+ const loc = `Names.${key}`;
3520
+ entries[loc] = value;
3521
+ });
3522
+ }
3523
+ if (input.Marker != null) {
3524
+ entries["Marker"] = input.Marker;
3525
+ }
3526
+ if (input.PageSize != null) {
3527
+ entries["PageSize"] = input.PageSize;
3528
+ }
2814
3529
  return entries;
2815
3530
  };
2816
3531
  const se_FixedResponseActionConfig = (input, context) => {
@@ -2847,6 +3562,23 @@ const se_ForwardActionConfig = (input, context) => {
2847
3562
  }
2848
3563
  return entries;
2849
3564
  };
3565
+ const se_GetTrustStoreCaCertificatesBundleInput = (input, context) => {
3566
+ const entries = {};
3567
+ if (input.TrustStoreArn != null) {
3568
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3569
+ }
3570
+ return entries;
3571
+ };
3572
+ const se_GetTrustStoreRevocationContentInput = (input, context) => {
3573
+ const entries = {};
3574
+ if (input.TrustStoreArn != null) {
3575
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3576
+ }
3577
+ if (input.RevocationId != null) {
3578
+ entries["RevocationId"] = input.RevocationId;
3579
+ }
3580
+ return entries;
3581
+ };
2850
3582
  const se_HostHeaderConditionConfig = (input, context) => {
2851
3583
  const entries = {};
2852
3584
  if (input.Values != null) {
@@ -2904,6 +3636,18 @@ const se_ListenerArns = (input, context) => {
2904
3636
  }
2905
3637
  return entries;
2906
3638
  };
3639
+ const se_ListOfDescribeTargetHealthIncludeOptions = (input, context) => {
3640
+ const entries = {};
3641
+ let counter = 1;
3642
+ for (const entry of input) {
3643
+ if (entry === null) {
3644
+ continue;
3645
+ }
3646
+ entries[`member.${counter}`] = entry;
3647
+ counter++;
3648
+ }
3649
+ return entries;
3650
+ };
2907
3651
  const se_ListOfString = (input, context) => {
2908
3652
  const entries = {};
2909
3653
  let counter = 1;
@@ -3019,6 +3763,13 @@ const se_ModifyListenerInput = (input, context) => {
3019
3763
  entries[loc] = value;
3020
3764
  });
3021
3765
  }
3766
+ if (input.MutualAuthentication != null) {
3767
+ const memberEntries = se_MutualAuthenticationAttributes(input.MutualAuthentication, context);
3768
+ Object.entries(memberEntries).forEach(([key, value]) => {
3769
+ const loc = `MutualAuthentication.${key}`;
3770
+ entries[loc] = value;
3771
+ });
3772
+ }
3022
3773
  return entries;
3023
3774
  };
3024
3775
  const se_ModifyLoadBalancerAttributesInput = (input, context) => {
@@ -3108,15 +3859,44 @@ const se_ModifyTargetGroupInput = (input, context) => {
3108
3859
  if (input.HealthyThresholdCount != null) {
3109
3860
  entries["HealthyThresholdCount"] = input.HealthyThresholdCount;
3110
3861
  }
3111
- if (input.UnhealthyThresholdCount != null) {
3112
- entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount;
3862
+ if (input.UnhealthyThresholdCount != null) {
3863
+ entries["UnhealthyThresholdCount"] = input.UnhealthyThresholdCount;
3864
+ }
3865
+ if (input.Matcher != null) {
3866
+ const memberEntries = se_Matcher(input.Matcher, context);
3867
+ Object.entries(memberEntries).forEach(([key, value]) => {
3868
+ const loc = `Matcher.${key}`;
3869
+ entries[loc] = value;
3870
+ });
3871
+ }
3872
+ return entries;
3873
+ };
3874
+ const se_ModifyTrustStoreInput = (input, context) => {
3875
+ const entries = {};
3876
+ if (input.TrustStoreArn != null) {
3877
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3878
+ }
3879
+ if (input.CaCertificatesBundleS3Bucket != null) {
3880
+ entries["CaCertificatesBundleS3Bucket"] = input.CaCertificatesBundleS3Bucket;
3881
+ }
3882
+ if (input.CaCertificatesBundleS3Key != null) {
3883
+ entries["CaCertificatesBundleS3Key"] = input.CaCertificatesBundleS3Key;
3884
+ }
3885
+ if (input.CaCertificatesBundleS3ObjectVersion != null) {
3886
+ entries["CaCertificatesBundleS3ObjectVersion"] = input.CaCertificatesBundleS3ObjectVersion;
3887
+ }
3888
+ return entries;
3889
+ };
3890
+ const se_MutualAuthenticationAttributes = (input, context) => {
3891
+ const entries = {};
3892
+ if (input.Mode != null) {
3893
+ entries["Mode"] = input.Mode;
3113
3894
  }
3114
- if (input.Matcher != null) {
3115
- const memberEntries = se_Matcher(input.Matcher, context);
3116
- Object.entries(memberEntries).forEach(([key, value]) => {
3117
- const loc = `Matcher.${key}`;
3118
- entries[loc] = value;
3119
- });
3895
+ if (input.TrustStoreArn != null) {
3896
+ entries["TrustStoreArn"] = input.TrustStoreArn;
3897
+ }
3898
+ if (input.IgnoreClientCertificateExpiry != null) {
3899
+ entries["IgnoreClientCertificateExpiry"] = input.IgnoreClientCertificateExpiry;
3120
3900
  }
3121
3901
  return entries;
3122
3902
  };
@@ -3253,6 +4033,23 @@ const se_RemoveTagsInput = (input, context) => {
3253
4033
  }
3254
4034
  return entries;
3255
4035
  };
4036
+ const se_RemoveTrustStoreRevocationsInput = (input, context) => {
4037
+ const entries = {};
4038
+ if (input.TrustStoreArn != null) {
4039
+ entries["TrustStoreArn"] = input.TrustStoreArn;
4040
+ }
4041
+ if (input.RevocationIds != null) {
4042
+ const memberEntries = se_RevocationIds(input.RevocationIds, context);
4043
+ if (input.RevocationIds?.length === 0) {
4044
+ entries.RevocationIds = [];
4045
+ }
4046
+ Object.entries(memberEntries).forEach(([key, value]) => {
4047
+ const loc = `RevocationIds.${key}`;
4048
+ entries[loc] = value;
4049
+ });
4050
+ }
4051
+ return entries;
4052
+ };
3256
4053
  const se_ResourceArns = (input, context) => {
3257
4054
  const entries = {};
3258
4055
  let counter = 1;
@@ -3265,6 +4062,49 @@ const se_ResourceArns = (input, context) => {
3265
4062
  }
3266
4063
  return entries;
3267
4064
  };
4065
+ const se_RevocationContent = (input, context) => {
4066
+ const entries = {};
4067
+ if (input.S3Bucket != null) {
4068
+ entries["S3Bucket"] = input.S3Bucket;
4069
+ }
4070
+ if (input.S3Key != null) {
4071
+ entries["S3Key"] = input.S3Key;
4072
+ }
4073
+ if (input.S3ObjectVersion != null) {
4074
+ entries["S3ObjectVersion"] = input.S3ObjectVersion;
4075
+ }
4076
+ if (input.RevocationType != null) {
4077
+ entries["RevocationType"] = input.RevocationType;
4078
+ }
4079
+ return entries;
4080
+ };
4081
+ const se_RevocationContents = (input, context) => {
4082
+ const entries = {};
4083
+ let counter = 1;
4084
+ for (const entry of input) {
4085
+ if (entry === null) {
4086
+ continue;
4087
+ }
4088
+ const memberEntries = se_RevocationContent(entry, context);
4089
+ Object.entries(memberEntries).forEach(([key, value]) => {
4090
+ entries[`member.${counter}.${key}`] = value;
4091
+ });
4092
+ counter++;
4093
+ }
4094
+ return entries;
4095
+ };
4096
+ const se_RevocationIds = (input, context) => {
4097
+ const entries = {};
4098
+ let counter = 1;
4099
+ for (const entry of input) {
4100
+ if (entry === null) {
4101
+ continue;
4102
+ }
4103
+ entries[`member.${counter}`] = entry;
4104
+ counter++;
4105
+ }
4106
+ return entries;
4107
+ };
3268
4108
  const se_RuleArns = (input, context) => {
3269
4109
  const entries = {};
3270
4110
  let counter = 1;
@@ -3681,6 +4521,30 @@ const se_TargetGroupTuple = (input, context) => {
3681
4521
  }
3682
4522
  return entries;
3683
4523
  };
4524
+ const se_TrustStoreArns = (input, context) => {
4525
+ const entries = {};
4526
+ let counter = 1;
4527
+ for (const entry of input) {
4528
+ if (entry === null) {
4529
+ continue;
4530
+ }
4531
+ entries[`member.${counter}`] = entry;
4532
+ counter++;
4533
+ }
4534
+ return entries;
4535
+ };
4536
+ const se_TrustStoreNames = (input, context) => {
4537
+ const entries = {};
4538
+ let counter = 1;
4539
+ for (const entry of input) {
4540
+ if (entry === null) {
4541
+ continue;
4542
+ }
4543
+ entries[`member.${counter}`] = entry;
4544
+ counter++;
4545
+ }
4546
+ return entries;
4547
+ };
3684
4548
  const de_Action = (output, context) => {
3685
4549
  const contents = {};
3686
4550
  if (output["Type"] !== undefined) {
@@ -3730,6 +4594,16 @@ const de_AddTagsOutput = (output, context) => {
3730
4594
  const contents = {};
3731
4595
  return contents;
3732
4596
  };
4597
+ const de_AddTrustStoreRevocationsOutput = (output, context) => {
4598
+ const contents = {};
4599
+ if (output.TrustStoreRevocations === "") {
4600
+ contents.TrustStoreRevocations = [];
4601
+ }
4602
+ else if (output["TrustStoreRevocations"] !== undefined && output["TrustStoreRevocations"]["member"] !== undefined) {
4603
+ contents.TrustStoreRevocations = de_TrustStoreRevocations(__getArrayIfSingleItem(output["TrustStoreRevocations"]["member"]), context);
4604
+ }
4605
+ return contents;
4606
+ };
3733
4607
  const de_AllocationIdNotFoundException = (output, context) => {
3734
4608
  const contents = {};
3735
4609
  if (output["Message"] !== undefined) {
@@ -3751,6 +4625,16 @@ const de_ALPNPolicyNotSupportedException = (output, context) => {
3751
4625
  }
3752
4626
  return contents;
3753
4627
  };
4628
+ const de_AnomalyDetection = (output, context) => {
4629
+ const contents = {};
4630
+ if (output["Result"] !== undefined) {
4631
+ contents.Result = __expectString(output["Result"]);
4632
+ }
4633
+ if (output["MitigationInEffect"] !== undefined) {
4634
+ contents.MitigationInEffect = __expectString(output["MitigationInEffect"]);
4635
+ }
4636
+ return contents;
4637
+ };
3754
4638
  const de_AuthenticateCognitoActionAuthenticationRequestExtraParams = (output, context) => {
3755
4639
  return output.reduce((acc, pair) => {
3756
4640
  if (pair["value"] === null) {
@@ -3878,6 +4762,13 @@ const de_AvailabilityZones = (output, context) => {
3878
4762
  return de_AvailabilityZone(entry, context);
3879
4763
  });
3880
4764
  };
4765
+ const de_CaCertificatesBundleNotFoundException = (output, context) => {
4766
+ const contents = {};
4767
+ if (output["Message"] !== undefined) {
4768
+ contents.Message = __expectString(output["Message"]);
4769
+ }
4770
+ return contents;
4771
+ };
3881
4772
  const de_Certificate = (output, context) => {
3882
4773
  const contents = {};
3883
4774
  if (output["CertificateArn"] !== undefined) {
@@ -3959,6 +4850,16 @@ const de_CreateTargetGroupOutput = (output, context) => {
3959
4850
  }
3960
4851
  return contents;
3961
4852
  };
4853
+ const de_CreateTrustStoreOutput = (output, context) => {
4854
+ const contents = {};
4855
+ if (output.TrustStores === "") {
4856
+ contents.TrustStores = [];
4857
+ }
4858
+ else if (output["TrustStores"] !== undefined && output["TrustStores"]["member"] !== undefined) {
4859
+ contents.TrustStores = de_TrustStores(__getArrayIfSingleItem(output["TrustStores"]["member"]), context);
4860
+ }
4861
+ return contents;
4862
+ };
3962
4863
  const de_DeleteListenerOutput = (output, context) => {
3963
4864
  const contents = {};
3964
4865
  return contents;
@@ -3975,6 +4876,10 @@ const de_DeleteTargetGroupOutput = (output, context) => {
3975
4876
  const contents = {};
3976
4877
  return contents;
3977
4878
  };
4879
+ const de_DeleteTrustStoreOutput = (output, context) => {
4880
+ const contents = {};
4881
+ return contents;
4882
+ };
3978
4883
  const de_DeregisterTargetsOutput = (output, context) => {
3979
4884
  const contents = {};
3980
4885
  return contents;
@@ -4111,6 +5016,69 @@ const de_DescribeTargetHealthOutput = (output, context) => {
4111
5016
  }
4112
5017
  return contents;
4113
5018
  };
5019
+ const de_DescribeTrustStoreAssociationsOutput = (output, context) => {
5020
+ const contents = {};
5021
+ if (output.TrustStoreAssociations === "") {
5022
+ contents.TrustStoreAssociations = [];
5023
+ }
5024
+ else if (output["TrustStoreAssociations"] !== undefined &&
5025
+ output["TrustStoreAssociations"]["member"] !== undefined) {
5026
+ contents.TrustStoreAssociations = de_TrustStoreAssociations(__getArrayIfSingleItem(output["TrustStoreAssociations"]["member"]), context);
5027
+ }
5028
+ if (output["NextMarker"] !== undefined) {
5029
+ contents.NextMarker = __expectString(output["NextMarker"]);
5030
+ }
5031
+ return contents;
5032
+ };
5033
+ const de_DescribeTrustStoreRevocation = (output, context) => {
5034
+ const contents = {};
5035
+ if (output["TrustStoreArn"] !== undefined) {
5036
+ contents.TrustStoreArn = __expectString(output["TrustStoreArn"]);
5037
+ }
5038
+ if (output["RevocationId"] !== undefined) {
5039
+ contents.RevocationId = __strictParseLong(output["RevocationId"]);
5040
+ }
5041
+ if (output["RevocationType"] !== undefined) {
5042
+ contents.RevocationType = __expectString(output["RevocationType"]);
5043
+ }
5044
+ if (output["NumberOfRevokedEntries"] !== undefined) {
5045
+ contents.NumberOfRevokedEntries = __strictParseLong(output["NumberOfRevokedEntries"]);
5046
+ }
5047
+ return contents;
5048
+ };
5049
+ const de_DescribeTrustStoreRevocationResponse = (output, context) => {
5050
+ return (output || [])
5051
+ .filter((e) => e != null)
5052
+ .map((entry) => {
5053
+ return de_DescribeTrustStoreRevocation(entry, context);
5054
+ });
5055
+ };
5056
+ const de_DescribeTrustStoreRevocationsOutput = (output, context) => {
5057
+ const contents = {};
5058
+ if (output.TrustStoreRevocations === "") {
5059
+ contents.TrustStoreRevocations = [];
5060
+ }
5061
+ else if (output["TrustStoreRevocations"] !== undefined && output["TrustStoreRevocations"]["member"] !== undefined) {
5062
+ contents.TrustStoreRevocations = de_DescribeTrustStoreRevocationResponse(__getArrayIfSingleItem(output["TrustStoreRevocations"]["member"]), context);
5063
+ }
5064
+ if (output["NextMarker"] !== undefined) {
5065
+ contents.NextMarker = __expectString(output["NextMarker"]);
5066
+ }
5067
+ return contents;
5068
+ };
5069
+ const de_DescribeTrustStoresOutput = (output, context) => {
5070
+ const contents = {};
5071
+ if (output.TrustStores === "") {
5072
+ contents.TrustStores = [];
5073
+ }
5074
+ else if (output["TrustStores"] !== undefined && output["TrustStores"]["member"] !== undefined) {
5075
+ contents.TrustStores = de_TrustStores(__getArrayIfSingleItem(output["TrustStores"]["member"]), context);
5076
+ }
5077
+ if (output["NextMarker"] !== undefined) {
5078
+ contents.NextMarker = __expectString(output["NextMarker"]);
5079
+ }
5080
+ return contents;
5081
+ };
4114
5082
  const de_DuplicateListenerException = (output, context) => {
4115
5083
  const contents = {};
4116
5084
  if (output["Message"] !== undefined) {
@@ -4139,6 +5107,13 @@ const de_DuplicateTargetGroupNameException = (output, context) => {
4139
5107
  }
4140
5108
  return contents;
4141
5109
  };
5110
+ const de_DuplicateTrustStoreNameException = (output, context) => {
5111
+ const contents = {};
5112
+ if (output["Message"] !== undefined) {
5113
+ contents.Message = __expectString(output["Message"]);
5114
+ }
5115
+ return contents;
5116
+ };
4142
5117
  const de_FixedResponseActionConfig = (output, context) => {
4143
5118
  const contents = {};
4144
5119
  if (output["MessageBody"] !== undefined) {
@@ -4165,6 +5140,20 @@ const de_ForwardActionConfig = (output, context) => {
4165
5140
  }
4166
5141
  return contents;
4167
5142
  };
5143
+ const de_GetTrustStoreCaCertificatesBundleOutput = (output, context) => {
5144
+ const contents = {};
5145
+ if (output["Location"] !== undefined) {
5146
+ contents.Location = __expectString(output["Location"]);
5147
+ }
5148
+ return contents;
5149
+ };
5150
+ const de_GetTrustStoreRevocationContentOutput = (output, context) => {
5151
+ const contents = {};
5152
+ if (output["Location"] !== undefined) {
5153
+ contents.Location = __expectString(output["Location"]);
5154
+ }
5155
+ return contents;
5156
+ };
4168
5157
  const de_HealthUnavailableException = (output, context) => {
4169
5158
  const contents = {};
4170
5159
  if (output["Message"] !== undefined) {
@@ -4212,6 +5201,13 @@ const de_IncompatibleProtocolsException = (output, context) => {
4212
5201
  }
4213
5202
  return contents;
4214
5203
  };
5204
+ const de_InvalidCaCertificatesBundleException = (output, context) => {
5205
+ const contents = {};
5206
+ if (output["Message"] !== undefined) {
5207
+ contents.Message = __expectString(output["Message"]);
5208
+ }
5209
+ return contents;
5210
+ };
4215
5211
  const de_InvalidConfigurationRequestException = (output, context) => {
4216
5212
  const contents = {};
4217
5213
  if (output["Message"] !== undefined) {
@@ -4226,6 +5222,13 @@ const de_InvalidLoadBalancerActionException = (output, context) => {
4226
5222
  }
4227
5223
  return contents;
4228
5224
  };
5225
+ const de_InvalidRevocationContentException = (output, context) => {
5226
+ const contents = {};
5227
+ if (output["Message"] !== undefined) {
5228
+ contents.Message = __expectString(output["Message"]);
5229
+ }
5230
+ return contents;
5231
+ };
4229
5232
  const de_InvalidSchemeException = (output, context) => {
4230
5233
  const contents = {};
4231
5234
  if (output["Message"] !== undefined) {
@@ -4306,6 +5309,9 @@ const de_Listener = (output, context) => {
4306
5309
  else if (output["AlpnPolicy"] !== undefined && output["AlpnPolicy"]["member"] !== undefined) {
4307
5310
  contents.AlpnPolicy = de_AlpnPolicyName(__getArrayIfSingleItem(output["AlpnPolicy"]["member"]), context);
4308
5311
  }
5312
+ if (output["MutualAuthentication"] !== undefined) {
5313
+ contents.MutualAuthentication = de_MutualAuthenticationAttributes(output["MutualAuthentication"], context);
5314
+ }
4309
5315
  return contents;
4310
5316
  };
4311
5317
  const de_ListenerNotFoundException = (output, context) => {
@@ -4512,6 +5518,29 @@ const de_ModifyTargetGroupOutput = (output, context) => {
4512
5518
  }
4513
5519
  return contents;
4514
5520
  };
5521
+ const de_ModifyTrustStoreOutput = (output, context) => {
5522
+ const contents = {};
5523
+ if (output.TrustStores === "") {
5524
+ contents.TrustStores = [];
5525
+ }
5526
+ else if (output["TrustStores"] !== undefined && output["TrustStores"]["member"] !== undefined) {
5527
+ contents.TrustStores = de_TrustStores(__getArrayIfSingleItem(output["TrustStores"]["member"]), context);
5528
+ }
5529
+ return contents;
5530
+ };
5531
+ const de_MutualAuthenticationAttributes = (output, context) => {
5532
+ const contents = {};
5533
+ if (output["Mode"] !== undefined) {
5534
+ contents.Mode = __expectString(output["Mode"]);
5535
+ }
5536
+ if (output["TrustStoreArn"] !== undefined) {
5537
+ contents.TrustStoreArn = __expectString(output["TrustStoreArn"]);
5538
+ }
5539
+ if (output["IgnoreClientCertificateExpiry"] !== undefined) {
5540
+ contents.IgnoreClientCertificateExpiry = __parseBoolean(output["IgnoreClientCertificateExpiry"]);
5541
+ }
5542
+ return contents;
5543
+ };
4515
5544
  const de_OperationNotPermittedException = (output, context) => {
4516
5545
  const contents = {};
4517
5546
  if (output["Message"] !== undefined) {
@@ -4597,6 +5626,10 @@ const de_RemoveTagsOutput = (output, context) => {
4597
5626
  const contents = {};
4598
5627
  return contents;
4599
5628
  };
5629
+ const de_RemoveTrustStoreRevocationsOutput = (output, context) => {
5630
+ const contents = {};
5631
+ return contents;
5632
+ };
4600
5633
  const de_ResourceInUseException = (output, context) => {
4601
5634
  const contents = {};
4602
5635
  if (output["Message"] !== undefined) {
@@ -4604,6 +5637,20 @@ const de_ResourceInUseException = (output, context) => {
4604
5637
  }
4605
5638
  return contents;
4606
5639
  };
5640
+ const de_RevocationContentNotFoundException = (output, context) => {
5641
+ const contents = {};
5642
+ if (output["Message"] !== undefined) {
5643
+ contents.Message = __expectString(output["Message"]);
5644
+ }
5645
+ return contents;
5646
+ };
5647
+ const de_RevocationIdNotFoundException = (output, context) => {
5648
+ const contents = {};
5649
+ if (output["Message"] !== undefined) {
5650
+ contents.Message = __expectString(output["Message"]);
5651
+ }
5652
+ return contents;
5653
+ };
4607
5654
  const de_Rule = (output, context) => {
4608
5655
  const contents = {};
4609
5656
  if (output["RuleArn"] !== undefined) {
@@ -4995,6 +6042,9 @@ const de_TargetHealthDescription = (output, context) => {
4995
6042
  if (output["TargetHealth"] !== undefined) {
4996
6043
  contents.TargetHealth = de_TargetHealth(output["TargetHealth"], context);
4997
6044
  }
6045
+ if (output["AnomalyDetection"] !== undefined) {
6046
+ contents.AnomalyDetection = de_AnomalyDetection(output["AnomalyDetection"], context);
6047
+ }
4998
6048
  return contents;
4999
6049
  };
5000
6050
  const de_TargetHealthDescriptions = (output, context) => {
@@ -5067,6 +6117,20 @@ const de_TooManyTargetsException = (output, context) => {
5067
6117
  }
5068
6118
  return contents;
5069
6119
  };
6120
+ const de_TooManyTrustStoreRevocationEntriesException = (output, context) => {
6121
+ const contents = {};
6122
+ if (output["Message"] !== undefined) {
6123
+ contents.Message = __expectString(output["Message"]);
6124
+ }
6125
+ return contents;
6126
+ };
6127
+ const de_TooManyTrustStoresException = (output, context) => {
6128
+ const contents = {};
6129
+ if (output["Message"] !== undefined) {
6130
+ contents.Message = __expectString(output["Message"]);
6131
+ }
6132
+ return contents;
6133
+ };
5070
6134
  const de_TooManyUniqueTargetGroupsPerLoadBalancerException = (output, context) => {
5071
6135
  const contents = {};
5072
6136
  if (output["Message"] !== undefined) {
@@ -5074,6 +6138,90 @@ const de_TooManyUniqueTargetGroupsPerLoadBalancerException = (output, context) =
5074
6138
  }
5075
6139
  return contents;
5076
6140
  };
6141
+ const de_TrustStore = (output, context) => {
6142
+ const contents = {};
6143
+ if (output["Name"] !== undefined) {
6144
+ contents.Name = __expectString(output["Name"]);
6145
+ }
6146
+ if (output["TrustStoreArn"] !== undefined) {
6147
+ contents.TrustStoreArn = __expectString(output["TrustStoreArn"]);
6148
+ }
6149
+ if (output["Status"] !== undefined) {
6150
+ contents.Status = __expectString(output["Status"]);
6151
+ }
6152
+ if (output["NumberOfCaCertificates"] !== undefined) {
6153
+ contents.NumberOfCaCertificates = __strictParseInt32(output["NumberOfCaCertificates"]);
6154
+ }
6155
+ if (output["TotalRevokedEntries"] !== undefined) {
6156
+ contents.TotalRevokedEntries = __strictParseLong(output["TotalRevokedEntries"]);
6157
+ }
6158
+ return contents;
6159
+ };
6160
+ const de_TrustStoreAssociation = (output, context) => {
6161
+ const contents = {};
6162
+ if (output["ResourceArn"] !== undefined) {
6163
+ contents.ResourceArn = __expectString(output["ResourceArn"]);
6164
+ }
6165
+ return contents;
6166
+ };
6167
+ const de_TrustStoreAssociations = (output, context) => {
6168
+ return (output || [])
6169
+ .filter((e) => e != null)
6170
+ .map((entry) => {
6171
+ return de_TrustStoreAssociation(entry, context);
6172
+ });
6173
+ };
6174
+ const de_TrustStoreInUseException = (output, context) => {
6175
+ const contents = {};
6176
+ if (output["Message"] !== undefined) {
6177
+ contents.Message = __expectString(output["Message"]);
6178
+ }
6179
+ return contents;
6180
+ };
6181
+ const de_TrustStoreNotFoundException = (output, context) => {
6182
+ const contents = {};
6183
+ if (output["Message"] !== undefined) {
6184
+ contents.Message = __expectString(output["Message"]);
6185
+ }
6186
+ return contents;
6187
+ };
6188
+ const de_TrustStoreNotReadyException = (output, context) => {
6189
+ const contents = {};
6190
+ if (output["Message"] !== undefined) {
6191
+ contents.Message = __expectString(output["Message"]);
6192
+ }
6193
+ return contents;
6194
+ };
6195
+ const de_TrustStoreRevocation = (output, context) => {
6196
+ const contents = {};
6197
+ if (output["TrustStoreArn"] !== undefined) {
6198
+ contents.TrustStoreArn = __expectString(output["TrustStoreArn"]);
6199
+ }
6200
+ if (output["RevocationId"] !== undefined) {
6201
+ contents.RevocationId = __strictParseLong(output["RevocationId"]);
6202
+ }
6203
+ if (output["RevocationType"] !== undefined) {
6204
+ contents.RevocationType = __expectString(output["RevocationType"]);
6205
+ }
6206
+ if (output["NumberOfRevokedEntries"] !== undefined) {
6207
+ contents.NumberOfRevokedEntries = __strictParseLong(output["NumberOfRevokedEntries"]);
6208
+ }
6209
+ return contents;
6210
+ };
6211
+ const de_TrustStoreRevocations = (output, context) => {
6212
+ return (output || [])
6213
+ .filter((e) => e != null)
6214
+ .map((entry) => {
6215
+ return de_TrustStoreRevocation(entry, context);
6216
+ });
6217
+ };
6218
+ const de_TrustStores = (output, context) => {
6219
+ return (output || [])
6220
+ .filter((e) => e != null)
6221
+ .map((entry) => {
6222
+ return de_TrustStore(entry, context);
6223
+ });
6224
+ };
5077
6225
  const de_UnsupportedProtocolException = (output, context) => {
5078
6226
  const contents = {};
5079
6227
  if (output["Message"] !== undefined) {