@mavogel/awscdk-rootmail 0.0.310 → 0.0.312

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 (236) hide show
  1. package/.jsii +3 -3
  2. package/lib/rootmail.js +1 -1
  3. package/lib/ses-receive.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.browser.d.ts +2 -2
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/runtimeConfig.native.d.ts +2 -2
  7. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  8. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  9. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  10. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +12 -12
  11. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +3 -0
  12. package/node_modules/@aws-sdk/client-route-53/dist-es/models/models_0.js +3 -0
  13. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +1 -1
  14. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +1 -1
  15. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHealthCheckCommand.d.ts +2 -2
  16. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHostedZoneCommand.d.ts +2 -2
  17. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +2 -2
  18. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +1 -1
  19. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +1 -1
  20. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHealthCheckCommand.d.ts +1 -1
  21. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneCommand.d.ts +1 -1
  22. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHealthChecksCommand.d.ts +1 -1
  23. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +1 -1
  24. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetsCommand.d.ts +1 -1
  25. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +1 -1
  26. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHealthCheckCommand.d.ts +2 -2
  27. package/node_modules/@aws-sdk/client-route-53/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  28. package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +3 -0
  29. package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.browser.d.ts +2 -2
  30. package/node_modules/@aws-sdk/client-route-53/dist-types/runtimeConfig.native.d.ts +2 -2
  31. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  32. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/models_0.d.ts +3 -0
  33. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  34. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  35. package/node_modules/@aws-sdk/client-route-53/package.json +12 -12
  36. package/node_modules/@aws-sdk/client-s3/dist-cjs/auth/httpAuthSchemeProvider.js +1 -1
  37. package/node_modules/@aws-sdk/client-s3/dist-cjs/runtimeConfig.shared.js +1 -1
  38. package/node_modules/@aws-sdk/client-s3/dist-es/auth/httpAuthSchemeProvider.js +2 -2
  39. package/node_modules/@aws-sdk/client-s3/dist-es/runtimeConfig.shared.js +1 -1
  40. package/node_modules/@aws-sdk/client-s3/dist-types/S3Client.d.ts +2 -2
  41. package/node_modules/@aws-sdk/client-s3/dist-types/endpoint/EndpointParameters.d.ts +26 -26
  42. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.browser.d.ts +9 -9
  43. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.d.ts +7 -7
  44. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.native.d.ts +9 -9
  45. package/node_modules/@aws-sdk/client-s3/dist-types/runtimeConfig.shared.d.ts +2 -2
  46. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/S3Client.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -26
  48. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.browser.d.ts +22 -10
  49. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.d.ts +16 -8
  50. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.native.d.ts +22 -10
  51. package/node_modules/@aws-sdk/client-s3/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -3
  52. package/node_modules/@aws-sdk/client-s3/package.json +17 -17
  53. package/node_modules/@aws-sdk/client-ses/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  54. package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.browser.d.ts +2 -2
  55. package/node_modules/@aws-sdk/client-ses/dist-types/runtimeConfig.native.d.ts +2 -2
  56. package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  57. package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  58. package/node_modules/@aws-sdk/client-ses/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  59. package/node_modules/@aws-sdk/client-ses/package.json +12 -12
  60. package/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  61. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +2 -2
  62. package/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +2 -2
  63. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  64. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  65. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  66. package/node_modules/@aws-sdk/client-ssm/package.json +12 -12
  67. package/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +7 -7
  68. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +2 -2
  69. package/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +2 -2
  70. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +7 -7
  71. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
  72. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
  73. package/node_modules/@aws-sdk/client-sso/package.json +11 -11
  74. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +1496 -14
  75. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ConfigurableSerdeContext.js +6 -0
  76. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +13 -0
  77. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +14 -0
  78. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +14 -0
  79. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +84 -0
  80. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +118 -0
  81. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js +20 -0
  82. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js +105 -0
  83. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +106 -0
  84. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js +46 -0
  85. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +18 -0
  86. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +17 -0
  87. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +147 -0
  88. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QuerySerializerSettings.js +1 -0
  89. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +152 -0
  90. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +126 -0
  91. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlCodec.js +20 -0
  92. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +154 -0
  93. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +279 -0
  94. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/simpleFormatXml.js +27 -0
  95. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ConfigurableSerdeContext.d.ts +8 -0
  96. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/common.d.ts +2 -2
  97. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +13 -0
  98. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +12 -0
  99. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +12 -0
  100. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +18 -0
  101. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +19 -0
  102. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonCodec.d.ts +19 -0
  103. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -0
  104. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +15 -0
  105. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReplacer.d.ts +21 -0
  106. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/jsonReviver.d.ts +15 -0
  107. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +3 -3
  108. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +20 -0
  109. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +39 -0
  110. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +6 -0
  111. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -0
  112. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +21 -0
  113. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlCodec.d.ts +14 -0
  114. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeDeserializer.d.ts +20 -0
  115. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -0
  116. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/simpleFormatXml.d.ts +6 -0
  117. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ConfigurableSerdeContext.d.ts +5 -0
  118. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/common.d.ts +2 -2
  119. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +13 -0
  120. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +6 -0
  121. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +6 -0
  122. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +33 -0
  123. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +34 -0
  124. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonCodec.d.ts +16 -0
  125. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeDeserializer.d.ts +13 -0
  126. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +15 -0
  127. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReplacer.d.ts +7 -0
  128. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/jsonReviver.d.ts +7 -0
  129. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +3 -3
  130. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +14 -0
  131. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +55 -0
  132. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +6 -0
  133. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +16 -0
  134. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +39 -0
  135. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlCodec.d.ts +17 -0
  136. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeDeserializer.d.ts +15 -0
  137. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/XmlShapeSerializer.d.ts +21 -0
  138. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/simpleFormatXml.d.ts +1 -0
  139. package/node_modules/@aws-sdk/core/package.json +7 -3
  140. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  141. package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
  142. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  143. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  144. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  145. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  146. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  147. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +7 -36
  148. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/NodeUseArnRegionConfigOptions.js +1 -1
  149. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/bucketHostname.js +1 -19
  150. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/bucketHostnameUtils.js +2 -23
  151. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-es/configurations.js +1 -1
  152. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/NodeUseArnRegionConfigOptions.d.ts +2 -2
  153. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/bucketEndpointMiddleware.d.ts +12 -0
  154. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/bucketHostname.d.ts +8 -0
  155. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/bucketHostnameUtils.d.ts +59 -3
  156. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/configurations.d.ts +13 -1
  157. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/ts3.4/NodeUseArnRegionConfigOptions.d.ts +3 -1
  158. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-types/ts3.4/configurations.d.ts +1 -1
  159. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +1 -1
  160. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +2 -2
  161. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +4 -4
  162. package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  163. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +7 -7
  164. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -2
  165. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -2
  166. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/EndpointParameters.d.ts +9 -9
  167. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -3
  168. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +1 -1
  169. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -3
  170. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/EndpointParameters.d.ts +7 -7
  171. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +4 -2
  172. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +4 -2
  173. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/EndpointParameters.d.ts +9 -9
  174. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +8 -3
  175. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +4 -1
  176. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +8 -3
  177. package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
  178. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +8 -0
  179. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +9 -0
  180. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +1 -0
  181. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +1 -0
  182. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  183. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  184. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +3 -0
  185. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +3 -0
  186. package/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +3 -0
  187. package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
  188. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  189. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +9 -8
  190. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +4 -1
  191. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +1 -6
  192. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +9 -2
  193. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +1 -1
  194. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +3 -0
  195. package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +4 -0
  196. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +4 -0
  197. package/node_modules/@smithy/core/package.json +1 -1
  198. package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
  199. package/node_modules/@smithy/middleware-retry/package.json +2 -2
  200. package/node_modules/@smithy/smithy-client/package.json +3 -3
  201. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  202. package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
  203. package/node_modules/axios/CHANGELOG.md +24 -0
  204. package/node_modules/axios/README.md +20 -17
  205. package/node_modules/axios/dist/axios.js +6 -3
  206. package/node_modules/axios/dist/axios.js.map +1 -1
  207. package/node_modules/axios/dist/axios.min.js +2 -2
  208. package/node_modules/axios/dist/axios.min.js.map +1 -1
  209. package/node_modules/axios/dist/browser/axios.cjs +7 -3
  210. package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
  211. package/node_modules/axios/dist/esm/axios.js +7 -3
  212. package/node_modules/axios/dist/esm/axios.js.map +1 -1
  213. package/node_modules/axios/dist/esm/axios.min.js +2 -2
  214. package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
  215. package/node_modules/axios/dist/node/axios.cjs +7 -3
  216. package/node_modules/axios/dist/node/axios.cjs.map +1 -1
  217. package/node_modules/axios/index.d.cts +1 -1
  218. package/node_modules/axios/index.d.ts +1 -1
  219. package/node_modules/axios/lib/adapters/fetch.js +1 -1
  220. package/node_modules/axios/lib/env/data.js +1 -1
  221. package/node_modules/axios/lib/helpers/toFormData.js +4 -0
  222. package/node_modules/axios/package.json +10 -1
  223. package/node_modules/cdk-nag/.jsii +3 -3
  224. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  225. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  226. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  227. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  228. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  229. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  230. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  231. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  232. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  233. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  234. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  235. package/node_modules/cdk-nag/package.json +2 -2
  236. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ export class SerdeContextConfig {
2
+ serdeContext;
3
+ setSerdeContext(serdeContext) {
4
+ this.serdeContext = serdeContext;
5
+ }
6
+ }
@@ -1,4 +1,17 @@
1
1
  export * from "./coercing-serializers";
2
+ export * from "./json/AwsJson1_0Protocol";
3
+ export * from "./json/AwsJson1_1Protocol";
4
+ export * from "./json/AwsJsonRpcProtocol";
5
+ export * from "./json/AwsRestJsonProtocol";
6
+ export * from "./json/JsonCodec";
7
+ export * from "./json/JsonShapeDeserializer";
8
+ export * from "./json/JsonShapeSerializer";
2
9
  export * from "./json/awsExpectUnion";
3
10
  export * from "./json/parseJsonBody";
11
+ export * from "./query/AwsEc2QueryProtocol";
12
+ export * from "./query/AwsQueryProtocol";
13
+ export * from "./xml/AwsRestXmlProtocol";
14
+ export * from "./xml/XmlCodec";
15
+ export * from "./xml/XmlShapeDeserializer";
16
+ export * from "./xml/XmlShapeSerializer";
4
17
  export * from "./xml/parseXmlBody";
@@ -0,0 +1,14 @@
1
+ import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
+ export class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
3
+ constructor({ defaultNamespace }) {
4
+ super({
5
+ defaultNamespace,
6
+ });
7
+ }
8
+ getShapeId() {
9
+ return "aws.protocols#awsJson1_0";
10
+ }
11
+ getJsonRpcVersion() {
12
+ return "1.0";
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
2
+ export class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
3
+ constructor({ defaultNamespace }) {
4
+ super({
5
+ defaultNamespace,
6
+ });
7
+ }
8
+ getShapeId() {
9
+ return "aws.protocols#awsJson1_1";
10
+ }
11
+ getJsonRpcVersion() {
12
+ return "1.1";
13
+ }
14
+ }
@@ -0,0 +1,84 @@
1
+ import { RpcProtocol } from "@smithy/core/protocols";
2
+ import { deref, NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema";
3
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
4
+ import { JsonCodec } from "./JsonCodec";
5
+ import { loadRestJsonErrorCode } from "./parseJsonBody";
6
+ export class AwsJsonRpcProtocol extends RpcProtocol {
7
+ serializer;
8
+ deserializer;
9
+ codec;
10
+ constructor({ defaultNamespace }) {
11
+ super({
12
+ defaultNamespace,
13
+ });
14
+ this.codec = new JsonCodec({
15
+ timestampFormat: {
16
+ useTrait: true,
17
+ default: SCHEMA.TIMESTAMP_EPOCH_SECONDS,
18
+ },
19
+ jsonName: false,
20
+ });
21
+ this.serializer = this.codec.createSerializer();
22
+ this.deserializer = this.codec.createDeserializer();
23
+ }
24
+ async serializeRequest(operationSchema, input, context) {
25
+ const request = await super.serializeRequest(operationSchema, input, context);
26
+ if (!request.path.endsWith("/")) {
27
+ request.path += "/";
28
+ }
29
+ Object.assign(request.headers, {
30
+ "content-type": `application/x-amz-json-${this.getJsonRpcVersion()}`,
31
+ "x-amz-target": (this.getJsonRpcVersion() === "1.0" ? `JsonRpc10.` : `JsonProtocol.`) +
32
+ NormalizedSchema.of(operationSchema).getName(),
33
+ });
34
+ if (deref(operationSchema.input) === "unit" || !request.body) {
35
+ request.body = "{}";
36
+ }
37
+ try {
38
+ request.headers["content-length"] = String(calculateBodyLength(request.body));
39
+ }
40
+ catch (e) { }
41
+ return request;
42
+ }
43
+ getPayloadCodec() {
44
+ return this.codec;
45
+ }
46
+ async handleError(operationSchema, context, response, dataObject, metadata) {
47
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
48
+ let namespace = this.options.defaultNamespace;
49
+ let errorName = errorIdentifier;
50
+ if (errorIdentifier.includes("#")) {
51
+ [namespace, errorName] = errorIdentifier.split("#");
52
+ }
53
+ const registry = TypeRegistry.for(namespace);
54
+ let errorSchema;
55
+ try {
56
+ errorSchema = registry.getSchema(errorIdentifier);
57
+ }
58
+ catch (e) {
59
+ const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
60
+ if (baseExceptionSchema) {
61
+ const ErrorCtor = baseExceptionSchema.ctor;
62
+ throw Object.assign(new ErrorCtor(errorName), dataObject);
63
+ }
64
+ throw new Error(errorName);
65
+ }
66
+ const ns = NormalizedSchema.of(errorSchema);
67
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
68
+ const exception = new errorSchema.ctor(message);
69
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
70
+ const output = {};
71
+ for (const [name, member] of ns.structIterator()) {
72
+ const target = member.getMergedTraits().jsonName ?? name;
73
+ output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
74
+ }
75
+ Object.assign(exception, {
76
+ $metadata: metadata,
77
+ $response: response,
78
+ $fault: ns.getMergedTraits().error,
79
+ message,
80
+ ...output,
81
+ });
82
+ throw exception;
83
+ }
84
+ }
@@ -0,0 +1,118 @@
1
+ import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
+ import { NormalizedSchema, SCHEMA, TypeRegistry } from "@smithy/core/schema";
3
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
4
+ import { JsonCodec } from "./JsonCodec";
5
+ import { loadRestJsonErrorCode } from "./parseJsonBody";
6
+ export class AwsRestJsonProtocol extends HttpBindingProtocol {
7
+ serializer;
8
+ deserializer;
9
+ codec;
10
+ constructor({ defaultNamespace }) {
11
+ super({
12
+ defaultNamespace,
13
+ });
14
+ const settings = {
15
+ timestampFormat: {
16
+ useTrait: true,
17
+ default: SCHEMA.TIMESTAMP_EPOCH_SECONDS,
18
+ },
19
+ httpBindings: true,
20
+ jsonName: true,
21
+ };
22
+ this.codec = new JsonCodec(settings);
23
+ this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
24
+ this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
25
+ }
26
+ getShapeId() {
27
+ return "aws.protocols#restJson1";
28
+ }
29
+ getPayloadCodec() {
30
+ return this.codec;
31
+ }
32
+ setSerdeContext(serdeContext) {
33
+ this.codec.setSerdeContext(serdeContext);
34
+ super.setSerdeContext(serdeContext);
35
+ }
36
+ async serializeRequest(operationSchema, input, context) {
37
+ const request = await super.serializeRequest(operationSchema, input, context);
38
+ const inputSchema = NormalizedSchema.of(operationSchema.input);
39
+ const members = inputSchema.getMemberSchemas();
40
+ if (!request.headers["content-type"]) {
41
+ const httpPayloadMember = Object.values(members).find((m) => {
42
+ return !!m.getMergedTraits().httpPayload;
43
+ });
44
+ if (httpPayloadMember) {
45
+ const mediaType = httpPayloadMember.getMergedTraits().mediaType;
46
+ if (mediaType) {
47
+ request.headers["content-type"] = mediaType;
48
+ }
49
+ else if (httpPayloadMember.isStringSchema()) {
50
+ request.headers["content-type"] = "text/plain";
51
+ }
52
+ else if (httpPayloadMember.isBlobSchema()) {
53
+ request.headers["content-type"] = "application/octet-stream";
54
+ }
55
+ else {
56
+ request.headers["content-type"] = "application/json";
57
+ }
58
+ }
59
+ else if (!inputSchema.isUnitSchema()) {
60
+ const hasBody = Object.values(members).find((m) => {
61
+ const { httpQuery, httpQueryParams, httpHeader, httpLabel, httpPrefixHeaders } = m.getMergedTraits();
62
+ return !httpQuery && !httpQueryParams && !httpHeader && !httpLabel && httpPrefixHeaders === void 0;
63
+ });
64
+ if (hasBody) {
65
+ request.headers["content-type"] = "application/json";
66
+ }
67
+ }
68
+ }
69
+ if (request.headers["content-type"] && !request.body) {
70
+ request.body = "{}";
71
+ }
72
+ if (request.body) {
73
+ try {
74
+ request.headers["content-length"] = String(calculateBodyLength(request.body));
75
+ }
76
+ catch (e) { }
77
+ }
78
+ return request;
79
+ }
80
+ async handleError(operationSchema, context, response, dataObject, metadata) {
81
+ const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
82
+ let namespace = this.options.defaultNamespace;
83
+ let errorName = errorIdentifier;
84
+ if (errorIdentifier.includes("#")) {
85
+ [namespace, errorName] = errorIdentifier.split("#");
86
+ }
87
+ const registry = TypeRegistry.for(namespace);
88
+ let errorSchema;
89
+ try {
90
+ errorSchema = registry.getSchema(errorIdentifier);
91
+ }
92
+ catch (e) {
93
+ const baseExceptionSchema = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace).getBaseException();
94
+ if (baseExceptionSchema) {
95
+ const ErrorCtor = baseExceptionSchema.ctor;
96
+ throw Object.assign(new ErrorCtor(errorName), dataObject);
97
+ }
98
+ throw new Error(errorName);
99
+ }
100
+ const ns = NormalizedSchema.of(errorSchema);
101
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
102
+ const exception = new errorSchema.ctor(message);
103
+ await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
104
+ const output = {};
105
+ for (const [name, member] of ns.structIterator()) {
106
+ const target = member.getMergedTraits().jsonName ?? name;
107
+ output[name] = this.codec.createDeserializer().readObject(member, dataObject[target]);
108
+ }
109
+ Object.assign(exception, {
110
+ $metadata: metadata,
111
+ $response: response,
112
+ $fault: ns.getMergedTraits().error,
113
+ message,
114
+ ...output,
115
+ });
116
+ throw exception;
117
+ }
118
+ }
@@ -0,0 +1,20 @@
1
+ import { SerdeContextConfig } from "../ConfigurableSerdeContext";
2
+ import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
3
+ import { JsonShapeSerializer } from "./JsonShapeSerializer";
4
+ export class JsonCodec extends SerdeContextConfig {
5
+ settings;
6
+ constructor(settings) {
7
+ super();
8
+ this.settings = settings;
9
+ }
10
+ createSerializer() {
11
+ const serializer = new JsonShapeSerializer(this.settings);
12
+ serializer.setSerdeContext(this.serdeContext);
13
+ return serializer;
14
+ }
15
+ createDeserializer() {
16
+ const deserializer = new JsonShapeDeserializer(this.settings);
17
+ deserializer.setSerdeContext(this.serdeContext);
18
+ return deserializer;
19
+ }
20
+ }
@@ -0,0 +1,105 @@
1
+ import { NormalizedSchema, SCHEMA } from "@smithy/core/schema";
2
+ import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
3
+ import { fromBase64 } from "@smithy/util-base64";
4
+ import { SerdeContextConfig } from "../ConfigurableSerdeContext";
5
+ import { jsonReviver } from "./jsonReviver";
6
+ import { parseJsonBody } from "./parseJsonBody";
7
+ export class JsonShapeDeserializer extends SerdeContextConfig {
8
+ settings;
9
+ constructor(settings) {
10
+ super();
11
+ this.settings = settings;
12
+ }
13
+ async read(schema, data) {
14
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
15
+ }
16
+ readObject(schema, data) {
17
+ return this._read(schema, data);
18
+ }
19
+ _read(schema, value) {
20
+ const isObject = value !== null && typeof value === "object";
21
+ const ns = NormalizedSchema.of(schema);
22
+ if (ns.isListSchema() && Array.isArray(value)) {
23
+ const listMember = ns.getValueSchema();
24
+ const out = [];
25
+ const sparse = !!ns.getMergedTraits().sparse;
26
+ for (const item of value) {
27
+ if (sparse || item != null) {
28
+ out.push(this._read(listMember, item));
29
+ }
30
+ }
31
+ return out;
32
+ }
33
+ else if (ns.isMapSchema() && isObject) {
34
+ const mapMember = ns.getValueSchema();
35
+ const out = {};
36
+ const sparse = !!ns.getMergedTraits().sparse;
37
+ for (const [_k, _v] of Object.entries(value)) {
38
+ if (sparse || _v != null) {
39
+ out[_k] = this._read(mapMember, _v);
40
+ }
41
+ }
42
+ return out;
43
+ }
44
+ else if (ns.isStructSchema() && isObject) {
45
+ const out = {};
46
+ for (const [memberName, memberSchema] of ns.structIterator()) {
47
+ const fromKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
48
+ const deserializedValue = this._read(memberSchema, value[fromKey]);
49
+ if (deserializedValue != null) {
50
+ out[memberName] = deserializedValue;
51
+ }
52
+ }
53
+ return out;
54
+ }
55
+ if (ns.isBlobSchema() && typeof value === "string") {
56
+ return fromBase64(value);
57
+ }
58
+ const mediaType = ns.getMergedTraits().mediaType;
59
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
60
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
61
+ if (isJson) {
62
+ return LazyJsonString.from(value);
63
+ }
64
+ }
65
+ if (ns.isTimestampSchema()) {
66
+ const options = this.settings.timestampFormat;
67
+ const format = options.useTrait
68
+ ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT
69
+ ? options.default
70
+ : ns.getSchema() ?? options.default
71
+ : options.default;
72
+ switch (format) {
73
+ case SCHEMA.TIMESTAMP_DATE_TIME:
74
+ return parseRfc3339DateTimeWithOffset(value);
75
+ case SCHEMA.TIMESTAMP_HTTP_DATE:
76
+ return parseRfc7231DateTime(value);
77
+ case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
78
+ return parseEpochTimestamp(value);
79
+ default:
80
+ console.warn("Missing timestamp format, parsing value with Date constructor:", value);
81
+ return new Date(value);
82
+ }
83
+ }
84
+ if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
85
+ return BigInt(value);
86
+ }
87
+ if (ns.isBigDecimalSchema() && value != undefined) {
88
+ if (value instanceof NumericValue) {
89
+ return value;
90
+ }
91
+ return new NumericValue(String(value), "bigDecimal");
92
+ }
93
+ if (ns.isNumericSchema() && typeof value === "string") {
94
+ switch (value) {
95
+ case "Infinity":
96
+ return Infinity;
97
+ case "-Infinity":
98
+ return -Infinity;
99
+ case "NaN":
100
+ return NaN;
101
+ }
102
+ }
103
+ return value;
104
+ }
105
+ }
@@ -0,0 +1,106 @@
1
+ import { NormalizedSchema, SCHEMA } from "@smithy/core/schema";
2
+ import { dateToUtcString } from "@smithy/core/serde";
3
+ import { LazyJsonString } from "@smithy/core/serde";
4
+ import { SerdeContextConfig } from "../ConfigurableSerdeContext";
5
+ import { JsonReplacer } from "./jsonReplacer";
6
+ export class JsonShapeSerializer extends SerdeContextConfig {
7
+ settings;
8
+ buffer;
9
+ rootSchema;
10
+ constructor(settings) {
11
+ super();
12
+ this.settings = settings;
13
+ }
14
+ write(schema, value) {
15
+ this.rootSchema = NormalizedSchema.of(schema);
16
+ this.buffer = this._write(this.rootSchema, value);
17
+ }
18
+ flush() {
19
+ if (this.rootSchema?.isStructSchema() || this.rootSchema?.isDocumentSchema()) {
20
+ const replacer = new JsonReplacer();
21
+ return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
22
+ }
23
+ return this.buffer;
24
+ }
25
+ _write(schema, value, container) {
26
+ const isObject = value !== null && typeof value === "object";
27
+ const ns = NormalizedSchema.of(schema);
28
+ if (ns.isListSchema() && Array.isArray(value)) {
29
+ const listMember = ns.getValueSchema();
30
+ const out = [];
31
+ const sparse = !!ns.getMergedTraits().sparse;
32
+ for (const item of value) {
33
+ if (sparse || item != null) {
34
+ out.push(this._write(listMember, item));
35
+ }
36
+ }
37
+ return out;
38
+ }
39
+ else if (ns.isMapSchema() && isObject) {
40
+ const mapMember = ns.getValueSchema();
41
+ const out = {};
42
+ const sparse = !!ns.getMergedTraits().sparse;
43
+ for (const [_k, _v] of Object.entries(value)) {
44
+ if (sparse || _v != null) {
45
+ out[_k] = this._write(mapMember, _v);
46
+ }
47
+ }
48
+ return out;
49
+ }
50
+ else if (ns.isStructSchema() && isObject) {
51
+ const out = {};
52
+ for (const [memberName, memberSchema] of ns.structIterator()) {
53
+ const targetKey = this.settings.jsonName ? memberSchema.getMergedTraits().jsonName ?? memberName : memberName;
54
+ const serializableValue = this._write(memberSchema, value[memberName], ns);
55
+ if (serializableValue !== undefined) {
56
+ out[targetKey] = serializableValue;
57
+ }
58
+ }
59
+ return out;
60
+ }
61
+ if (value === null && container?.isStructSchema()) {
62
+ return void 0;
63
+ }
64
+ if (ns.isBlobSchema() && (value instanceof Uint8Array || typeof value === "string")) {
65
+ if (ns === this.rootSchema) {
66
+ return value;
67
+ }
68
+ if (!this.serdeContext?.base64Encoder) {
69
+ throw new Error("Missing base64Encoder in serdeContext");
70
+ }
71
+ return this.serdeContext?.base64Encoder(value);
72
+ }
73
+ if (ns.isTimestampSchema() && value instanceof Date) {
74
+ const options = this.settings.timestampFormat;
75
+ const format = options.useTrait
76
+ ? ns.getSchema() === SCHEMA.TIMESTAMP_DEFAULT
77
+ ? options.default
78
+ : ns.getSchema() ?? options.default
79
+ : options.default;
80
+ switch (format) {
81
+ case SCHEMA.TIMESTAMP_DATE_TIME:
82
+ return value.toISOString().replace(".000Z", "Z");
83
+ case SCHEMA.TIMESTAMP_HTTP_DATE:
84
+ return dateToUtcString(value);
85
+ case SCHEMA.TIMESTAMP_EPOCH_SECONDS:
86
+ return value.getTime() / 1000;
87
+ default:
88
+ console.warn("Missing timestamp format, using epoch seconds", value);
89
+ return value.getTime() / 1000;
90
+ }
91
+ }
92
+ if (ns.isNumericSchema() && typeof value === "number") {
93
+ if (Math.abs(value) === Infinity || isNaN(value)) {
94
+ return String(value);
95
+ }
96
+ }
97
+ const mediaType = ns.getMergedTraits().mediaType;
98
+ if (ns.isStringSchema() && typeof value === "string" && mediaType) {
99
+ const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
100
+ if (isJson) {
101
+ return LazyJsonString.from(value);
102
+ }
103
+ }
104
+ return value;
105
+ }
106
+ }
@@ -0,0 +1,46 @@
1
+ import { NumericValue } from "@smithy/core/serde";
2
+ const NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
3
+ export class JsonReplacer {
4
+ values = new Map();
5
+ counter = 0;
6
+ stage = 0;
7
+ createReplacer() {
8
+ if (this.stage === 1) {
9
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
10
+ }
11
+ if (this.stage === 2) {
12
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
13
+ }
14
+ this.stage = 1;
15
+ return (key, value) => {
16
+ if (value instanceof NumericValue) {
17
+ const v = `${NUMERIC_CONTROL_CHAR + +"nv" + this.counter++}_` + value.string;
18
+ this.values.set(`"${v}"`, value.string);
19
+ return v;
20
+ }
21
+ if (typeof value === "bigint") {
22
+ const s = value.toString();
23
+ const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
24
+ this.values.set(`"${v}"`, s);
25
+ return v;
26
+ }
27
+ return value;
28
+ };
29
+ }
30
+ replaceInJson(json) {
31
+ if (this.stage === 0) {
32
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
33
+ }
34
+ if (this.stage === 2) {
35
+ throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
36
+ }
37
+ this.stage = 2;
38
+ if (this.counter === 0) {
39
+ return json;
40
+ }
41
+ for (const [key, value] of this.values) {
42
+ json = json.replace(key, value);
43
+ }
44
+ return json;
45
+ }
46
+ }
@@ -0,0 +1,18 @@
1
+ import { NumericValue } from "@smithy/core/serde";
2
+ export function jsonReviver(key, value, context) {
3
+ if (context?.source) {
4
+ const numericString = context.source;
5
+ if (typeof value === "number") {
6
+ if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
7
+ const isFractional = numericString.includes(".");
8
+ if (isFractional) {
9
+ return new NumericValue(numericString, "bigDecimal");
10
+ }
11
+ else {
12
+ return BigInt(numericString);
13
+ }
14
+ }
15
+ }
16
+ }
17
+ return value;
18
+ }
@@ -0,0 +1,17 @@
1
+ import { AwsQueryProtocol } from "./AwsQueryProtocol";
2
+ export class AwsEc2QueryProtocol extends AwsQueryProtocol {
3
+ options;
4
+ constructor(options) {
5
+ super(options);
6
+ this.options = options;
7
+ const ec2Settings = {
8
+ capitalizeKeys: true,
9
+ flattenLists: true,
10
+ serializeEmptyLists: false,
11
+ };
12
+ Object.assign(this.serializer.settings, ec2Settings);
13
+ }
14
+ useNestedResult() {
15
+ return false;
16
+ }
17
+ }