@mavogel/awscdk-rootmail 0.0.324 → 0.0.325

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 (467) hide show
  1. package/.jsii +2 -2
  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/models/models_0.d.ts +2 -2
  5. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +36 -36
  6. package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +1 -1
  7. package/node_modules/@aws-sdk/client-route-53/package.json +36 -36
  8. package/node_modules/@aws-sdk/client-s3/dist-types/models/models_0.d.ts +4 -4
  9. package/node_modules/@aws-sdk/client-s3/package.json +50 -50
  10. package/node_modules/@aws-sdk/client-ses/package.json +34 -34
  11. package/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js +1 -1
  12. package/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js +1 -1
  13. package/node_modules/@aws-sdk/client-ssm/package.json +34 -34
  14. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  15. package/node_modules/@aws-sdk/core/dist-cjs/index.js +6 -6
  16. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +6 -6
  17. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
  18. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  19. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  20. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
  21. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
  22. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
  23. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -2
  24. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
  25. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  26. package/node_modules/@aws-sdk/core/package.json +11 -11
  27. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  28. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  29. package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +2 -2
  30. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +1 -2
  31. package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
  32. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +2 -1
  33. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +4 -0
  34. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +3 -1
  35. package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +1 -0
  36. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  37. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  38. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  39. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  40. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  41. package/node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js +334 -450
  42. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +5 -5
  43. package/node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js +30 -60
  44. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  45. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +9 -9
  46. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  47. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  48. package/node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js +23 -57
  49. package/node_modules/@aws-sdk/middleware-location-constraint/dist-es/index.js +4 -7
  50. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  51. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  52. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  53. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
  54. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  55. package/node_modules/@aws-sdk/middleware-sdk-route53/dist-cjs/index.js +71 -109
  56. package/node_modules/@aws-sdk/middleware-sdk-route53/package.json +3 -3
  57. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +11 -11
  58. package/node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js +65 -92
  59. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  60. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  61. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  62. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
  63. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  64. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  65. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  66. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  67. package/node_modules/@aws-sdk/types/package.json +2 -2
  68. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
  69. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  70. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  71. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  72. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
  73. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +4 -1
  74. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  75. package/node_modules/@smithy/abort-controller/package.json +2 -2
  76. package/node_modules/@smithy/config-resolver/package.json +4 -4
  77. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -2
  78. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +3 -3
  79. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +235 -220
  80. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -2
  81. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -4
  82. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +16 -9
  83. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
  84. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +4 -6
  85. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +4 -6
  86. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +26 -35
  87. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
  88. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
  89. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  90. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -2
  91. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
  92. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  93. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +2 -0
  94. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +2 -0
  95. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +4 -21
  96. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  97. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -0
  98. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  99. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  100. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  101. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -2
  102. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
  103. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  104. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +2 -0
  105. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +2 -0
  106. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +4 -21
  107. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  108. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -0
  109. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  110. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  111. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  112. package/node_modules/@smithy/core/package.json +7 -7
  113. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  114. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  115. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  116. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
  117. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  118. package/node_modules/@smithy/eventstream-serde-universal/package.json +6 -4
  119. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  120. package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
  121. package/node_modules/@smithy/hash-node/package.json +2 -2
  122. package/node_modules/@smithy/hash-stream-node/package.json +2 -2
  123. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  124. package/node_modules/@smithy/md5-js/package.json +3 -3
  125. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  126. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  127. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  128. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  129. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  130. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  131. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  132. package/node_modules/@smithy/property-provider/package.json +2 -2
  133. package/node_modules/@smithy/protocol-http/package.json +2 -2
  134. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  135. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  136. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  137. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +2 -1
  138. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  139. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  140. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
  141. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  142. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  143. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -4
  144. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  145. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  146. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  147. package/node_modules/@smithy/signature-v4/package.json +4 -4
  148. package/node_modules/@smithy/smithy-client/package.json +7 -7
  149. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  150. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  151. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
  152. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +26 -68
  153. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +8 -8
  154. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -2
  155. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  156. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
  157. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +27 -72
  158. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +10 -10
  159. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  160. package/node_modules/@smithy/types/package.json +1 -1
  161. package/node_modules/@smithy/url-parser/package.json +3 -3
  162. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  163. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  164. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +31 -22
  165. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  166. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  167. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  168. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  169. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  170. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  171. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  172. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  173. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  174. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  175. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  176. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  177. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  178. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  179. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +6 -1
  180. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  181. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +6 -0
  182. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  183. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  184. package/node_modules/@smithy/util-middleware/package.json +2 -2
  185. package/node_modules/@smithy/util-retry/package.json +3 -3
  186. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -15
  187. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +10 -3
  188. package/node_modules/@smithy/util-stream/package.json +4 -4
  189. package/node_modules/@smithy/util-waiter/package.json +3 -3
  190. package/node_modules/cdk-nag/.jsii +2 -2
  191. package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
  192. package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
  193. package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
  194. package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
  195. package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
  196. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
  197. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
  198. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
  199. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
  200. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
  201. package/node_modules/cdk-nag/lib/packs/serverless.js +1 -1
  202. package/node_modules/cdk-nag/package.json +4 -4
  203. package/package.json +1 -1
  204. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/LICENSE +0 -201
  205. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
  206. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
  207. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
  208. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -16
  209. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -189
  210. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -17
  211. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +0 -16
  212. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
  213. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
  214. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
  215. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
  216. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
  217. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
  218. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -12
  219. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
  220. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -9
  221. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
  222. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
  223. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
  224. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
  225. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
  226. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -13
  227. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +0 -9
  228. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
  229. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
  230. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
  231. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
  232. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -15
  233. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -5
  234. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -50
  235. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
  236. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -9
  237. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -36
  238. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -17
  239. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
  240. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
  241. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -18
  242. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -7
  243. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +0 -9
  244. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
  245. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
  246. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
  247. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
  248. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -15
  249. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -5
  250. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -50
  251. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
  252. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -9
  253. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -36
  254. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -17
  255. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
  256. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
  257. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -18
  258. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -7
  259. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -16
  260. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -16
  261. package/node_modules/@smithy/middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/package.json +0 -73
  262. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/LICENSE +0 -201
  263. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/README.md +0 -10
  264. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-cjs/index.js +0 -117
  265. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +0 -8
  266. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/ProviderError.js +0 -23
  267. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +0 -8
  268. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/chain.js +0 -21
  269. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/fromStatic.js +0 -1
  270. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/index.js +0 -6
  271. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-es/memoize.js +0 -45
  272. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +0 -31
  273. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +0 -39
  274. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +0 -31
  275. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/chain.d.ts +0 -13
  276. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +0 -5
  277. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/index.d.ts +0 -24
  278. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +0 -40
  279. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +0 -31
  280. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +0 -39
  281. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +0 -31
  282. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +0 -13
  283. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +0 -5
  284. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +0 -24
  285. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +0 -40
  286. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/property-provider/package.json +0 -61
  287. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/LICENSE +0 -201
  288. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/README.md +0 -105
  289. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +0 -26
  290. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +0 -12
  291. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +0 -16
  292. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +0 -189
  293. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +0 -17
  294. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +0 -16
  295. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +0 -18
  296. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +0 -4
  297. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +0 -4
  298. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +0 -22
  299. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +0 -3
  300. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +0 -8
  301. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +0 -12
  302. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +0 -5
  303. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +0 -9
  304. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +0 -39
  305. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +0 -9
  306. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +0 -14
  307. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +0 -52
  308. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +0 -6
  309. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +0 -13
  310. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +0 -1
  311. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +0 -9
  312. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +0 -8
  313. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +0 -2
  314. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +0 -2
  315. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +0 -6
  316. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +0 -15
  317. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +0 -5
  318. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +0 -50
  319. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +0 -6
  320. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +0 -9
  321. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +0 -36
  322. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +0 -17
  323. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +0 -7
  324. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +0 -2
  325. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +0 -18
  326. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +0 -7
  327. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +0 -9
  328. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +0 -8
  329. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +0 -2
  330. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +0 -2
  331. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +0 -6
  332. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +0 -15
  333. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +0 -5
  334. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +0 -50
  335. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +0 -6
  336. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +0 -9
  337. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +0 -36
  338. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +0 -17
  339. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +0 -7
  340. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +0 -2
  341. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +0 -18
  342. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +0 -7
  343. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +0 -16
  344. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +0 -16
  345. package/node_modules/@smithy/node-config-provider/node_modules/@smithy/shared-ini-file-loader/package.json +0 -73
  346. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/LICENSE +0 -201
  347. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/README.md +0 -4
  348. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-cjs/index.js +0 -32
  349. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/AbortController.js +0 -7
  350. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +0 -20
  351. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-es/index.js +0 -2
  352. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +0 -16
  353. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +0 -21
  354. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/index.d.ts +0 -9
  355. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +0 -16
  356. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +0 -21
  357. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +0 -9
  358. package/node_modules/@smithy/node-http-handler/node_modules/@smithy/abort-controller/package.json +0 -63
  359. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/LICENSE +0 -201
  360. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/README.md +0 -10
  361. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-cjs/index.js +0 -117
  362. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +0 -8
  363. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/ProviderError.js +0 -23
  364. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +0 -8
  365. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/chain.js +0 -21
  366. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/fromStatic.js +0 -1
  367. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/index.js +0 -6
  368. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-es/memoize.js +0 -45
  369. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +0 -31
  370. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +0 -39
  371. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +0 -31
  372. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/chain.d.ts +0 -13
  373. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +0 -5
  374. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/index.d.ts +0 -24
  375. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +0 -40
  376. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +0 -31
  377. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +0 -39
  378. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +0 -31
  379. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +0 -13
  380. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +0 -5
  381. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +0 -24
  382. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +0 -40
  383. package/node_modules/@smithy/util-defaults-mode-browser/node_modules/@smithy/property-provider/package.json +0 -61
  384. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/LICENSE +0 -201
  385. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/README.md +0 -11
  386. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +0 -372
  387. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js +0 -5
  388. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js +0 -7
  389. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js +0 -5
  390. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js +0 -8
  391. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +0 -10
  392. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +0 -77
  393. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +0 -134
  394. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/index.js +0 -7
  395. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +0 -13
  396. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js +0 -3
  397. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +0 -36
  398. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +0 -2
  399. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js +0 -7
  400. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/types.js +0 -1
  401. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +0 -17
  402. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +0 -19
  403. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js +0 -25
  404. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts +0 -7
  405. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +0 -13
  406. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts +0 -7
  407. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +0 -13
  408. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +0 -12
  409. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +0 -21
  410. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +0 -10
  411. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +0 -28
  412. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +0 -19
  413. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +0 -40
  414. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +0 -6
  415. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +0 -8
  416. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts +0 -10
  417. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +0 -7
  418. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +0 -13
  419. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +0 -7
  420. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +0 -13
  421. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +0 -12
  422. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +0 -21
  423. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +0 -10
  424. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +0 -28
  425. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +0 -19
  426. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +0 -40
  427. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +0 -6
  428. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts +0 -8
  429. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +0 -10
  430. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +0 -7
  431. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +0 -6
  432. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +0 -21
  433. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +0 -16
  434. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +0 -7
  435. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +0 -6
  436. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +0 -21
  437. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +0 -16
  438. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/credential-provider-imds/package.json +0 -70
  439. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/LICENSE +0 -201
  440. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/README.md +0 -10
  441. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-cjs/index.js +0 -117
  442. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +0 -8
  443. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/ProviderError.js +0 -23
  444. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +0 -8
  445. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/chain.js +0 -21
  446. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/fromStatic.js +0 -1
  447. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/index.js +0 -6
  448. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-es/memoize.js +0 -45
  449. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +0 -31
  450. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +0 -39
  451. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +0 -31
  452. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/chain.d.ts +0 -13
  453. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +0 -5
  454. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/index.d.ts +0 -24
  455. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +0 -40
  456. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +0 -31
  457. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +0 -39
  458. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +0 -31
  459. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +0 -13
  460. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +0 -5
  461. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +0 -24
  462. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +0 -40
  463. package/node_modules/@smithy/util-defaults-mode-node/node_modules/@smithy/property-provider/package.json +0 -61
  464. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  465. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  466. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
  467. /package/node_modules/@smithy/{middleware-endpoint/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js → types/dist-es/schema/schema-deprecated.js} +0 -0
@@ -1,372 +0,0 @@
1
- 'use strict';
2
-
3
- var propertyProvider = require('@smithy/property-provider');
4
- var url = require('url');
5
- var buffer = require('buffer');
6
- var http = require('http');
7
- var nodeConfigProvider = require('@smithy/node-config-provider');
8
- var urlParser = require('@smithy/url-parser');
9
-
10
- function httpRequest(options) {
11
- return new Promise((resolve, reject) => {
12
- const req = http.request({
13
- method: "GET",
14
- ...options,
15
- hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"),
16
- });
17
- req.on("error", (err) => {
18
- reject(Object.assign(new propertyProvider.ProviderError("Unable to connect to instance metadata service"), err));
19
- req.destroy();
20
- });
21
- req.on("timeout", () => {
22
- reject(new propertyProvider.ProviderError("TimeoutError from instance metadata service"));
23
- req.destroy();
24
- });
25
- req.on("response", (res) => {
26
- const { statusCode = 400 } = res;
27
- if (statusCode < 200 || 300 <= statusCode) {
28
- reject(Object.assign(new propertyProvider.ProviderError("Error response received from instance metadata service"), { statusCode }));
29
- req.destroy();
30
- }
31
- const chunks = [];
32
- res.on("data", (chunk) => {
33
- chunks.push(chunk);
34
- });
35
- res.on("end", () => {
36
- resolve(buffer.Buffer.concat(chunks));
37
- req.destroy();
38
- });
39
- });
40
- req.end();
41
- });
42
- }
43
-
44
- const isImdsCredentials = (arg) => Boolean(arg) &&
45
- typeof arg === "object" &&
46
- typeof arg.AccessKeyId === "string" &&
47
- typeof arg.SecretAccessKey === "string" &&
48
- typeof arg.Token === "string" &&
49
- typeof arg.Expiration === "string";
50
- const fromImdsCredentials = (creds) => ({
51
- accessKeyId: creds.AccessKeyId,
52
- secretAccessKey: creds.SecretAccessKey,
53
- sessionToken: creds.Token,
54
- expiration: new Date(creds.Expiration),
55
- ...(creds.AccountId && { accountId: creds.AccountId }),
56
- });
57
-
58
- const DEFAULT_TIMEOUT = 1000;
59
- const DEFAULT_MAX_RETRIES = 0;
60
- const providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout });
61
-
62
- const retry = (toRetry, maxRetries) => {
63
- let promise = toRetry();
64
- for (let i = 0; i < maxRetries; i++) {
65
- promise = promise.catch(toRetry);
66
- }
67
- return promise;
68
- };
69
-
70
- const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
71
- const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
72
- const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
73
- const fromContainerMetadata = (init = {}) => {
74
- const { timeout, maxRetries } = providerConfigFromInit(init);
75
- return () => retry(async () => {
76
- const requestOptions = await getCmdsUri({ logger: init.logger });
77
- const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
78
- if (!isImdsCredentials(credsResponse)) {
79
- throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
80
- logger: init.logger,
81
- });
82
- }
83
- return fromImdsCredentials(credsResponse);
84
- }, maxRetries);
85
- };
86
- const requestFromEcsImds = async (timeout, options) => {
87
- if (process.env[ENV_CMDS_AUTH_TOKEN]) {
88
- options.headers = {
89
- ...options.headers,
90
- Authorization: process.env[ENV_CMDS_AUTH_TOKEN],
91
- };
92
- }
93
- const buffer = await httpRequest({
94
- ...options,
95
- timeout,
96
- });
97
- return buffer.toString();
98
- };
99
- const CMDS_IP = "169.254.170.2";
100
- const GREENGRASS_HOSTS = {
101
- localhost: true,
102
- "127.0.0.1": true,
103
- };
104
- const GREENGRASS_PROTOCOLS = {
105
- "http:": true,
106
- "https:": true,
107
- };
108
- const getCmdsUri = async ({ logger }) => {
109
- if (process.env[ENV_CMDS_RELATIVE_URI]) {
110
- return {
111
- hostname: CMDS_IP,
112
- path: process.env[ENV_CMDS_RELATIVE_URI],
113
- };
114
- }
115
- if (process.env[ENV_CMDS_FULL_URI]) {
116
- const parsed = url.parse(process.env[ENV_CMDS_FULL_URI]);
117
- if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
118
- throw new propertyProvider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
119
- tryNextLink: false,
120
- logger,
121
- });
122
- }
123
- if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
124
- throw new propertyProvider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
125
- tryNextLink: false,
126
- logger,
127
- });
128
- }
129
- return {
130
- ...parsed,
131
- port: parsed.port ? parseInt(parsed.port, 10) : undefined,
132
- };
133
- }
134
- throw new propertyProvider.CredentialsProviderError("The container metadata credential provider cannot be used unless" +
135
- ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` +
136
- " variable is set", {
137
- tryNextLink: false,
138
- logger,
139
- });
140
- };
141
-
142
- class InstanceMetadataV1FallbackError extends propertyProvider.CredentialsProviderError {
143
- tryNextLink;
144
- name = "InstanceMetadataV1FallbackError";
145
- constructor(message, tryNextLink = true) {
146
- super(message, tryNextLink);
147
- this.tryNextLink = tryNextLink;
148
- Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype);
149
- }
150
- }
151
-
152
- exports.Endpoint = void 0;
153
- (function (Endpoint) {
154
- Endpoint["IPv4"] = "http://169.254.169.254";
155
- Endpoint["IPv6"] = "http://[fd00:ec2::254]";
156
- })(exports.Endpoint || (exports.Endpoint = {}));
157
-
158
- const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
159
- const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
160
- const ENDPOINT_CONFIG_OPTIONS = {
161
- environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME],
162
- configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
163
- default: undefined,
164
- };
165
-
166
- var EndpointMode;
167
- (function (EndpointMode) {
168
- EndpointMode["IPv4"] = "IPv4";
169
- EndpointMode["IPv6"] = "IPv6";
170
- })(EndpointMode || (EndpointMode = {}));
171
-
172
- const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
173
- const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
174
- const ENDPOINT_MODE_CONFIG_OPTIONS = {
175
- environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME],
176
- configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
177
- default: EndpointMode.IPv4,
178
- };
179
-
180
- const getInstanceMetadataEndpoint = async () => urlParser.parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig()));
181
- const getFromEndpointConfig = async () => nodeConfigProvider.loadConfig(ENDPOINT_CONFIG_OPTIONS)();
182
- const getFromEndpointModeConfig = async () => {
183
- const endpointMode = await nodeConfigProvider.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
184
- switch (endpointMode) {
185
- case EndpointMode.IPv4:
186
- return exports.Endpoint.IPv4;
187
- case EndpointMode.IPv6:
188
- return exports.Endpoint.IPv6;
189
- default:
190
- throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode)}`);
191
- }
192
- };
193
-
194
- const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
195
- const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
196
- const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
197
- const getExtendedInstanceMetadataCredentials = (credentials, logger) => {
198
- const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS +
199
- Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
200
- const newExpiration = new Date(Date.now() + refreshInterval * 1000);
201
- logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " +
202
- `credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: ` +
203
- STATIC_STABILITY_DOC_URL);
204
- const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
205
- return {
206
- ...credentials,
207
- ...(originalExpiration ? { originalExpiration } : {}),
208
- expiration: newExpiration,
209
- };
210
- };
211
-
212
- const staticStabilityProvider = (provider, options = {}) => {
213
- const logger = options?.logger || console;
214
- let pastCredentials;
215
- return async () => {
216
- let credentials;
217
- try {
218
- credentials = await provider();
219
- if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
220
- credentials = getExtendedInstanceMetadataCredentials(credentials, logger);
221
- }
222
- }
223
- catch (e) {
224
- if (pastCredentials) {
225
- logger.warn("Credential renew failed: ", e);
226
- credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger);
227
- }
228
- else {
229
- throw e;
230
- }
231
- }
232
- pastCredentials = credentials;
233
- return credentials;
234
- };
235
- };
236
-
237
- const IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
238
- const IMDS_TOKEN_PATH = "/latest/api/token";
239
- const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
240
- const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
241
- const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
242
- const fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger });
243
- const getInstanceMetadataProvider = (init = {}) => {
244
- let disableFetchToken = false;
245
- const { logger, profile } = init;
246
- const { timeout, maxRetries } = providerConfigFromInit(init);
247
- const getCredentials = async (maxRetries, options) => {
248
- const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
249
- if (isImdsV1Fallback) {
250
- let fallbackBlockedFromProfile = false;
251
- let fallbackBlockedFromProcessEnv = false;
252
- const configValue = await nodeConfigProvider.loadConfig({
253
- environmentVariableSelector: (env) => {
254
- const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
255
- fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
256
- if (envValue === undefined) {
257
- throw new propertyProvider.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
258
- }
259
- return fallbackBlockedFromProcessEnv;
260
- },
261
- configFileSelector: (profile) => {
262
- const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
263
- fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
264
- return fallbackBlockedFromProfile;
265
- },
266
- default: false,
267
- }, {
268
- profile,
269
- })();
270
- if (init.ec2MetadataV1Disabled || configValue) {
271
- const causes = [];
272
- if (init.ec2MetadataV1Disabled)
273
- causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
274
- if (fallbackBlockedFromProfile)
275
- causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
276
- if (fallbackBlockedFromProcessEnv)
277
- causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
278
- throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
279
- }
280
- }
281
- const imdsProfile = (await retry(async () => {
282
- let profile;
283
- try {
284
- profile = await getProfile(options);
285
- }
286
- catch (err) {
287
- if (err.statusCode === 401) {
288
- disableFetchToken = false;
289
- }
290
- throw err;
291
- }
292
- return profile;
293
- }, maxRetries)).trim();
294
- return retry(async () => {
295
- let creds;
296
- try {
297
- creds = await getCredentialsFromProfile(imdsProfile, options, init);
298
- }
299
- catch (err) {
300
- if (err.statusCode === 401) {
301
- disableFetchToken = false;
302
- }
303
- throw err;
304
- }
305
- return creds;
306
- }, maxRetries);
307
- };
308
- return async () => {
309
- const endpoint = await getInstanceMetadataEndpoint();
310
- if (disableFetchToken) {
311
- logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
312
- return getCredentials(maxRetries, { ...endpoint, timeout });
313
- }
314
- else {
315
- let token;
316
- try {
317
- token = (await getMetadataToken({ ...endpoint, timeout })).toString();
318
- }
319
- catch (error) {
320
- if (error?.statusCode === 400) {
321
- throw Object.assign(error, {
322
- message: "EC2 Metadata token request returned error",
323
- });
324
- }
325
- else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
326
- disableFetchToken = true;
327
- }
328
- logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
329
- return getCredentials(maxRetries, { ...endpoint, timeout });
330
- }
331
- return getCredentials(maxRetries, {
332
- ...endpoint,
333
- headers: {
334
- [X_AWS_EC2_METADATA_TOKEN]: token,
335
- },
336
- timeout,
337
- });
338
- }
339
- };
340
- };
341
- const getMetadataToken = async (options) => httpRequest({
342
- ...options,
343
- path: IMDS_TOKEN_PATH,
344
- method: "PUT",
345
- headers: {
346
- "x-aws-ec2-metadata-token-ttl-seconds": "21600",
347
- },
348
- });
349
- const getProfile = async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString();
350
- const getCredentialsFromProfile = async (profile, options, init) => {
351
- const credentialsResponse = JSON.parse((await httpRequest({
352
- ...options,
353
- path: IMDS_PATH + profile,
354
- })).toString());
355
- if (!isImdsCredentials(credentialsResponse)) {
356
- throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
357
- logger: init.logger,
358
- });
359
- }
360
- return fromImdsCredentials(credentialsResponse);
361
- };
362
-
363
- exports.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES;
364
- exports.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
365
- exports.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
366
- exports.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
367
- exports.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
368
- exports.fromContainerMetadata = fromContainerMetadata;
369
- exports.fromInstanceMetadata = fromInstanceMetadata;
370
- exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
371
- exports.httpRequest = httpRequest;
372
- exports.providerConfigFromInit = providerConfigFromInit;
@@ -1,5 +0,0 @@
1
- export var Endpoint;
2
- (function (Endpoint) {
3
- Endpoint["IPv4"] = "http://169.254.169.254";
4
- Endpoint["IPv6"] = "http://[fd00:ec2::254]";
5
- })(Endpoint || (Endpoint = {}));
@@ -1,7 +0,0 @@
1
- export const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
2
- export const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
3
- export const ENDPOINT_CONFIG_OPTIONS = {
4
- environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME],
5
- configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME],
6
- default: undefined,
7
- };
@@ -1,5 +0,0 @@
1
- export var EndpointMode;
2
- (function (EndpointMode) {
3
- EndpointMode["IPv4"] = "IPv4";
4
- EndpointMode["IPv6"] = "IPv6";
5
- })(EndpointMode || (EndpointMode = {}));
@@ -1,8 +0,0 @@
1
- import { EndpointMode } from "./EndpointMode";
2
- export const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
3
- export const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
4
- export const ENDPOINT_MODE_CONFIG_OPTIONS = {
5
- environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME],
6
- configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME],
7
- default: EndpointMode.IPv4,
8
- };
@@ -1,10 +0,0 @@
1
- import { CredentialsProviderError } from "@smithy/property-provider";
2
- export class InstanceMetadataV1FallbackError extends CredentialsProviderError {
3
- tryNextLink;
4
- name = "InstanceMetadataV1FallbackError";
5
- constructor(message, tryNextLink = true) {
6
- super(message, tryNextLink);
7
- this.tryNextLink = tryNextLink;
8
- Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype);
9
- }
10
- }
@@ -1,77 +0,0 @@
1
- import { CredentialsProviderError } from "@smithy/property-provider";
2
- import { parse } from "url";
3
- import { httpRequest } from "./remoteProvider/httpRequest";
4
- import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials";
5
- import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit";
6
- import { retry } from "./remoteProvider/retry";
7
- export const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
8
- export const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
9
- export const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
10
- export const fromContainerMetadata = (init = {}) => {
11
- const { timeout, maxRetries } = providerConfigFromInit(init);
12
- return () => retry(async () => {
13
- const requestOptions = await getCmdsUri({ logger: init.logger });
14
- const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
15
- if (!isImdsCredentials(credsResponse)) {
16
- throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
17
- logger: init.logger,
18
- });
19
- }
20
- return fromImdsCredentials(credsResponse);
21
- }, maxRetries);
22
- };
23
- const requestFromEcsImds = async (timeout, options) => {
24
- if (process.env[ENV_CMDS_AUTH_TOKEN]) {
25
- options.headers = {
26
- ...options.headers,
27
- Authorization: process.env[ENV_CMDS_AUTH_TOKEN],
28
- };
29
- }
30
- const buffer = await httpRequest({
31
- ...options,
32
- timeout,
33
- });
34
- return buffer.toString();
35
- };
36
- const CMDS_IP = "169.254.170.2";
37
- const GREENGRASS_HOSTS = {
38
- localhost: true,
39
- "127.0.0.1": true,
40
- };
41
- const GREENGRASS_PROTOCOLS = {
42
- "http:": true,
43
- "https:": true,
44
- };
45
- const getCmdsUri = async ({ logger }) => {
46
- if (process.env[ENV_CMDS_RELATIVE_URI]) {
47
- return {
48
- hostname: CMDS_IP,
49
- path: process.env[ENV_CMDS_RELATIVE_URI],
50
- };
51
- }
52
- if (process.env[ENV_CMDS_FULL_URI]) {
53
- const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
54
- if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
55
- throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
56
- tryNextLink: false,
57
- logger,
58
- });
59
- }
60
- if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
61
- throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
62
- tryNextLink: false,
63
- logger,
64
- });
65
- }
66
- return {
67
- ...parsed,
68
- port: parsed.port ? parseInt(parsed.port, 10) : undefined,
69
- };
70
- }
71
- throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" +
72
- ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` +
73
- " variable is set", {
74
- tryNextLink: false,
75
- logger,
76
- });
77
- };
@@ -1,134 +0,0 @@
1
- import { loadConfig } from "@smithy/node-config-provider";
2
- import { CredentialsProviderError } from "@smithy/property-provider";
3
- import { InstanceMetadataV1FallbackError } from "./error/InstanceMetadataV1FallbackError";
4
- import { httpRequest } from "./remoteProvider/httpRequest";
5
- import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials";
6
- import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit";
7
- import { retry } from "./remoteProvider/retry";
8
- import { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint";
9
- import { staticStabilityProvider } from "./utils/staticStabilityProvider";
10
- const IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
11
- const IMDS_TOKEN_PATH = "/latest/api/token";
12
- const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
13
- const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
14
- const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
15
- export const fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger });
16
- const getInstanceMetadataProvider = (init = {}) => {
17
- let disableFetchToken = false;
18
- const { logger, profile } = init;
19
- const { timeout, maxRetries } = providerConfigFromInit(init);
20
- const getCredentials = async (maxRetries, options) => {
21
- const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
22
- if (isImdsV1Fallback) {
23
- let fallbackBlockedFromProfile = false;
24
- let fallbackBlockedFromProcessEnv = false;
25
- const configValue = await loadConfig({
26
- environmentVariableSelector: (env) => {
27
- const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
28
- fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
29
- if (envValue === undefined) {
30
- throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
31
- }
32
- return fallbackBlockedFromProcessEnv;
33
- },
34
- configFileSelector: (profile) => {
35
- const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
36
- fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
37
- return fallbackBlockedFromProfile;
38
- },
39
- default: false,
40
- }, {
41
- profile,
42
- })();
43
- if (init.ec2MetadataV1Disabled || configValue) {
44
- const causes = [];
45
- if (init.ec2MetadataV1Disabled)
46
- causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
47
- if (fallbackBlockedFromProfile)
48
- causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
49
- if (fallbackBlockedFromProcessEnv)
50
- causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
51
- throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
52
- }
53
- }
54
- const imdsProfile = (await retry(async () => {
55
- let profile;
56
- try {
57
- profile = await getProfile(options);
58
- }
59
- catch (err) {
60
- if (err.statusCode === 401) {
61
- disableFetchToken = false;
62
- }
63
- throw err;
64
- }
65
- return profile;
66
- }, maxRetries)).trim();
67
- return retry(async () => {
68
- let creds;
69
- try {
70
- creds = await getCredentialsFromProfile(imdsProfile, options, init);
71
- }
72
- catch (err) {
73
- if (err.statusCode === 401) {
74
- disableFetchToken = false;
75
- }
76
- throw err;
77
- }
78
- return creds;
79
- }, maxRetries);
80
- };
81
- return async () => {
82
- const endpoint = await getInstanceMetadataEndpoint();
83
- if (disableFetchToken) {
84
- logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
85
- return getCredentials(maxRetries, { ...endpoint, timeout });
86
- }
87
- else {
88
- let token;
89
- try {
90
- token = (await getMetadataToken({ ...endpoint, timeout })).toString();
91
- }
92
- catch (error) {
93
- if (error?.statusCode === 400) {
94
- throw Object.assign(error, {
95
- message: "EC2 Metadata token request returned error",
96
- });
97
- }
98
- else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) {
99
- disableFetchToken = true;
100
- }
101
- logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
102
- return getCredentials(maxRetries, { ...endpoint, timeout });
103
- }
104
- return getCredentials(maxRetries, {
105
- ...endpoint,
106
- headers: {
107
- [X_AWS_EC2_METADATA_TOKEN]: token,
108
- },
109
- timeout,
110
- });
111
- }
112
- };
113
- };
114
- const getMetadataToken = async (options) => httpRequest({
115
- ...options,
116
- path: IMDS_TOKEN_PATH,
117
- method: "PUT",
118
- headers: {
119
- "x-aws-ec2-metadata-token-ttl-seconds": "21600",
120
- },
121
- });
122
- const getProfile = async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString();
123
- const getCredentialsFromProfile = async (profile, options, init) => {
124
- const credentialsResponse = JSON.parse((await httpRequest({
125
- ...options,
126
- path: IMDS_PATH + profile,
127
- })).toString());
128
- if (!isImdsCredentials(credentialsResponse)) {
129
- throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
130
- logger: init.logger,
131
- });
132
- }
133
- return fromImdsCredentials(credentialsResponse);
134
- };
@@ -1,7 +0,0 @@
1
- export * from "./fromContainerMetadata";
2
- export * from "./fromInstanceMetadata";
3
- export * from "./remoteProvider/RemoteProviderInit";
4
- export * from "./types";
5
- export { httpRequest } from "./remoteProvider/httpRequest";
6
- export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint";
7
- export { Endpoint } from "./config/Endpoint";
@@ -1,13 +0,0 @@
1
- export const isImdsCredentials = (arg) => Boolean(arg) &&
2
- typeof arg === "object" &&
3
- typeof arg.AccessKeyId === "string" &&
4
- typeof arg.SecretAccessKey === "string" &&
5
- typeof arg.Token === "string" &&
6
- typeof arg.Expiration === "string";
7
- export const fromImdsCredentials = (creds) => ({
8
- accessKeyId: creds.AccessKeyId,
9
- secretAccessKey: creds.SecretAccessKey,
10
- sessionToken: creds.Token,
11
- expiration: new Date(creds.Expiration),
12
- ...(creds.AccountId && { accountId: creds.AccountId }),
13
- });
@@ -1,3 +0,0 @@
1
- export const DEFAULT_TIMEOUT = 1000;
2
- export const DEFAULT_MAX_RETRIES = 0;
3
- export const providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout });