@aws-sdk/nested-clients 3.995.0 → 3.996.1

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 (175) hide show
  1. package/cognito-identity.d.ts +7 -0
  2. package/cognito-identity.js +5 -0
  3. package/dist-cjs/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +60 -0
  4. package/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +146 -0
  6. package/dist-cjs/submodules/cognito-identity/index.js +174 -0
  7. package/dist-cjs/submodules/cognito-identity/models/CognitoIdentityServiceException.js +12 -0
  8. package/dist-cjs/submodules/cognito-identity/models/errors.js +121 -0
  9. package/dist-cjs/submodules/cognito-identity/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/submodules/cognito-identity/runtimeConfig.js +53 -0
  11. package/dist-cjs/submodules/cognito-identity/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/submodules/cognito-identity/runtimeConfig.shared.js +50 -0
  13. package/dist-cjs/submodules/cognito-identity/schemas/schemas_0.js +110 -0
  14. package/dist-cjs/submodules/signin/endpoint/ruleset.js +128 -2
  15. package/dist-cjs/submodules/signin/index.js +17 -18
  16. package/dist-cjs/submodules/sso/auth/httpAuthSchemeProvider.js +56 -0
  17. package/dist-cjs/submodules/sso/endpoint/endpointResolver.js +18 -0
  18. package/dist-cjs/submodules/sso/endpoint/ruleset.js +106 -0
  19. package/dist-cjs/submodules/sso/index.js +160 -0
  20. package/dist-cjs/submodules/sso/models/SSOServiceException.js +12 -0
  21. package/dist-cjs/submodules/sso/models/errors.js +56 -0
  22. package/dist-cjs/submodules/sso/runtimeConfig.browser.js +38 -0
  23. package/dist-cjs/submodules/sso/runtimeConfig.js +53 -0
  24. package/dist-cjs/submodules/sso/runtimeConfig.native.js +15 -0
  25. package/dist-cjs/submodules/sso/runtimeConfig.shared.js +49 -0
  26. package/dist-cjs/submodules/sso/schemas/schemas_0.js +90 -0
  27. package/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +101 -2
  28. package/dist-cjs/submodules/sso-oidc/index.js +17 -18
  29. package/dist-cjs/submodules/sts/endpoint/ruleset.js +140 -2
  30. package/dist-cjs/submodules/sts/index.js +23 -17
  31. package/dist-es/submodules/cognito-identity/CognitoIdentity.js +11 -0
  32. package/dist-es/submodules/cognito-identity/CognitoIdentityClient.js +50 -0
  33. package/dist-es/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.js +38 -0
  34. package/dist-es/submodules/cognito-identity/auth/httpAuthSchemeProvider.js +54 -0
  35. package/dist-es/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.js +16 -0
  36. package/dist-es/submodules/cognito-identity/commands/GetIdCommand.js +16 -0
  37. package/dist-es/submodules/cognito-identity/commands/index.js +2 -0
  38. package/dist-es/submodules/cognito-identity/endpoint/EndpointParameters.js +13 -0
  39. package/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +14 -0
  40. package/dist-es/submodules/cognito-identity/endpoint/ruleset.js +143 -0
  41. package/dist-es/submodules/cognito-identity/extensionConfiguration.js +1 -0
  42. package/dist-es/submodules/cognito-identity/index.js +7 -0
  43. package/dist-es/submodules/cognito-identity/models/CognitoIdentityServiceException.js +8 -0
  44. package/dist-es/submodules/cognito-identity/models/errors.js +109 -0
  45. package/dist-es/submodules/cognito-identity/models/models_0.js +1 -0
  46. package/dist-es/submodules/cognito-identity/runtimeConfig.browser.js +33 -0
  47. package/dist-es/submodules/cognito-identity/runtimeConfig.js +48 -0
  48. package/dist-es/submodules/cognito-identity/runtimeConfig.native.js +11 -0
  49. package/dist-es/submodules/cognito-identity/runtimeConfig.shared.js +46 -0
  50. package/dist-es/submodules/cognito-identity/runtimeExtensions.js +9 -0
  51. package/dist-es/submodules/cognito-identity/schemas/schemas_0.js +107 -0
  52. package/dist-es/submodules/signin/Signin.js +1 -1
  53. package/dist-es/submodules/signin/endpoint/ruleset.js +128 -2
  54. package/dist-es/submodules/sso/SSO.js +9 -0
  55. package/dist-es/submodules/sso/SSOClient.js +50 -0
  56. package/dist-es/submodules/sso/auth/httpAuthExtensionConfiguration.js +38 -0
  57. package/dist-es/submodules/sso/auth/httpAuthSchemeProvider.js +50 -0
  58. package/dist-es/submodules/sso/commands/GetRoleCredentialsCommand.js +16 -0
  59. package/dist-es/submodules/sso/commands/index.js +1 -0
  60. package/dist-es/submodules/sso/endpoint/EndpointParameters.js +13 -0
  61. package/dist-es/submodules/sso/endpoint/endpointResolver.js +14 -0
  62. package/dist-es/submodules/sso/endpoint/ruleset.js +103 -0
  63. package/dist-es/submodules/sso/extensionConfiguration.js +1 -0
  64. package/dist-es/submodules/sso/index.js +7 -0
  65. package/dist-es/submodules/sso/models/SSOServiceException.js +8 -0
  66. package/dist-es/submodules/sso/models/errors.js +49 -0
  67. package/dist-es/submodules/sso/models/models_0.js +1 -0
  68. package/dist-es/submodules/sso/runtimeConfig.browser.js +33 -0
  69. package/dist-es/submodules/sso/runtimeConfig.js +48 -0
  70. package/dist-es/submodules/sso/runtimeConfig.native.js +11 -0
  71. package/dist-es/submodules/sso/runtimeConfig.shared.js +45 -0
  72. package/dist-es/submodules/sso/runtimeExtensions.js +9 -0
  73. package/dist-es/submodules/sso/schemas/schemas_0.js +87 -0
  74. package/dist-es/submodules/sso-oidc/endpoint/ruleset.js +101 -2
  75. package/dist-es/submodules/sts/defaultStsRoleAssumers.js +1 -1
  76. package/dist-es/submodules/sts/endpoint/ruleset.js +140 -2
  77. package/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
  78. package/dist-types/submodules/cognito-identity/CognitoIdentityClient.d.ts +198 -0
  79. package/dist-types/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +30 -0
  80. package/dist-types/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +75 -0
  81. package/dist-types/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +120 -0
  82. package/dist-types/submodules/cognito-identity/commands/GetIdCommand.d.ts +107 -0
  83. package/dist-types/submodules/cognito-identity/commands/index.d.ts +2 -0
  84. package/dist-types/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +50 -0
  85. package/dist-types/submodules/cognito-identity/endpoint/endpointResolver.d.ts +8 -0
  86. package/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
  87. package/dist-types/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
  88. package/dist-types/submodules/cognito-identity/index.d.ts +29 -0
  89. package/dist-types/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +14 -0
  90. package/dist-types/submodules/cognito-identity/models/errors.d.ts +119 -0
  91. package/dist-types/submodules/cognito-identity/models/models_0.d.ts +136 -0
  92. package/dist-types/submodules/cognito-identity/runtimeConfig.browser.d.ts +62 -0
  93. package/dist-types/submodules/cognito-identity/runtimeConfig.d.ts +62 -0
  94. package/dist-types/submodules/cognito-identity/runtimeConfig.native.d.ts +61 -0
  95. package/dist-types/submodules/cognito-identity/runtimeConfig.shared.d.ts +38 -0
  96. package/dist-types/submodules/cognito-identity/runtimeExtensions.d.ts +17 -0
  97. package/dist-types/submodules/cognito-identity/schemas/schemas_0.d.ts +25 -0
  98. package/dist-types/submodules/signin/Signin.d.ts +1 -1
  99. package/dist-types/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  100. package/dist-types/submodules/signin/endpoint/ruleset.d.ts +1 -1
  101. package/dist-types/submodules/signin/models/errors.d.ts +1 -1
  102. package/dist-types/submodules/sso/SSO.d.ts +32 -0
  103. package/dist-types/submodules/sso/SSOClient.d.ts +198 -0
  104. package/dist-types/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +30 -0
  105. package/dist-types/submodules/sso/auth/httpAuthSchemeProvider.d.ts +75 -0
  106. package/dist-types/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +97 -0
  107. package/dist-types/submodules/sso/commands/index.d.ts +1 -0
  108. package/dist-types/submodules/sso/endpoint/EndpointParameters.d.ts +50 -0
  109. package/dist-types/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
  110. package/dist-types/submodules/sso/endpoint/ruleset.d.ts +2 -0
  111. package/dist-types/submodules/sso/extensionConfiguration.d.ts +9 -0
  112. package/dist-types/submodules/sso/index.d.ts +30 -0
  113. package/dist-types/submodules/sso/models/SSOServiceException.d.ts +14 -0
  114. package/dist-types/submodules/sso/models/errors.d.ts +53 -0
  115. package/dist-types/submodules/sso/models/models_0.d.ts +61 -0
  116. package/dist-types/submodules/sso/runtimeConfig.browser.d.ts +62 -0
  117. package/dist-types/submodules/sso/runtimeConfig.d.ts +62 -0
  118. package/dist-types/submodules/sso/runtimeConfig.native.d.ts +61 -0
  119. package/dist-types/submodules/sso/runtimeConfig.shared.d.ts +38 -0
  120. package/dist-types/submodules/sso/runtimeExtensions.d.ts +17 -0
  121. package/dist-types/submodules/sso/schemas/schemas_0.d.ts +17 -0
  122. package/dist-types/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  123. package/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +1 -1
  124. package/dist-types/submodules/sso-oidc/models/errors.d.ts +1 -1
  125. package/dist-types/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +2 -1
  126. package/dist-types/submodules/sts/defaultRoleAssumers.d.ts +3 -3
  127. package/dist-types/submodules/sts/defaultStsRoleAssumers.d.ts +3 -3
  128. package/dist-types/submodules/sts/endpoint/ruleset.d.ts +1 -1
  129. package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +38 -0
  130. package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentityClient.d.ts +126 -0
  131. package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  132. package/dist-types/ts3.4/submodules/cognito-identity/auth/httpAuthSchemeProvider.d.ts +47 -0
  133. package/dist-types/ts3.4/submodules/cognito-identity/commands/GetCredentialsForIdentityCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/submodules/cognito-identity/commands/GetIdCommand.d.ts +41 -0
  135. package/dist-types/ts3.4/submodules/cognito-identity/commands/index.d.ts +2 -0
  136. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/EndpointParameters.d.ts +51 -0
  137. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/endpointResolver.d.ts +8 -0
  138. package/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +2 -0
  139. package/dist-types/ts3.4/submodules/cognito-identity/extensionConfiguration.d.ts +9 -0
  140. package/dist-types/ts3.4/submodules/cognito-identity/index.d.ts +10 -0
  141. package/dist-types/ts3.4/submodules/cognito-identity/models/CognitoIdentityServiceException.d.ts +9 -0
  142. package/dist-types/ts3.4/submodules/cognito-identity/models/errors.d.ts +68 -0
  143. package/dist-types/ts3.4/submodules/cognito-identity/models/models_0.d.ts +23 -0
  144. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.browser.d.ts +122 -0
  145. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.d.ts +117 -0
  146. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.native.d.ts +126 -0
  147. package/dist-types/ts3.4/submodules/cognito-identity/runtimeConfig.shared.d.ts +60 -0
  148. package/dist-types/ts3.4/submodules/cognito-identity/runtimeExtensions.d.ts +13 -0
  149. package/dist-types/ts3.4/submodules/cognito-identity/schemas/schemas_0.d.ts +24 -0
  150. package/dist-types/ts3.4/submodules/signin/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  151. package/dist-types/ts3.4/submodules/sso/SSO.d.ts +22 -0
  152. package/dist-types/ts3.4/submodules/sso/SSOClient.d.ts +117 -0
  153. package/dist-types/ts3.4/submodules/sso/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  154. package/dist-types/ts3.4/submodules/sso/auth/httpAuthSchemeProvider.d.ts +46 -0
  155. package/dist-types/ts3.4/submodules/sso/commands/GetRoleCredentialsCommand.d.ts +47 -0
  156. package/dist-types/ts3.4/submodules/sso/commands/index.d.ts +1 -0
  157. package/dist-types/ts3.4/submodules/sso/endpoint/EndpointParameters.d.ts +51 -0
  158. package/dist-types/ts3.4/submodules/sso/endpoint/endpointResolver.d.ts +8 -0
  159. package/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +2 -0
  160. package/dist-types/ts3.4/submodules/sso/extensionConfiguration.d.ts +9 -0
  161. package/dist-types/ts3.4/submodules/sso/index.d.ts +10 -0
  162. package/dist-types/ts3.4/submodules/sso/models/SSOServiceException.d.ts +9 -0
  163. package/dist-types/ts3.4/submodules/sso/models/errors.d.ts +30 -0
  164. package/dist-types/ts3.4/submodules/sso/models/models_0.d.ts +14 -0
  165. package/dist-types/ts3.4/submodules/sso/runtimeConfig.browser.d.ts +120 -0
  166. package/dist-types/ts3.4/submodules/sso/runtimeConfig.d.ts +115 -0
  167. package/dist-types/ts3.4/submodules/sso/runtimeConfig.native.d.ts +124 -0
  168. package/dist-types/ts3.4/submodules/sso/runtimeConfig.shared.d.ts +58 -0
  169. package/dist-types/ts3.4/submodules/sso/runtimeExtensions.d.ts +11 -0
  170. package/dist-types/ts3.4/submodules/sso/schemas/schemas_0.d.ts +16 -0
  171. package/dist-types/ts3.4/submodules/sso-oidc/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  172. package/dist-types/ts3.4/submodules/sts/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  173. package/package.json +54 -36
  174. package/sso.d.ts +7 -0
  175. package/sso.js +5 -0
@@ -1,4 +1,142 @@
1
1
  const F = "required", G = "type", H = "fn", I = "argv", J = "ref";
2
- const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, "default": false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
3
- const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] };
2
+ const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "string" }, n = { [F]: true, default: false, [G]: "boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], assign: "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = {
3
+ url: "https://sts.amazonaws.com",
4
+ properties: { authSchemes: [{ name: e, signingName: f, signingRegion: g }] },
5
+ headers: {},
6
+ }, v = {}, w = { conditions: [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y];
7
+ const _data = {
8
+ version: "1.0",
9
+ parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n },
10
+ rules: [
11
+ {
12
+ conditions: [
13
+ { [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] },
14
+ { [H]: "not", [I]: C },
15
+ p,
16
+ r,
17
+ { [H]: c, [I]: [s, a] },
18
+ { [H]: c, [I]: [t, a] },
19
+ ],
20
+ rules: [
21
+ { conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h },
22
+ { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h },
23
+ { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h },
24
+ { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h },
25
+ w,
26
+ { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h },
27
+ { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h },
28
+ { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h },
29
+ { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h },
30
+ { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h },
31
+ { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h },
32
+ { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h },
33
+ { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h },
34
+ { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h },
35
+ { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h },
36
+ { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h },
37
+ {
38
+ endpoint: {
39
+ url: i,
40
+ properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] },
41
+ headers: v,
42
+ },
43
+ [G]: h,
44
+ },
45
+ ],
46
+ [G]: j,
47
+ },
48
+ {
49
+ conditions: C,
50
+ rules: [
51
+ { conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k },
52
+ { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k },
53
+ { endpoint: { url: o, properties: v, headers: v }, [G]: h },
54
+ ],
55
+ [G]: j,
56
+ },
57
+ {
58
+ conditions: [p],
59
+ rules: [
60
+ {
61
+ conditions: [r],
62
+ rules: [
63
+ {
64
+ conditions: [x, y],
65
+ rules: [
66
+ {
67
+ conditions: [{ [H]: c, [I]: [b, z] }, B],
68
+ rules: [
69
+ {
70
+ endpoint: {
71
+ url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
72
+ properties: v,
73
+ headers: v,
74
+ },
75
+ [G]: h,
76
+ },
77
+ ],
78
+ [G]: j,
79
+ },
80
+ { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k },
81
+ ],
82
+ [G]: j,
83
+ },
84
+ {
85
+ conditions: D,
86
+ rules: [
87
+ {
88
+ conditions: [{ [H]: c, [I]: [z, b] }],
89
+ rules: [
90
+ {
91
+ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }],
92
+ endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v },
93
+ [G]: h,
94
+ },
95
+ {
96
+ endpoint: {
97
+ url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",
98
+ properties: v,
99
+ headers: v,
100
+ },
101
+ [G]: h,
102
+ },
103
+ ],
104
+ [G]: j,
105
+ },
106
+ { error: "FIPS is enabled but this partition does not support FIPS", [G]: k },
107
+ ],
108
+ [G]: j,
109
+ },
110
+ {
111
+ conditions: E,
112
+ rules: [
113
+ {
114
+ conditions: [B],
115
+ rules: [
116
+ {
117
+ endpoint: {
118
+ url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",
119
+ properties: v,
120
+ headers: v,
121
+ },
122
+ [G]: h,
123
+ },
124
+ ],
125
+ [G]: j,
126
+ },
127
+ { error: "DualStack is enabled but this partition does not support DualStack", [G]: k },
128
+ ],
129
+ [G]: j,
130
+ },
131
+ w,
132
+ { endpoint: { url: i, properties: v, headers: v }, [G]: h },
133
+ ],
134
+ [G]: j,
135
+ },
136
+ ],
137
+ [G]: j,
138
+ },
139
+ { error: "Invalid Configuration: Missing Region", [G]: k },
140
+ ],
141
+ };
4
142
  export const ruleSet = _data;
@@ -0,0 +1,38 @@
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { CognitoIdentityClient } from "./CognitoIdentityClient";
3
+ import type { GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput } from "./commands/GetCredentialsForIdentityCommand";
4
+ import type { GetIdCommandInput, GetIdCommandOutput } from "./commands/GetIdCommand";
5
+ export interface CognitoIdentity {
6
+ /**
7
+ * @see {@link GetCredentialsForIdentityCommand}
8
+ */
9
+ getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialsForIdentityCommandOutput>;
10
+ getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
11
+ getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
12
+ /**
13
+ * @see {@link GetIdCommand}
14
+ */
15
+ getId(args: GetIdCommandInput, options?: __HttpHandlerOptions): Promise<GetIdCommandOutput>;
16
+ getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
17
+ getId(args: GetIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdCommandOutput) => void): void;
18
+ }
19
+ /**
20
+ * <fullname>Amazon Cognito Federated Identities</fullname>
21
+ * <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
22
+ * credentials to mobile devices and other untrusted environments. It uniquely identifies a
23
+ * device and supplies the user with a consistent identity over the lifetime of an
24
+ * application.</p>
25
+ * <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
26
+ * more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
27
+ * Cognito user pool, and you can also choose to support unauthenticated access from your app.
28
+ * Cognito delivers a unique identifier for each user and acts as an OpenID token provider
29
+ * trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
30
+ * <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
31
+ * see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
32
+ * Flow</a>.</p>
33
+ * <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
34
+ * Identities</a>.</p>
35
+ * @public
36
+ */
37
+ export declare class CognitoIdentity extends CognitoIdentityClient implements CognitoIdentity {
38
+ }
@@ -0,0 +1,198 @@
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
+ import type { Provider, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser } from "@smithy/types";
10
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
11
+ import type { GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput } from "./commands/GetCredentialsForIdentityCommand";
12
+ import type { GetIdCommandInput, GetIdCommandOutput } from "./commands/GetIdCommand";
13
+ import type { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
15
+ export { __Client };
16
+ /**
17
+ * @public
18
+ */
19
+ export type ServiceInputTypes = GetCredentialsForIdentityCommandInput | GetIdCommandInput;
20
+ /**
21
+ * @public
22
+ */
23
+ export type ServiceOutputTypes = GetCredentialsForIdentityCommandOutput | GetIdCommandOutput;
24
+ /**
25
+ * @public
26
+ */
27
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
28
+ /**
29
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
30
+ */
31
+ requestHandler?: __HttpHandlerUserInput;
32
+ /**
33
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
34
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
35
+ * @internal
36
+ */
37
+ sha256?: __ChecksumConstructor | __HashConstructor;
38
+ /**
39
+ * The function that will be used to convert strings into HTTP endpoints.
40
+ * @internal
41
+ */
42
+ urlParser?: __UrlParser;
43
+ /**
44
+ * A function that can calculate the length of a request body.
45
+ * @internal
46
+ */
47
+ bodyLengthChecker?: __BodyLengthCalculator;
48
+ /**
49
+ * A function that converts a stream into an array of bytes.
50
+ * @internal
51
+ */
52
+ streamCollector?: __StreamCollector;
53
+ /**
54
+ * The function that will be used to convert a base64-encoded string to a byte array.
55
+ * @internal
56
+ */
57
+ base64Decoder?: __Decoder;
58
+ /**
59
+ * The function that will be used to convert binary data to a base64-encoded string.
60
+ * @internal
61
+ */
62
+ base64Encoder?: __Encoder;
63
+ /**
64
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
65
+ * @internal
66
+ */
67
+ utf8Decoder?: __Decoder;
68
+ /**
69
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
70
+ * @internal
71
+ */
72
+ utf8Encoder?: __Encoder;
73
+ /**
74
+ * The runtime environment.
75
+ * @internal
76
+ */
77
+ runtime?: string;
78
+ /**
79
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
80
+ * trait of an operation.
81
+ */
82
+ disableHostPrefix?: boolean;
83
+ /**
84
+ * Unique service identifier.
85
+ * @internal
86
+ */
87
+ serviceId?: string;
88
+ /**
89
+ * Enables IPv6/IPv4 dualstack endpoint.
90
+ */
91
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
92
+ /**
93
+ * Enables FIPS compatible endpoints.
94
+ */
95
+ useFipsEndpoint?: boolean | __Provider<boolean>;
96
+ /**
97
+ * The AWS region to which this client will send requests
98
+ */
99
+ region?: string | __Provider<string>;
100
+ /**
101
+ * Setting a client profile is similar to setting a value for the
102
+ * AWS_PROFILE environment variable. Setting a profile on a client
103
+ * in code only affects the single client instance, unlike AWS_PROFILE.
104
+ *
105
+ * When set, and only for environments where an AWS configuration
106
+ * file exists, fields configurable by this file will be retrieved
107
+ * from the specified profile within that file.
108
+ * Conflicting code configuration and environment variables will
109
+ * still have higher priority.
110
+ *
111
+ * For client credential resolution that involves checking the AWS
112
+ * configuration file, the client's profile (this value) will be
113
+ * used unless a different profile is set in the credential
114
+ * provider options.
115
+ *
116
+ */
117
+ profile?: string;
118
+ /**
119
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
120
+ * @internal
121
+ */
122
+ defaultUserAgentProvider?: Provider<__UserAgent>;
123
+ /**
124
+ * Value for how many times a request will be made at most in case of retry.
125
+ */
126
+ maxAttempts?: number | __Provider<number>;
127
+ /**
128
+ * Specifies which retry algorithm to use.
129
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
130
+ *
131
+ */
132
+ retryMode?: string | __Provider<string>;
133
+ /**
134
+ * Optional logger for logging debug/info/warn/error.
135
+ */
136
+ logger?: __Logger;
137
+ /**
138
+ * Optional extensions
139
+ */
140
+ extensions?: RuntimeExtension[];
141
+ /**
142
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
143
+ */
144
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
145
+ }
146
+ /**
147
+ * @public
148
+ */
149
+ export type CognitoIdentityClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
150
+ /**
151
+ * @public
152
+ *
153
+ * The configuration interface of CognitoIdentityClient class constructor that set the region, credentials and other options.
154
+ */
155
+ export interface CognitoIdentityClientConfig extends CognitoIdentityClientConfigType {
156
+ }
157
+ /**
158
+ * @public
159
+ */
160
+ export type CognitoIdentityClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
161
+ /**
162
+ * @public
163
+ *
164
+ * The resolved configuration interface of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
165
+ */
166
+ export interface CognitoIdentityClientResolvedConfig extends CognitoIdentityClientResolvedConfigType {
167
+ }
168
+ /**
169
+ * <fullname>Amazon Cognito Federated Identities</fullname>
170
+ * <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
171
+ * credentials to mobile devices and other untrusted environments. It uniquely identifies a
172
+ * device and supplies the user with a consistent identity over the lifetime of an
173
+ * application.</p>
174
+ * <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
175
+ * more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
176
+ * Cognito user pool, and you can also choose to support unauthenticated access from your app.
177
+ * Cognito delivers a unique identifier for each user and acts as an OpenID token provider
178
+ * trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
179
+ * <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
180
+ * see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
181
+ * Flow</a>.</p>
182
+ * <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
183
+ * Identities</a>.</p>
184
+ * @public
185
+ */
186
+ export declare class CognitoIdentityClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CognitoIdentityClientResolvedConfig> {
187
+ /**
188
+ * The resolved configuration of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
189
+ */
190
+ readonly config: CognitoIdentityClientResolvedConfig;
191
+ constructor(...[configuration]: __CheckOptionalClientConfig<CognitoIdentityClientConfig>);
192
+ /**
193
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
194
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
195
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
196
+ */
197
+ destroy(): void;
198
+ }
@@ -0,0 +1,30 @@
1
+ import type { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import { type HttpAuthScheme } from "@smithy/types";
3
+ import type { CognitoIdentityHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider): void;
11
+ httpAuthSchemeProvider(): CognitoIdentityHttpAuthSchemeProvider;
12
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
13
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export type HttpAuthRuntimeConfig = Partial<{
19
+ httpAuthSchemes: HttpAuthScheme[];
20
+ httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
21
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
22
+ }>;
23
+ /**
24
+ * @internal
25
+ */
26
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
27
+ /**
28
+ * @internal
29
+ */
30
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import type { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type CognitoIdentityClientResolvedConfig } from "../CognitoIdentityClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface CognitoIdentityHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface CognitoIdentityHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<CognitoIdentityClientResolvedConfig, HandlerExecutionContext, CognitoIdentityHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultCognitoIdentityHttpAuthSchemeParametersProvider: (config: CognitoIdentityClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<CognitoIdentityHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface CognitoIdentityHttpAuthSchemeProvider extends HttpAuthSchemeProvider<CognitoIdentityHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultCognitoIdentityHttpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: CognitoIdentityHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: CognitoIdentityHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CognitoIdentityClient";
4
+ import type { GetCredentialsForIdentityInput, GetCredentialsForIdentityResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetCredentialsForIdentityCommand}.
14
+ */
15
+ export interface GetCredentialsForIdentityCommandInput extends GetCredentialsForIdentityInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetCredentialsForIdentityCommand}.
21
+ */
22
+ export interface GetCredentialsForIdentityCommandOutput extends GetCredentialsForIdentityResponse, __MetadataBearer {
23
+ }
24
+ declare const GetCredentialsForIdentityCommand_base: {
25
+ new (input: GetCredentialsForIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetCredentialsForIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<GetCredentialsForIdentityCommandInput, GetCredentialsForIdentityCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns credentials for the provided identity ID. Any provided logins will be
31
+ * validated against supported login providers. If the token is for
32
+ * <code>cognito-identity.amazonaws.com</code>, it will be passed through to Security Token Service with the appropriate role for the token.</p>
33
+ * <p>This is a public API. You do not need any credentials to call this API.</p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { CognitoIdentityClient, GetCredentialsForIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
38
+ * // const { CognitoIdentityClient, GetCredentialsForIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
39
+ * // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
40
+ * const config = {}; // type is CognitoIdentityClientConfig
41
+ * const client = new CognitoIdentityClient(config);
42
+ * const input = { // GetCredentialsForIdentityInput
43
+ * IdentityId: "STRING_VALUE", // required
44
+ * Logins: { // LoginsMap
45
+ * "<keys>": "STRING_VALUE",
46
+ * },
47
+ * CustomRoleArn: "STRING_VALUE",
48
+ * };
49
+ * const command = new GetCredentialsForIdentityCommand(input);
50
+ * const response = await client.send(command);
51
+ * // { // GetCredentialsForIdentityResponse
52
+ * // IdentityId: "STRING_VALUE",
53
+ * // Credentials: { // Credentials
54
+ * // AccessKeyId: "STRING_VALUE",
55
+ * // SecretKey: "STRING_VALUE",
56
+ * // SessionToken: "STRING_VALUE",
57
+ * // Expiration: new Date("TIMESTAMP"),
58
+ * // },
59
+ * // };
60
+ *
61
+ * ```
62
+ *
63
+ * @param GetCredentialsForIdentityCommandInput - {@link GetCredentialsForIdentityCommandInput}
64
+ * @returns {@link GetCredentialsForIdentityCommandOutput}
65
+ * @see {@link GetCredentialsForIdentityCommandInput} for command's `input` shape.
66
+ * @see {@link GetCredentialsForIdentityCommandOutput} for command's `response` shape.
67
+ * @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
68
+ *
69
+ * @throws {@link ExternalServiceException} (client fault)
70
+ * <p>An exception thrown when a dependent service such as Facebook or Twitter is not
71
+ * responding</p>
72
+ *
73
+ * @throws {@link InternalErrorException} (server fault)
74
+ * <p>Thrown when the service encounters an error during processing the request.</p>
75
+ *
76
+ * @throws {@link InvalidIdentityPoolConfigurationException} (client fault)
77
+ * <p>If you provided authentication information in the request, the identity pool has no
78
+ * authenticated role configured, or STS returned an error response to the
79
+ * request to assume the authenticated role from the identity pool. If you provided no
80
+ * authentication information in the request, the identity pool has no unauthenticated role
81
+ * configured, or STS returned an error response to the request to assume the
82
+ * unauthenticated role from the identity pool.</p>
83
+ * <p>Your role trust policy must grant <code>AssumeRoleWithWebIdentity</code> permissions to <code>cognito-identity.amazonaws.com</code>.</p>
84
+ *
85
+ * @throws {@link InvalidParameterException} (client fault)
86
+ * <p>Thrown for missing or bad input parameter(s).</p>
87
+ *
88
+ * @throws {@link NotAuthorizedException} (client fault)
89
+ * <p>Thrown when a user is not authorized to access the requested resource.</p>
90
+ *
91
+ * @throws {@link ResourceConflictException} (client fault)
92
+ * <p>Thrown when a user tries to use a login which is already linked to another
93
+ * account.</p>
94
+ *
95
+ * @throws {@link ResourceNotFoundException} (client fault)
96
+ * <p>Thrown when the requested resource (for example, a dataset or record) does not
97
+ * exist.</p>
98
+ *
99
+ * @throws {@link TooManyRequestsException} (client fault)
100
+ * <p>Thrown when a request is throttled.</p>
101
+ *
102
+ * @throws {@link CognitoIdentityServiceException}
103
+ * <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class GetCredentialsForIdentityCommand extends GetCredentialsForIdentityCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: GetCredentialsForIdentityInput;
113
+ output: GetCredentialsForIdentityResponse;
114
+ };
115
+ sdk: {
116
+ input: GetCredentialsForIdentityCommandInput;
117
+ output: GetCredentialsForIdentityCommandOutput;
118
+ };
119
+ };
120
+ }