@aws-sdk/client-ec2 3.121.0 → 3.130.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 (249) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/EC2.js +150 -0
  3. package/dist-cjs/commands/AssociateTransitGatewayPolicyTableCommand.js +36 -0
  4. package/dist-cjs/commands/CreateTransitGatewayCommand.js +2 -1
  5. package/dist-cjs/commands/CreateTransitGatewayPolicyTableCommand.js +36 -0
  6. package/dist-cjs/commands/CreateTransitGatewayRouteTableAnnouncementCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteTransitGatewayPolicyTableCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteTransitGatewayRouteTableAnnouncementCommand.js +36 -0
  9. package/dist-cjs/commands/DescribeClientVpnConnectionsCommand.js +2 -1
  10. package/dist-cjs/commands/DescribeClientVpnEndpointsCommand.js +3 -3
  11. package/dist-cjs/commands/DescribeNetworkInsightsAnalysesCommand.js +2 -1
  12. package/dist-cjs/commands/DescribeNetworkInsightsPathsCommand.js +3 -3
  13. package/dist-cjs/commands/DescribeNetworkInterfaceAttributeCommand.js +3 -3
  14. package/dist-cjs/commands/DescribeNetworkInterfacePermissionsCommand.js +3 -3
  15. package/dist-cjs/commands/DescribeNetworkInterfacesCommand.js +3 -3
  16. package/dist-cjs/commands/DescribePlacementGroupsCommand.js +3 -3
  17. package/dist-cjs/commands/DescribePrefixListsCommand.js +3 -3
  18. package/dist-cjs/commands/DescribePrincipalIdFormatCommand.js +1 -2
  19. package/dist-cjs/commands/DescribeTransitGatewayPolicyTablesCommand.js +36 -0
  20. package/dist-cjs/commands/DescribeTransitGatewayRouteTableAnnouncementsCommand.js +36 -0
  21. package/dist-cjs/commands/DisassociateTransitGatewayPolicyTableCommand.js +36 -0
  22. package/dist-cjs/commands/ExportImageCommand.js +3 -3
  23. package/dist-cjs/commands/ExportTransitGatewayRoutesCommand.js +3 -3
  24. package/dist-cjs/commands/GetAssociatedEnclaveCertificateIamRolesCommand.js +3 -3
  25. package/dist-cjs/commands/GetAssociatedIpv6PoolCidrsCommand.js +3 -3
  26. package/dist-cjs/commands/GetCapacityReservationUsageCommand.js +3 -3
  27. package/dist-cjs/commands/GetCoipPoolUsageCommand.js +3 -3
  28. package/dist-cjs/commands/GetConsoleOutputCommand.js +3 -3
  29. package/dist-cjs/commands/GetConsoleScreenshotCommand.js +3 -3
  30. package/dist-cjs/commands/GetDefaultCreditSpecificationCommand.js +3 -3
  31. package/dist-cjs/commands/GetEbsDefaultKmsKeyIdCommand.js +1 -2
  32. package/dist-cjs/commands/GetTransitGatewayPolicyTableAssociationsCommand.js +36 -0
  33. package/dist-cjs/commands/GetTransitGatewayPolicyTableEntriesCommand.js +36 -0
  34. package/dist-cjs/commands/RegisterInstanceEventNotificationAttributesCommand.js +3 -3
  35. package/dist-cjs/commands/RegisterTransitGatewayMulticastGroupMembersCommand.js +3 -3
  36. package/dist-cjs/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.js +3 -3
  37. package/dist-cjs/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.js +3 -3
  38. package/dist-cjs/commands/RejectTransitGatewayPeeringAttachmentCommand.js +3 -3
  39. package/dist-cjs/commands/RejectTransitGatewayVpcAttachmentCommand.js +3 -3
  40. package/dist-cjs/commands/RejectVpcEndpointConnectionsCommand.js +3 -3
  41. package/dist-cjs/commands/RejectVpcPeeringConnectionCommand.js +3 -3
  42. package/dist-cjs/commands/ReleaseAddressCommand.js +2 -2
  43. package/dist-cjs/commands/ReleaseHostsCommand.js +3 -3
  44. package/dist-cjs/commands/ReleaseIpamPoolAllocationCommand.js +3 -3
  45. package/dist-cjs/commands/ReplaceIamInstanceProfileAssociationCommand.js +3 -3
  46. package/dist-cjs/commands/ReplaceNetworkAclAssociationCommand.js +3 -3
  47. package/dist-cjs/commands/ReplaceNetworkAclEntryCommand.js +2 -2
  48. package/dist-cjs/commands/ReplaceRouteCommand.js +2 -2
  49. package/dist-cjs/commands/ReplaceRouteTableAssociationCommand.js +3 -3
  50. package/dist-cjs/commands/index.js +10 -0
  51. package/dist-cjs/models/models_0.js +35 -36
  52. package/dist-cjs/models/models_1.js +36 -24
  53. package/dist-cjs/models/models_2.js +111 -96
  54. package/dist-cjs/models/models_3.js +96 -114
  55. package/dist-cjs/models/models_4.js +150 -150
  56. package/dist-cjs/models/models_5.js +192 -198
  57. package/dist-cjs/models/models_6.js +195 -2
  58. package/dist-cjs/pagination/DescribeTransitGatewayPolicyTablesPaginator.js +36 -0
  59. package/dist-cjs/pagination/DescribeTransitGatewayRouteTableAnnouncementsPaginator.js +36 -0
  60. package/dist-cjs/pagination/GetTransitGatewayPolicyTableAssociationsPaginator.js +36 -0
  61. package/dist-cjs/pagination/index.js +3 -0
  62. package/dist-cjs/protocols/Aws_ec2.js +1080 -21
  63. package/dist-es/EC2.js +150 -0
  64. package/dist-es/commands/AssociateTransitGatewayPolicyTableCommand.js +39 -0
  65. package/dist-es/commands/CreateTransitGatewayCommand.js +2 -1
  66. package/dist-es/commands/CreateTransitGatewayPolicyTableCommand.js +39 -0
  67. package/dist-es/commands/CreateTransitGatewayRouteTableAnnouncementCommand.js +39 -0
  68. package/dist-es/commands/DeleteTransitGatewayPolicyTableCommand.js +39 -0
  69. package/dist-es/commands/DeleteTransitGatewayRouteTableAnnouncementCommand.js +39 -0
  70. package/dist-es/commands/DescribeClientVpnConnectionsCommand.js +2 -1
  71. package/dist-es/commands/DescribeClientVpnEndpointsCommand.js +1 -1
  72. package/dist-es/commands/DescribeNetworkInsightsAnalysesCommand.js +2 -1
  73. package/dist-es/commands/DescribeNetworkInsightsPathsCommand.js +1 -1
  74. package/dist-es/commands/DescribeNetworkInterfaceAttributeCommand.js +1 -1
  75. package/dist-es/commands/DescribeNetworkInterfacePermissionsCommand.js +1 -1
  76. package/dist-es/commands/DescribeNetworkInterfacesCommand.js +1 -1
  77. package/dist-es/commands/DescribePlacementGroupsCommand.js +1 -1
  78. package/dist-es/commands/DescribePrefixListsCommand.js +1 -1
  79. package/dist-es/commands/DescribePrincipalIdFormatCommand.js +1 -2
  80. package/dist-es/commands/DescribeTransitGatewayPolicyTablesCommand.js +39 -0
  81. package/dist-es/commands/DescribeTransitGatewayRouteTableAnnouncementsCommand.js +39 -0
  82. package/dist-es/commands/DisassociateTransitGatewayPolicyTableCommand.js +39 -0
  83. package/dist-es/commands/ExportImageCommand.js +1 -1
  84. package/dist-es/commands/ExportTransitGatewayRoutesCommand.js +1 -1
  85. package/dist-es/commands/GetAssociatedEnclaveCertificateIamRolesCommand.js +1 -1
  86. package/dist-es/commands/GetAssociatedIpv6PoolCidrsCommand.js +1 -1
  87. package/dist-es/commands/GetCapacityReservationUsageCommand.js +1 -1
  88. package/dist-es/commands/GetCoipPoolUsageCommand.js +1 -1
  89. package/dist-es/commands/GetConsoleOutputCommand.js +1 -1
  90. package/dist-es/commands/GetConsoleScreenshotCommand.js +1 -1
  91. package/dist-es/commands/GetDefaultCreditSpecificationCommand.js +1 -1
  92. package/dist-es/commands/GetEbsDefaultKmsKeyIdCommand.js +1 -2
  93. package/dist-es/commands/GetTransitGatewayPolicyTableAssociationsCommand.js +39 -0
  94. package/dist-es/commands/GetTransitGatewayPolicyTableEntriesCommand.js +39 -0
  95. package/dist-es/commands/RegisterInstanceEventNotificationAttributesCommand.js +1 -1
  96. package/dist-es/commands/RegisterTransitGatewayMulticastGroupMembersCommand.js +1 -1
  97. package/dist-es/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.js +1 -1
  98. package/dist-es/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.js +1 -1
  99. package/dist-es/commands/RejectTransitGatewayPeeringAttachmentCommand.js +1 -1
  100. package/dist-es/commands/RejectTransitGatewayVpcAttachmentCommand.js +1 -1
  101. package/dist-es/commands/RejectVpcEndpointConnectionsCommand.js +1 -1
  102. package/dist-es/commands/RejectVpcPeeringConnectionCommand.js +1 -1
  103. package/dist-es/commands/ReleaseAddressCommand.js +1 -1
  104. package/dist-es/commands/ReleaseHostsCommand.js +1 -1
  105. package/dist-es/commands/ReleaseIpamPoolAllocationCommand.js +1 -1
  106. package/dist-es/commands/ReplaceIamInstanceProfileAssociationCommand.js +1 -1
  107. package/dist-es/commands/ReplaceNetworkAclAssociationCommand.js +1 -1
  108. package/dist-es/commands/ReplaceNetworkAclEntryCommand.js +1 -1
  109. package/dist-es/commands/ReplaceRouteCommand.js +1 -1
  110. package/dist-es/commands/ReplaceRouteTableAssociationCommand.js +1 -1
  111. package/dist-es/commands/index.js +10 -0
  112. package/dist-es/models/models_0.js +21 -26
  113. package/dist-es/models/models_1.js +26 -12
  114. package/dist-es/models/models_2.js +77 -60
  115. package/dist-es/models/models_3.js +60 -72
  116. package/dist-es/models/models_4.js +96 -96
  117. package/dist-es/models/models_5.js +124 -128
  118. package/dist-es/models/models_6.js +128 -0
  119. package/dist-es/pagination/DescribeTransitGatewayPolicyTablesPaginator.js +75 -0
  120. package/dist-es/pagination/DescribeTransitGatewayRouteTableAnnouncementsPaginator.js +75 -0
  121. package/dist-es/pagination/GetTransitGatewayPolicyTableAssociationsPaginator.js +75 -0
  122. package/dist-es/pagination/index.js +3 -0
  123. package/dist-es/protocols/Aws_ec2.js +1387 -208
  124. package/dist-types/EC2.d.ts +73 -2
  125. package/dist-types/EC2Client.d.ts +12 -2
  126. package/dist-types/commands/AssociateTransitGatewayPolicyTableCommand.d.ts +35 -0
  127. package/dist-types/commands/CreateTransitGatewayCommand.d.ts +2 -1
  128. package/dist-types/commands/CreateTransitGatewayPeeringAttachmentCommand.d.ts +3 -2
  129. package/dist-types/commands/CreateTransitGatewayPolicyTableCommand.d.ts +35 -0
  130. package/dist-types/commands/CreateTransitGatewayRouteTableAnnouncementCommand.d.ts +35 -0
  131. package/dist-types/commands/DeleteTransitGatewayPolicyTableCommand.d.ts +35 -0
  132. package/dist-types/commands/DeleteTransitGatewayRouteTableAnnouncementCommand.d.ts +35 -0
  133. package/dist-types/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -1
  134. package/dist-types/commands/DescribeClientVpnEndpointsCommand.d.ts +1 -1
  135. package/dist-types/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +2 -1
  136. package/dist-types/commands/DescribeNetworkInsightsPathsCommand.d.ts +1 -1
  137. package/dist-types/commands/DescribeNetworkInterfaceAttributeCommand.d.ts +1 -1
  138. package/dist-types/commands/DescribeNetworkInterfacePermissionsCommand.d.ts +1 -1
  139. package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +1 -1
  140. package/dist-types/commands/DescribePlacementGroupsCommand.d.ts +1 -1
  141. package/dist-types/commands/DescribePrefixListsCommand.d.ts +1 -1
  142. package/dist-types/commands/DescribePrincipalIdFormatCommand.d.ts +1 -2
  143. package/dist-types/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +35 -0
  144. package/dist-types/commands/DescribeTransitGatewayRouteTableAnnouncementsCommand.d.ts +35 -0
  145. package/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +35 -0
  146. package/dist-types/commands/ExportImageCommand.d.ts +1 -1
  147. package/dist-types/commands/ExportTransitGatewayRoutesCommand.d.ts +1 -1
  148. package/dist-types/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +1 -1
  149. package/dist-types/commands/GetAssociatedIpv6PoolCidrsCommand.d.ts +1 -1
  150. package/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -1
  151. package/dist-types/commands/GetCoipPoolUsageCommand.d.ts +1 -1
  152. package/dist-types/commands/GetConsoleOutputCommand.d.ts +1 -1
  153. package/dist-types/commands/GetConsoleScreenshotCommand.d.ts +1 -1
  154. package/dist-types/commands/GetDefaultCreditSpecificationCommand.d.ts +1 -1
  155. package/dist-types/commands/GetEbsDefaultKmsKeyIdCommand.d.ts +1 -2
  156. package/dist-types/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +35 -0
  157. package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +35 -0
  158. package/dist-types/commands/RegisterInstanceEventNotificationAttributesCommand.d.ts +1 -1
  159. package/dist-types/commands/RegisterTransitGatewayMulticastGroupMembersCommand.d.ts +1 -1
  160. package/dist-types/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.d.ts +1 -1
  161. package/dist-types/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.d.ts +1 -1
  162. package/dist-types/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
  163. package/dist-types/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
  164. package/dist-types/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
  165. package/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
  166. package/dist-types/commands/ReleaseAddressCommand.d.ts +1 -1
  167. package/dist-types/commands/ReleaseHostsCommand.d.ts +1 -1
  168. package/dist-types/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  169. package/dist-types/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
  170. package/dist-types/commands/ReplaceNetworkAclAssociationCommand.d.ts +1 -1
  171. package/dist-types/commands/ReplaceNetworkAclEntryCommand.d.ts +1 -1
  172. package/dist-types/commands/ReplaceRouteCommand.d.ts +1 -1
  173. package/dist-types/commands/ReplaceRouteTableAssociationCommand.d.ts +1 -1
  174. package/dist-types/commands/index.d.ts +10 -0
  175. package/dist-types/models/models_0.d.ts +86 -68
  176. package/dist-types/models/models_1.d.ts +69 -112
  177. package/dist-types/models/models_2.d.ts +352 -462
  178. package/dist-types/models/models_3.d.ts +6282 -6748
  179. package/dist-types/models/models_4.d.ts +6282 -5860
  180. package/dist-types/models/models_5.d.ts +4656 -4507
  181. package/dist-types/models/models_6.d.ts +678 -5
  182. package/dist-types/pagination/DescribeTransitGatewayPolicyTablesPaginator.d.ts +4 -0
  183. package/dist-types/pagination/DescribeTransitGatewayRouteTableAnnouncementsPaginator.d.ts +4 -0
  184. package/dist-types/pagination/GetTransitGatewayPolicyTableAssociationsPaginator.d.ts +4 -0
  185. package/dist-types/pagination/index.d.ts +3 -0
  186. package/dist-types/protocols/Aws_ec2.d.ts +30 -0
  187. package/dist-types/ts3.4/EC2.d.ts +50 -0
  188. package/dist-types/ts3.4/EC2Client.d.ts +12 -2
  189. package/dist-types/ts3.4/commands/AssociateTransitGatewayPolicyTableCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/CreateTransitGatewayCommand.d.ts +2 -1
  191. package/dist-types/ts3.4/commands/CreateTransitGatewayPolicyTableCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/CreateTransitGatewayRouteTableAnnouncementCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/DeleteTransitGatewayPolicyTableCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/DeleteTransitGatewayRouteTableAnnouncementCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/DescribeClientVpnConnectionsCommand.d.ts +2 -1
  196. package/dist-types/ts3.4/commands/DescribeClientVpnEndpointsCommand.d.ts +1 -1
  197. package/dist-types/ts3.4/commands/DescribeNetworkInsightsAnalysesCommand.d.ts +2 -1
  198. package/dist-types/ts3.4/commands/DescribeNetworkInsightsPathsCommand.d.ts +1 -1
  199. package/dist-types/ts3.4/commands/DescribeNetworkInterfaceAttributeCommand.d.ts +1 -1
  200. package/dist-types/ts3.4/commands/DescribeNetworkInterfacePermissionsCommand.d.ts +1 -1
  201. package/dist-types/ts3.4/commands/DescribeNetworkInterfacesCommand.d.ts +1 -1
  202. package/dist-types/ts3.4/commands/DescribePlacementGroupsCommand.d.ts +1 -1
  203. package/dist-types/ts3.4/commands/DescribePrefixListsCommand.d.ts +1 -1
  204. package/dist-types/ts3.4/commands/DescribePrincipalIdFormatCommand.d.ts +1 -2
  205. package/dist-types/ts3.4/commands/DescribeTransitGatewayPolicyTablesCommand.d.ts +17 -0
  206. package/dist-types/ts3.4/commands/DescribeTransitGatewayRouteTableAnnouncementsCommand.d.ts +17 -0
  207. package/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +17 -0
  208. package/dist-types/ts3.4/commands/ExportImageCommand.d.ts +1 -1
  209. package/dist-types/ts3.4/commands/ExportTransitGatewayRoutesCommand.d.ts +1 -1
  210. package/dist-types/ts3.4/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +1 -1
  211. package/dist-types/ts3.4/commands/GetAssociatedIpv6PoolCidrsCommand.d.ts +1 -1
  212. package/dist-types/ts3.4/commands/GetCapacityReservationUsageCommand.d.ts +1 -1
  213. package/dist-types/ts3.4/commands/GetCoipPoolUsageCommand.d.ts +1 -1
  214. package/dist-types/ts3.4/commands/GetConsoleOutputCommand.d.ts +1 -1
  215. package/dist-types/ts3.4/commands/GetConsoleScreenshotCommand.d.ts +1 -1
  216. package/dist-types/ts3.4/commands/GetDefaultCreditSpecificationCommand.d.ts +1 -1
  217. package/dist-types/ts3.4/commands/GetEbsDefaultKmsKeyIdCommand.d.ts +1 -2
  218. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableAssociationsCommand.d.ts +17 -0
  219. package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +17 -0
  220. package/dist-types/ts3.4/commands/RegisterInstanceEventNotificationAttributesCommand.d.ts +1 -1
  221. package/dist-types/ts3.4/commands/RegisterTransitGatewayMulticastGroupMembersCommand.d.ts +1 -1
  222. package/dist-types/ts3.4/commands/RegisterTransitGatewayMulticastGroupSourcesCommand.d.ts +1 -1
  223. package/dist-types/ts3.4/commands/RejectTransitGatewayMulticastDomainAssociationsCommand.d.ts +1 -1
  224. package/dist-types/ts3.4/commands/RejectTransitGatewayPeeringAttachmentCommand.d.ts +1 -1
  225. package/dist-types/ts3.4/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +1 -1
  226. package/dist-types/ts3.4/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
  227. package/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
  228. package/dist-types/ts3.4/commands/ReleaseAddressCommand.d.ts +1 -1
  229. package/dist-types/ts3.4/commands/ReleaseHostsCommand.d.ts +1 -1
  230. package/dist-types/ts3.4/commands/ReleaseIpamPoolAllocationCommand.d.ts +1 -1
  231. package/dist-types/ts3.4/commands/ReplaceIamInstanceProfileAssociationCommand.d.ts +1 -1
  232. package/dist-types/ts3.4/commands/ReplaceNetworkAclAssociationCommand.d.ts +1 -1
  233. package/dist-types/ts3.4/commands/ReplaceNetworkAclEntryCommand.d.ts +1 -1
  234. package/dist-types/ts3.4/commands/ReplaceRouteCommand.d.ts +1 -1
  235. package/dist-types/ts3.4/commands/ReplaceRouteTableAssociationCommand.d.ts +1 -1
  236. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  237. package/dist-types/ts3.4/models/models_0.d.ts +54 -41
  238. package/dist-types/ts3.4/models/models_1.d.ts +42 -63
  239. package/dist-types/ts3.4/models/models_2.d.ts +211 -244
  240. package/dist-types/ts3.4/models/models_3.d.ts +244 -349
  241. package/dist-types/ts3.4/models/models_4.d.ts +431 -316
  242. package/dist-types/ts3.4/models/models_5.d.ts +412 -380
  243. package/dist-types/ts3.4/models/models_6.d.ts +380 -5
  244. package/dist-types/ts3.4/pagination/DescribeTransitGatewayPolicyTablesPaginator.d.ts +4 -0
  245. package/dist-types/ts3.4/pagination/DescribeTransitGatewayRouteTableAnnouncementsPaginator.d.ts +4 -0
  246. package/dist-types/ts3.4/pagination/GetTransitGatewayPolicyTableAssociationsPaginator.d.ts +4 -0
  247. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  248. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +30 -0
  249. package/package.json +28 -28
@@ -225,6 +225,16 @@ export var serializeAws_ec2AssociateTransitGatewayMulticastDomainCommand = funct
225
225
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
226
226
  });
227
227
  }); };
228
+ export var serializeAws_ec2AssociateTransitGatewayPolicyTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
229
+ var headers, body;
230
+ return __generator(this, function (_a) {
231
+ headers = {
232
+ "content-type": "application/x-www-form-urlencoded",
233
+ };
234
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2AssociateTransitGatewayPolicyTableRequest(input, context)), { Action: "AssociateTransitGatewayPolicyTable", Version: "2016-11-15" }));
235
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
236
+ });
237
+ }); };
228
238
  export var serializeAws_ec2AssociateTransitGatewayRouteTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
229
239
  var headers, body;
230
240
  return __generator(this, function (_a) {
@@ -1045,6 +1055,16 @@ export var serializeAws_ec2CreateTransitGatewayPeeringAttachmentCommand = functi
1045
1055
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1046
1056
  });
1047
1057
  }); };
1058
+ export var serializeAws_ec2CreateTransitGatewayPolicyTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1059
+ var headers, body;
1060
+ return __generator(this, function (_a) {
1061
+ headers = {
1062
+ "content-type": "application/x-www-form-urlencoded",
1063
+ };
1064
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2CreateTransitGatewayPolicyTableRequest(input, context)), { Action: "CreateTransitGatewayPolicyTable", Version: "2016-11-15" }));
1065
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1066
+ });
1067
+ }); };
1048
1068
  export var serializeAws_ec2CreateTransitGatewayPrefixListReferenceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1049
1069
  var headers, body;
1050
1070
  return __generator(this, function (_a) {
@@ -1075,6 +1095,16 @@ export var serializeAws_ec2CreateTransitGatewayRouteTableCommand = function (inp
1075
1095
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1076
1096
  });
1077
1097
  }); };
1098
+ export var serializeAws_ec2CreateTransitGatewayRouteTableAnnouncementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1099
+ var headers, body;
1100
+ return __generator(this, function (_a) {
1101
+ headers = {
1102
+ "content-type": "application/x-www-form-urlencoded",
1103
+ };
1104
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2CreateTransitGatewayRouteTableAnnouncementRequest(input, context)), { Action: "CreateTransitGatewayRouteTableAnnouncement", Version: "2016-11-15" }));
1105
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1106
+ });
1107
+ }); };
1078
1108
  export var serializeAws_ec2CreateTransitGatewayVpcAttachmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1079
1109
  var headers, body;
1080
1110
  return __generator(this, function (_a) {
@@ -1665,6 +1695,16 @@ export var serializeAws_ec2DeleteTransitGatewayPeeringAttachmentCommand = functi
1665
1695
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1666
1696
  });
1667
1697
  }); };
1698
+ export var serializeAws_ec2DeleteTransitGatewayPolicyTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1699
+ var headers, body;
1700
+ return __generator(this, function (_a) {
1701
+ headers = {
1702
+ "content-type": "application/x-www-form-urlencoded",
1703
+ };
1704
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2DeleteTransitGatewayPolicyTableRequest(input, context)), { Action: "DeleteTransitGatewayPolicyTable", Version: "2016-11-15" }));
1705
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1706
+ });
1707
+ }); };
1668
1708
  export var serializeAws_ec2DeleteTransitGatewayPrefixListReferenceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1669
1709
  var headers, body;
1670
1710
  return __generator(this, function (_a) {
@@ -1695,6 +1735,16 @@ export var serializeAws_ec2DeleteTransitGatewayRouteTableCommand = function (inp
1695
1735
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1696
1736
  });
1697
1737
  }); };
1738
+ export var serializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1739
+ var headers, body;
1740
+ return __generator(this, function (_a) {
1741
+ headers = {
1742
+ "content-type": "application/x-www-form-urlencoded",
1743
+ };
1744
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementRequest(input, context)), { Action: "DeleteTransitGatewayRouteTableAnnouncement", Version: "2016-11-15" }));
1745
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
1746
+ });
1747
+ }); };
1698
1748
  export var serializeAws_ec2DeleteTransitGatewayVpcAttachmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1699
1749
  var headers, body;
1700
1750
  return __generator(this, function (_a) {
@@ -2985,6 +3035,26 @@ export var serializeAws_ec2DescribeTransitGatewayPeeringAttachmentsCommand = fun
2985
3035
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
2986
3036
  });
2987
3037
  }); };
3038
+ export var serializeAws_ec2DescribeTransitGatewayPolicyTablesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3039
+ var headers, body;
3040
+ return __generator(this, function (_a) {
3041
+ headers = {
3042
+ "content-type": "application/x-www-form-urlencoded",
3043
+ };
3044
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2DescribeTransitGatewayPolicyTablesRequest(input, context)), { Action: "DescribeTransitGatewayPolicyTables", Version: "2016-11-15" }));
3045
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3046
+ });
3047
+ }); };
3048
+ export var serializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3049
+ var headers, body;
3050
+ return __generator(this, function (_a) {
3051
+ headers = {
3052
+ "content-type": "application/x-www-form-urlencoded",
3053
+ };
3054
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsRequest(input, context)), { Action: "DescribeTransitGatewayRouteTableAnnouncements", Version: "2016-11-15" }));
3055
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3056
+ });
3057
+ }); };
2988
3058
  export var serializeAws_ec2DescribeTransitGatewayRouteTablesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
2989
3059
  var headers, body;
2990
3060
  return __generator(this, function (_a) {
@@ -3425,6 +3495,16 @@ export var serializeAws_ec2DisassociateTransitGatewayMulticastDomainCommand = fu
3425
3495
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3426
3496
  });
3427
3497
  }); };
3498
+ export var serializeAws_ec2DisassociateTransitGatewayPolicyTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3499
+ var headers, body;
3500
+ return __generator(this, function (_a) {
3501
+ headers = {
3502
+ "content-type": "application/x-www-form-urlencoded",
3503
+ };
3504
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2DisassociateTransitGatewayPolicyTableRequest(input, context)), { Action: "DisassociateTransitGatewayPolicyTable", Version: "2016-11-15" }));
3505
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3506
+ });
3507
+ }); };
3428
3508
  export var serializeAws_ec2DisassociateTransitGatewayRouteTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3429
3509
  var headers, body;
3430
3510
  return __generator(this, function (_a) {
@@ -3905,6 +3985,26 @@ export var serializeAws_ec2GetTransitGatewayMulticastDomainAssociationsCommand =
3905
3985
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3906
3986
  });
3907
3987
  }); };
3988
+ export var serializeAws_ec2GetTransitGatewayPolicyTableAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3989
+ var headers, body;
3990
+ return __generator(this, function (_a) {
3991
+ headers = {
3992
+ "content-type": "application/x-www-form-urlencoded",
3993
+ };
3994
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2GetTransitGatewayPolicyTableAssociationsRequest(input, context)), { Action: "GetTransitGatewayPolicyTableAssociations", Version: "2016-11-15" }));
3995
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
3996
+ });
3997
+ }); };
3998
+ export var serializeAws_ec2GetTransitGatewayPolicyTableEntriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3999
+ var headers, body;
4000
+ return __generator(this, function (_a) {
4001
+ headers = {
4002
+ "content-type": "application/x-www-form-urlencoded",
4003
+ };
4004
+ body = buildFormUrlencodedString(__assign(__assign({}, serializeAws_ec2GetTransitGatewayPolicyTableEntriesRequest(input, context)), { Action: "GetTransitGatewayPolicyTableEntries", Version: "2016-11-15" }));
4005
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
4006
+ });
4007
+ }); };
3908
4008
  export var serializeAws_ec2GetTransitGatewayPrefixListReferencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
3909
4009
  var headers, body;
3910
4010
  return __generator(this, function (_a) {
@@ -6247,6 +6347,52 @@ var deserializeAws_ec2AssociateTransitGatewayMulticastDomainCommandError = funct
6247
6347
  }
6248
6348
  });
6249
6349
  }); };
6350
+ export var deserializeAws_ec2AssociateTransitGatewayPolicyTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6351
+ var data, contents, response;
6352
+ return __generator(this, function (_a) {
6353
+ switch (_a.label) {
6354
+ case 0:
6355
+ if (output.statusCode >= 300) {
6356
+ return [2, deserializeAws_ec2AssociateTransitGatewayPolicyTableCommandError(output, context)];
6357
+ }
6358
+ return [4, parseBody(output.body, context)];
6359
+ case 1:
6360
+ data = _a.sent();
6361
+ contents = {};
6362
+ contents = deserializeAws_ec2AssociateTransitGatewayPolicyTableResult(data, context);
6363
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
6364
+ return [2, Promise.resolve(response)];
6365
+ }
6366
+ });
6367
+ }); };
6368
+ var deserializeAws_ec2AssociateTransitGatewayPolicyTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6369
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
6370
+ var _b;
6371
+ return __generator(this, function (_c) {
6372
+ switch (_c.label) {
6373
+ case 0:
6374
+ _a = [__assign({}, output)];
6375
+ _b = {};
6376
+ return [4, parseBody(output.body, context)];
6377
+ case 1:
6378
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
6379
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
6380
+ switch (errorCode) {
6381
+ default:
6382
+ parsedBody = parsedOutput.body;
6383
+ $metadata = deserializeMetadata(output);
6384
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
6385
+ response = new __BaseException({
6386
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
6387
+ $fault: "client",
6388
+ $metadata: $metadata,
6389
+ });
6390
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
6391
+ }
6392
+ return [2];
6393
+ }
6394
+ });
6395
+ }); };
6250
6396
  export var deserializeAws_ec2AssociateTransitGatewayRouteTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6251
6397
  var data, contents, response;
6252
6398
  return __generator(this, function (_a) {
@@ -10019,25 +10165,25 @@ var deserializeAws_ec2CreateTransitGatewayPeeringAttachmentCommandError = functi
10019
10165
  }
10020
10166
  });
10021
10167
  }); };
10022
- export var deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10168
+ export var deserializeAws_ec2CreateTransitGatewayPolicyTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10023
10169
  var data, contents, response;
10024
10170
  return __generator(this, function (_a) {
10025
10171
  switch (_a.label) {
10026
10172
  case 0:
10027
10173
  if (output.statusCode >= 300) {
10028
- return [2, deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommandError(output, context)];
10174
+ return [2, deserializeAws_ec2CreateTransitGatewayPolicyTableCommandError(output, context)];
10029
10175
  }
10030
10176
  return [4, parseBody(output.body, context)];
10031
10177
  case 1:
10032
10178
  data = _a.sent();
10033
10179
  contents = {};
10034
- contents = deserializeAws_ec2CreateTransitGatewayPrefixListReferenceResult(data, context);
10180
+ contents = deserializeAws_ec2CreateTransitGatewayPolicyTableResult(data, context);
10035
10181
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10036
10182
  return [2, Promise.resolve(response)];
10037
10183
  }
10038
10184
  });
10039
10185
  }); };
10040
- var deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10186
+ var deserializeAws_ec2CreateTransitGatewayPolicyTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10041
10187
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10042
10188
  var _b;
10043
10189
  return __generator(this, function (_c) {
@@ -10065,25 +10211,25 @@ var deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommandError = func
10065
10211
  }
10066
10212
  });
10067
10213
  }); };
10068
- export var deserializeAws_ec2CreateTransitGatewayRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10214
+ export var deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10069
10215
  var data, contents, response;
10070
10216
  return __generator(this, function (_a) {
10071
10217
  switch (_a.label) {
10072
10218
  case 0:
10073
10219
  if (output.statusCode >= 300) {
10074
- return [2, deserializeAws_ec2CreateTransitGatewayRouteCommandError(output, context)];
10220
+ return [2, deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommandError(output, context)];
10075
10221
  }
10076
10222
  return [4, parseBody(output.body, context)];
10077
10223
  case 1:
10078
10224
  data = _a.sent();
10079
10225
  contents = {};
10080
- contents = deserializeAws_ec2CreateTransitGatewayRouteResult(data, context);
10226
+ contents = deserializeAws_ec2CreateTransitGatewayPrefixListReferenceResult(data, context);
10081
10227
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10082
10228
  return [2, Promise.resolve(response)];
10083
10229
  }
10084
10230
  });
10085
10231
  }); };
10086
- var deserializeAws_ec2CreateTransitGatewayRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10232
+ var deserializeAws_ec2CreateTransitGatewayPrefixListReferenceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10087
10233
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10088
10234
  var _b;
10089
10235
  return __generator(this, function (_c) {
@@ -10111,25 +10257,25 @@ var deserializeAws_ec2CreateTransitGatewayRouteCommandError = function (output,
10111
10257
  }
10112
10258
  });
10113
10259
  }); };
10114
- export var deserializeAws_ec2CreateTransitGatewayRouteTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10260
+ export var deserializeAws_ec2CreateTransitGatewayRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10115
10261
  var data, contents, response;
10116
10262
  return __generator(this, function (_a) {
10117
10263
  switch (_a.label) {
10118
10264
  case 0:
10119
10265
  if (output.statusCode >= 300) {
10120
- return [2, deserializeAws_ec2CreateTransitGatewayRouteTableCommandError(output, context)];
10266
+ return [2, deserializeAws_ec2CreateTransitGatewayRouteCommandError(output, context)];
10121
10267
  }
10122
10268
  return [4, parseBody(output.body, context)];
10123
10269
  case 1:
10124
10270
  data = _a.sent();
10125
10271
  contents = {};
10126
- contents = deserializeAws_ec2CreateTransitGatewayRouteTableResult(data, context);
10272
+ contents = deserializeAws_ec2CreateTransitGatewayRouteResult(data, context);
10127
10273
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10128
10274
  return [2, Promise.resolve(response)];
10129
10275
  }
10130
10276
  });
10131
10277
  }); };
10132
- var deserializeAws_ec2CreateTransitGatewayRouteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10278
+ var deserializeAws_ec2CreateTransitGatewayRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10133
10279
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10134
10280
  var _b;
10135
10281
  return __generator(this, function (_c) {
@@ -10157,25 +10303,25 @@ var deserializeAws_ec2CreateTransitGatewayRouteTableCommandError = function (out
10157
10303
  }
10158
10304
  });
10159
10305
  }); };
10160
- export var deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10306
+ export var deserializeAws_ec2CreateTransitGatewayRouteTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10161
10307
  var data, contents, response;
10162
10308
  return __generator(this, function (_a) {
10163
10309
  switch (_a.label) {
10164
10310
  case 0:
10165
10311
  if (output.statusCode >= 300) {
10166
- return [2, deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommandError(output, context)];
10312
+ return [2, deserializeAws_ec2CreateTransitGatewayRouteTableCommandError(output, context)];
10167
10313
  }
10168
10314
  return [4, parseBody(output.body, context)];
10169
10315
  case 1:
10170
10316
  data = _a.sent();
10171
10317
  contents = {};
10172
- contents = deserializeAws_ec2CreateTransitGatewayVpcAttachmentResult(data, context);
10318
+ contents = deserializeAws_ec2CreateTransitGatewayRouteTableResult(data, context);
10173
10319
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10174
10320
  return [2, Promise.resolve(response)];
10175
10321
  }
10176
10322
  });
10177
10323
  }); };
10178
- var deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10324
+ var deserializeAws_ec2CreateTransitGatewayRouteTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10179
10325
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10180
10326
  var _b;
10181
10327
  return __generator(this, function (_c) {
@@ -10203,25 +10349,25 @@ var deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommandError = function (
10203
10349
  }
10204
10350
  });
10205
10351
  }); };
10206
- export var deserializeAws_ec2CreateVolumeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10352
+ export var deserializeAws_ec2CreateTransitGatewayRouteTableAnnouncementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10207
10353
  var data, contents, response;
10208
10354
  return __generator(this, function (_a) {
10209
10355
  switch (_a.label) {
10210
10356
  case 0:
10211
10357
  if (output.statusCode >= 300) {
10212
- return [2, deserializeAws_ec2CreateVolumeCommandError(output, context)];
10358
+ return [2, deserializeAws_ec2CreateTransitGatewayRouteTableAnnouncementCommandError(output, context)];
10213
10359
  }
10214
10360
  return [4, parseBody(output.body, context)];
10215
10361
  case 1:
10216
10362
  data = _a.sent();
10217
10363
  contents = {};
10218
- contents = deserializeAws_ec2Volume(data, context);
10364
+ contents = deserializeAws_ec2CreateTransitGatewayRouteTableAnnouncementResult(data, context);
10219
10365
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10220
10366
  return [2, Promise.resolve(response)];
10221
10367
  }
10222
10368
  });
10223
10369
  }); };
10224
- var deserializeAws_ec2CreateVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10370
+ var deserializeAws_ec2CreateTransitGatewayRouteTableAnnouncementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10225
10371
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10226
10372
  var _b;
10227
10373
  return __generator(this, function (_c) {
@@ -10249,25 +10395,25 @@ var deserializeAws_ec2CreateVolumeCommandError = function (output, context) { re
10249
10395
  }
10250
10396
  });
10251
10397
  }); };
10252
- export var deserializeAws_ec2CreateVpcCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10398
+ export var deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10253
10399
  var data, contents, response;
10254
10400
  return __generator(this, function (_a) {
10255
10401
  switch (_a.label) {
10256
10402
  case 0:
10257
10403
  if (output.statusCode >= 300) {
10258
- return [2, deserializeAws_ec2CreateVpcCommandError(output, context)];
10404
+ return [2, deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommandError(output, context)];
10259
10405
  }
10260
10406
  return [4, parseBody(output.body, context)];
10261
10407
  case 1:
10262
10408
  data = _a.sent();
10263
10409
  contents = {};
10264
- contents = deserializeAws_ec2CreateVpcResult(data, context);
10410
+ contents = deserializeAws_ec2CreateTransitGatewayVpcAttachmentResult(data, context);
10265
10411
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10266
10412
  return [2, Promise.resolve(response)];
10267
10413
  }
10268
10414
  });
10269
10415
  }); };
10270
- var deserializeAws_ec2CreateVpcCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10416
+ var deserializeAws_ec2CreateTransitGatewayVpcAttachmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10271
10417
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10272
10418
  var _b;
10273
10419
  return __generator(this, function (_c) {
@@ -10295,25 +10441,25 @@ var deserializeAws_ec2CreateVpcCommandError = function (output, context) { retur
10295
10441
  }
10296
10442
  });
10297
10443
  }); };
10298
- export var deserializeAws_ec2CreateVpcEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10444
+ export var deserializeAws_ec2CreateVolumeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10299
10445
  var data, contents, response;
10300
10446
  return __generator(this, function (_a) {
10301
10447
  switch (_a.label) {
10302
10448
  case 0:
10303
10449
  if (output.statusCode >= 300) {
10304
- return [2, deserializeAws_ec2CreateVpcEndpointCommandError(output, context)];
10450
+ return [2, deserializeAws_ec2CreateVolumeCommandError(output, context)];
10305
10451
  }
10306
10452
  return [4, parseBody(output.body, context)];
10307
10453
  case 1:
10308
10454
  data = _a.sent();
10309
10455
  contents = {};
10310
- contents = deserializeAws_ec2CreateVpcEndpointResult(data, context);
10456
+ contents = deserializeAws_ec2Volume(data, context);
10311
10457
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10312
10458
  return [2, Promise.resolve(response)];
10313
10459
  }
10314
10460
  });
10315
10461
  }); };
10316
- var deserializeAws_ec2CreateVpcEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10462
+ var deserializeAws_ec2CreateVolumeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10317
10463
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10318
10464
  var _b;
10319
10465
  return __generator(this, function (_c) {
@@ -10341,25 +10487,25 @@ var deserializeAws_ec2CreateVpcEndpointCommandError = function (output, context)
10341
10487
  }
10342
10488
  });
10343
10489
  }); };
10344
- export var deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10490
+ export var deserializeAws_ec2CreateVpcCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10345
10491
  var data, contents, response;
10346
10492
  return __generator(this, function (_a) {
10347
10493
  switch (_a.label) {
10348
10494
  case 0:
10349
10495
  if (output.statusCode >= 300) {
10350
- return [2, deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommandError(output, context)];
10496
+ return [2, deserializeAws_ec2CreateVpcCommandError(output, context)];
10351
10497
  }
10352
10498
  return [4, parseBody(output.body, context)];
10353
10499
  case 1:
10354
10500
  data = _a.sent();
10355
10501
  contents = {};
10356
- contents = deserializeAws_ec2CreateVpcEndpointConnectionNotificationResult(data, context);
10502
+ contents = deserializeAws_ec2CreateVpcResult(data, context);
10357
10503
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10358
10504
  return [2, Promise.resolve(response)];
10359
10505
  }
10360
10506
  });
10361
10507
  }); };
10362
- var deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10508
+ var deserializeAws_ec2CreateVpcCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10363
10509
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10364
10510
  var _b;
10365
10511
  return __generator(this, function (_c) {
@@ -10387,25 +10533,25 @@ var deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommandError = func
10387
10533
  }
10388
10534
  });
10389
10535
  }); };
10390
- export var deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10536
+ export var deserializeAws_ec2CreateVpcEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10391
10537
  var data, contents, response;
10392
10538
  return __generator(this, function (_a) {
10393
10539
  switch (_a.label) {
10394
10540
  case 0:
10395
10541
  if (output.statusCode >= 300) {
10396
- return [2, deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommandError(output, context)];
10542
+ return [2, deserializeAws_ec2CreateVpcEndpointCommandError(output, context)];
10397
10543
  }
10398
10544
  return [4, parseBody(output.body, context)];
10399
10545
  case 1:
10400
10546
  data = _a.sent();
10401
10547
  contents = {};
10402
- contents = deserializeAws_ec2CreateVpcEndpointServiceConfigurationResult(data, context);
10548
+ contents = deserializeAws_ec2CreateVpcEndpointResult(data, context);
10403
10549
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10404
10550
  return [2, Promise.resolve(response)];
10405
10551
  }
10406
10552
  });
10407
10553
  }); };
10408
- var deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10554
+ var deserializeAws_ec2CreateVpcEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10409
10555
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10410
10556
  var _b;
10411
10557
  return __generator(this, function (_c) {
@@ -10433,25 +10579,25 @@ var deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommandError = functi
10433
10579
  }
10434
10580
  });
10435
10581
  }); };
10436
- export var deserializeAws_ec2CreateVpcPeeringConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10582
+ export var deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10437
10583
  var data, contents, response;
10438
10584
  return __generator(this, function (_a) {
10439
10585
  switch (_a.label) {
10440
10586
  case 0:
10441
10587
  if (output.statusCode >= 300) {
10442
- return [2, deserializeAws_ec2CreateVpcPeeringConnectionCommandError(output, context)];
10588
+ return [2, deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommandError(output, context)];
10443
10589
  }
10444
10590
  return [4, parseBody(output.body, context)];
10445
10591
  case 1:
10446
10592
  data = _a.sent();
10447
10593
  contents = {};
10448
- contents = deserializeAws_ec2CreateVpcPeeringConnectionResult(data, context);
10594
+ contents = deserializeAws_ec2CreateVpcEndpointConnectionNotificationResult(data, context);
10449
10595
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10450
10596
  return [2, Promise.resolve(response)];
10451
10597
  }
10452
10598
  });
10453
10599
  }); };
10454
- var deserializeAws_ec2CreateVpcPeeringConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10600
+ var deserializeAws_ec2CreateVpcEndpointConnectionNotificationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10455
10601
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10456
10602
  var _b;
10457
10603
  return __generator(this, function (_c) {
@@ -10479,25 +10625,25 @@ var deserializeAws_ec2CreateVpcPeeringConnectionCommandError = function (output,
10479
10625
  }
10480
10626
  });
10481
10627
  }); };
10482
- export var deserializeAws_ec2CreateVpnConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10628
+ export var deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10483
10629
  var data, contents, response;
10484
10630
  return __generator(this, function (_a) {
10485
10631
  switch (_a.label) {
10486
10632
  case 0:
10487
10633
  if (output.statusCode >= 300) {
10488
- return [2, deserializeAws_ec2CreateVpnConnectionCommandError(output, context)];
10634
+ return [2, deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommandError(output, context)];
10489
10635
  }
10490
10636
  return [4, parseBody(output.body, context)];
10491
10637
  case 1:
10492
10638
  data = _a.sent();
10493
10639
  contents = {};
10494
- contents = deserializeAws_ec2CreateVpnConnectionResult(data, context);
10640
+ contents = deserializeAws_ec2CreateVpcEndpointServiceConfigurationResult(data, context);
10495
10641
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10496
10642
  return [2, Promise.resolve(response)];
10497
10643
  }
10498
10644
  });
10499
10645
  }); };
10500
- var deserializeAws_ec2CreateVpnConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10646
+ var deserializeAws_ec2CreateVpcEndpointServiceConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10501
10647
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10502
10648
  var _b;
10503
10649
  return __generator(this, function (_c) {
@@ -10525,25 +10671,25 @@ var deserializeAws_ec2CreateVpnConnectionCommandError = function (output, contex
10525
10671
  }
10526
10672
  });
10527
10673
  }); };
10528
- export var deserializeAws_ec2CreateVpnConnectionRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10529
- var response;
10674
+ export var deserializeAws_ec2CreateVpcPeeringConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10675
+ var data, contents, response;
10530
10676
  return __generator(this, function (_a) {
10531
10677
  switch (_a.label) {
10532
10678
  case 0:
10533
10679
  if (output.statusCode >= 300) {
10534
- return [2, deserializeAws_ec2CreateVpnConnectionRouteCommandError(output, context)];
10680
+ return [2, deserializeAws_ec2CreateVpcPeeringConnectionCommandError(output, context)];
10535
10681
  }
10536
- return [4, collectBody(output.body, context)];
10682
+ return [4, parseBody(output.body, context)];
10537
10683
  case 1:
10538
- _a.sent();
10539
- response = {
10540
- $metadata: deserializeMetadata(output),
10541
- };
10684
+ data = _a.sent();
10685
+ contents = {};
10686
+ contents = deserializeAws_ec2CreateVpcPeeringConnectionResult(data, context);
10687
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10542
10688
  return [2, Promise.resolve(response)];
10543
10689
  }
10544
10690
  });
10545
10691
  }); };
10546
- var deserializeAws_ec2CreateVpnConnectionRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10692
+ var deserializeAws_ec2CreateVpcPeeringConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10547
10693
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10548
10694
  var _b;
10549
10695
  return __generator(this, function (_c) {
@@ -10571,25 +10717,25 @@ var deserializeAws_ec2CreateVpnConnectionRouteCommandError = function (output, c
10571
10717
  }
10572
10718
  });
10573
10719
  }); };
10574
- export var deserializeAws_ec2CreateVpnGatewayCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10720
+ export var deserializeAws_ec2CreateVpnConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10575
10721
  var data, contents, response;
10576
10722
  return __generator(this, function (_a) {
10577
10723
  switch (_a.label) {
10578
10724
  case 0:
10579
10725
  if (output.statusCode >= 300) {
10580
- return [2, deserializeAws_ec2CreateVpnGatewayCommandError(output, context)];
10726
+ return [2, deserializeAws_ec2CreateVpnConnectionCommandError(output, context)];
10581
10727
  }
10582
10728
  return [4, parseBody(output.body, context)];
10583
10729
  case 1:
10584
10730
  data = _a.sent();
10585
10731
  contents = {};
10586
- contents = deserializeAws_ec2CreateVpnGatewayResult(data, context);
10732
+ contents = deserializeAws_ec2CreateVpnConnectionResult(data, context);
10587
10733
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10588
10734
  return [2, Promise.resolve(response)];
10589
10735
  }
10590
10736
  });
10591
10737
  }); };
10592
- var deserializeAws_ec2CreateVpnGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10738
+ var deserializeAws_ec2CreateVpnConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10593
10739
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10594
10740
  var _b;
10595
10741
  return __generator(this, function (_c) {
@@ -10617,25 +10763,25 @@ var deserializeAws_ec2CreateVpnGatewayCommandError = function (output, context)
10617
10763
  }
10618
10764
  });
10619
10765
  }); };
10620
- export var deserializeAws_ec2DeleteCarrierGatewayCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10621
- var data, contents, response;
10766
+ export var deserializeAws_ec2CreateVpnConnectionRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10767
+ var response;
10622
10768
  return __generator(this, function (_a) {
10623
10769
  switch (_a.label) {
10624
10770
  case 0:
10625
10771
  if (output.statusCode >= 300) {
10626
- return [2, deserializeAws_ec2DeleteCarrierGatewayCommandError(output, context)];
10772
+ return [2, deserializeAws_ec2CreateVpnConnectionRouteCommandError(output, context)];
10627
10773
  }
10628
- return [4, parseBody(output.body, context)];
10774
+ return [4, collectBody(output.body, context)];
10629
10775
  case 1:
10630
- data = _a.sent();
10631
- contents = {};
10632
- contents = deserializeAws_ec2DeleteCarrierGatewayResult(data, context);
10633
- response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10776
+ _a.sent();
10777
+ response = {
10778
+ $metadata: deserializeMetadata(output),
10779
+ };
10634
10780
  return [2, Promise.resolve(response)];
10635
10781
  }
10636
10782
  });
10637
10783
  }); };
10638
- var deserializeAws_ec2DeleteCarrierGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10784
+ var deserializeAws_ec2CreateVpnConnectionRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10639
10785
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10640
10786
  var _b;
10641
10787
  return __generator(this, function (_c) {
@@ -10663,25 +10809,25 @@ var deserializeAws_ec2DeleteCarrierGatewayCommandError = function (output, conte
10663
10809
  }
10664
10810
  });
10665
10811
  }); };
10666
- export var deserializeAws_ec2DeleteClientVpnEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10812
+ export var deserializeAws_ec2CreateVpnGatewayCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10667
10813
  var data, contents, response;
10668
10814
  return __generator(this, function (_a) {
10669
10815
  switch (_a.label) {
10670
10816
  case 0:
10671
10817
  if (output.statusCode >= 300) {
10672
- return [2, deserializeAws_ec2DeleteClientVpnEndpointCommandError(output, context)];
10818
+ return [2, deserializeAws_ec2CreateVpnGatewayCommandError(output, context)];
10673
10819
  }
10674
10820
  return [4, parseBody(output.body, context)];
10675
10821
  case 1:
10676
10822
  data = _a.sent();
10677
10823
  contents = {};
10678
- contents = deserializeAws_ec2DeleteClientVpnEndpointResult(data, context);
10824
+ contents = deserializeAws_ec2CreateVpnGatewayResult(data, context);
10679
10825
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10680
10826
  return [2, Promise.resolve(response)];
10681
10827
  }
10682
10828
  });
10683
10829
  }); };
10684
- var deserializeAws_ec2DeleteClientVpnEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10830
+ var deserializeAws_ec2CreateVpnGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10685
10831
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10686
10832
  var _b;
10687
10833
  return __generator(this, function (_c) {
@@ -10709,25 +10855,117 @@ var deserializeAws_ec2DeleteClientVpnEndpointCommandError = function (output, co
10709
10855
  }
10710
10856
  });
10711
10857
  }); };
10712
- export var deserializeAws_ec2DeleteClientVpnRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10858
+ export var deserializeAws_ec2DeleteCarrierGatewayCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10713
10859
  var data, contents, response;
10714
10860
  return __generator(this, function (_a) {
10715
10861
  switch (_a.label) {
10716
10862
  case 0:
10717
10863
  if (output.statusCode >= 300) {
10718
- return [2, deserializeAws_ec2DeleteClientVpnRouteCommandError(output, context)];
10864
+ return [2, deserializeAws_ec2DeleteCarrierGatewayCommandError(output, context)];
10719
10865
  }
10720
10866
  return [4, parseBody(output.body, context)];
10721
10867
  case 1:
10722
10868
  data = _a.sent();
10723
10869
  contents = {};
10724
- contents = deserializeAws_ec2DeleteClientVpnRouteResult(data, context);
10870
+ contents = deserializeAws_ec2DeleteCarrierGatewayResult(data, context);
10725
10871
  response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10726
10872
  return [2, Promise.resolve(response)];
10727
10873
  }
10728
10874
  });
10729
10875
  }); };
10730
- var deserializeAws_ec2DeleteClientVpnRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10876
+ var deserializeAws_ec2DeleteCarrierGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10877
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10878
+ var _b;
10879
+ return __generator(this, function (_c) {
10880
+ switch (_c.label) {
10881
+ case 0:
10882
+ _a = [__assign({}, output)];
10883
+ _b = {};
10884
+ return [4, parseBody(output.body, context)];
10885
+ case 1:
10886
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
10887
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
10888
+ switch (errorCode) {
10889
+ default:
10890
+ parsedBody = parsedOutput.body;
10891
+ $metadata = deserializeMetadata(output);
10892
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
10893
+ response = new __BaseException({
10894
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
10895
+ $fault: "client",
10896
+ $metadata: $metadata,
10897
+ });
10898
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
10899
+ }
10900
+ return [2];
10901
+ }
10902
+ });
10903
+ }); };
10904
+ export var deserializeAws_ec2DeleteClientVpnEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10905
+ var data, contents, response;
10906
+ return __generator(this, function (_a) {
10907
+ switch (_a.label) {
10908
+ case 0:
10909
+ if (output.statusCode >= 300) {
10910
+ return [2, deserializeAws_ec2DeleteClientVpnEndpointCommandError(output, context)];
10911
+ }
10912
+ return [4, parseBody(output.body, context)];
10913
+ case 1:
10914
+ data = _a.sent();
10915
+ contents = {};
10916
+ contents = deserializeAws_ec2DeleteClientVpnEndpointResult(data, context);
10917
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10918
+ return [2, Promise.resolve(response)];
10919
+ }
10920
+ });
10921
+ }); };
10922
+ var deserializeAws_ec2DeleteClientVpnEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10923
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10924
+ var _b;
10925
+ return __generator(this, function (_c) {
10926
+ switch (_c.label) {
10927
+ case 0:
10928
+ _a = [__assign({}, output)];
10929
+ _b = {};
10930
+ return [4, parseBody(output.body, context)];
10931
+ case 1:
10932
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
10933
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
10934
+ switch (errorCode) {
10935
+ default:
10936
+ parsedBody = parsedOutput.body;
10937
+ $metadata = deserializeMetadata(output);
10938
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
10939
+ response = new __BaseException({
10940
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
10941
+ $fault: "client",
10942
+ $metadata: $metadata,
10943
+ });
10944
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
10945
+ }
10946
+ return [2];
10947
+ }
10948
+ });
10949
+ }); };
10950
+ export var deserializeAws_ec2DeleteClientVpnRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10951
+ var data, contents, response;
10952
+ return __generator(this, function (_a) {
10953
+ switch (_a.label) {
10954
+ case 0:
10955
+ if (output.statusCode >= 300) {
10956
+ return [2, deserializeAws_ec2DeleteClientVpnRouteCommandError(output, context)];
10957
+ }
10958
+ return [4, parseBody(output.body, context)];
10959
+ case 1:
10960
+ data = _a.sent();
10961
+ contents = {};
10962
+ contents = deserializeAws_ec2DeleteClientVpnRouteResult(data, context);
10963
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
10964
+ return [2, Promise.resolve(response)];
10965
+ }
10966
+ });
10967
+ }); };
10968
+ var deserializeAws_ec2DeleteClientVpnRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
10731
10969
  var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
10732
10970
  var _b;
10733
10971
  return __generator(this, function (_c) {
@@ -12871,6 +13109,52 @@ var deserializeAws_ec2DeleteTransitGatewayPeeringAttachmentCommandError = functi
12871
13109
  }
12872
13110
  });
12873
13111
  }); };
13112
+ export var deserializeAws_ec2DeleteTransitGatewayPolicyTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
13113
+ var data, contents, response;
13114
+ return __generator(this, function (_a) {
13115
+ switch (_a.label) {
13116
+ case 0:
13117
+ if (output.statusCode >= 300) {
13118
+ return [2, deserializeAws_ec2DeleteTransitGatewayPolicyTableCommandError(output, context)];
13119
+ }
13120
+ return [4, parseBody(output.body, context)];
13121
+ case 1:
13122
+ data = _a.sent();
13123
+ contents = {};
13124
+ contents = deserializeAws_ec2DeleteTransitGatewayPolicyTableResult(data, context);
13125
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
13126
+ return [2, Promise.resolve(response)];
13127
+ }
13128
+ });
13129
+ }); };
13130
+ var deserializeAws_ec2DeleteTransitGatewayPolicyTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
13131
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
13132
+ var _b;
13133
+ return __generator(this, function (_c) {
13134
+ switch (_c.label) {
13135
+ case 0:
13136
+ _a = [__assign({}, output)];
13137
+ _b = {};
13138
+ return [4, parseBody(output.body, context)];
13139
+ case 1:
13140
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
13141
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
13142
+ switch (errorCode) {
13143
+ default:
13144
+ parsedBody = parsedOutput.body;
13145
+ $metadata = deserializeMetadata(output);
13146
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
13147
+ response = new __BaseException({
13148
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
13149
+ $fault: "client",
13150
+ $metadata: $metadata,
13151
+ });
13152
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
13153
+ }
13154
+ return [2];
13155
+ }
13156
+ });
13157
+ }); };
12874
13158
  export var deserializeAws_ec2DeleteTransitGatewayPrefixListReferenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
12875
13159
  var data, contents, response;
12876
13160
  return __generator(this, function (_a) {
@@ -13009,6 +13293,52 @@ var deserializeAws_ec2DeleteTransitGatewayRouteTableCommandError = function (out
13009
13293
  }
13010
13294
  });
13011
13295
  }); };
13296
+ export var deserializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
13297
+ var data, contents, response;
13298
+ return __generator(this, function (_a) {
13299
+ switch (_a.label) {
13300
+ case 0:
13301
+ if (output.statusCode >= 300) {
13302
+ return [2, deserializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementCommandError(output, context)];
13303
+ }
13304
+ return [4, parseBody(output.body, context)];
13305
+ case 1:
13306
+ data = _a.sent();
13307
+ contents = {};
13308
+ contents = deserializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementResult(data, context);
13309
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
13310
+ return [2, Promise.resolve(response)];
13311
+ }
13312
+ });
13313
+ }); };
13314
+ var deserializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
13315
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
13316
+ var _b;
13317
+ return __generator(this, function (_c) {
13318
+ switch (_c.label) {
13319
+ case 0:
13320
+ _a = [__assign({}, output)];
13321
+ _b = {};
13322
+ return [4, parseBody(output.body, context)];
13323
+ case 1:
13324
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
13325
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
13326
+ switch (errorCode) {
13327
+ default:
13328
+ parsedBody = parsedOutput.body;
13329
+ $metadata = deserializeMetadata(output);
13330
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
13331
+ response = new __BaseException({
13332
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
13333
+ $fault: "client",
13334
+ $metadata: $metadata,
13335
+ });
13336
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
13337
+ }
13338
+ return [2];
13339
+ }
13340
+ });
13341
+ }); };
13012
13342
  export var deserializeAws_ec2DeleteTransitGatewayVpcAttachmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
13013
13343
  var data, contents, response;
13014
13344
  return __generator(this, function (_a) {
@@ -18943,6 +19273,98 @@ var deserializeAws_ec2DescribeTransitGatewayPeeringAttachmentsCommandError = fun
18943
19273
  }
18944
19274
  });
18945
19275
  }); };
19276
+ export var deserializeAws_ec2DescribeTransitGatewayPolicyTablesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19277
+ var data, contents, response;
19278
+ return __generator(this, function (_a) {
19279
+ switch (_a.label) {
19280
+ case 0:
19281
+ if (output.statusCode >= 300) {
19282
+ return [2, deserializeAws_ec2DescribeTransitGatewayPolicyTablesCommandError(output, context)];
19283
+ }
19284
+ return [4, parseBody(output.body, context)];
19285
+ case 1:
19286
+ data = _a.sent();
19287
+ contents = {};
19288
+ contents = deserializeAws_ec2DescribeTransitGatewayPolicyTablesResult(data, context);
19289
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
19290
+ return [2, Promise.resolve(response)];
19291
+ }
19292
+ });
19293
+ }); };
19294
+ var deserializeAws_ec2DescribeTransitGatewayPolicyTablesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19295
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
19296
+ var _b;
19297
+ return __generator(this, function (_c) {
19298
+ switch (_c.label) {
19299
+ case 0:
19300
+ _a = [__assign({}, output)];
19301
+ _b = {};
19302
+ return [4, parseBody(output.body, context)];
19303
+ case 1:
19304
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
19305
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
19306
+ switch (errorCode) {
19307
+ default:
19308
+ parsedBody = parsedOutput.body;
19309
+ $metadata = deserializeMetadata(output);
19310
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
19311
+ response = new __BaseException({
19312
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
19313
+ $fault: "client",
19314
+ $metadata: $metadata,
19315
+ });
19316
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
19317
+ }
19318
+ return [2];
19319
+ }
19320
+ });
19321
+ }); };
19322
+ export var deserializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19323
+ var data, contents, response;
19324
+ return __generator(this, function (_a) {
19325
+ switch (_a.label) {
19326
+ case 0:
19327
+ if (output.statusCode >= 300) {
19328
+ return [2, deserializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsCommandError(output, context)];
19329
+ }
19330
+ return [4, parseBody(output.body, context)];
19331
+ case 1:
19332
+ data = _a.sent();
19333
+ contents = {};
19334
+ contents = deserializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsResult(data, context);
19335
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
19336
+ return [2, Promise.resolve(response)];
19337
+ }
19338
+ });
19339
+ }); };
19340
+ var deserializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
19341
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
19342
+ var _b;
19343
+ return __generator(this, function (_c) {
19344
+ switch (_c.label) {
19345
+ case 0:
19346
+ _a = [__assign({}, output)];
19347
+ _b = {};
19348
+ return [4, parseBody(output.body, context)];
19349
+ case 1:
19350
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
19351
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
19352
+ switch (errorCode) {
19353
+ default:
19354
+ parsedBody = parsedOutput.body;
19355
+ $metadata = deserializeMetadata(output);
19356
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
19357
+ response = new __BaseException({
19358
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
19359
+ $fault: "client",
19360
+ $metadata: $metadata,
19361
+ });
19362
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
19363
+ }
19364
+ return [2];
19365
+ }
19366
+ });
19367
+ }); };
18946
19368
  export var deserializeAws_ec2DescribeTransitGatewayRouteTablesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
18947
19369
  var data, contents, response;
18948
19370
  return __generator(this, function (_a) {
@@ -20967,6 +21389,52 @@ var deserializeAws_ec2DisassociateTransitGatewayMulticastDomainCommandError = fu
20967
21389
  }
20968
21390
  });
20969
21391
  }); };
21392
+ export var deserializeAws_ec2DisassociateTransitGatewayPolicyTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21393
+ var data, contents, response;
21394
+ return __generator(this, function (_a) {
21395
+ switch (_a.label) {
21396
+ case 0:
21397
+ if (output.statusCode >= 300) {
21398
+ return [2, deserializeAws_ec2DisassociateTransitGatewayPolicyTableCommandError(output, context)];
21399
+ }
21400
+ return [4, parseBody(output.body, context)];
21401
+ case 1:
21402
+ data = _a.sent();
21403
+ contents = {};
21404
+ contents = deserializeAws_ec2DisassociateTransitGatewayPolicyTableResult(data, context);
21405
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
21406
+ return [2, Promise.resolve(response)];
21407
+ }
21408
+ });
21409
+ }); };
21410
+ var deserializeAws_ec2DisassociateTransitGatewayPolicyTableCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
21411
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
21412
+ var _b;
21413
+ return __generator(this, function (_c) {
21414
+ switch (_c.label) {
21415
+ case 0:
21416
+ _a = [__assign({}, output)];
21417
+ _b = {};
21418
+ return [4, parseBody(output.body, context)];
21419
+ case 1:
21420
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
21421
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
21422
+ switch (errorCode) {
21423
+ default:
21424
+ parsedBody = parsedOutput.body;
21425
+ $metadata = deserializeMetadata(output);
21426
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
21427
+ response = new __BaseException({
21428
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
21429
+ $fault: "client",
21430
+ $metadata: $metadata,
21431
+ });
21432
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
21433
+ }
21434
+ return [2];
21435
+ }
21436
+ });
21437
+ }); };
20970
21438
  export var deserializeAws_ec2DisassociateTransitGatewayRouteTableCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
20971
21439
  var data, contents, response;
20972
21440
  return __generator(this, function (_a) {
@@ -23175,6 +23643,98 @@ var deserializeAws_ec2GetTransitGatewayMulticastDomainAssociationsCommandError =
23175
23643
  }
23176
23644
  });
23177
23645
  }); };
23646
+ export var deserializeAws_ec2GetTransitGatewayPolicyTableAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23647
+ var data, contents, response;
23648
+ return __generator(this, function (_a) {
23649
+ switch (_a.label) {
23650
+ case 0:
23651
+ if (output.statusCode >= 300) {
23652
+ return [2, deserializeAws_ec2GetTransitGatewayPolicyTableAssociationsCommandError(output, context)];
23653
+ }
23654
+ return [4, parseBody(output.body, context)];
23655
+ case 1:
23656
+ data = _a.sent();
23657
+ contents = {};
23658
+ contents = deserializeAws_ec2GetTransitGatewayPolicyTableAssociationsResult(data, context);
23659
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
23660
+ return [2, Promise.resolve(response)];
23661
+ }
23662
+ });
23663
+ }); };
23664
+ var deserializeAws_ec2GetTransitGatewayPolicyTableAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23665
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
23666
+ var _b;
23667
+ return __generator(this, function (_c) {
23668
+ switch (_c.label) {
23669
+ case 0:
23670
+ _a = [__assign({}, output)];
23671
+ _b = {};
23672
+ return [4, parseBody(output.body, context)];
23673
+ case 1:
23674
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
23675
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
23676
+ switch (errorCode) {
23677
+ default:
23678
+ parsedBody = parsedOutput.body;
23679
+ $metadata = deserializeMetadata(output);
23680
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
23681
+ response = new __BaseException({
23682
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
23683
+ $fault: "client",
23684
+ $metadata: $metadata,
23685
+ });
23686
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
23687
+ }
23688
+ return [2];
23689
+ }
23690
+ });
23691
+ }); };
23692
+ export var deserializeAws_ec2GetTransitGatewayPolicyTableEntriesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23693
+ var data, contents, response;
23694
+ return __generator(this, function (_a) {
23695
+ switch (_a.label) {
23696
+ case 0:
23697
+ if (output.statusCode >= 300) {
23698
+ return [2, deserializeAws_ec2GetTransitGatewayPolicyTableEntriesCommandError(output, context)];
23699
+ }
23700
+ return [4, parseBody(output.body, context)];
23701
+ case 1:
23702
+ data = _a.sent();
23703
+ contents = {};
23704
+ contents = deserializeAws_ec2GetTransitGatewayPolicyTableEntriesResult(data, context);
23705
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
23706
+ return [2, Promise.resolve(response)];
23707
+ }
23708
+ });
23709
+ }); };
23710
+ var deserializeAws_ec2GetTransitGatewayPolicyTableEntriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23711
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
23712
+ var _b;
23713
+ return __generator(this, function (_c) {
23714
+ switch (_c.label) {
23715
+ case 0:
23716
+ _a = [__assign({}, output)];
23717
+ _b = {};
23718
+ return [4, parseBody(output.body, context)];
23719
+ case 1:
23720
+ parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
23721
+ errorCode = loadEc2ErrorCode(output, parsedOutput.body);
23722
+ switch (errorCode) {
23723
+ default:
23724
+ parsedBody = parsedOutput.body;
23725
+ $metadata = deserializeMetadata(output);
23726
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
23727
+ response = new __BaseException({
23728
+ name: parsedBody.Errors.Error.code || parsedBody.Errors.Error.Code || errorCode || statusCode || "UnknowError",
23729
+ $fault: "client",
23730
+ $metadata: $metadata,
23731
+ });
23732
+ throw __decorateServiceException(response, parsedBody.Errors.Error);
23733
+ }
23734
+ return [2];
23735
+ }
23736
+ });
23737
+ }); };
23178
23738
  export var deserializeAws_ec2GetTransitGatewayPrefixListReferencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
23179
23739
  var data, contents, response;
23180
23740
  return __generator(this, function (_a) {
@@ -30079,6 +30639,19 @@ var serializeAws_ec2AssociateTransitGatewayMulticastDomainRequest = function (in
30079
30639
  }
30080
30640
  return entries;
30081
30641
  };
30642
+ var serializeAws_ec2AssociateTransitGatewayPolicyTableRequest = function (input, context) {
30643
+ var entries = {};
30644
+ if (input.TransitGatewayPolicyTableId !== undefined && input.TransitGatewayPolicyTableId !== null) {
30645
+ entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId;
30646
+ }
30647
+ if (input.TransitGatewayAttachmentId !== undefined && input.TransitGatewayAttachmentId !== null) {
30648
+ entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId;
30649
+ }
30650
+ if (input.DryRun !== undefined && input.DryRun !== null) {
30651
+ entries["DryRun"] = input.DryRun;
30652
+ }
30653
+ return entries;
30654
+ };
30082
30655
  var serializeAws_ec2AssociateTransitGatewayRouteTableRequest = function (input, context) {
30083
30656
  var entries = {};
30084
30657
  if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
@@ -33089,6 +33662,14 @@ var serializeAws_ec2CreateTransitGatewayPeeringAttachmentRequest = function (inp
33089
33662
  if (input.PeerRegion !== undefined && input.PeerRegion !== null) {
33090
33663
  entries["PeerRegion"] = input.PeerRegion;
33091
33664
  }
33665
+ if (input.Options !== undefined && input.Options !== null) {
33666
+ var memberEntries = serializeAws_ec2CreateTransitGatewayPeeringAttachmentRequestOptions(input.Options, context);
33667
+ Object.entries(memberEntries).forEach(function (_a) {
33668
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
33669
+ var loc = "Options.".concat(key);
33670
+ entries[loc] = value;
33671
+ });
33672
+ }
33092
33673
  if (input.TagSpecifications !== undefined && input.TagSpecifications !== null) {
33093
33674
  var memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
33094
33675
  Object.entries(memberEntries).forEach(function (_a) {
@@ -33102,6 +33683,31 @@ var serializeAws_ec2CreateTransitGatewayPeeringAttachmentRequest = function (inp
33102
33683
  }
33103
33684
  return entries;
33104
33685
  };
33686
+ var serializeAws_ec2CreateTransitGatewayPeeringAttachmentRequestOptions = function (input, context) {
33687
+ var entries = {};
33688
+ if (input.DynamicRouting !== undefined && input.DynamicRouting !== null) {
33689
+ entries["DynamicRouting"] = input.DynamicRouting;
33690
+ }
33691
+ return entries;
33692
+ };
33693
+ var serializeAws_ec2CreateTransitGatewayPolicyTableRequest = function (input, context) {
33694
+ var entries = {};
33695
+ if (input.TransitGatewayId !== undefined && input.TransitGatewayId !== null) {
33696
+ entries["TransitGatewayId"] = input.TransitGatewayId;
33697
+ }
33698
+ if (input.TagSpecifications !== undefined && input.TagSpecifications !== null) {
33699
+ var memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
33700
+ Object.entries(memberEntries).forEach(function (_a) {
33701
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
33702
+ var loc = "TagSpecifications.".concat(key.substring(key.indexOf(".") + 1));
33703
+ entries[loc] = value;
33704
+ });
33705
+ }
33706
+ if (input.DryRun !== undefined && input.DryRun !== null) {
33707
+ entries["DryRun"] = input.DryRun;
33708
+ }
33709
+ return entries;
33710
+ };
33105
33711
  var serializeAws_ec2CreateTransitGatewayPrefixListReferenceRequest = function (input, context) {
33106
33712
  var entries = {};
33107
33713
  if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
@@ -33166,6 +33772,27 @@ var serializeAws_ec2CreateTransitGatewayRouteRequest = function (input, context)
33166
33772
  }
33167
33773
  return entries;
33168
33774
  };
33775
+ var serializeAws_ec2CreateTransitGatewayRouteTableAnnouncementRequest = function (input, context) {
33776
+ var entries = {};
33777
+ if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
33778
+ entries["TransitGatewayRouteTableId"] = input.TransitGatewayRouteTableId;
33779
+ }
33780
+ if (input.PeeringAttachmentId !== undefined && input.PeeringAttachmentId !== null) {
33781
+ entries["PeeringAttachmentId"] = input.PeeringAttachmentId;
33782
+ }
33783
+ if (input.TagSpecifications !== undefined && input.TagSpecifications !== null) {
33784
+ var memberEntries = serializeAws_ec2TagSpecificationList(input.TagSpecifications, context);
33785
+ Object.entries(memberEntries).forEach(function (_a) {
33786
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
33787
+ var loc = "TagSpecification.".concat(key.substring(key.indexOf(".") + 1));
33788
+ entries[loc] = value;
33789
+ });
33790
+ }
33791
+ if (input.DryRun !== undefined && input.DryRun !== null) {
33792
+ entries["DryRun"] = input.DryRun;
33793
+ }
33794
+ return entries;
33795
+ };
33169
33796
  var serializeAws_ec2CreateTransitGatewayRouteTableRequest = function (input, context) {
33170
33797
  var entries = {};
33171
33798
  if (input.TransitGatewayId !== undefined && input.TransitGatewayId !== null) {
@@ -34264,6 +34891,16 @@ var serializeAws_ec2DeleteTransitGatewayPeeringAttachmentRequest = function (inp
34264
34891
  }
34265
34892
  return entries;
34266
34893
  };
34894
+ var serializeAws_ec2DeleteTransitGatewayPolicyTableRequest = function (input, context) {
34895
+ var entries = {};
34896
+ if (input.TransitGatewayPolicyTableId !== undefined && input.TransitGatewayPolicyTableId !== null) {
34897
+ entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId;
34898
+ }
34899
+ if (input.DryRun !== undefined && input.DryRun !== null) {
34900
+ entries["DryRun"] = input.DryRun;
34901
+ }
34902
+ return entries;
34903
+ };
34267
34904
  var serializeAws_ec2DeleteTransitGatewayPrefixListReferenceRequest = function (input, context) {
34268
34905
  var entries = {};
34269
34906
  if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
@@ -34300,6 +34937,17 @@ var serializeAws_ec2DeleteTransitGatewayRouteRequest = function (input, context)
34300
34937
  }
34301
34938
  return entries;
34302
34939
  };
34940
+ var serializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementRequest = function (input, context) {
34941
+ var entries = {};
34942
+ if (input.TransitGatewayRouteTableAnnouncementId !== undefined &&
34943
+ input.TransitGatewayRouteTableAnnouncementId !== null) {
34944
+ entries["TransitGatewayRouteTableAnnouncementId"] = input.TransitGatewayRouteTableAnnouncementId;
34945
+ }
34946
+ if (input.DryRun !== undefined && input.DryRun !== null) {
34947
+ entries["DryRun"] = input.DryRun;
34948
+ }
34949
+ return entries;
34950
+ };
34303
34951
  var serializeAws_ec2DeleteTransitGatewayRouteTableRequest = function (input, context) {
34304
34952
  var entries = {};
34305
34953
  if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
@@ -37553,6 +38201,65 @@ var serializeAws_ec2DescribeTransitGatewayPeeringAttachmentsRequest = function (
37553
38201
  }
37554
38202
  return entries;
37555
38203
  };
38204
+ var serializeAws_ec2DescribeTransitGatewayPolicyTablesRequest = function (input, context) {
38205
+ var entries = {};
38206
+ if (input.TransitGatewayPolicyTableIds !== undefined && input.TransitGatewayPolicyTableIds !== null) {
38207
+ var memberEntries = serializeAws_ec2TransitGatewayPolicyTableIdStringList(input.TransitGatewayPolicyTableIds, context);
38208
+ Object.entries(memberEntries).forEach(function (_a) {
38209
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
38210
+ var loc = "TransitGatewayPolicyTableIds.".concat(key.substring(key.indexOf(".") + 1));
38211
+ entries[loc] = value;
38212
+ });
38213
+ }
38214
+ if (input.Filters !== undefined && input.Filters !== null) {
38215
+ var memberEntries = serializeAws_ec2FilterList(input.Filters, context);
38216
+ Object.entries(memberEntries).forEach(function (_a) {
38217
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
38218
+ var loc = "Filter.".concat(key.substring(key.indexOf(".") + 1));
38219
+ entries[loc] = value;
38220
+ });
38221
+ }
38222
+ if (input.MaxResults !== undefined && input.MaxResults !== null) {
38223
+ entries["MaxResults"] = input.MaxResults;
38224
+ }
38225
+ if (input.NextToken !== undefined && input.NextToken !== null) {
38226
+ entries["NextToken"] = input.NextToken;
38227
+ }
38228
+ if (input.DryRun !== undefined && input.DryRun !== null) {
38229
+ entries["DryRun"] = input.DryRun;
38230
+ }
38231
+ return entries;
38232
+ };
38233
+ var serializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsRequest = function (input, context) {
38234
+ var entries = {};
38235
+ if (input.TransitGatewayRouteTableAnnouncementIds !== undefined &&
38236
+ input.TransitGatewayRouteTableAnnouncementIds !== null) {
38237
+ var memberEntries = serializeAws_ec2TransitGatewayRouteTableAnnouncementIdStringList(input.TransitGatewayRouteTableAnnouncementIds, context);
38238
+ Object.entries(memberEntries).forEach(function (_a) {
38239
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
38240
+ var loc = "TransitGatewayRouteTableAnnouncementIds.".concat(key.substring(key.indexOf(".") + 1));
38241
+ entries[loc] = value;
38242
+ });
38243
+ }
38244
+ if (input.Filters !== undefined && input.Filters !== null) {
38245
+ var memberEntries = serializeAws_ec2FilterList(input.Filters, context);
38246
+ Object.entries(memberEntries).forEach(function (_a) {
38247
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
38248
+ var loc = "Filter.".concat(key.substring(key.indexOf(".") + 1));
38249
+ entries[loc] = value;
38250
+ });
38251
+ }
38252
+ if (input.MaxResults !== undefined && input.MaxResults !== null) {
38253
+ entries["MaxResults"] = input.MaxResults;
38254
+ }
38255
+ if (input.NextToken !== undefined && input.NextToken !== null) {
38256
+ entries["NextToken"] = input.NextToken;
38257
+ }
38258
+ if (input.DryRun !== undefined && input.DryRun !== null) {
38259
+ entries["DryRun"] = input.DryRun;
38260
+ }
38261
+ return entries;
38262
+ };
37556
38263
  var serializeAws_ec2DescribeTransitGatewayRouteTablesRequest = function (input, context) {
37557
38264
  var entries = {};
37558
38265
  if (input.TransitGatewayRouteTableIds !== undefined && input.TransitGatewayRouteTableIds !== null) {
@@ -38278,6 +38985,10 @@ var serializeAws_ec2DisableTransitGatewayRouteTablePropagationRequest = function
38278
38985
  if (input.DryRun !== undefined && input.DryRun !== null) {
38279
38986
  entries["DryRun"] = input.DryRun;
38280
38987
  }
38988
+ if (input.TransitGatewayRouteTableAnnouncementId !== undefined &&
38989
+ input.TransitGatewayRouteTableAnnouncementId !== null) {
38990
+ entries["TransitGatewayRouteTableAnnouncementId"] = input.TransitGatewayRouteTableAnnouncementId;
38991
+ }
38281
38992
  return entries;
38282
38993
  };
38283
38994
  var serializeAws_ec2DisableVgwRoutePropagationRequest = function (input, context) {
@@ -38412,6 +39123,19 @@ var serializeAws_ec2DisassociateTransitGatewayMulticastDomainRequest = function
38412
39123
  }
38413
39124
  return entries;
38414
39125
  };
39126
+ var serializeAws_ec2DisassociateTransitGatewayPolicyTableRequest = function (input, context) {
39127
+ var entries = {};
39128
+ if (input.TransitGatewayPolicyTableId !== undefined && input.TransitGatewayPolicyTableId !== null) {
39129
+ entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId;
39130
+ }
39131
+ if (input.TransitGatewayAttachmentId !== undefined && input.TransitGatewayAttachmentId !== null) {
39132
+ entries["TransitGatewayAttachmentId"] = input.TransitGatewayAttachmentId;
39133
+ }
39134
+ if (input.DryRun !== undefined && input.DryRun !== null) {
39135
+ entries["DryRun"] = input.DryRun;
39136
+ }
39137
+ return entries;
39138
+ };
38415
39139
  var serializeAws_ec2DisassociateTransitGatewayRouteTableRequest = function (input, context) {
38416
39140
  var entries = {};
38417
39141
  if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
@@ -38821,6 +39545,10 @@ var serializeAws_ec2EnableTransitGatewayRouteTablePropagationRequest = function
38821
39545
  if (input.DryRun !== undefined && input.DryRun !== null) {
38822
39546
  entries["DryRun"] = input.DryRun;
38823
39547
  }
39548
+ if (input.TransitGatewayRouteTableAnnouncementId !== undefined &&
39549
+ input.TransitGatewayRouteTableAnnouncementId !== null) {
39550
+ entries["TransitGatewayRouteTableAnnouncementId"] = input.TransitGatewayRouteTableAnnouncementId;
39551
+ }
38824
39552
  return entries;
38825
39553
  };
38826
39554
  var serializeAws_ec2EnableVgwRoutePropagationRequest = function (input, context) {
@@ -39984,6 +40712,54 @@ var serializeAws_ec2GetTransitGatewayMulticastDomainAssociationsRequest = functi
39984
40712
  }
39985
40713
  return entries;
39986
40714
  };
40715
+ var serializeAws_ec2GetTransitGatewayPolicyTableAssociationsRequest = function (input, context) {
40716
+ var entries = {};
40717
+ if (input.TransitGatewayPolicyTableId !== undefined && input.TransitGatewayPolicyTableId !== null) {
40718
+ entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId;
40719
+ }
40720
+ if (input.Filters !== undefined && input.Filters !== null) {
40721
+ var memberEntries = serializeAws_ec2FilterList(input.Filters, context);
40722
+ Object.entries(memberEntries).forEach(function (_a) {
40723
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
40724
+ var loc = "Filter.".concat(key.substring(key.indexOf(".") + 1));
40725
+ entries[loc] = value;
40726
+ });
40727
+ }
40728
+ if (input.MaxResults !== undefined && input.MaxResults !== null) {
40729
+ entries["MaxResults"] = input.MaxResults;
40730
+ }
40731
+ if (input.NextToken !== undefined && input.NextToken !== null) {
40732
+ entries["NextToken"] = input.NextToken;
40733
+ }
40734
+ if (input.DryRun !== undefined && input.DryRun !== null) {
40735
+ entries["DryRun"] = input.DryRun;
40736
+ }
40737
+ return entries;
40738
+ };
40739
+ var serializeAws_ec2GetTransitGatewayPolicyTableEntriesRequest = function (input, context) {
40740
+ var entries = {};
40741
+ if (input.TransitGatewayPolicyTableId !== undefined && input.TransitGatewayPolicyTableId !== null) {
40742
+ entries["TransitGatewayPolicyTableId"] = input.TransitGatewayPolicyTableId;
40743
+ }
40744
+ if (input.Filters !== undefined && input.Filters !== null) {
40745
+ var memberEntries = serializeAws_ec2FilterList(input.Filters, context);
40746
+ Object.entries(memberEntries).forEach(function (_a) {
40747
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
40748
+ var loc = "Filter.".concat(key.substring(key.indexOf(".") + 1));
40749
+ entries[loc] = value;
40750
+ });
40751
+ }
40752
+ if (input.MaxResults !== undefined && input.MaxResults !== null) {
40753
+ entries["MaxResults"] = input.MaxResults;
40754
+ }
40755
+ if (input.NextToken !== undefined && input.NextToken !== null) {
40756
+ entries["NextToken"] = input.NextToken;
40757
+ }
40758
+ if (input.DryRun !== undefined && input.DryRun !== null) {
40759
+ entries["DryRun"] = input.DryRun;
40760
+ }
40761
+ return entries;
40762
+ };
39987
40763
  var serializeAws_ec2GetTransitGatewayPrefixListReferencesRequest = function (input, context) {
39988
40764
  var entries = {};
39989
40765
  if (input.TransitGatewayRouteTableId !== undefined && input.TransitGatewayRouteTableId !== null) {
@@ -44308,6 +45084,9 @@ var serializeAws_ec2ModifyTransitGatewayOptions = function (input, context) {
44308
45084
  if (input.PropagationDefaultRouteTableId !== undefined && input.PropagationDefaultRouteTableId !== null) {
44309
45085
  entries["PropagationDefaultRouteTableId"] = input.PropagationDefaultRouteTableId;
44310
45086
  }
45087
+ if (input.AmazonSideAsn !== undefined && input.AmazonSideAsn !== null) {
45088
+ entries["AmazonSideAsn"] = input.AmazonSideAsn;
45089
+ }
44311
45090
  return entries;
44312
45091
  };
44313
45092
  var serializeAws_ec2ModifyTransitGatewayPrefixListReferenceRequest = function (input, context) {
@@ -49988,6 +50767,29 @@ var serializeAws_ec2TransitGatewayNetworkInterfaceIdList = function (input, cont
49988
50767
  }
49989
50768
  return entries;
49990
50769
  };
50770
+ var serializeAws_ec2TransitGatewayPolicyTableIdStringList = function (input, context) {
50771
+ var e_199, _a;
50772
+ var entries = {};
50773
+ var counter = 1;
50774
+ try {
50775
+ for (var input_199 = __values(input), input_199_1 = input_199.next(); !input_199_1.done; input_199_1 = input_199.next()) {
50776
+ var entry = input_199_1.value;
50777
+ if (entry === null) {
50778
+ continue;
50779
+ }
50780
+ entries["Item.".concat(counter)] = entry;
50781
+ counter++;
50782
+ }
50783
+ }
50784
+ catch (e_199_1) { e_199 = { error: e_199_1 }; }
50785
+ finally {
50786
+ try {
50787
+ if (input_199_1 && !input_199_1.done && (_a = input_199.return)) _a.call(input_199);
50788
+ }
50789
+ finally { if (e_199) throw e_199.error; }
50790
+ }
50791
+ return entries;
50792
+ };
49991
50793
  var serializeAws_ec2TransitGatewayRequestOptions = function (input, context) {
49992
50794
  var entries = {};
49993
50795
  if (input.AmazonSideAsn !== undefined && input.AmazonSideAsn !== null) {
@@ -50021,13 +50823,36 @@ var serializeAws_ec2TransitGatewayRequestOptions = function (input, context) {
50021
50823
  }
50022
50824
  return entries;
50023
50825
  };
50826
+ var serializeAws_ec2TransitGatewayRouteTableAnnouncementIdStringList = function (input, context) {
50827
+ var e_200, _a;
50828
+ var entries = {};
50829
+ var counter = 1;
50830
+ try {
50831
+ for (var input_200 = __values(input), input_200_1 = input_200.next(); !input_200_1.done; input_200_1 = input_200.next()) {
50832
+ var entry = input_200_1.value;
50833
+ if (entry === null) {
50834
+ continue;
50835
+ }
50836
+ entries["Item.".concat(counter)] = entry;
50837
+ counter++;
50838
+ }
50839
+ }
50840
+ catch (e_200_1) { e_200 = { error: e_200_1 }; }
50841
+ finally {
50842
+ try {
50843
+ if (input_200_1 && !input_200_1.done && (_a = input_200.return)) _a.call(input_200);
50844
+ }
50845
+ finally { if (e_200) throw e_200.error; }
50846
+ }
50847
+ return entries;
50848
+ };
50024
50849
  var serializeAws_ec2TransitGatewayRouteTableIdStringList = function (input, context) {
50025
- var e_199, _a;
50850
+ var e_201, _a;
50026
50851
  var entries = {};
50027
50852
  var counter = 1;
50028
50853
  try {
50029
- for (var input_199 = __values(input), input_199_1 = input_199.next(); !input_199_1.done; input_199_1 = input_199.next()) {
50030
- var entry = input_199_1.value;
50854
+ for (var input_201 = __values(input), input_201_1 = input_201.next(); !input_201_1.done; input_201_1 = input_201.next()) {
50855
+ var entry = input_201_1.value;
50031
50856
  if (entry === null) {
50032
50857
  continue;
50033
50858
  }
@@ -50035,22 +50860,22 @@ var serializeAws_ec2TransitGatewayRouteTableIdStringList = function (input, cont
50035
50860
  counter++;
50036
50861
  }
50037
50862
  }
50038
- catch (e_199_1) { e_199 = { error: e_199_1 }; }
50863
+ catch (e_201_1) { e_201 = { error: e_201_1 }; }
50039
50864
  finally {
50040
50865
  try {
50041
- if (input_199_1 && !input_199_1.done && (_a = input_199.return)) _a.call(input_199);
50866
+ if (input_201_1 && !input_201_1.done && (_a = input_201.return)) _a.call(input_201);
50042
50867
  }
50043
- finally { if (e_199) throw e_199.error; }
50868
+ finally { if (e_201) throw e_201.error; }
50044
50869
  }
50045
50870
  return entries;
50046
50871
  };
50047
50872
  var serializeAws_ec2TransitGatewaySubnetIdList = function (input, context) {
50048
- var e_200, _a;
50873
+ var e_202, _a;
50049
50874
  var entries = {};
50050
50875
  var counter = 1;
50051
50876
  try {
50052
- for (var input_200 = __values(input), input_200_1 = input_200.next(); !input_200_1.done; input_200_1 = input_200.next()) {
50053
- var entry = input_200_1.value;
50877
+ for (var input_202 = __values(input), input_202_1 = input_202.next(); !input_202_1.done; input_202_1 = input_202.next()) {
50878
+ var entry = input_202_1.value;
50054
50879
  if (entry === null) {
50055
50880
  continue;
50056
50881
  }
@@ -50058,22 +50883,22 @@ var serializeAws_ec2TransitGatewaySubnetIdList = function (input, context) {
50058
50883
  counter++;
50059
50884
  }
50060
50885
  }
50061
- catch (e_200_1) { e_200 = { error: e_200_1 }; }
50886
+ catch (e_202_1) { e_202 = { error: e_202_1 }; }
50062
50887
  finally {
50063
50888
  try {
50064
- if (input_200_1 && !input_200_1.done && (_a = input_200.return)) _a.call(input_200);
50889
+ if (input_202_1 && !input_202_1.done && (_a = input_202.return)) _a.call(input_202);
50065
50890
  }
50066
- finally { if (e_200) throw e_200.error; }
50891
+ finally { if (e_202) throw e_202.error; }
50067
50892
  }
50068
50893
  return entries;
50069
50894
  };
50070
50895
  var serializeAws_ec2TrunkInterfaceAssociationIdList = function (input, context) {
50071
- var e_201, _a;
50896
+ var e_203, _a;
50072
50897
  var entries = {};
50073
50898
  var counter = 1;
50074
50899
  try {
50075
- for (var input_201 = __values(input), input_201_1 = input_201.next(); !input_201_1.done; input_201_1 = input_201.next()) {
50076
- var entry = input_201_1.value;
50900
+ for (var input_203 = __values(input), input_203_1 = input_203.next(); !input_203_1.done; input_203_1 = input_203.next()) {
50901
+ var entry = input_203_1.value;
50077
50902
  if (entry === null) {
50078
50903
  continue;
50079
50904
  }
@@ -50081,12 +50906,12 @@ var serializeAws_ec2TrunkInterfaceAssociationIdList = function (input, context)
50081
50906
  counter++;
50082
50907
  }
50083
50908
  }
50084
- catch (e_201_1) { e_201 = { error: e_201_1 }; }
50909
+ catch (e_203_1) { e_203 = { error: e_203_1 }; }
50085
50910
  finally {
50086
50911
  try {
50087
- if (input_201_1 && !input_201_1.done && (_a = input_201.return)) _a.call(input_201);
50912
+ if (input_203_1 && !input_203_1.done && (_a = input_203.return)) _a.call(input_203);
50088
50913
  }
50089
- finally { if (e_201) throw e_201.error; }
50914
+ finally { if (e_203) throw e_203.error; }
50090
50915
  }
50091
50916
  return entries;
50092
50917
  };
@@ -50227,12 +51052,12 @@ var serializeAws_ec2UserData = function (input, context) {
50227
51052
  return entries;
50228
51053
  };
50229
51054
  var serializeAws_ec2UserGroupStringList = function (input, context) {
50230
- var e_202, _a;
51055
+ var e_204, _a;
50231
51056
  var entries = {};
50232
51057
  var counter = 1;
50233
51058
  try {
50234
- for (var input_202 = __values(input), input_202_1 = input_202.next(); !input_202_1.done; input_202_1 = input_202.next()) {
50235
- var entry = input_202_1.value;
51059
+ for (var input_204 = __values(input), input_204_1 = input_204.next(); !input_204_1.done; input_204_1 = input_204.next()) {
51060
+ var entry = input_204_1.value;
50236
51061
  if (entry === null) {
50237
51062
  continue;
50238
51063
  }
@@ -50240,12 +51065,12 @@ var serializeAws_ec2UserGroupStringList = function (input, context) {
50240
51065
  counter++;
50241
51066
  }
50242
51067
  }
50243
- catch (e_202_1) { e_202 = { error: e_202_1 }; }
51068
+ catch (e_204_1) { e_204 = { error: e_204_1 }; }
50244
51069
  finally {
50245
51070
  try {
50246
- if (input_202_1 && !input_202_1.done && (_a = input_202.return)) _a.call(input_202);
51071
+ if (input_204_1 && !input_204_1.done && (_a = input_204.return)) _a.call(input_204);
50247
51072
  }
50248
- finally { if (e_202) throw e_202.error; }
51073
+ finally { if (e_204) throw e_204.error; }
50249
51074
  }
50250
51075
  return entries;
50251
51076
  };
@@ -50275,12 +51100,12 @@ var serializeAws_ec2UserIdGroupPair = function (input, context) {
50275
51100
  return entries;
50276
51101
  };
50277
51102
  var serializeAws_ec2UserIdGroupPairList = function (input, context) {
50278
- var e_203, _a;
51103
+ var e_205, _a;
50279
51104
  var entries = {};
50280
51105
  var counter = 1;
50281
51106
  try {
50282
- for (var input_203 = __values(input), input_203_1 = input_203.next(); !input_203_1.done; input_203_1 = input_203.next()) {
50283
- var entry = input_203_1.value;
51107
+ for (var input_205 = __values(input), input_205_1 = input_205.next(); !input_205_1.done; input_205_1 = input_205.next()) {
51108
+ var entry = input_205_1.value;
50284
51109
  if (entry === null) {
50285
51110
  continue;
50286
51111
  }
@@ -50292,22 +51117,22 @@ var serializeAws_ec2UserIdGroupPairList = function (input, context) {
50292
51117
  counter++;
50293
51118
  }
50294
51119
  }
50295
- catch (e_203_1) { e_203 = { error: e_203_1 }; }
51120
+ catch (e_205_1) { e_205 = { error: e_205_1 }; }
50296
51121
  finally {
50297
51122
  try {
50298
- if (input_203_1 && !input_203_1.done && (_a = input_203.return)) _a.call(input_203);
51123
+ if (input_205_1 && !input_205_1.done && (_a = input_205.return)) _a.call(input_205);
50299
51124
  }
50300
- finally { if (e_203) throw e_203.error; }
51125
+ finally { if (e_205) throw e_205.error; }
50301
51126
  }
50302
51127
  return entries;
50303
51128
  };
50304
51129
  var serializeAws_ec2UserIdStringList = function (input, context) {
50305
- var e_204, _a;
51130
+ var e_206, _a;
50306
51131
  var entries = {};
50307
51132
  var counter = 1;
50308
51133
  try {
50309
- for (var input_204 = __values(input), input_204_1 = input_204.next(); !input_204_1.done; input_204_1 = input_204.next()) {
50310
- var entry = input_204_1.value;
51134
+ for (var input_206 = __values(input), input_206_1 = input_206.next(); !input_206_1.done; input_206_1 = input_206.next()) {
51135
+ var entry = input_206_1.value;
50311
51136
  if (entry === null) {
50312
51137
  continue;
50313
51138
  }
@@ -50315,22 +51140,22 @@ var serializeAws_ec2UserIdStringList = function (input, context) {
50315
51140
  counter++;
50316
51141
  }
50317
51142
  }
50318
- catch (e_204_1) { e_204 = { error: e_204_1 }; }
51143
+ catch (e_206_1) { e_206 = { error: e_206_1 }; }
50319
51144
  finally {
50320
51145
  try {
50321
- if (input_204_1 && !input_204_1.done && (_a = input_204.return)) _a.call(input_204);
51146
+ if (input_206_1 && !input_206_1.done && (_a = input_206.return)) _a.call(input_206);
50322
51147
  }
50323
- finally { if (e_204) throw e_204.error; }
51148
+ finally { if (e_206) throw e_206.error; }
50324
51149
  }
50325
51150
  return entries;
50326
51151
  };
50327
51152
  var serializeAws_ec2ValueStringList = function (input, context) {
50328
- var e_205, _a;
51153
+ var e_207, _a;
50329
51154
  var entries = {};
50330
51155
  var counter = 1;
50331
51156
  try {
50332
- for (var input_205 = __values(input), input_205_1 = input_205.next(); !input_205_1.done; input_205_1 = input_205.next()) {
50333
- var entry = input_205_1.value;
51157
+ for (var input_207 = __values(input), input_207_1 = input_207.next(); !input_207_1.done; input_207_1 = input_207.next()) {
51158
+ var entry = input_207_1.value;
50334
51159
  if (entry === null) {
50335
51160
  continue;
50336
51161
  }
@@ -50338,12 +51163,12 @@ var serializeAws_ec2ValueStringList = function (input, context) {
50338
51163
  counter++;
50339
51164
  }
50340
51165
  }
50341
- catch (e_205_1) { e_205 = { error: e_205_1 }; }
51166
+ catch (e_207_1) { e_207 = { error: e_207_1 }; }
50342
51167
  finally {
50343
51168
  try {
50344
- if (input_205_1 && !input_205_1.done && (_a = input_205.return)) _a.call(input_205);
51169
+ if (input_207_1 && !input_207_1.done && (_a = input_207.return)) _a.call(input_207);
50345
51170
  }
50346
- finally { if (e_205) throw e_205.error; }
51171
+ finally { if (e_207) throw e_207.error; }
50347
51172
  }
50348
51173
  return entries;
50349
51174
  };
@@ -50368,59 +51193,6 @@ var serializeAws_ec2VCpuCountRangeRequest = function (input, context) {
50368
51193
  return entries;
50369
51194
  };
50370
51195
  var serializeAws_ec2VersionStringList = function (input, context) {
50371
- var e_206, _a;
50372
- var entries = {};
50373
- var counter = 1;
50374
- try {
50375
- for (var input_206 = __values(input), input_206_1 = input_206.next(); !input_206_1.done; input_206_1 = input_206.next()) {
50376
- var entry = input_206_1.value;
50377
- if (entry === null) {
50378
- continue;
50379
- }
50380
- entries["Item.".concat(counter)] = entry;
50381
- counter++;
50382
- }
50383
- }
50384
- catch (e_206_1) { e_206 = { error: e_206_1 }; }
50385
- finally {
50386
- try {
50387
- if (input_206_1 && !input_206_1.done && (_a = input_206.return)) _a.call(input_206);
50388
- }
50389
- finally { if (e_206) throw e_206.error; }
50390
- }
50391
- return entries;
50392
- };
50393
- var serializeAws_ec2VirtualizationTypeSet = function (input, context) {
50394
- var e_207, _a;
50395
- var entries = {};
50396
- var counter = 1;
50397
- try {
50398
- for (var input_207 = __values(input), input_207_1 = input_207.next(); !input_207_1.done; input_207_1 = input_207.next()) {
50399
- var entry = input_207_1.value;
50400
- if (entry === null) {
50401
- continue;
50402
- }
50403
- entries["Item.".concat(counter)] = entry;
50404
- counter++;
50405
- }
50406
- }
50407
- catch (e_207_1) { e_207 = { error: e_207_1 }; }
50408
- finally {
50409
- try {
50410
- if (input_207_1 && !input_207_1.done && (_a = input_207.return)) _a.call(input_207);
50411
- }
50412
- finally { if (e_207) throw e_207.error; }
50413
- }
50414
- return entries;
50415
- };
50416
- var serializeAws_ec2VolumeDetail = function (input, context) {
50417
- var entries = {};
50418
- if (input.Size !== undefined && input.Size !== null) {
50419
- entries["Size"] = input.Size;
50420
- }
50421
- return entries;
50422
- };
50423
- var serializeAws_ec2VolumeIdStringList = function (input, context) {
50424
51196
  var e_208, _a;
50425
51197
  var entries = {};
50426
51198
  var counter = 1;
@@ -50430,7 +51202,7 @@ var serializeAws_ec2VolumeIdStringList = function (input, context) {
50430
51202
  if (entry === null) {
50431
51203
  continue;
50432
51204
  }
50433
- entries["VolumeId.".concat(counter)] = entry;
51205
+ entries["Item.".concat(counter)] = entry;
50434
51206
  counter++;
50435
51207
  }
50436
51208
  }
@@ -50443,7 +51215,7 @@ var serializeAws_ec2VolumeIdStringList = function (input, context) {
50443
51215
  }
50444
51216
  return entries;
50445
51217
  };
50446
- var serializeAws_ec2VpcClassicLinkIdList = function (input, context) {
51218
+ var serializeAws_ec2VirtualizationTypeSet = function (input, context) {
50447
51219
  var e_209, _a;
50448
51220
  var entries = {};
50449
51221
  var counter = 1;
@@ -50453,7 +51225,7 @@ var serializeAws_ec2VpcClassicLinkIdList = function (input, context) {
50453
51225
  if (entry === null) {
50454
51226
  continue;
50455
51227
  }
50456
- entries["VpcId.".concat(counter)] = entry;
51228
+ entries["Item.".concat(counter)] = entry;
50457
51229
  counter++;
50458
51230
  }
50459
51231
  }
@@ -50466,7 +51238,14 @@ var serializeAws_ec2VpcClassicLinkIdList = function (input, context) {
50466
51238
  }
50467
51239
  return entries;
50468
51240
  };
50469
- var serializeAws_ec2VpcEndpointIdList = function (input, context) {
51241
+ var serializeAws_ec2VolumeDetail = function (input, context) {
51242
+ var entries = {};
51243
+ if (input.Size !== undefined && input.Size !== null) {
51244
+ entries["Size"] = input.Size;
51245
+ }
51246
+ return entries;
51247
+ };
51248
+ var serializeAws_ec2VolumeIdStringList = function (input, context) {
50470
51249
  var e_210, _a;
50471
51250
  var entries = {};
50472
51251
  var counter = 1;
@@ -50476,7 +51255,7 @@ var serializeAws_ec2VpcEndpointIdList = function (input, context) {
50476
51255
  if (entry === null) {
50477
51256
  continue;
50478
51257
  }
50479
- entries["Item.".concat(counter)] = entry;
51258
+ entries["VolumeId.".concat(counter)] = entry;
50480
51259
  counter++;
50481
51260
  }
50482
51261
  }
@@ -50489,7 +51268,7 @@ var serializeAws_ec2VpcEndpointIdList = function (input, context) {
50489
51268
  }
50490
51269
  return entries;
50491
51270
  };
50492
- var serializeAws_ec2VpcEndpointRouteTableIdList = function (input, context) {
51271
+ var serializeAws_ec2VpcClassicLinkIdList = function (input, context) {
50493
51272
  var e_211, _a;
50494
51273
  var entries = {};
50495
51274
  var counter = 1;
@@ -50499,7 +51278,7 @@ var serializeAws_ec2VpcEndpointRouteTableIdList = function (input, context) {
50499
51278
  if (entry === null) {
50500
51279
  continue;
50501
51280
  }
50502
- entries["Item.".concat(counter)] = entry;
51281
+ entries["VpcId.".concat(counter)] = entry;
50503
51282
  counter++;
50504
51283
  }
50505
51284
  }
@@ -50512,7 +51291,7 @@ var serializeAws_ec2VpcEndpointRouteTableIdList = function (input, context) {
50512
51291
  }
50513
51292
  return entries;
50514
51293
  };
50515
- var serializeAws_ec2VpcEndpointSecurityGroupIdList = function (input, context) {
51294
+ var serializeAws_ec2VpcEndpointIdList = function (input, context) {
50516
51295
  var e_212, _a;
50517
51296
  var entries = {};
50518
51297
  var counter = 1;
@@ -50535,7 +51314,7 @@ var serializeAws_ec2VpcEndpointSecurityGroupIdList = function (input, context) {
50535
51314
  }
50536
51315
  return entries;
50537
51316
  };
50538
- var serializeAws_ec2VpcEndpointServiceIdList = function (input, context) {
51317
+ var serializeAws_ec2VpcEndpointRouteTableIdList = function (input, context) {
50539
51318
  var e_213, _a;
50540
51319
  var entries = {};
50541
51320
  var counter = 1;
@@ -50558,7 +51337,7 @@ var serializeAws_ec2VpcEndpointServiceIdList = function (input, context) {
50558
51337
  }
50559
51338
  return entries;
50560
51339
  };
50561
- var serializeAws_ec2VpcEndpointSubnetIdList = function (input, context) {
51340
+ var serializeAws_ec2VpcEndpointSecurityGroupIdList = function (input, context) {
50562
51341
  var e_214, _a;
50563
51342
  var entries = {};
50564
51343
  var counter = 1;
@@ -50581,7 +51360,7 @@ var serializeAws_ec2VpcEndpointSubnetIdList = function (input, context) {
50581
51360
  }
50582
51361
  return entries;
50583
51362
  };
50584
- var serializeAws_ec2VpcIdStringList = function (input, context) {
51363
+ var serializeAws_ec2VpcEndpointServiceIdList = function (input, context) {
50585
51364
  var e_215, _a;
50586
51365
  var entries = {};
50587
51366
  var counter = 1;
@@ -50591,7 +51370,7 @@ var serializeAws_ec2VpcIdStringList = function (input, context) {
50591
51370
  if (entry === null) {
50592
51371
  continue;
50593
51372
  }
50594
- entries["VpcId.".concat(counter)] = entry;
51373
+ entries["Item.".concat(counter)] = entry;
50595
51374
  counter++;
50596
51375
  }
50597
51376
  }
@@ -50604,7 +51383,7 @@ var serializeAws_ec2VpcIdStringList = function (input, context) {
50604
51383
  }
50605
51384
  return entries;
50606
51385
  };
50607
- var serializeAws_ec2VpcPeeringConnectionIdList = function (input, context) {
51386
+ var serializeAws_ec2VpcEndpointSubnetIdList = function (input, context) {
50608
51387
  var e_216, _a;
50609
51388
  var entries = {};
50610
51389
  var counter = 1;
@@ -50627,7 +51406,7 @@ var serializeAws_ec2VpcPeeringConnectionIdList = function (input, context) {
50627
51406
  }
50628
51407
  return entries;
50629
51408
  };
50630
- var serializeAws_ec2VpnConnectionIdStringList = function (input, context) {
51409
+ var serializeAws_ec2VpcIdStringList = function (input, context) {
50631
51410
  var e_217, _a;
50632
51411
  var entries = {};
50633
51412
  var counter = 1;
@@ -50637,7 +51416,7 @@ var serializeAws_ec2VpnConnectionIdStringList = function (input, context) {
50637
51416
  if (entry === null) {
50638
51417
  continue;
50639
51418
  }
50640
- entries["VpnConnectionId.".concat(counter)] = entry;
51419
+ entries["VpcId.".concat(counter)] = entry;
50641
51420
  counter++;
50642
51421
  }
50643
51422
  }
@@ -50650,6 +51429,52 @@ var serializeAws_ec2VpnConnectionIdStringList = function (input, context) {
50650
51429
  }
50651
51430
  return entries;
50652
51431
  };
51432
+ var serializeAws_ec2VpcPeeringConnectionIdList = function (input, context) {
51433
+ var e_218, _a;
51434
+ var entries = {};
51435
+ var counter = 1;
51436
+ try {
51437
+ for (var input_218 = __values(input), input_218_1 = input_218.next(); !input_218_1.done; input_218_1 = input_218.next()) {
51438
+ var entry = input_218_1.value;
51439
+ if (entry === null) {
51440
+ continue;
51441
+ }
51442
+ entries["Item.".concat(counter)] = entry;
51443
+ counter++;
51444
+ }
51445
+ }
51446
+ catch (e_218_1) { e_218 = { error: e_218_1 }; }
51447
+ finally {
51448
+ try {
51449
+ if (input_218_1 && !input_218_1.done && (_a = input_218.return)) _a.call(input_218);
51450
+ }
51451
+ finally { if (e_218) throw e_218.error; }
51452
+ }
51453
+ return entries;
51454
+ };
51455
+ var serializeAws_ec2VpnConnectionIdStringList = function (input, context) {
51456
+ var e_219, _a;
51457
+ var entries = {};
51458
+ var counter = 1;
51459
+ try {
51460
+ for (var input_219 = __values(input), input_219_1 = input_219.next(); !input_219_1.done; input_219_1 = input_219.next()) {
51461
+ var entry = input_219_1.value;
51462
+ if (entry === null) {
51463
+ continue;
51464
+ }
51465
+ entries["VpnConnectionId.".concat(counter)] = entry;
51466
+ counter++;
51467
+ }
51468
+ }
51469
+ catch (e_219_1) { e_219 = { error: e_219_1 }; }
51470
+ finally {
51471
+ try {
51472
+ if (input_219_1 && !input_219_1.done && (_a = input_219.return)) _a.call(input_219);
51473
+ }
51474
+ finally { if (e_219) throw e_219.error; }
51475
+ }
51476
+ return entries;
51477
+ };
50653
51478
  var serializeAws_ec2VpnConnectionOptionsSpecification = function (input, context) {
50654
51479
  var entries = {};
50655
51480
  if (input.EnableAcceleration !== undefined && input.EnableAcceleration !== null) {
@@ -50690,12 +51515,12 @@ var serializeAws_ec2VpnConnectionOptionsSpecification = function (input, context
50690
51515
  return entries;
50691
51516
  };
50692
51517
  var serializeAws_ec2VpnGatewayIdStringList = function (input, context) {
50693
- var e_218, _a;
51518
+ var e_220, _a;
50694
51519
  var entries = {};
50695
51520
  var counter = 1;
50696
51521
  try {
50697
- for (var input_218 = __values(input), input_218_1 = input_218.next(); !input_218_1.done; input_218_1 = input_218.next()) {
50698
- var entry = input_218_1.value;
51522
+ for (var input_220 = __values(input), input_220_1 = input_220.next(); !input_220_1.done; input_220_1 = input_220.next()) {
51523
+ var entry = input_220_1.value;
50699
51524
  if (entry === null) {
50700
51525
  continue;
50701
51526
  }
@@ -50703,12 +51528,12 @@ var serializeAws_ec2VpnGatewayIdStringList = function (input, context) {
50703
51528
  counter++;
50704
51529
  }
50705
51530
  }
50706
- catch (e_218_1) { e_218 = { error: e_218_1 }; }
51531
+ catch (e_220_1) { e_220 = { error: e_220_1 }; }
50707
51532
  finally {
50708
51533
  try {
50709
- if (input_218_1 && !input_218_1.done && (_a = input_218.return)) _a.call(input_218);
51534
+ if (input_220_1 && !input_220_1.done && (_a = input_220.return)) _a.call(input_220);
50710
51535
  }
50711
- finally { if (e_218) throw e_218.error; }
51536
+ finally { if (e_220) throw e_220.error; }
50712
51537
  }
50713
51538
  return entries;
50714
51539
  };
@@ -50806,12 +51631,12 @@ var serializeAws_ec2VpnTunnelOptionsSpecification = function (input, context) {
50806
51631
  return entries;
50807
51632
  };
50808
51633
  var serializeAws_ec2VpnTunnelOptionsSpecificationsList = function (input, context) {
50809
- var e_219, _a;
51634
+ var e_221, _a;
50810
51635
  var entries = {};
50811
51636
  var counter = 1;
50812
51637
  try {
50813
- for (var input_219 = __values(input), input_219_1 = input_219.next(); !input_219_1.done; input_219_1 = input_219.next()) {
50814
- var entry = input_219_1.value;
51638
+ for (var input_221 = __values(input), input_221_1 = input_221.next(); !input_221_1.done; input_221_1 = input_221.next()) {
51639
+ var entry = input_221_1.value;
50815
51640
  if (entry === null) {
50816
51641
  continue;
50817
51642
  }
@@ -50823,12 +51648,12 @@ var serializeAws_ec2VpnTunnelOptionsSpecificationsList = function (input, contex
50823
51648
  counter++;
50824
51649
  }
50825
51650
  }
50826
- catch (e_219_1) { e_219 = { error: e_219_1 }; }
51651
+ catch (e_221_1) { e_221 = { error: e_221_1 }; }
50827
51652
  finally {
50828
51653
  try {
50829
- if (input_219_1 && !input_219_1.done && (_a = input_219.return)) _a.call(input_219);
51654
+ if (input_221_1 && !input_221_1.done && (_a = input_221.return)) _a.call(input_221);
50830
51655
  }
50831
- finally { if (e_219) throw e_219.error; }
51656
+ finally { if (e_221) throw e_221.error; }
50832
51657
  }
50833
51658
  return entries;
50834
51659
  };
@@ -50843,12 +51668,12 @@ var serializeAws_ec2WithdrawByoipCidrRequest = function (input, context) {
50843
51668
  return entries;
50844
51669
  };
50845
51670
  var serializeAws_ec2ZoneIdStringList = function (input, context) {
50846
- var e_220, _a;
51671
+ var e_222, _a;
50847
51672
  var entries = {};
50848
51673
  var counter = 1;
50849
51674
  try {
50850
- for (var input_220 = __values(input), input_220_1 = input_220.next(); !input_220_1.done; input_220_1 = input_220.next()) {
50851
- var entry = input_220_1.value;
51675
+ for (var input_222 = __values(input), input_222_1 = input_222.next(); !input_222_1.done; input_222_1 = input_222.next()) {
51676
+ var entry = input_222_1.value;
50852
51677
  if (entry === null) {
50853
51678
  continue;
50854
51679
  }
@@ -50856,22 +51681,22 @@ var serializeAws_ec2ZoneIdStringList = function (input, context) {
50856
51681
  counter++;
50857
51682
  }
50858
51683
  }
50859
- catch (e_220_1) { e_220 = { error: e_220_1 }; }
51684
+ catch (e_222_1) { e_222 = { error: e_222_1 }; }
50860
51685
  finally {
50861
51686
  try {
50862
- if (input_220_1 && !input_220_1.done && (_a = input_220.return)) _a.call(input_220);
51687
+ if (input_222_1 && !input_222_1.done && (_a = input_222.return)) _a.call(input_222);
50863
51688
  }
50864
- finally { if (e_220) throw e_220.error; }
51689
+ finally { if (e_222) throw e_222.error; }
50865
51690
  }
50866
51691
  return entries;
50867
51692
  };
50868
51693
  var serializeAws_ec2ZoneNameStringList = function (input, context) {
50869
- var e_221, _a;
51694
+ var e_223, _a;
50870
51695
  var entries = {};
50871
51696
  var counter = 1;
50872
51697
  try {
50873
- for (var input_221 = __values(input), input_221_1 = input_221.next(); !input_221_1.done; input_221_1 = input_221.next()) {
50874
- var entry = input_221_1.value;
51698
+ for (var input_223 = __values(input), input_223_1 = input_223.next(); !input_223_1.done; input_223_1 = input_223.next()) {
51699
+ var entry = input_223_1.value;
50875
51700
  if (entry === null) {
50876
51701
  continue;
50877
51702
  }
@@ -50879,12 +51704,12 @@ var serializeAws_ec2ZoneNameStringList = function (input, context) {
50879
51704
  counter++;
50880
51705
  }
50881
51706
  }
50882
- catch (e_221_1) { e_221 = { error: e_221_1 }; }
51707
+ catch (e_223_1) { e_223 = { error: e_223_1 }; }
50883
51708
  finally {
50884
51709
  try {
50885
- if (input_221_1 && !input_221_1.done && (_a = input_221.return)) _a.call(input_221);
51710
+ if (input_223_1 && !input_223_1.done && (_a = input_223.return)) _a.call(input_223);
50886
51711
  }
50887
- finally { if (e_221) throw e_221.error; }
51712
+ finally { if (e_223) throw e_223.error; }
50888
51713
  }
50889
51714
  return entries;
50890
51715
  };
@@ -51828,6 +52653,15 @@ var deserializeAws_ec2AssociateTransitGatewayMulticastDomainResult = function (o
51828
52653
  }
51829
52654
  return contents;
51830
52655
  };
52656
+ var deserializeAws_ec2AssociateTransitGatewayPolicyTableResult = function (output, context) {
52657
+ var contents = {
52658
+ Association: undefined,
52659
+ };
52660
+ if (output["association"] !== undefined) {
52661
+ contents.Association = deserializeAws_ec2TransitGatewayPolicyTableAssociation(output["association"], context);
52662
+ }
52663
+ return contents;
52664
+ };
51831
52665
  var deserializeAws_ec2AssociateTransitGatewayRouteTableResult = function (output, context) {
51832
52666
  var contents = {
51833
52667
  Association: undefined,
@@ -54199,6 +55033,15 @@ var deserializeAws_ec2CreateTransitGatewayPeeringAttachmentResult = function (ou
54199
55033
  }
54200
55034
  return contents;
54201
55035
  };
55036
+ var deserializeAws_ec2CreateTransitGatewayPolicyTableResult = function (output, context) {
55037
+ var contents = {
55038
+ TransitGatewayPolicyTable: undefined,
55039
+ };
55040
+ if (output["transitGatewayPolicyTable"] !== undefined) {
55041
+ contents.TransitGatewayPolicyTable = deserializeAws_ec2TransitGatewayPolicyTable(output["transitGatewayPolicyTable"], context);
55042
+ }
55043
+ return contents;
55044
+ };
54202
55045
  var deserializeAws_ec2CreateTransitGatewayPrefixListReferenceResult = function (output, context) {
54203
55046
  var contents = {
54204
55047
  TransitGatewayPrefixListReference: undefined,
@@ -54226,6 +55069,15 @@ var deserializeAws_ec2CreateTransitGatewayRouteResult = function (output, contex
54226
55069
  }
54227
55070
  return contents;
54228
55071
  };
55072
+ var deserializeAws_ec2CreateTransitGatewayRouteTableAnnouncementResult = function (output, context) {
55073
+ var contents = {
55074
+ TransitGatewayRouteTableAnnouncement: undefined,
55075
+ };
55076
+ if (output["transitGatewayRouteTableAnnouncement"] !== undefined) {
55077
+ contents.TransitGatewayRouteTableAnnouncement = deserializeAws_ec2TransitGatewayRouteTableAnnouncement(output["transitGatewayRouteTableAnnouncement"], context);
55078
+ }
55079
+ return contents;
55080
+ };
54229
55081
  var deserializeAws_ec2CreateTransitGatewayRouteTableResult = function (output, context) {
54230
55082
  var contents = {
54231
55083
  TransitGatewayRouteTable: undefined,
@@ -54883,6 +55735,15 @@ var deserializeAws_ec2DeleteTransitGatewayPeeringAttachmentResult = function (ou
54883
55735
  }
54884
55736
  return contents;
54885
55737
  };
55738
+ var deserializeAws_ec2DeleteTransitGatewayPolicyTableResult = function (output, context) {
55739
+ var contents = {
55740
+ TransitGatewayPolicyTable: undefined,
55741
+ };
55742
+ if (output["transitGatewayPolicyTable"] !== undefined) {
55743
+ contents.TransitGatewayPolicyTable = deserializeAws_ec2TransitGatewayPolicyTable(output["transitGatewayPolicyTable"], context);
55744
+ }
55745
+ return contents;
55746
+ };
54886
55747
  var deserializeAws_ec2DeleteTransitGatewayPrefixListReferenceResult = function (output, context) {
54887
55748
  var contents = {
54888
55749
  TransitGatewayPrefixListReference: undefined,
@@ -54910,6 +55771,15 @@ var deserializeAws_ec2DeleteTransitGatewayRouteResult = function (output, contex
54910
55771
  }
54911
55772
  return contents;
54912
55773
  };
55774
+ var deserializeAws_ec2DeleteTransitGatewayRouteTableAnnouncementResult = function (output, context) {
55775
+ var contents = {
55776
+ TransitGatewayRouteTableAnnouncement: undefined,
55777
+ };
55778
+ if (output["transitGatewayRouteTableAnnouncement"] !== undefined) {
55779
+ contents.TransitGatewayRouteTableAnnouncement = deserializeAws_ec2TransitGatewayRouteTableAnnouncement(output["transitGatewayRouteTableAnnouncement"], context);
55780
+ }
55781
+ return contents;
55782
+ };
54913
55783
  var deserializeAws_ec2DeleteTransitGatewayRouteTableResult = function (output, context) {
54914
55784
  var contents = {
54915
55785
  TransitGatewayRouteTable: undefined,
@@ -56995,6 +57865,40 @@ var deserializeAws_ec2DescribeTransitGatewayPeeringAttachmentsResult = function
56995
57865
  }
56996
57866
  return contents;
56997
57867
  };
57868
+ var deserializeAws_ec2DescribeTransitGatewayPolicyTablesResult = function (output, context) {
57869
+ var contents = {
57870
+ TransitGatewayPolicyTables: undefined,
57871
+ NextToken: undefined,
57872
+ };
57873
+ if (output.transitGatewayPolicyTables === "") {
57874
+ contents.TransitGatewayPolicyTables = [];
57875
+ }
57876
+ else if (output["transitGatewayPolicyTables"] !== undefined &&
57877
+ output["transitGatewayPolicyTables"]["item"] !== undefined) {
57878
+ contents.TransitGatewayPolicyTables = deserializeAws_ec2TransitGatewayPolicyTableList(__getArrayIfSingleItem(output["transitGatewayPolicyTables"]["item"]), context);
57879
+ }
57880
+ if (output["nextToken"] !== undefined) {
57881
+ contents.NextToken = __expectString(output["nextToken"]);
57882
+ }
57883
+ return contents;
57884
+ };
57885
+ var deserializeAws_ec2DescribeTransitGatewayRouteTableAnnouncementsResult = function (output, context) {
57886
+ var contents = {
57887
+ TransitGatewayRouteTableAnnouncements: undefined,
57888
+ NextToken: undefined,
57889
+ };
57890
+ if (output.transitGatewayRouteTableAnnouncements === "") {
57891
+ contents.TransitGatewayRouteTableAnnouncements = [];
57892
+ }
57893
+ else if (output["transitGatewayRouteTableAnnouncements"] !== undefined &&
57894
+ output["transitGatewayRouteTableAnnouncements"]["item"] !== undefined) {
57895
+ contents.TransitGatewayRouteTableAnnouncements = deserializeAws_ec2TransitGatewayRouteTableAnnouncementList(__getArrayIfSingleItem(output["transitGatewayRouteTableAnnouncements"]["item"]), context);
57896
+ }
57897
+ if (output["nextToken"] !== undefined) {
57898
+ contents.NextToken = __expectString(output["nextToken"]);
57899
+ }
57900
+ return contents;
57901
+ };
56998
57902
  var deserializeAws_ec2DescribeTransitGatewayRouteTablesResult = function (output, context) {
56999
57903
  var contents = {
57000
57904
  TransitGatewayRouteTables: undefined,
@@ -57753,6 +58657,15 @@ var deserializeAws_ec2DisassociateTransitGatewayMulticastDomainResult = function
57753
58657
  }
57754
58658
  return contents;
57755
58659
  };
58660
+ var deserializeAws_ec2DisassociateTransitGatewayPolicyTableResult = function (output, context) {
58661
+ var contents = {
58662
+ Association: undefined,
58663
+ };
58664
+ if (output["association"] !== undefined) {
58665
+ contents.Association = deserializeAws_ec2TransitGatewayPolicyTableAssociation(output["association"], context);
58666
+ }
58667
+ return contents;
58668
+ };
57756
58669
  var deserializeAws_ec2DisassociateTransitGatewayRouteTableResult = function (output, context) {
57757
58670
  var contents = {
57758
58671
  Association: undefined,
@@ -60053,6 +60966,35 @@ var deserializeAws_ec2GetTransitGatewayMulticastDomainAssociationsResult = funct
60053
60966
  }
60054
60967
  return contents;
60055
60968
  };
60969
+ var deserializeAws_ec2GetTransitGatewayPolicyTableAssociationsResult = function (output, context) {
60970
+ var contents = {
60971
+ Associations: undefined,
60972
+ NextToken: undefined,
60973
+ };
60974
+ if (output.associations === "") {
60975
+ contents.Associations = [];
60976
+ }
60977
+ else if (output["associations"] !== undefined && output["associations"]["item"] !== undefined) {
60978
+ contents.Associations = deserializeAws_ec2TransitGatewayPolicyTableAssociationList(__getArrayIfSingleItem(output["associations"]["item"]), context);
60979
+ }
60980
+ if (output["nextToken"] !== undefined) {
60981
+ contents.NextToken = __expectString(output["nextToken"]);
60982
+ }
60983
+ return contents;
60984
+ };
60985
+ var deserializeAws_ec2GetTransitGatewayPolicyTableEntriesResult = function (output, context) {
60986
+ var contents = {
60987
+ TransitGatewayPolicyTableEntries: undefined,
60988
+ };
60989
+ if (output.transitGatewayPolicyTableEntries === "") {
60990
+ contents.TransitGatewayPolicyTableEntries = [];
60991
+ }
60992
+ else if (output["transitGatewayPolicyTableEntries"] !== undefined &&
60993
+ output["transitGatewayPolicyTableEntries"]["item"] !== undefined) {
60994
+ contents.TransitGatewayPolicyTableEntries = deserializeAws_ec2TransitGatewayPolicyTableEntryList(__getArrayIfSingleItem(output["transitGatewayPolicyTableEntries"]["item"]), context);
60995
+ }
60996
+ return contents;
60997
+ };
60056
60998
  var deserializeAws_ec2GetTransitGatewayPrefixListReferencesResult = function (output, context) {
60057
60999
  var contents = {
60058
61000
  TransitGatewayPrefixListReferences: undefined,
@@ -66795,12 +67737,16 @@ var deserializeAws_ec2PeeringConnectionOptions = function (output, context) {
66795
67737
  var deserializeAws_ec2PeeringTgwInfo = function (output, context) {
66796
67738
  var contents = {
66797
67739
  TransitGatewayId: undefined,
67740
+ CoreNetworkId: undefined,
66798
67741
  OwnerId: undefined,
66799
67742
  Region: undefined,
66800
67743
  };
66801
67744
  if (output["transitGatewayId"] !== undefined) {
66802
67745
  contents.TransitGatewayId = __expectString(output["transitGatewayId"]);
66803
67746
  }
67747
+ if (output["coreNetworkId"] !== undefined) {
67748
+ contents.CoreNetworkId = __expectString(output["coreNetworkId"]);
67749
+ }
66804
67750
  if (output["ownerId"] !== undefined) {
66805
67751
  contents.OwnerId = __expectString(output["ownerId"]);
66806
67752
  }
@@ -72281,8 +73227,10 @@ var deserializeAws_ec2TransitGatewayOptions = function (output, context) {
72281
73227
  var deserializeAws_ec2TransitGatewayPeeringAttachment = function (output, context) {
72282
73228
  var contents = {
72283
73229
  TransitGatewayAttachmentId: undefined,
73230
+ AccepterTransitGatewayAttachmentId: undefined,
72284
73231
  RequesterTgwInfo: undefined,
72285
73232
  AccepterTgwInfo: undefined,
73233
+ Options: undefined,
72286
73234
  Status: undefined,
72287
73235
  State: undefined,
72288
73236
  CreationTime: undefined,
@@ -72291,12 +73239,18 @@ var deserializeAws_ec2TransitGatewayPeeringAttachment = function (output, contex
72291
73239
  if (output["transitGatewayAttachmentId"] !== undefined) {
72292
73240
  contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]);
72293
73241
  }
73242
+ if (output["accepterTransitGatewayAttachmentId"] !== undefined) {
73243
+ contents.AccepterTransitGatewayAttachmentId = __expectString(output["accepterTransitGatewayAttachmentId"]);
73244
+ }
72294
73245
  if (output["requesterTgwInfo"] !== undefined) {
72295
73246
  contents.RequesterTgwInfo = deserializeAws_ec2PeeringTgwInfo(output["requesterTgwInfo"], context);
72296
73247
  }
72297
73248
  if (output["accepterTgwInfo"] !== undefined) {
72298
73249
  contents.AccepterTgwInfo = deserializeAws_ec2PeeringTgwInfo(output["accepterTgwInfo"], context);
72299
73250
  }
73251
+ if (output["options"] !== undefined) {
73252
+ contents.Options = deserializeAws_ec2TransitGatewayPeeringAttachmentOptions(output["options"], context);
73253
+ }
72300
73254
  if (output["status"] !== undefined) {
72301
73255
  contents.Status = deserializeAws_ec2PeeringAttachmentStatus(output["status"], context);
72302
73256
  }
@@ -72324,6 +73278,157 @@ var deserializeAws_ec2TransitGatewayPeeringAttachmentList = function (output, co
72324
73278
  return deserializeAws_ec2TransitGatewayPeeringAttachment(entry, context);
72325
73279
  });
72326
73280
  };
73281
+ var deserializeAws_ec2TransitGatewayPeeringAttachmentOptions = function (output, context) {
73282
+ var contents = {
73283
+ DynamicRouting: undefined,
73284
+ };
73285
+ if (output["dynamicRouting"] !== undefined) {
73286
+ contents.DynamicRouting = __expectString(output["dynamicRouting"]);
73287
+ }
73288
+ return contents;
73289
+ };
73290
+ var deserializeAws_ec2TransitGatewayPolicyRule = function (output, context) {
73291
+ var contents = {
73292
+ SourceCidrBlock: undefined,
73293
+ SourcePortRange: undefined,
73294
+ DestinationCidrBlock: undefined,
73295
+ DestinationPortRange: undefined,
73296
+ Protocol: undefined,
73297
+ MetaData: undefined,
73298
+ };
73299
+ if (output["sourceCidrBlock"] !== undefined) {
73300
+ contents.SourceCidrBlock = __expectString(output["sourceCidrBlock"]);
73301
+ }
73302
+ if (output["sourcePortRange"] !== undefined) {
73303
+ contents.SourcePortRange = __expectString(output["sourcePortRange"]);
73304
+ }
73305
+ if (output["destinationCidrBlock"] !== undefined) {
73306
+ contents.DestinationCidrBlock = __expectString(output["destinationCidrBlock"]);
73307
+ }
73308
+ if (output["destinationPortRange"] !== undefined) {
73309
+ contents.DestinationPortRange = __expectString(output["destinationPortRange"]);
73310
+ }
73311
+ if (output["protocol"] !== undefined) {
73312
+ contents.Protocol = __expectString(output["protocol"]);
73313
+ }
73314
+ if (output["metaData"] !== undefined) {
73315
+ contents.MetaData = deserializeAws_ec2TransitGatewayPolicyRuleMetaData(output["metaData"], context);
73316
+ }
73317
+ return contents;
73318
+ };
73319
+ var deserializeAws_ec2TransitGatewayPolicyRuleMetaData = function (output, context) {
73320
+ var contents = {
73321
+ MetaDataKey: undefined,
73322
+ MetaDataValue: undefined,
73323
+ };
73324
+ if (output["metaDataKey"] !== undefined) {
73325
+ contents.MetaDataKey = __expectString(output["metaDataKey"]);
73326
+ }
73327
+ if (output["metaDataValue"] !== undefined) {
73328
+ contents.MetaDataValue = __expectString(output["metaDataValue"]);
73329
+ }
73330
+ return contents;
73331
+ };
73332
+ var deserializeAws_ec2TransitGatewayPolicyTable = function (output, context) {
73333
+ var contents = {
73334
+ TransitGatewayPolicyTableId: undefined,
73335
+ TransitGatewayId: undefined,
73336
+ State: undefined,
73337
+ CreationTime: undefined,
73338
+ Tags: undefined,
73339
+ };
73340
+ if (output["transitGatewayPolicyTableId"] !== undefined) {
73341
+ contents.TransitGatewayPolicyTableId = __expectString(output["transitGatewayPolicyTableId"]);
73342
+ }
73343
+ if (output["transitGatewayId"] !== undefined) {
73344
+ contents.TransitGatewayId = __expectString(output["transitGatewayId"]);
73345
+ }
73346
+ if (output["state"] !== undefined) {
73347
+ contents.State = __expectString(output["state"]);
73348
+ }
73349
+ if (output["creationTime"] !== undefined) {
73350
+ contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(output["creationTime"]));
73351
+ }
73352
+ if (output.tagSet === "") {
73353
+ contents.Tags = [];
73354
+ }
73355
+ else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
73356
+ contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
73357
+ }
73358
+ return contents;
73359
+ };
73360
+ var deserializeAws_ec2TransitGatewayPolicyTableAssociation = function (output, context) {
73361
+ var contents = {
73362
+ TransitGatewayPolicyTableId: undefined,
73363
+ TransitGatewayAttachmentId: undefined,
73364
+ ResourceId: undefined,
73365
+ ResourceType: undefined,
73366
+ State: undefined,
73367
+ };
73368
+ if (output["transitGatewayPolicyTableId"] !== undefined) {
73369
+ contents.TransitGatewayPolicyTableId = __expectString(output["transitGatewayPolicyTableId"]);
73370
+ }
73371
+ if (output["transitGatewayAttachmentId"] !== undefined) {
73372
+ contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]);
73373
+ }
73374
+ if (output["resourceId"] !== undefined) {
73375
+ contents.ResourceId = __expectString(output["resourceId"]);
73376
+ }
73377
+ if (output["resourceType"] !== undefined) {
73378
+ contents.ResourceType = __expectString(output["resourceType"]);
73379
+ }
73380
+ if (output["state"] !== undefined) {
73381
+ contents.State = __expectString(output["state"]);
73382
+ }
73383
+ return contents;
73384
+ };
73385
+ var deserializeAws_ec2TransitGatewayPolicyTableAssociationList = function (output, context) {
73386
+ return (output || [])
73387
+ .filter(function (e) { return e != null; })
73388
+ .map(function (entry) {
73389
+ if (entry === null) {
73390
+ return null;
73391
+ }
73392
+ return deserializeAws_ec2TransitGatewayPolicyTableAssociation(entry, context);
73393
+ });
73394
+ };
73395
+ var deserializeAws_ec2TransitGatewayPolicyTableEntry = function (output, context) {
73396
+ var contents = {
73397
+ PolicyRuleNumber: undefined,
73398
+ PolicyRule: undefined,
73399
+ TargetRouteTableId: undefined,
73400
+ };
73401
+ if (output["policyRuleNumber"] !== undefined) {
73402
+ contents.PolicyRuleNumber = __expectString(output["policyRuleNumber"]);
73403
+ }
73404
+ if (output["policyRule"] !== undefined) {
73405
+ contents.PolicyRule = deserializeAws_ec2TransitGatewayPolicyRule(output["policyRule"], context);
73406
+ }
73407
+ if (output["targetRouteTableId"] !== undefined) {
73408
+ contents.TargetRouteTableId = __expectString(output["targetRouteTableId"]);
73409
+ }
73410
+ return contents;
73411
+ };
73412
+ var deserializeAws_ec2TransitGatewayPolicyTableEntryList = function (output, context) {
73413
+ return (output || [])
73414
+ .filter(function (e) { return e != null; })
73415
+ .map(function (entry) {
73416
+ if (entry === null) {
73417
+ return null;
73418
+ }
73419
+ return deserializeAws_ec2TransitGatewayPolicyTableEntry(entry, context);
73420
+ });
73421
+ };
73422
+ var deserializeAws_ec2TransitGatewayPolicyTableList = function (output, context) {
73423
+ return (output || [])
73424
+ .filter(function (e) { return e != null; })
73425
+ .map(function (entry) {
73426
+ if (entry === null) {
73427
+ return null;
73428
+ }
73429
+ return deserializeAws_ec2TransitGatewayPolicyTable(entry, context);
73430
+ });
73431
+ };
72327
73432
  var deserializeAws_ec2TransitGatewayPrefixListAttachment = function (output, context) {
72328
73433
  var contents = {
72329
73434
  TransitGatewayAttachmentId: undefined,
@@ -72387,6 +73492,7 @@ var deserializeAws_ec2TransitGatewayPropagation = function (output, context) {
72387
73492
  ResourceType: undefined,
72388
73493
  TransitGatewayRouteTableId: undefined,
72389
73494
  State: undefined,
73495
+ TransitGatewayRouteTableAnnouncementId: undefined,
72390
73496
  };
72391
73497
  if (output["transitGatewayAttachmentId"] !== undefined) {
72392
73498
  contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]);
@@ -72403,12 +73509,16 @@ var deserializeAws_ec2TransitGatewayPropagation = function (output, context) {
72403
73509
  if (output["state"] !== undefined) {
72404
73510
  contents.State = __expectString(output["state"]);
72405
73511
  }
73512
+ if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) {
73513
+ contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]);
73514
+ }
72406
73515
  return contents;
72407
73516
  };
72408
73517
  var deserializeAws_ec2TransitGatewayRoute = function (output, context) {
72409
73518
  var contents = {
72410
73519
  DestinationCidrBlock: undefined,
72411
73520
  PrefixListId: undefined,
73521
+ TransitGatewayRouteTableAnnouncementId: undefined,
72412
73522
  TransitGatewayAttachments: undefined,
72413
73523
  Type: undefined,
72414
73524
  State: undefined,
@@ -72419,6 +73529,9 @@ var deserializeAws_ec2TransitGatewayRoute = function (output, context) {
72419
73529
  if (output["prefixListId"] !== undefined) {
72420
73530
  contents.PrefixListId = __expectString(output["prefixListId"]);
72421
73531
  }
73532
+ if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) {
73533
+ contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]);
73534
+ }
72422
73535
  if (output.transitGatewayAttachments === "") {
72423
73536
  contents.TransitGatewayAttachments = [];
72424
73537
  }
@@ -72507,6 +73620,68 @@ var deserializeAws_ec2TransitGatewayRouteTable = function (output, context) {
72507
73620
  }
72508
73621
  return contents;
72509
73622
  };
73623
+ var deserializeAws_ec2TransitGatewayRouteTableAnnouncement = function (output, context) {
73624
+ var contents = {
73625
+ TransitGatewayRouteTableAnnouncementId: undefined,
73626
+ TransitGatewayId: undefined,
73627
+ CoreNetworkId: undefined,
73628
+ PeerTransitGatewayId: undefined,
73629
+ PeerCoreNetworkId: undefined,
73630
+ PeeringAttachmentId: undefined,
73631
+ AnnouncementDirection: undefined,
73632
+ TransitGatewayRouteTableId: undefined,
73633
+ State: undefined,
73634
+ CreationTime: undefined,
73635
+ Tags: undefined,
73636
+ };
73637
+ if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) {
73638
+ contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]);
73639
+ }
73640
+ if (output["transitGatewayId"] !== undefined) {
73641
+ contents.TransitGatewayId = __expectString(output["transitGatewayId"]);
73642
+ }
73643
+ if (output["coreNetworkId"] !== undefined) {
73644
+ contents.CoreNetworkId = __expectString(output["coreNetworkId"]);
73645
+ }
73646
+ if (output["peerTransitGatewayId"] !== undefined) {
73647
+ contents.PeerTransitGatewayId = __expectString(output["peerTransitGatewayId"]);
73648
+ }
73649
+ if (output["peerCoreNetworkId"] !== undefined) {
73650
+ contents.PeerCoreNetworkId = __expectString(output["peerCoreNetworkId"]);
73651
+ }
73652
+ if (output["peeringAttachmentId"] !== undefined) {
73653
+ contents.PeeringAttachmentId = __expectString(output["peeringAttachmentId"]);
73654
+ }
73655
+ if (output["announcementDirection"] !== undefined) {
73656
+ contents.AnnouncementDirection = __expectString(output["announcementDirection"]);
73657
+ }
73658
+ if (output["transitGatewayRouteTableId"] !== undefined) {
73659
+ contents.TransitGatewayRouteTableId = __expectString(output["transitGatewayRouteTableId"]);
73660
+ }
73661
+ if (output["state"] !== undefined) {
73662
+ contents.State = __expectString(output["state"]);
73663
+ }
73664
+ if (output["creationTime"] !== undefined) {
73665
+ contents.CreationTime = __expectNonNull(__parseRfc3339DateTime(output["creationTime"]));
73666
+ }
73667
+ if (output.tagSet === "") {
73668
+ contents.Tags = [];
73669
+ }
73670
+ else if (output["tagSet"] !== undefined && output["tagSet"]["item"] !== undefined) {
73671
+ contents.Tags = deserializeAws_ec2TagList(__getArrayIfSingleItem(output["tagSet"]["item"]), context);
73672
+ }
73673
+ return contents;
73674
+ };
73675
+ var deserializeAws_ec2TransitGatewayRouteTableAnnouncementList = function (output, context) {
73676
+ return (output || [])
73677
+ .filter(function (e) { return e != null; })
73678
+ .map(function (entry) {
73679
+ if (entry === null) {
73680
+ return null;
73681
+ }
73682
+ return deserializeAws_ec2TransitGatewayRouteTableAnnouncement(entry, context);
73683
+ });
73684
+ };
72510
73685
  var deserializeAws_ec2TransitGatewayRouteTableAssociation = function (output, context) {
72511
73686
  var contents = {
72512
73687
  TransitGatewayAttachmentId: undefined,
@@ -72554,6 +73729,7 @@ var deserializeAws_ec2TransitGatewayRouteTablePropagation = function (output, co
72554
73729
  ResourceId: undefined,
72555
73730
  ResourceType: undefined,
72556
73731
  State: undefined,
73732
+ TransitGatewayRouteTableAnnouncementId: undefined,
72557
73733
  };
72558
73734
  if (output["transitGatewayAttachmentId"] !== undefined) {
72559
73735
  contents.TransitGatewayAttachmentId = __expectString(output["transitGatewayAttachmentId"]);
@@ -72567,6 +73743,9 @@ var deserializeAws_ec2TransitGatewayRouteTablePropagation = function (output, co
72567
73743
  if (output["state"] !== undefined) {
72568
73744
  contents.State = __expectString(output["state"]);
72569
73745
  }
73746
+ if (output["transitGatewayRouteTableAnnouncementId"] !== undefined) {
73747
+ contents.TransitGatewayRouteTableAnnouncementId = __expectString(output["transitGatewayRouteTableAnnouncementId"]);
73748
+ }
72570
73749
  return contents;
72571
73750
  };
72572
73751
  var deserializeAws_ec2TransitGatewayRouteTablePropagationList = function (output, context) {