@cdklabs/cdk-construct-connect-datalake 0.0.19 → 0.0.21

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 (355) hide show
  1. package/.jsii +9 -9
  2. package/.jsii.tabl.json +1 -1
  3. package/lib/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +2 -1
  5. package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/enums.js +1 -0
  6. package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/enums.d.ts +1 -0
  8. package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +7 -3
  9. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  10. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.d.ts +2 -0
  11. package/node_modules/@aws-sdk/client-cloudformation/dist-types/runtimeConfig.native.d.ts +2 -0
  12. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/enums.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  14. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  15. package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  16. package/node_modules/@aws-sdk/client-cloudformation/package.json +6 -6
  17. package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1 -1
  18. package/node_modules/@aws-sdk/client-connect/dist-types/commands/AssociateContactWithUserCommand.d.ts +5 -1
  19. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_0.d.ts +11 -3
  20. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +3 -1
  21. package/node_modules/@aws-sdk/client-connect/dist-types/models/models_3.d.ts +9 -2
  22. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.browser.d.ts +2 -0
  23. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.d.ts +2 -0
  24. package/node_modules/@aws-sdk/client-connect/dist-types/runtimeConfig.native.d.ts +2 -0
  25. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  26. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  27. package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  28. package/node_modules/@aws-sdk/client-connect/package.json +6 -6
  29. package/node_modules/@aws-sdk/client-glue/README.md +7 -0
  30. package/node_modules/@aws-sdk/client-glue/dist-cjs/index.js +295 -118
  31. package/node_modules/@aws-sdk/client-glue/dist-es/Glue.js +2 -0
  32. package/node_modules/@aws-sdk/client-glue/dist-es/commands/BatchGetDataQualityRulesetEvaluationRunCommand.js +4 -0
  33. package/node_modules/@aws-sdk/client-glue/dist-es/commands/index.js +1 -0
  34. package/node_modules/@aws-sdk/client-glue/dist-es/models/enums.js +30 -13
  35. package/node_modules/@aws-sdk/client-glue/dist-es/schemas/schemas_0.js +243 -104
  36. package/node_modules/@aws-sdk/client-glue/dist-types/Glue.d.ts +7 -0
  37. package/node_modules/@aws-sdk/client-glue/dist-types/GlueClient.d.ts +3 -2
  38. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityResultCommand.d.ts +11 -0
  39. package/node_modules/@aws-sdk/client-glue/dist-types/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +202 -0
  40. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateClassifierCommand.d.ts +1 -1
  41. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  42. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateConnectionCommand.d.ts +1 -1
  43. package/node_modules/@aws-sdk/client-glue/dist-types/commands/CreateCrawlerCommand.d.ts +1 -2
  44. package/node_modules/@aws-sdk/client-glue/dist-types/commands/DescribeConnectionTypeCommand.d.ts +68 -0
  45. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -1
  46. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelCommand.d.ts +1 -1
  47. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  48. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityResultCommand.d.ts +12 -1
  49. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +4 -1
  50. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  51. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  52. package/node_modules/@aws-sdk/client-glue/dist-types/commands/GetDataflowGraphCommand.d.ts +1 -1
  53. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityRuleRecommendationRunsCommand.d.ts +4 -0
  54. package/node_modules/@aws-sdk/client-glue/dist-types/commands/ListDataQualityStatisticsCommand.d.ts +9 -0
  55. package/node_modules/@aws-sdk/client-glue/dist-types/commands/RegisterConnectionTypeCommand.d.ts +67 -0
  56. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchAssetsCommand.d.ts +1 -2
  57. package/node_modules/@aws-sdk/client-glue/dist-types/commands/SearchTablesCommand.d.ts +1 -2
  58. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartBlueprintRunCommand.d.ts +1 -1
  59. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  60. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  61. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartCrawlerCommand.d.ts +1 -1
  62. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRuleRecommendationRunCommand.d.ts +3 -0
  63. package/node_modules/@aws-sdk/client-glue/dist-types/commands/StartDataQualityRulesetEvaluationRunCommand.d.ts +48 -0
  64. package/node_modules/@aws-sdk/client-glue/dist-types/commands/index.d.ts +1 -0
  65. package/node_modules/@aws-sdk/client-glue/dist-types/models/enums.d.ts +78 -29
  66. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +305 -439
  67. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_1.d.ts +3890 -3703
  68. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_2.d.ts +416 -308
  69. package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +301 -4
  70. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.browser.d.ts +2 -0
  71. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.d.ts +2 -0
  72. package/node_modules/@aws-sdk/client-glue/dist-types/runtimeConfig.native.d.ts +2 -0
  73. package/node_modules/@aws-sdk/client-glue/dist-types/schemas/schemas_0.d.ts +16 -0
  74. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/Glue.d.ts +17 -0
  75. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/GlueClient.d.ts +6 -0
  76. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/BatchGetDataQualityRulesetEvaluationRunCommand.d.ts +42 -0
  77. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateClassifierCommand.d.ts +1 -1
  78. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateColumnStatisticsTaskSettingsCommand.d.ts +1 -1
  79. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateConnectionCommand.d.ts +1 -1
  80. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/CreateCrawlerCommand.d.ts +1 -2
  81. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataCatalogEncryptionSettingsCommand.d.ts +2 -4
  82. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelCommand.d.ts +1 -1
  83. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityModelResultCommand.d.ts +1 -1
  84. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityResultCommand.d.ts +1 -1
  85. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRuleRecommendationRunCommand.d.ts +1 -1
  86. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataQualityRulesetCommand.d.ts +1 -1
  87. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/GetDataflowGraphCommand.d.ts +1 -1
  88. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchAssetsCommand.d.ts +1 -2
  89. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/SearchTablesCommand.d.ts +1 -2
  90. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartBlueprintRunCommand.d.ts +1 -1
  91. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunCommand.d.ts +1 -1
  92. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartColumnStatisticsTaskRunScheduleCommand.d.ts +1 -1
  93. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/StartCrawlerCommand.d.ts +1 -1
  94. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/commands/index.d.ts +1 -0
  95. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/enums.d.ts +38 -16
  96. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_0.d.ts +74 -76
  97. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_1.d.ts +113 -101
  98. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_2.d.ts +109 -79
  99. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/models/models_3.d.ts +77 -4
  100. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  101. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  102. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  103. package/node_modules/@aws-sdk/client-glue/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
  104. package/node_modules/@aws-sdk/client-glue/package.json +6 -6
  105. package/node_modules/@aws-sdk/client-lakeformation/dist-cjs/index.js +1 -1
  106. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.browser.d.ts +2 -0
  107. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.d.ts +2 -0
  108. package/node_modules/@aws-sdk/client-lakeformation/dist-types/runtimeConfig.native.d.ts +2 -0
  109. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  110. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  111. package/node_modules/@aws-sdk/client-lakeformation/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  112. package/node_modules/@aws-sdk/client-lakeformation/package.json +6 -6
  113. package/node_modules/@aws-sdk/client-ram/dist-cjs/index.js +1 -1
  114. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.browser.d.ts +2 -0
  115. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.d.ts +2 -0
  116. package/node_modules/@aws-sdk/client-ram/dist-types/runtimeConfig.native.d.ts +2 -0
  117. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  118. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  119. package/node_modules/@aws-sdk/client-ram/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  120. package/node_modules/@aws-sdk/client-ram/package.json +6 -6
  121. package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +1 -1
  122. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +2 -0
  123. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +2 -0
  124. package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +2 -0
  125. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  126. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  127. package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  128. package/node_modules/@aws-sdk/client-sts/package.json +8 -8
  129. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +66 -28
  130. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +989 -72
  131. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4ASigner.js +7 -2
  132. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js +28 -14
  133. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.js +1 -0
  134. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.js +3 -0
  135. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.js +8 -0
  136. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/index.js +1 -1
  137. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +3 -3
  138. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.browser.js +9 -0
  139. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/index.js +5 -1
  140. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getDateHeader.js +1 -0
  141. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.js +12 -6
  142. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/index.js +2 -1
  143. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/utils/isClockSkewed.js +1 -1
  144. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +8 -5
  145. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +1 -1
  146. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  147. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonSettings.js +1 -0
  148. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonCodec.js → codec-v1/JsonCodec.js} +1 -1
  149. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v1/JsonSettings.js +1 -0
  150. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeDeserializer.js → codec-v1/JsonShapeDeserializer.js} +14 -5
  151. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/{JsonShapeSerializer.js → codec-v1/JsonShapeSerializer.js} +12 -2
  152. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.js +103 -0
  153. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonCodec2.js +20 -0
  154. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +200 -0
  155. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +489 -0
  156. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/detectBufferParsing.js +18 -0
  157. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js +22 -3
  158. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/needsReviver.js +41 -0
  159. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +33 -13
  160. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/writeKey.js +3 -0
  161. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +4 -0
  162. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -1
  163. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +6 -0
  164. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +7 -0
  165. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +13 -0
  166. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  167. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +22 -6
  168. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.browser.d.ts +11 -0
  169. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/index.d.ts +7 -1
  170. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +4 -0
  171. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +22 -6
  172. package/node_modules/@aws-sdk/core/dist-types/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  173. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +9 -6
  174. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  175. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  176. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  177. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  178. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonSettings.d.ts +7 -0
  179. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +4 -8
  180. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v1/JsonSettings.d.ts +7 -0
  181. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +3 -2
  182. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +3 -2
  183. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +51 -0
  184. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +13 -0
  185. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +30 -0
  186. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +60 -0
  187. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  188. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/needsReviver.d.ts +11 -0
  189. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  190. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/writeKey.d.ts +4 -0
  191. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.d.ts +2 -0
  192. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.browser.d.ts +1 -0
  193. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-defaults.d.ts +1 -0
  194. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/clock-skew-node-config.d.ts +4 -0
  195. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/index.d.ts +1 -1
  196. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.d.ts +7 -6
  197. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.browser.d.ts +32 -0
  198. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/index.d.ts +10 -2
  199. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getDateHeader.d.ts +1 -0
  200. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/getUpdatedSystemClockOffset.d.ts +2 -0
  201. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/httpAuthSchemes/utils/index.d.ts +2 -1
  202. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +9 -6
  203. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +1 -1
  204. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +1 -1
  205. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +1 -1
  206. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +1 -1
  207. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonSettings.d.ts +4 -0
  208. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonCodec.d.ts → codec-v1/JsonCodec.d.ts} +3 -5
  209. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v1/JsonSettings.d.ts +4 -0
  210. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeDeserializer.d.ts → codec-v1/JsonShapeDeserializer.d.ts} +2 -2
  211. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/{JsonShapeSerializer.d.ts → codec-v1/JsonShapeSerializer.d.ts} +2 -2
  212. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonBytesStringAdapter.d.ts +27 -0
  213. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonCodec2.d.ts +9 -0
  214. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.d.ts +15 -0
  215. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/codec-v2/JsonShapeSerializer2.d.ts +39 -0
  216. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/detectBufferParsing.d.ts +1 -0
  217. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/needsReviver.d.ts +2 -0
  218. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/parseJsonBody.d.ts +7 -2
  219. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/writeKey.d.ts +1 -0
  220. package/node_modules/@aws-sdk/core/package.json +11 -6
  221. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  222. package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
  223. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  224. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  225. package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
  226. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  227. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  228. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  229. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  230. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  231. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  232. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  233. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  234. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  235. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  236. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  237. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  238. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.d.ts +2 -0
  239. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/runtimeConfig.native.d.ts +2 -0
  240. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  241. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.d.ts +2 -0
  242. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/runtimeConfig.native.d.ts +2 -0
  243. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  244. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  245. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  246. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  247. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +2 -0
  248. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +2 -0
  249. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +2 -0
  250. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +2 -0
  251. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +2 -0
  252. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.browser.d.ts +2 -0
  253. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.d.ts +2 -0
  254. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/runtimeConfig.native.d.ts +2 -0
  255. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +2 -0
  256. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +2 -0
  257. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +2 -0
  258. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.browser.d.ts +2 -0
  259. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.d.ts +2 -0
  260. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/runtimeConfig.native.d.ts +2 -0
  261. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +2 -0
  262. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +2 -0
  263. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +2 -0
  264. package/node_modules/@aws-sdk/nested-clients/package.json +6 -6
  265. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +2 -2
  266. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  267. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +14 -4
  268. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +14 -4
  269. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  270. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +1562 -338
  271. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  272. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  273. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  274. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +1 -0
  275. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +1 -0
  276. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +2 -2
  277. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +2 -2
  278. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +2 -2
  279. package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +4 -205
  280. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +1 -1
  281. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +1 -1
  282. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +113 -0
  283. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +103 -0
  284. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +621 -0
  285. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +602 -0
  286. package/node_modules/@smithy/core/dist-es/submodules/cbor/index.js +5 -1
  287. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  288. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  289. package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/constants.js +1 -0
  290. package/node_modules/@smithy/core/dist-es/submodules/serde/value/NumericValue.js +2 -2
  291. package/node_modules/@smithy/core/dist-types/submodules/cbor/CborCodec.d.ts +5 -27
  292. package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  293. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  294. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  295. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  296. package/node_modules/@smithy/core/dist-types/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  297. package/node_modules/@smithy/core/dist-types/submodules/cbor/index.d.ts +5 -1
  298. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  299. package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/constants.d.ts +1 -0
  300. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/CborCodec.d.ts +5 -27
  301. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +2 -2
  302. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeDeserializer.d.ts +13 -0
  303. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v1/CborShapeSerializer.d.ts +15 -0
  304. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeDeserializer2.d.ts +18 -0
  305. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/codec-v2/CborShapeSerializer2.d.ts +35 -0
  306. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/index.d.ts +5 -1
  307. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  308. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/constants.d.ts +1 -0
  309. package/node_modules/@smithy/core/package.json +2 -1
  310. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  311. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  312. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  313. package/node_modules/@smithy/signature-v4/package.json +2 -2
  314. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.js +4 -4
  315. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/dist/js-yaml.min.js +1 -1
  316. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/omap.js +3 -3
  317. package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/package.json +1 -1
  318. package/node_modules/xml2js/node_modules/sax/lib/sax.js +27 -9
  319. package/node_modules/xml2js/node_modules/sax/package.json +1 -1
  320. package/package.json +12 -12
  321. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  322. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  323. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
  324. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/LICENSE +0 -0
  325. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/README.md +0 -0
  326. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/bin/js-yaml.js +0 -0
  327. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/index.js +0 -0
  328. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/common.js +0 -0
  329. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/dumper.js +0 -0
  330. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/exception.js +0 -0
  331. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/loader.js +0 -0
  332. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/mark.js +0 -0
  333. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/core.js +0 -0
  334. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_full.js +0 -0
  335. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/default_safe.js +0 -0
  336. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/failsafe.js +0 -0
  337. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema/json.js +0 -0
  338. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/schema.js +0 -0
  339. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/binary.js +0 -0
  340. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/bool.js +0 -0
  341. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/float.js +0 -0
  342. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/int.js +0 -0
  343. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/function.js +0 -0
  344. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/regexp.js +0 -0
  345. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/js/undefined.js +0 -0
  346. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/map.js +0 -0
  347. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/merge.js +0 -0
  348. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/null.js +0 -0
  349. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/pairs.js +0 -0
  350. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/seq.js +0 -0
  351. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/set.js +0 -0
  352. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/str.js +0 -0
  353. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type/timestamp.js +0 -0
  354. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml/type.js +0 -0
  355. /package/node_modules/{js-yaml → aws-lambda/node_modules/js-yaml}/lib/js-yaml.js +0 -0
@@ -10,9 +10,14 @@ export class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer {
10
10
  const configResolvedSigningRegionSet = await config.sigv4aSigningRegionSet?.();
11
11
  const multiRegionOverride = (configResolvedSigningRegionSet ??
12
12
  signingRegionSet ?? [signingRegion]).join(",");
13
- signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
13
+ const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
14
+ signingProperties._disableClockSkewCorrection = noSkewCorrection;
15
+ if (!noSkewCorrection) {
16
+ signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
17
+ signingProperties._requestSentAt = Date.now();
18
+ }
14
19
  const signedRequest = await signer.sign(httpRequest, {
15
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
20
+ signingDate: noSkewCorrection ? new Date() : getSkewCorrectedDate(config.systemClockOffset),
16
21
  signingRegion: multiRegionOverride,
17
22
  signingService: signingName,
18
23
  });
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest } from "@smithy/core/protocols";
2
- import { getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
2
+ import { getAgeHeader, getDateHeader, getSkewCorrectedDate, getUpdatedSystemClockOffset } from "../utils";
3
3
  const throwSigningPropertyError = (name, property) => {
4
4
  if (!property) {
5
5
  throw new Error(`Property \`${name}\` is not resolved for AWS SDK SigV4Auth`);
@@ -39,9 +39,14 @@ export class AwsSdkSigV4Signer {
39
39
  signingName = second?.signingName ?? signingName;
40
40
  }
41
41
  }
42
- signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
42
+ const noSkewCorrection = (await config.disableClockSkewCorrection?.()) === true;
43
+ signingProperties._disableClockSkewCorrection = noSkewCorrection;
44
+ if (!noSkewCorrection) {
45
+ signingProperties._preRequestSystemClockOffset = config.systemClockOffset;
46
+ signingProperties._requestSentAt = Date.now();
47
+ }
43
48
  const signedRequest = await signer.sign(httpRequest, {
44
- signingDate: getSkewCorrectedDate(config.systemClockOffset),
49
+ signingDate: noSkewCorrection ? new Date() : getSkewCorrectedDate(config.systemClockOffset),
45
50
  signingRegion: signingRegion,
46
51
  signingService: signingName,
47
52
  });
@@ -50,27 +55,36 @@ export class AwsSdkSigV4Signer {
50
55
  errorHandler(signingProperties) {
51
56
  return (error) => {
52
57
  const errorException = error;
53
- const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
54
- if (serverTime) {
55
- const config = throwSigningPropertyError("config", signingProperties.config);
56
- const preRequestOffset = signingProperties._preRequestSystemClockOffset;
57
- const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset);
58
- const isLocalCorrection = newOffset !== config.systemClockOffset;
59
- const isConcurrentCorrection = preRequestOffset !== undefined && preRequestOffset !== newOffset;
60
- const clockSkewCorrected = isLocalCorrection || isConcurrentCorrection;
61
- if (clockSkewCorrected && errorException.$metadata) {
58
+ if (!signingProperties._disableClockSkewCorrection) {
59
+ const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
60
+ if (serverTime) {
61
+ const config = throwSigningPropertyError("config", signingProperties.config);
62
+ const preRequestOffset = signingProperties._preRequestSystemClockOffset;
63
+ const timeRequestSent = signingProperties._requestSentAt;
64
+ const ageHeader = getAgeHeader(errorException.$response);
65
+ const newOffset = getUpdatedSystemClockOffset(serverTime, config.systemClockOffset, timeRequestSent, ageHeader);
62
66
  config.systemClockOffset = newOffset;
63
- errorException.$metadata.clockSkewCorrected = true;
67
+ const skewExceedsThreshold = Math.abs(newOffset) >= 240_000;
68
+ const isLocalCorrection = newOffset !== preRequestOffset;
69
+ const isConcurrentCorrection = preRequestOffset !== undefined && preRequestOffset !== newOffset;
70
+ if (skewExceedsThreshold && (isLocalCorrection || isConcurrentCorrection) && errorException.$metadata) {
71
+ errorException.$metadata.clockSkewCorrected = true;
72
+ }
64
73
  }
65
74
  }
66
75
  throw error;
67
76
  };
68
77
  }
69
78
  successHandler(httpResponse, signingProperties) {
79
+ if (signingProperties._disableClockSkewCorrection) {
80
+ return;
81
+ }
70
82
  const dateHeader = getDateHeader(httpResponse);
71
83
  if (dateHeader) {
72
84
  const config = throwSigningPropertyError("config", signingProperties.config);
73
- config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset);
85
+ const timeRequestSent = signingProperties._requestSentAt;
86
+ const ageHeader = getAgeHeader(httpResponse);
87
+ config.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, config.systemClockOffset, timeRequestSent, ageHeader);
74
88
  }
75
89
  }
76
90
  }
@@ -0,0 +1 @@
1
+ export const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = false;
@@ -0,0 +1,3 @@
1
+ import { loadConfig } from "@smithy/core/config";
2
+ import { NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS } from "./clock-skew-node-config";
3
+ export const DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION = loadConfig(NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS);
@@ -0,0 +1,8 @@
1
+ import { booleanSelector, SelectorType } from "@smithy/core/config";
2
+ export const ENV_DISABLE_CLOCK_SKEW_CORRECTION = "AWS_DISABLE_CLOCK_SKEW_CORRECTION";
3
+ export const CONFIG_DISABLE_CLOCK_SKEW_CORRECTION = "disable_clock_skew_correction";
4
+ export const NODE_DISABLE_CLOCK_SKEW_CORRECTION_CONFIG_OPTIONS = {
5
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.ENV),
6
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_DISABLE_CLOCK_SKEW_CORRECTION, SelectorType.CONFIG),
7
+ default: false,
8
+ };
@@ -2,4 +2,4 @@ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties } from
2
2
  export { AwsSdkSigV4ASigner } from "./AwsSdkSigV4ASigner";
3
3
  export { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "./NODE_AUTH_SCHEME_PREFERENCE_OPTIONS";
4
4
  export { resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS } from "./resolveAwsSdkSigV4AConfig";
5
- export { resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config } from "./resolveAwsSdkSigV4Config";
5
+ export { bindResolveAwsSdkSigV4Config } from "./resolveAwsSdkSigV4Config";
@@ -1,7 +1,7 @@
1
1
  import { setCredentialFeature } from "@aws-sdk/core/client";
2
2
  import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider, normalizeProvider, } from "@smithy/core";
3
3
  import { SignatureV4 } from "@smithy/signature-v4";
4
- export const resolveAwsSdkSigV4Config = (config) => {
4
+ export const bindResolveAwsSdkSigV4Config = (defaultDisableClockSkewCorrection) => (config) => {
5
5
  let inputCredentials = config.credentials;
6
6
  let isUserSupplied = !!config.credentials;
7
7
  let resolvedCredentials = undefined;
@@ -99,11 +99,11 @@ export const resolveAwsSdkSigV4Config = (config) => {
99
99
  systemClockOffset,
100
100
  signingEscapePath,
101
101
  signer,
102
+ disableClockSkewCorrection: normalizeProvider(config.disableClockSkewCorrection ?? defaultDisableClockSkewCorrection),
102
103
  });
103
104
  return resolvedConfig;
104
105
  };
105
- export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
106
- function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider, }) {
106
+ function normalizeCredentialProvider(config, { credentials, credentialDefaultProvider }) {
107
107
  let credentialsProvider;
108
108
  if (credentials) {
109
109
  if (!credentials?.memoized) {
@@ -0,0 +1,9 @@
1
+ const no = Symbol.for("node-only");
2
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, resolveAwsSdkSigV4AConfig, } from "./aws_sdk";
3
+ export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
4
+ export const NODE_AUTH_SCHEME_PREFERENCE_OPTIONS = no;
5
+ export const NODE_SIGV4A_CONFIG_OPTIONS = no;
6
+ import { bindResolveAwsSdkSigV4Config } from "./aws_sdk";
7
+ import { DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION } from "./aws_sdk/clock-skew-defaults.browser";
8
+ export const resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
9
+ export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
@@ -1,2 +1,6 @@
1
- export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4Config, resolveAWSSDKSigV4Config, } from "./aws_sdk";
1
+ export { AwsSdkSigV4Signer, AWSSDKSigV4Signer, validateSigningProperties, AwsSdkSigV4ASigner, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, resolveAwsSdkSigV4AConfig, NODE_SIGV4A_CONFIG_OPTIONS, } from "./aws_sdk";
2
2
  export { getBearerTokenEnvKey } from "./utils/getBearerTokenEnvKey";
3
+ import { bindResolveAwsSdkSigV4Config } from "./aws_sdk";
4
+ import { DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION } from "./aws_sdk/clock-skew-defaults";
5
+ export const resolveAwsSdkSigV4Config = bindResolveAwsSdkSigV4Config(DEFAULT_DISABLE_CLOCK_SKEW_CORRECTION);
6
+ export const resolveAWSSDKSigV4Config = resolveAwsSdkSigV4Config;
@@ -1,2 +1,3 @@
1
1
  import { HttpResponse } from "@smithy/core/protocols";
2
2
  export const getDateHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.date ?? response.headers?.Date) : undefined;
3
+ export const getAgeHeader = (response) => HttpResponse.isInstance(response) ? (response.headers?.age ?? response.headers?.Age) : undefined;
@@ -1,8 +1,14 @@
1
- import { isClockSkewed } from "./isClockSkewed";
2
- export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => {
3
- const clockTimeInMs = Date.parse(clockTime);
4
- if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) {
5
- return clockTimeInMs - Date.now();
1
+ export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset, timeRequestSent, ageHeader) => {
2
+ if (ageHeader !== undefined) {
3
+ return currentSystemClockOffset;
6
4
  }
7
- return currentSystemClockOffset;
5
+ const serverTime = Date.parse(clockTime);
6
+ const timeResponseReceived = Date.now();
7
+ if (timeRequestSent !== undefined && timeResponseReceived - timeRequestSent > 900_000) {
8
+ return currentSystemClockOffset;
9
+ }
10
+ const candidateSkew = timeRequestSent !== undefined
11
+ ? serverTime - (timeRequestSent + timeResponseReceived) / 2
12
+ : serverTime - timeResponseReceived;
13
+ return candidateSkew;
8
14
  };
@@ -1,3 +1,4 @@
1
- export { getDateHeader } from "./getDateHeader";
1
+ export { getAgeHeader, getDateHeader } from "./getDateHeader";
2
2
  export { getSkewCorrectedDate } from "./getSkewCorrectedDate";
3
3
  export { getUpdatedSystemClockOffset } from "./getUpdatedSystemClockOffset";
4
+ export { isClockSkewed } from "./isClockSkewed";
@@ -1,2 +1,2 @@
1
1
  import { getSkewCorrectedDate } from "./getSkewCorrectedDate";
2
- export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000;
2
+ export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 240000;
@@ -1,13 +1,14 @@
1
1
  export { AwsSmithyRpcV2CborProtocol } from "./cbor/AwsSmithyRpcV2CborProtocol";
2
- export { _toStr, _toBool, _toNum } from "./coercing-serializers";
3
2
  export { AwsJson1_0Protocol } from "./json/AwsJson1_0Protocol";
4
3
  export { AwsJson1_1Protocol } from "./json/AwsJson1_1Protocol";
5
4
  export { AwsJsonRpcProtocol } from "./json/AwsJsonRpcProtocol";
6
5
  export { AwsRestJsonProtocol } from "./json/AwsRestJsonProtocol";
7
- export { JsonCodec } from "./json/JsonCodec";
8
- export { JsonShapeDeserializer } from "./json/JsonShapeDeserializer";
9
- export { JsonShapeSerializer } from "./json/JsonShapeSerializer";
10
- export { awsExpectUnion } from "./json/awsExpectUnion";
6
+ export { JsonCodec } from "./json/codec-v1/JsonCodec";
7
+ export { JsonShapeDeserializer } from "./json/codec-v1/JsonShapeDeserializer";
8
+ export { JsonShapeSerializer } from "./json/codec-v1/JsonShapeSerializer";
9
+ export { JsonCodec2 } from "./json/codec-v2/JsonCodec2";
10
+ export { JsonShapeDeserializer2 } from "./json/codec-v2/JsonShapeDeserializer2";
11
+ export { JsonShapeSerializer2 } from "./json/codec-v2/JsonShapeSerializer2";
11
12
  export { parseJsonBody, parseJsonErrorBody, loadRestJsonErrorCode, loadJsonRpcErrorCode } from "./json/parseJsonBody";
12
13
  export { AwsEc2QueryProtocol } from "./query/AwsEc2QueryProtocol";
13
14
  export { AwsQueryProtocol } from "./query/AwsQueryProtocol";
@@ -17,3 +18,5 @@ export { XmlCodec } from "./xml/XmlCodec";
17
18
  export { XmlShapeDeserializer } from "./xml/XmlShapeDeserializer";
18
19
  export { XmlShapeSerializer } from "./xml/XmlShapeSerializer";
19
20
  export { parseXmlBody, parseXmlErrorBody, loadRestXmlErrorCode } from "./xml/parseXmlBody";
21
+ export { awsExpectUnion } from "./json/awsExpectUnion";
22
+ export { _toStr, _toBool, _toNum } from "./coercing-serializers";
@@ -1,7 +1,7 @@
1
1
  import { RpcProtocol } from "@smithy/core/protocols";
2
2
  import { deref, NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
- import { JsonCodec } from "./JsonCodec";
4
+ import { JsonCodec } from "./codec-v1/JsonCodec";
5
5
  import { loadJsonRpcErrorCode } from "./parseJsonBody";
6
6
  export class AwsJsonRpcProtocol extends RpcProtocol {
7
7
  serializer;
@@ -1,7 +1,7 @@
1
1
  import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { ProtocolLib } from "../ProtocolLib";
4
- import { JsonCodec } from "./JsonCodec";
4
+ import { JsonCodec } from "./codec-v1/JsonCodec";
5
5
  import { loadRestJsonErrorCode } from "./parseJsonBody";
6
6
  export class AwsRestJsonProtocol extends HttpBindingProtocol {
7
7
  serializer;
@@ -1,4 +1,4 @@
1
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
1
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
2
2
  import { JsonShapeDeserializer } from "./JsonShapeDeserializer";
3
3
  import { JsonShapeSerializer } from "./JsonShapeSerializer";
4
4
  export class JsonCodec extends SerdeContextConfig {
@@ -2,10 +2,12 @@ import { determineTimestampFormat } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { LazyJsonString, NumericValue, parseEpochTimestamp, parseRfc3339DateTimeWithOffset, parseRfc7231DateTime, } from "@smithy/core/serde";
4
4
  import { fromBase64 } from "@smithy/core/serde";
5
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
6
- import { UnionSerde } from "../UnionSerde";
7
- import { jsonReviver } from "./jsonReviver";
8
- import { parseJsonBody } from "./parseJsonBody";
5
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
6
+ import { UnionSerde } from "../../UnionSerde";
7
+ import { jsonReviver } from "../jsonReviver";
8
+ import { needsReviver } from "../needsReviver";
9
+ import { parseJsonBody } from "../parseJsonBody";
10
+ import { writeKey } from "../../writeKey";
9
11
  export class JsonShapeDeserializer extends SerdeContextConfig {
10
12
  settings;
11
13
  constructor(settings) {
@@ -13,7 +15,8 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
13
15
  this.settings = settings;
14
16
  }
15
17
  async read(schema, data) {
16
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
18
+ const reviver = needsReviver(schema) ? jsonReviver : undefined;
19
+ return this._read(schema, typeof data === "string" ? JSON.parse(data, reviver) : await parseJsonBody(data, this.serdeContext, schema));
17
20
  }
18
21
  readObject(schema, data) {
19
22
  return this._read(schema, data);
@@ -74,6 +77,9 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
74
77
  const mapMember = ns.getValueSchema();
75
78
  const out = {};
76
79
  for (const _k in value) {
80
+ if (_k === "__proto__") {
81
+ writeKey(out);
82
+ }
77
83
  out[_k] = this._read(mapMember, value[_k]);
78
84
  }
79
85
  return out;
@@ -132,6 +138,9 @@ export class JsonShapeDeserializer extends SerdeContextConfig {
132
138
  if (isObject) {
133
139
  const out = Array.isArray(value) ? [] : {};
134
140
  for (const k in value) {
141
+ if (k === "__proto__") {
142
+ writeKey(out);
143
+ }
135
144
  const v = value[k];
136
145
  if (v instanceof NumericValue) {
137
146
  out[k] = v;
@@ -1,8 +1,9 @@
1
1
  import { determineTimestampFormat } from "@smithy/core/protocols";
2
2
  import { NormalizedSchema } from "@smithy/core/schema";
3
3
  import { dateToUtcString, generateIdempotencyToken, LazyJsonString, NumericValue, toBase64 } from "@smithy/core/serde";
4
- import { SerdeContextConfig } from "../ConfigurableSerdeContext";
5
- import { JsonReplacer } from "./jsonReplacer";
4
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
5
+ import { JsonReplacer } from "../jsonReplacer";
6
+ import { writeKey } from "../../writeKey";
6
7
  export class JsonShapeSerializer extends SerdeContextConfig {
7
8
  settings;
8
9
  buffer;
@@ -64,6 +65,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
64
65
  const { $unknown } = record;
65
66
  if (Array.isArray($unknown)) {
66
67
  const [k, v] = $unknown;
68
+ if (k === "__proto__") {
69
+ writeKey(out);
70
+ }
67
71
  out[k] = this._write(15, v);
68
72
  }
69
73
  }
@@ -96,6 +100,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
96
100
  for (const _k in value) {
97
101
  const _v = value[_k];
98
102
  if (sparse || _v != null) {
103
+ if (_k === "__proto__") {
104
+ writeKey(out);
105
+ }
99
106
  out[_k] = this._write(mapMember, _v);
100
107
  }
101
108
  }
@@ -161,6 +168,9 @@ export class JsonShapeSerializer extends SerdeContextConfig {
161
168
  const out = Array.isArray(value) ? [] : {};
162
169
  for (const k in value) {
163
170
  const v = value[k];
171
+ if (k === "__proto__") {
172
+ writeKey(out);
173
+ }
164
174
  if (v instanceof NumericValue) {
165
175
  this.useReplacer = true;
166
176
  out[k] = v;
@@ -0,0 +1,103 @@
1
+ import { toUtf8 } from "@smithy/core/serde";
2
+ export class JsonBytesStringAdapter extends Uint8Array {
3
+ string = null;
4
+ static allocUnsafe(bytes) {
5
+ if (typeof Buffer === "function") {
6
+ const buffer = Buffer.allocUnsafe(bytes);
7
+ return new JsonBytesStringAdapter(buffer.buffer, buffer.byteOffset, buffer.byteLength);
8
+ }
9
+ return new JsonBytesStringAdapter(bytes);
10
+ }
11
+ toString() {
12
+ return this.s();
13
+ }
14
+ valueOf() {
15
+ return this.s();
16
+ }
17
+ includes(searchString, position) {
18
+ if (typeof searchString === "string") {
19
+ return this.s().includes(searchString, position);
20
+ }
21
+ return Uint8Array.prototype.includes.call(this, searchString, position);
22
+ }
23
+ indexOf(searchString, position) {
24
+ if (typeof searchString === "string") {
25
+ return this.s().indexOf(searchString, position);
26
+ }
27
+ return Uint8Array.prototype.indexOf.call(this, searchString, position);
28
+ }
29
+ lastIndexOf(searchString, position) {
30
+ if (typeof searchString === "string") {
31
+ return this.s().lastIndexOf(searchString, position);
32
+ }
33
+ const fn = Uint8Array.prototype.lastIndexOf;
34
+ if (position !== undefined) {
35
+ return fn.call(this, searchString, position);
36
+ }
37
+ return fn.call(this, searchString);
38
+ }
39
+ startsWith(searchString, position) {
40
+ return this.s().startsWith(searchString, position);
41
+ }
42
+ endsWith(searchString, endPosition) {
43
+ return this.s().endsWith(searchString, endPosition);
44
+ }
45
+ match(regexp) {
46
+ return this.s().match(regexp);
47
+ }
48
+ replace(searchValue, replaceValue) {
49
+ return this.s().replace(searchValue, replaceValue);
50
+ }
51
+ search(regexp) {
52
+ return this.s().search(regexp);
53
+ }
54
+ split(separator, limit) {
55
+ return this.s().split(separator, limit);
56
+ }
57
+ substring(start, end) {
58
+ return this.s().substring(start, end);
59
+ }
60
+ trim() {
61
+ return this.s().trim();
62
+ }
63
+ trimStart() {
64
+ return this.s().trimStart();
65
+ }
66
+ trimEnd() {
67
+ return this.s().trimEnd();
68
+ }
69
+ charAt(pos) {
70
+ return this.s().charAt(pos);
71
+ }
72
+ charCodeAt(index) {
73
+ return this.s().charCodeAt(index);
74
+ }
75
+ padStart(maxLength, fillString) {
76
+ return this.s().padStart(maxLength, fillString);
77
+ }
78
+ padEnd(maxLength, fillString) {
79
+ return this.s().padEnd(maxLength, fillString);
80
+ }
81
+ repeat(count) {
82
+ return this.s().repeat(count);
83
+ }
84
+ toUpperCase() {
85
+ return this.s().toUpperCase();
86
+ }
87
+ toLowerCase() {
88
+ return this.s().toLowerCase();
89
+ }
90
+ s() {
91
+ if (this.string == null) {
92
+ const n = Date.now();
93
+ if (n > warned + 60_000) {
94
+ console.warn("@aws-sdk/core/protocols - WARN - JsonCodec2: you have called a string method on a Uint8Array request body. " +
95
+ "It has been automatically converted to string. In a future version this will throw an error.");
96
+ warned = n;
97
+ }
98
+ this.string = toUtf8(this);
99
+ }
100
+ return this.string;
101
+ }
102
+ }
103
+ var warned = 0;
@@ -0,0 +1,20 @@
1
+ import { SerdeContextConfig } from "../../ConfigurableSerdeContext";
2
+ import { JsonShapeDeserializer2 } from "./JsonShapeDeserializer2";
3
+ import { JsonShapeSerializer2 } from "./JsonShapeSerializer2";
4
+ export class JsonCodec2 extends SerdeContextConfig {
5
+ settings;
6
+ constructor(settings) {
7
+ super();
8
+ this.settings = settings;
9
+ }
10
+ createSerializer() {
11
+ const serializer = new JsonShapeSerializer2(this.settings);
12
+ serializer.setSerdeContext(this.serdeContext);
13
+ return serializer;
14
+ }
15
+ createDeserializer() {
16
+ const deserializer = new JsonShapeDeserializer2(this.settings);
17
+ deserializer.setSerdeContext(this.serdeContext);
18
+ return deserializer;
19
+ }
20
+ }