@jjrawlins/cdk-ami-builder 0.0.158 → 0.0.159

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 (330) hide show
  1. package/.jsii +11 -11
  2. package/cdkamibuilder/jsii/jsii.go +2 -2
  3. package/cdkamibuilder/version +1 -1
  4. package/lib/ImagePipeline/ImagePipeline.js +1 -1
  5. package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
  6. package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
  7. package/node_modules/@aws-sdk/client-ec2/dist-cjs/index.js +11 -0
  8. package/node_modules/@aws-sdk/client-ec2/dist-cjs/schemas/schemas_0.js +7 -4
  9. package/node_modules/@aws-sdk/client-ec2/dist-es/models/enums.js +9 -0
  10. package/node_modules/@aws-sdk/client-ec2/dist-es/schemas/schemas_0.js +7 -4
  11. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/GetInstanceMetadataDefaultsCommand.d.ts +1 -0
  12. package/node_modules/@aws-sdk/client-ec2/dist-types/commands/ModifyInstanceMetadataDefaultsCommand.d.ts +1 -0
  13. package/node_modules/@aws-sdk/client-ec2/dist-types/models/enums.d.ts +25 -0
  14. package/node_modules/@aws-sdk/client-ec2/dist-types/models/models_6.d.ts +17 -1
  15. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/enums.d.ts +13 -0
  16. package/node_modules/@aws-sdk/client-ec2/dist-types/ts3.4/models/models_6.d.ts +4 -0
  17. package/node_modules/@aws-sdk/client-ec2/package.json +39 -39
  18. package/node_modules/@aws-sdk/client-ecs/package.json +38 -38
  19. package/node_modules/@aws-sdk/client-kms/package.json +37 -37
  20. package/node_modules/@aws-sdk/client-s3/package.json +53 -53
  21. package/node_modules/@aws-sdk/client-secrets-manager/package.json +37 -37
  22. package/node_modules/@aws-sdk/client-sfn/package.json +37 -37
  23. package/node_modules/@aws-sdk/client-sns/package.json +37 -37
  24. package/node_modules/@aws-sdk/client-sqs/package.json +39 -39
  25. package/node_modules/@aws-sdk/client-ssm/package.json +38 -38
  26. package/node_modules/@aws-sdk/core/package.json +13 -13
  27. package/node_modules/@aws-sdk/crc64-nvme/dist-types/Crc64Nvme.d.ts +1 -1
  28. package/node_modules/@aws-sdk/crc64-nvme/dist-types/crc64-nvme-crt-container.d.ts +1 -1
  29. package/node_modules/@aws-sdk/crc64-nvme/package.json +3 -3
  30. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  31. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  32. package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
  33. package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
  34. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  35. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  36. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +1 -1
  37. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-BKDNrsal.js +8 -0
  38. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/loadSso.js +1 -1
  39. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/loadSso.d.ts +2 -2
  40. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/loadSso.d.ts +5 -2
  41. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  42. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  43. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +6 -6
  44. package/node_modules/@aws-sdk/middleware-expect-continue/package.json +4 -4
  45. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +12 -12
  46. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  47. package/node_modules/@aws-sdk/middleware-location-constraint/package.json +3 -3
  48. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  49. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +7 -3
  50. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  51. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +8 -8
  52. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +13 -13
  53. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +6 -6
  54. package/node_modules/@aws-sdk/middleware-ssec/package.json +3 -3
  55. package/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +2 -2
  56. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  57. package/node_modules/@aws-sdk/nested-clients/cognito-identity.d.ts +7 -0
  58. package/node_modules/@aws-sdk/nested-clients/cognito-identity.js +5 -0
  59. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
  60. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
  61. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +174 -0
  62. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
  63. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
  64. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
  65. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.js +5 -3
  66. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
  67. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
  68. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +128 -2
  69. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/auth/httpAuthSchemeProvider.js +8 -27
  70. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
  71. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
  72. package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/index.js +1 -53
  73. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
  74. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
  75. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
  76. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
  77. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +101 -2
  78. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
  79. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
  80. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
  81. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
  82. package/node_modules/@aws-sdk/{client-sso/dist-es/commands/ListAccountsCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js} +5 -5
  83. package/node_modules/@aws-sdk/{client-sso/dist-es/commands/LogoutCommand.js → nested-clients/dist-es/submodules/cognito-identity/commands/GetIdCommand.js} +5 -5
  84. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/commands/index.js +2 -0
  85. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
  86. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
  87. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/index.js +7 -0
  88. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
  89. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/models/errors.js +109 -0
  90. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.browser.js +3 -2
  91. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.js +5 -3
  92. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
  93. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
  94. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/Signin.js +1 -1
  95. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
  96. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/SSO.js +9 -0
  97. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/SSOClient.js +1 -1
  98. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
  99. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/auth/httpAuthSchemeProvider.js +9 -28
  100. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/commands/index.js +1 -0
  101. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
  102. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
  103. package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/index.js +0 -1
  104. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/models/models_0.js +1 -0
  105. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
  106. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.js +48 -0
  107. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
  108. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/runtimeExtensions.js +9 -0
  109. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
  110. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +101 -2
  111. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
  112. package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
  113. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
  114. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
  115. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
  116. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
  117. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
  118. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
  119. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
  120. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
  121. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
  122. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/index.d.ts +29 -0
  123. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
  124. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
  125. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
  126. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
  127. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
  128. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
  129. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
  130. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
  131. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
  132. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/Signin.d.ts +1 -1
  133. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  134. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
  135. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/models/errors.d.ts +1 -1
  136. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/SSO.d.ts +32 -0
  137. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/SSOClient.d.ts +6 -8
  138. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  139. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +1 -1
  140. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +3 -3
  141. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/commands/index.d.ts +1 -0
  142. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
  143. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
  144. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
  145. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/index.d.ts +0 -1
  146. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/models/models_0.d.ts +61 -0
  147. package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/schemas/schemas_0.d.ts +0 -10
  148. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  149. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
  150. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
  151. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  152. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
  153. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
  154. package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
  155. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
  156. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
  157. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  158. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
  159. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
  160. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
  161. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
  162. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
  163. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
  164. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
  165. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
  166. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
  167. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
  168. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
  169. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
  170. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
  171. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
  172. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
  173. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  174. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
  175. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/SSOClient.d.ts +3 -24
  176. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  177. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/commands/GetRoleCredentialsCommand.d.ts +5 -9
  178. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
  179. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
  180. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
  181. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/index.d.ts +0 -1
  182. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
  183. package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/schemas/schemas_0.d.ts +0 -10
  184. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  185. package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  186. package/node_modules/@aws-sdk/nested-clients/package.json +54 -36
  187. package/node_modules/@aws-sdk/nested-clients/sso.d.ts +7 -0
  188. package/node_modules/@aws-sdk/nested-clients/sso.js +5 -0
  189. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +12 -23
  190. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  191. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +1 -1
  192. package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +2 -2
  193. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +6 -6
  194. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  195. package/node_modules/@aws-sdk/types/dist-cjs/index.js +3 -12
  196. package/node_modules/@aws-sdk/types/package.json +2 -2
  197. package/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +1 -1
  198. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +1 -1
  199. package/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +1 -1
  200. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  201. package/node_modules/@aws-sdk/util-format-url/package.json +4 -4
  202. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  203. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  204. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +1 -4
  205. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  206. package/node_modules/@smithy/abort-controller/package.json +2 -2
  207. package/node_modules/@smithy/config-resolver/package.json +5 -5
  208. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +23 -3
  209. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +22 -2
  210. package/node_modules/@smithy/core/dist-es/submodules/protocols/resolve-path.js +1 -1
  211. package/node_modules/@smithy/core/package.json +7 -7
  212. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  213. package/node_modules/@smithy/eventstream-codec/package.json +2 -2
  214. package/node_modules/@smithy/eventstream-serde-browser/package.json +3 -3
  215. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +2 -2
  216. package/node_modules/@smithy/eventstream-serde-node/package.json +3 -3
  217. package/node_modules/@smithy/eventstream-serde-universal/package.json +3 -3
  218. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  219. package/node_modules/@smithy/hash-blob-browser/package.json +2 -2
  220. package/node_modules/@smithy/hash-node/package.json +2 -2
  221. package/node_modules/@smithy/hash-stream-node/package.json +2 -2
  222. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  223. package/node_modules/@smithy/md5-js/package.json +2 -2
  224. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  225. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  226. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  227. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  228. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  229. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  230. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  231. package/node_modules/@smithy/property-provider/package.json +2 -2
  232. package/node_modules/@smithy/protocol-http/package.json +2 -2
  233. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  234. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  235. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  236. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  237. package/node_modules/@smithy/signature-v4/package.json +4 -4
  238. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +20 -1
  239. package/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +20 -1
  240. package/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +9 -7
  241. package/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +9 -7
  242. package/node_modules/@smithy/smithy-client/package.json +10 -8
  243. package/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +1 -1
  244. package/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +1 -1
  245. package/node_modules/@smithy/types/package.json +1 -1
  246. package/node_modules/@smithy/url-parser/package.json +3 -3
  247. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  248. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  249. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +1 -1
  250. package/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +1 -1
  251. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  252. package/node_modules/@smithy/util-middleware/package.json +2 -2
  253. package/node_modules/@smithy/util-retry/package.json +3 -3
  254. package/node_modules/@smithy/util-stream/package.json +4 -4
  255. package/node_modules/@smithy/util-waiter/package.json +3 -3
  256. package/package.json +11 -11
  257. package/node_modules/@aws-sdk/client-sso/LICENSE +0 -201
  258. package/node_modules/@aws-sdk/client-sso/README.md +0 -244
  259. package/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +0 -7
  260. package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +0 -161
  261. package/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +0 -21
  262. package/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +0 -16
  263. package/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js +0 -4
  264. package/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +0 -4
  265. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +0 -4
  266. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +0 -4
  267. package/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js +0 -3
  268. package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +0 -158
  269. package/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +0 -67
  270. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +0 -98
  271. package/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +0 -100
  272. package/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +0 -97
  273. package/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts +0 -4
  274. package/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +0 -189
  275. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +0 -8
  276. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +0 -7
  277. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +0 -7
  278. package/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts +0 -3
  279. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +0 -91
  280. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -50
  281. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +0 -47
  282. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +0 -41
  283. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts +0 -4
  284. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +0 -45
  285. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -5
  286. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +0 -11
  287. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +0 -11
  288. package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts +0 -3
  289. package/node_modules/@aws-sdk/client-sso/package.json +0 -99
  290. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-Bw7VSvlO.js +0 -8
  291. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
  292. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
  293. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/models/SSOServiceException.js +0 -0
  294. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/models/errors.js +0 -0
  295. /package/node_modules/@aws-sdk/{client-sso/dist-cjs → nested-clients/dist-cjs/submodules/sso}/runtimeConfig.shared.js +0 -0
  296. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/auth/httpAuthExtensionConfiguration.js +0 -0
  297. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/endpoint/endpointResolver.js +0 -0
  298. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/extensionConfiguration.js +0 -0
  299. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/models/models_0.js +0 -0
  300. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeConfig.native.js +0 -0
  301. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/cognito-identity}/runtimeExtensions.js +0 -0
  302. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/commands/GetRoleCredentialsCommand.js +0 -0
  303. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/endpoint/EndpointParameters.js +0 -0
  304. /package/node_modules/@aws-sdk/{client-sso/dist-es/pagination/Interfaces.js → nested-clients/dist-es/submodules/sso/extensionConfiguration.js} +0 -0
  305. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/SSOServiceException.js +0 -0
  306. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/models/errors.js +0 -0
  307. /package/node_modules/@aws-sdk/{client-sso/dist-es → nested-clients/dist-es/submodules/sso}/runtimeConfig.shared.js +0 -0
  308. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
  309. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
  310. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/extensionConfiguration.d.ts +0 -0
  311. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/SSOServiceException.d.ts +0 -0
  312. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/models/errors.d.ts +0 -0
  313. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
  314. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.d.ts +0 -0
  315. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.native.d.ts +0 -0
  316. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
  317. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/submodules/sso}/runtimeExtensions.d.ts +0 -0
  318. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/EndpointParameters.d.ts +0 -0
  319. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/endpointResolver.d.ts +0 -0
  320. /package/node_modules/@aws-sdk/{client-sso/dist-types → nested-clients/dist-types/ts3.4/submodules/cognito-identity}/endpoint/ruleset.d.ts +0 -0
  321. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/auth/httpAuthSchemeProvider.d.ts +0 -0
  322. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/endpoint/ruleset.d.ts +0 -0
  323. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/extensionConfiguration.d.ts +0 -0
  324. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/models/SSOServiceException.d.ts +0 -0
  325. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/models/errors.d.ts +0 -0
  326. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.browser.d.ts +0 -0
  327. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.d.ts +0 -0
  328. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.native.d.ts +0 -0
  329. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeConfig.shared.d.ts +0 -0
  330. /package/node_modules/@aws-sdk/{client-sso/dist-types/ts3.4 → nested-clients/dist-types/ts3.4/submodules/sso}/runtimeExtensions.d.ts +0 -0
@@ -0,0 +1,174 @@
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
10
+ var middlewareContentLength = require('@smithy/middleware-content-length');
11
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
+ var middlewareRetry = require('@smithy/middleware-retry');
13
+ var smithyClient = require('@smithy/smithy-client');
14
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
+ var runtimeConfig = require('./runtimeConfig');
16
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
+ var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var CognitoIdentityServiceException = require('./models/CognitoIdentityServiceException');
21
+
22
+ const resolveClientEndpointParameters = (options) => {
23
+ return Object.assign(options, {
24
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
25
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
26
+ defaultSigningName: "cognito-identity",
27
+ });
28
+ };
29
+ const commonParams = {
30
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
31
+ Endpoint: { type: "builtInParams", name: "endpoint" },
32
+ Region: { type: "builtInParams", name: "region" },
33
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
34
+ };
35
+
36
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
37
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
38
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
39
+ let _credentials = runtimeConfig.credentials;
40
+ return {
41
+ setHttpAuthScheme(httpAuthScheme) {
42
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
43
+ if (index === -1) {
44
+ _httpAuthSchemes.push(httpAuthScheme);
45
+ }
46
+ else {
47
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
48
+ }
49
+ },
50
+ httpAuthSchemes() {
51
+ return _httpAuthSchemes;
52
+ },
53
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
54
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
55
+ },
56
+ httpAuthSchemeProvider() {
57
+ return _httpAuthSchemeProvider;
58
+ },
59
+ setCredentials(credentials) {
60
+ _credentials = credentials;
61
+ },
62
+ credentials() {
63
+ return _credentials;
64
+ },
65
+ };
66
+ };
67
+ const resolveHttpAuthRuntimeConfig = (config) => {
68
+ return {
69
+ httpAuthSchemes: config.httpAuthSchemes(),
70
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
71
+ credentials: config.credentials(),
72
+ };
73
+ };
74
+
75
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
76
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
77
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
78
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
79
+ };
80
+
81
+ class CognitoIdentityClient extends smithyClient.Client {
82
+ config;
83
+ constructor(...[configuration]) {
84
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
85
+ super(_config_0);
86
+ this.initConfig = _config_0;
87
+ const _config_1 = resolveClientEndpointParameters(_config_0);
88
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
89
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
90
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
91
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
92
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
93
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
94
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
95
+ this.config = _config_8;
96
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
97
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
98
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
99
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
100
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
101
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
102
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
103
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
104
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCognitoIdentityHttpAuthSchemeParametersProvider,
105
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
106
+ "aws.auth#sigv4": config.credentials,
107
+ }),
108
+ }));
109
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
110
+ }
111
+ destroy() {
112
+ super.destroy();
113
+ }
114
+ }
115
+
116
+ class GetCredentialsForIdentityCommand extends smithyClient.Command
117
+ .classBuilder()
118
+ .ep(commonParams)
119
+ .m(function (Command, cs, config, o) {
120
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
121
+ })
122
+ .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
123
+ .n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
124
+ .sc(schemas_0.GetCredentialsForIdentity$)
125
+ .build() {
126
+ }
127
+
128
+ class GetIdCommand extends smithyClient.Command
129
+ .classBuilder()
130
+ .ep(commonParams)
131
+ .m(function (Command, cs, config, o) {
132
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
133
+ })
134
+ .s("AWSCognitoIdentityService", "GetId", {})
135
+ .n("CognitoIdentityClient", "GetIdCommand")
136
+ .sc(schemas_0.GetId$)
137
+ .build() {
138
+ }
139
+
140
+ const commands = {
141
+ GetCredentialsForIdentityCommand,
142
+ GetIdCommand,
143
+ };
144
+ class CognitoIdentity extends CognitoIdentityClient {
145
+ }
146
+ smithyClient.createAggregatedClient(commands, CognitoIdentity);
147
+
148
+ exports.$Command = smithyClient.Command;
149
+ exports.__Client = smithyClient.Client;
150
+ exports.CognitoIdentityServiceException = CognitoIdentityServiceException.CognitoIdentityServiceException;
151
+ exports.CognitoIdentity = CognitoIdentity;
152
+ exports.CognitoIdentityClient = CognitoIdentityClient;
153
+ exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand;
154
+ exports.GetIdCommand = GetIdCommand;
155
+ Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
156
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
157
+ Object.defineProperty(exports, '__proto__', {
158
+ enumerable: true,
159
+ value: schemas_0['__proto__']
160
+ });
161
+
162
+ Object.keys(schemas_0).forEach(function (k) {
163
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
164
+ });
165
+ Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
166
+ !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
167
+ Object.defineProperty(exports, '__proto__', {
168
+ enumerable: true,
169
+ value: errors['__proto__']
170
+ });
171
+
172
+ Object.keys(errors).forEach(function (k) {
173
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
174
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CognitoIdentityServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class CognitoIdentityServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
10
+ }
11
+ }
12
+ exports.CognitoIdentityServiceException = CognitoIdentityServiceException;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LimitExceededException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.ResourceConflictException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InvalidIdentityPoolConfigurationException = exports.InternalErrorException = exports.ExternalServiceException = void 0;
4
+ const CognitoIdentityServiceException_1 = require("./CognitoIdentityServiceException");
5
+ class ExternalServiceException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
6
+ name = "ExternalServiceException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "ExternalServiceException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, ExternalServiceException.prototype);
15
+ }
16
+ }
17
+ exports.ExternalServiceException = ExternalServiceException;
18
+ class InternalErrorException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
19
+ name = "InternalErrorException";
20
+ $fault = "server";
21
+ constructor(opts) {
22
+ super({
23
+ name: "InternalErrorException",
24
+ $fault: "server",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
28
+ }
29
+ }
30
+ exports.InternalErrorException = InternalErrorException;
31
+ class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
32
+ name = "InvalidIdentityPoolConfigurationException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InvalidIdentityPoolConfigurationException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
41
+ }
42
+ }
43
+ exports.InvalidIdentityPoolConfigurationException = InvalidIdentityPoolConfigurationException;
44
+ class InvalidParameterException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
45
+ name = "InvalidParameterException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "InvalidParameterException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
54
+ }
55
+ }
56
+ exports.InvalidParameterException = InvalidParameterException;
57
+ class NotAuthorizedException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
58
+ name = "NotAuthorizedException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "NotAuthorizedException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, NotAuthorizedException.prototype);
67
+ }
68
+ }
69
+ exports.NotAuthorizedException = NotAuthorizedException;
70
+ class ResourceConflictException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
71
+ name = "ResourceConflictException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "ResourceConflictException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, ResourceConflictException.prototype);
80
+ }
81
+ }
82
+ exports.ResourceConflictException = ResourceConflictException;
83
+ class ResourceNotFoundException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
84
+ name = "ResourceNotFoundException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "ResourceNotFoundException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
93
+ }
94
+ }
95
+ exports.ResourceNotFoundException = ResourceNotFoundException;
96
+ class TooManyRequestsException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
97
+ name = "TooManyRequestsException";
98
+ $fault = "client";
99
+ constructor(opts) {
100
+ super({
101
+ name: "TooManyRequestsException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
106
+ }
107
+ }
108
+ exports.TooManyRequestsException = TooManyRequestsException;
109
+ class LimitExceededException extends CognitoIdentityServiceException_1.CognitoIdentityServiceException {
110
+ name = "LimitExceededException";
111
+ $fault = "client";
112
+ constructor(opts) {
113
+ super({
114
+ name: "LimitExceededException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
119
+ }
120
+ }
121
+ exports.LimitExceededException = LimitExceededException;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
7
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
@@ -23,7 +23,8 @@ const getRuntimeConfig = (config) => {
23
23
  runtime: "browser",
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
27
+ (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
28
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
29
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
5
+ const package_json_1 = tslib_1.__importDefault(require("../../../package.json"));
6
6
  const core_1 = require("@aws-sdk/core");
7
7
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
@@ -32,9 +32,11 @@ const getRuntimeConfig = (config) => {
32
32
  defaultsMode,
33
33
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
34
34
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
35
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
36
37
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
37
- region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
+ region: config?.region ??
39
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
41
  retryMode: config?.retryMode ??
40
42
  (0, node_config_provider_1.loadConfig)({
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
6
+ const core_2 = require("@smithy/core");
7
+ const smithy_client_1 = require("@smithy/smithy-client");
8
+ const url_parser_1 = require("@smithy/url-parser");
9
+ const util_base64_1 = require("@smithy/util-base64");
10
+ const util_utf8_1 = require("@smithy/util-utf8");
11
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
12
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
13
+ const schemas_0_1 = require("./schemas/schemas_0");
14
+ const getRuntimeConfig = (config) => {
15
+ return {
16
+ apiVersion: "2014-06-30",
17
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
18
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
19
+ disableHostPrefix: config?.disableHostPrefix ?? false,
20
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
21
+ extensions: config?.extensions ?? [],
22
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultCognitoIdentityHttpAuthSchemeProvider,
23
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
24
+ {
25
+ schemeId: "aws.auth#sigv4",
26
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
27
+ signer: new core_1.AwsSdkSigV4Signer(),
28
+ },
29
+ {
30
+ schemeId: "smithy.api#noAuth",
31
+ identityProvider: (ipc) => ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
32
+ signer: new core_2.NoAuthSigner(),
33
+ },
34
+ ],
35
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
36
+ protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
37
+ protocolSettings: config?.protocolSettings ?? {
38
+ defaultNamespace: "com.amazonaws.cognitoidentity",
39
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
40
+ xmlNamespace: "http://cognito-identity.amazonaws.com/doc/2014-06-30/",
41
+ version: "2014-06-30",
42
+ serviceTarget: "AWSCognitoIdentityService",
43
+ },
44
+ serviceId: config?.serviceId ?? "Cognito Identity",
45
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
46
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
47
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
48
+ };
49
+ };
50
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetId$ = exports.GetCredentialsForIdentity$ = exports.GetIdResponse$ = exports.GetIdInput$ = exports.GetCredentialsForIdentityResponse$ = exports.GetCredentialsForIdentityInput$ = exports.Credentials$ = exports.errorTypeRegistries = exports.TooManyRequestsException$ = exports.ResourceNotFoundException$ = exports.ResourceConflictException$ = exports.NotAuthorizedException$ = exports.LimitExceededException$ = exports.InvalidParameterException$ = exports.InvalidIdentityPoolConfigurationException$ = exports.InternalErrorException$ = exports.ExternalServiceException$ = exports.CognitoIdentityServiceException$ = void 0;
4
+ const _AI = "AccountId";
5
+ const _AKI = "AccessKeyId";
6
+ const _C = "Credentials";
7
+ const _CRA = "CustomRoleArn";
8
+ const _E = "Expiration";
9
+ const _ESE = "ExternalServiceException";
10
+ const _GCFI = "GetCredentialsForIdentity";
11
+ const _GCFII = "GetCredentialsForIdentityInput";
12
+ const _GCFIR = "GetCredentialsForIdentityResponse";
13
+ const _GI = "GetId";
14
+ const _GII = "GetIdInput";
15
+ const _GIR = "GetIdResponse";
16
+ const _IEE = "InternalErrorException";
17
+ const _II = "IdentityId";
18
+ const _IIPCE = "InvalidIdentityPoolConfigurationException";
19
+ const _IPE = "InvalidParameterException";
20
+ const _IPI = "IdentityPoolId";
21
+ const _IPT = "IdentityProviderToken";
22
+ const _L = "Logins";
23
+ const _LEE = "LimitExceededException";
24
+ const _LM = "LoginsMap";
25
+ const _NAE = "NotAuthorizedException";
26
+ const _RCE = "ResourceConflictException";
27
+ const _RNFE = "ResourceNotFoundException";
28
+ const _SK = "SecretKey";
29
+ const _SKS = "SecretKeyString";
30
+ const _ST = "SessionToken";
31
+ const _TMRE = "TooManyRequestsException";
32
+ const _c = "client";
33
+ const _e = "error";
34
+ const _hE = "httpError";
35
+ const _m = "message";
36
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
37
+ const _se = "server";
38
+ const n0 = "com.amazonaws.cognitoidentity";
39
+ const schema_1 = require("@smithy/core/schema");
40
+ const CognitoIdentityServiceException_1 = require("../models/CognitoIdentityServiceException");
41
+ const errors_1 = require("../models/errors");
42
+ const _s_registry = schema_1.TypeRegistry.for(_s);
43
+ exports.CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
44
+ _s_registry.registerError(exports.CognitoIdentityServiceException$, CognitoIdentityServiceException_1.CognitoIdentityServiceException);
45
+ const n0_registry = schema_1.TypeRegistry.for(n0);
46
+ exports.ExternalServiceException$ = [-3, n0, _ESE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
47
+ n0_registry.registerError(exports.ExternalServiceException$, errors_1.ExternalServiceException);
48
+ exports.InternalErrorException$ = [-3, n0, _IEE, { [_e]: _se }, [_m], [0]];
49
+ n0_registry.registerError(exports.InternalErrorException$, errors_1.InternalErrorException);
50
+ exports.InvalidIdentityPoolConfigurationException$ = [
51
+ -3,
52
+ n0,
53
+ _IIPCE,
54
+ { [_e]: _c, [_hE]: 400 },
55
+ [_m],
56
+ [0],
57
+ ];
58
+ n0_registry.registerError(exports.InvalidIdentityPoolConfigurationException$, errors_1.InvalidIdentityPoolConfigurationException);
59
+ exports.InvalidParameterException$ = [-3, n0, _IPE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
60
+ n0_registry.registerError(exports.InvalidParameterException$, errors_1.InvalidParameterException);
61
+ exports.LimitExceededException$ = [-3, n0, _LEE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
62
+ n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
63
+ exports.NotAuthorizedException$ = [-3, n0, _NAE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
64
+ n0_registry.registerError(exports.NotAuthorizedException$, errors_1.NotAuthorizedException);
65
+ exports.ResourceConflictException$ = [-3, n0, _RCE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
66
+ n0_registry.registerError(exports.ResourceConflictException$, errors_1.ResourceConflictException);
67
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
68
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
69
+ exports.TooManyRequestsException$ = [-3, n0, _TMRE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
70
+ n0_registry.registerError(exports.TooManyRequestsException$, errors_1.TooManyRequestsException);
71
+ exports.errorTypeRegistries = [_s_registry, n0_registry];
72
+ var IdentityProviderToken = [0, n0, _IPT, 8, 0];
73
+ var SecretKeyString = [0, n0, _SKS, 8, 0];
74
+ exports.Credentials$ = [
75
+ 3,
76
+ n0,
77
+ _C,
78
+ 0,
79
+ [_AKI, _SK, _ST, _E],
80
+ [0, [() => SecretKeyString, 0], 0, 4],
81
+ ];
82
+ exports.GetCredentialsForIdentityInput$ = [
83
+ 3,
84
+ n0,
85
+ _GCFII,
86
+ 0,
87
+ [_II, _L, _CRA],
88
+ [0, [() => LoginsMap, 0], 0],
89
+ 1,
90
+ ];
91
+ exports.GetCredentialsForIdentityResponse$ = [
92
+ 3,
93
+ n0,
94
+ _GCFIR,
95
+ 0,
96
+ [_II, _C],
97
+ [0, [() => exports.Credentials$, 0]],
98
+ ];
99
+ exports.GetIdInput$ = [3, n0, _GII, 0, [_IPI, _AI, _L], [0, 0, [() => LoginsMap, 0]], 1];
100
+ exports.GetIdResponse$ = [3, n0, _GIR, 0, [_II], [0]];
101
+ var LoginsMap = [2, n0, _LM, 0, [0, 0], [() => IdentityProviderToken, 0]];
102
+ exports.GetCredentialsForIdentity$ = [
103
+ 9,
104
+ n0,
105
+ _GCFI,
106
+ 0,
107
+ () => exports.GetCredentialsForIdentityInput$,
108
+ () => exports.GetCredentialsForIdentityResponse$,
109
+ ];
110
+ exports.GetId$ = [9, n0, _GI, 0, () => exports.GetIdInput$, () => exports.GetIdResponse$];
@@ -2,6 +2,132 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const u = "required", v = "fn", w = "argv", x = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: true, "default": false, "type": "boolean" }, j = { [u]: false, "type": "string" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
6
- const _data = { version: "1.0", parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [m], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q], endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q], endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n }, type: e }, { conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q], endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n }, type: e }, { conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, r] }, s], rules: [{ endpoint: { url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [l, q], rules: [{ conditions: [{ [v]: c, [w]: [r, a] }], rules: [{ endpoint: { url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [p, m], rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "stringEquals", i = { [u]: true, default: false, type: "boolean" }, j = { [u]: false, type: "string" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, p = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, q = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
6
+ const _data = {
7
+ version: "1.0",
8
+ parameters: { UseDualStack: i, UseFIPS: i, Endpoint: j, Region: j },
9
+ rules: [
10
+ {
11
+ conditions: [{ [v]: b, [w]: [k] }],
12
+ rules: [
13
+ { conditions: [l], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d },
14
+ {
15
+ rules: [
16
+ {
17
+ conditions: [m],
18
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
19
+ type: d,
20
+ },
21
+ { endpoint: { url: k, properties: n, headers: n }, type: e },
22
+ ],
23
+ type: f,
24
+ },
25
+ ],
26
+ type: f,
27
+ },
28
+ {
29
+ rules: [
30
+ {
31
+ conditions: [{ [v]: b, [w]: t }],
32
+ rules: [
33
+ {
34
+ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }],
35
+ rules: [
36
+ {
37
+ conditions: [{ [v]: h, [w]: [o, "aws"] }, p, q],
38
+ endpoint: { url: "https://{Region}.signin.aws.amazon.com", properties: n, headers: n },
39
+ type: e,
40
+ },
41
+ {
42
+ conditions: [{ [v]: h, [w]: [o, "aws-cn"] }, p, q],
43
+ endpoint: { url: "https://{Region}.signin.amazonaws.cn", properties: n, headers: n },
44
+ type: e,
45
+ },
46
+ {
47
+ conditions: [{ [v]: h, [w]: [o, "aws-us-gov"] }, p, q],
48
+ endpoint: { url: "https://{Region}.signin.amazonaws-us-gov.com", properties: n, headers: n },
49
+ type: e,
50
+ },
51
+ {
52
+ conditions: [l, m],
53
+ rules: [
54
+ {
55
+ conditions: [{ [v]: c, [w]: [a, r] }, s],
56
+ rules: [
57
+ {
58
+ endpoint: {
59
+ url: "https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
60
+ properties: n,
61
+ headers: n,
62
+ },
63
+ type: e,
64
+ },
65
+ ],
66
+ type: f,
67
+ },
68
+ {
69
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
70
+ type: d,
71
+ },
72
+ ],
73
+ type: f,
74
+ },
75
+ {
76
+ conditions: [l, q],
77
+ rules: [
78
+ {
79
+ conditions: [{ [v]: c, [w]: [r, a] }],
80
+ rules: [
81
+ {
82
+ endpoint: {
83
+ url: "https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",
84
+ properties: n,
85
+ headers: n,
86
+ },
87
+ type: e,
88
+ },
89
+ ],
90
+ type: f,
91
+ },
92
+ { error: "FIPS is enabled but this partition does not support FIPS", type: d },
93
+ ],
94
+ type: f,
95
+ },
96
+ {
97
+ conditions: [p, m],
98
+ rules: [
99
+ {
100
+ conditions: [s],
101
+ rules: [
102
+ {
103
+ endpoint: {
104
+ url: "https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",
105
+ properties: n,
106
+ headers: n,
107
+ },
108
+ type: e,
109
+ },
110
+ ],
111
+ type: f,
112
+ },
113
+ { error: "DualStack is enabled but this partition does not support DualStack", type: d },
114
+ ],
115
+ type: f,
116
+ },
117
+ {
118
+ endpoint: { url: "https://signin.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n },
119
+ type: e,
120
+ },
121
+ ],
122
+ type: f,
123
+ },
124
+ ],
125
+ type: f,
126
+ },
127
+ { error: "Invalid Configuration: Missing Region", type: d },
128
+ ],
129
+ type: f,
130
+ },
131
+ ],
132
+ };
7
133
  exports.ruleSet = _data;