@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
@@ -0,0 +1,107 @@
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 { GetIdInput, GetIdResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetIdCommand}.
14
+ */
15
+ export interface GetIdCommandInput extends GetIdInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetIdCommand}.
21
+ */
22
+ export interface GetIdCommandOutput extends GetIdResponse, __MetadataBearer {
23
+ }
24
+ declare const GetIdCommand_base: {
25
+ new (input: GetIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetIdCommandInput, GetIdCommandOutput, CognitoIdentityClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Generates (or retrieves) IdentityID. Supplying multiple logins will create an
31
+ * implicit linked account.</p>
32
+ * <p>This is a public API. You do not need any credentials to call this API.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { CognitoIdentityClient, GetIdCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
37
+ * // const { CognitoIdentityClient, GetIdCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
38
+ * // import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity";
39
+ * const config = {}; // type is CognitoIdentityClientConfig
40
+ * const client = new CognitoIdentityClient(config);
41
+ * const input = { // GetIdInput
42
+ * AccountId: "STRING_VALUE",
43
+ * IdentityPoolId: "STRING_VALUE", // required
44
+ * Logins: { // LoginsMap
45
+ * "<keys>": "STRING_VALUE",
46
+ * },
47
+ * };
48
+ * const command = new GetIdCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // GetIdResponse
51
+ * // IdentityId: "STRING_VALUE",
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param GetIdCommandInput - {@link GetIdCommandInput}
57
+ * @returns {@link GetIdCommandOutput}
58
+ * @see {@link GetIdCommandInput} for command's `input` shape.
59
+ * @see {@link GetIdCommandOutput} for command's `response` shape.
60
+ * @see {@link CognitoIdentityClientResolvedConfig | config} for CognitoIdentityClient's `config` shape.
61
+ *
62
+ * @throws {@link ExternalServiceException} (client fault)
63
+ * <p>An exception thrown when a dependent service such as Facebook or Twitter is not
64
+ * responding</p>
65
+ *
66
+ * @throws {@link InternalErrorException} (server fault)
67
+ * <p>Thrown when the service encounters an error during processing the request.</p>
68
+ *
69
+ * @throws {@link InvalidParameterException} (client fault)
70
+ * <p>Thrown for missing or bad input parameter(s).</p>
71
+ *
72
+ * @throws {@link LimitExceededException} (client fault)
73
+ * <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
74
+ *
75
+ * @throws {@link NotAuthorizedException} (client fault)
76
+ * <p>Thrown when a user is not authorized to access the requested resource.</p>
77
+ *
78
+ * @throws {@link ResourceConflictException} (client fault)
79
+ * <p>Thrown when a user tries to use a login which is already linked to another
80
+ * account.</p>
81
+ *
82
+ * @throws {@link ResourceNotFoundException} (client fault)
83
+ * <p>Thrown when the requested resource (for example, a dataset or record) does not
84
+ * exist.</p>
85
+ *
86
+ * @throws {@link TooManyRequestsException} (client fault)
87
+ * <p>Thrown when a request is throttled.</p>
88
+ *
89
+ * @throws {@link CognitoIdentityServiceException}
90
+ * <p>Base exception class for all service exceptions from CognitoIdentity service.</p>
91
+ *
92
+ *
93
+ * @public
94
+ */
95
+ export declare class GetIdCommand extends GetIdCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: GetIdInput;
100
+ output: GetIdResponse;
101
+ };
102
+ sdk: {
103
+ input: GetIdCommandInput;
104
+ output: GetIdCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./GetCredentialsForIdentityCommand";
2
+ export * from "./GetIdCommand";
@@ -0,0 +1,50 @@
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | undefined | Provider<string | undefined>;
7
+ useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
8
+ useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ /**
12
+ * @public
13
+ */
14
+ export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
15
+ defaultSigningName: string;
16
+ };
17
+ /**
18
+ * @internal
19
+ */
20
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
24
+ export declare const commonParams: {
25
+ readonly UseFIPS: {
26
+ readonly type: "builtInParams";
27
+ readonly name: "useFipsEndpoint";
28
+ };
29
+ readonly Endpoint: {
30
+ readonly type: "builtInParams";
31
+ readonly name: "endpoint";
32
+ };
33
+ readonly Region: {
34
+ readonly type: "builtInParams";
35
+ readonly name: "region";
36
+ };
37
+ readonly UseDualStack: {
38
+ readonly type: "builtInParams";
39
+ readonly name: "useDualstackEndpoint";
40
+ };
41
+ };
42
+ /**
43
+ * @internal
44
+ */
45
+ export interface EndpointParameters extends __EndpointParameters {
46
+ Region?: string | undefined;
47
+ UseDualStack?: boolean | undefined;
48
+ UseFIPS?: boolean | undefined;
49
+ Endpoint?: string | undefined;
50
+ }
@@ -0,0 +1,8 @@
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
7
+ logger?: Logger;
8
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import type { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,9 @@
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
+ /**
6
+ * @internal
7
+ */
8
+ export interface CognitoIdentityExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
9
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * <fullname>Amazon Cognito Federated Identities</fullname>
3
+ * <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
4
+ * credentials to mobile devices and other untrusted environments. It uniquely identifies a
5
+ * device and supplies the user with a consistent identity over the lifetime of an
6
+ * application.</p>
7
+ * <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
8
+ * more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
9
+ * Cognito user pool, and you can also choose to support unauthenticated access from your app.
10
+ * Cognito delivers a unique identifier for each user and acts as an OpenID token provider
11
+ * trusted by Security Token Service (STS) to access temporary, limited-privilege Amazon Web Services credentials.</p>
12
+ * <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
13
+ * see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication
14
+ * Flow</a>.</p>
15
+ * <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated
16
+ * Identities</a>.</p>
17
+ *
18
+ * @packageDocumentation
19
+ */
20
+ export * from "./CognitoIdentityClient";
21
+ export * from "./CognitoIdentity";
22
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
23
+ export type { RuntimeExtension } from "./runtimeExtensions";
24
+ export type { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
25
+ export * from "./commands";
26
+ export * from "./schemas/schemas_0";
27
+ export * from "./models/errors";
28
+ export * from "./models/models_0";
29
+ export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";
@@ -0,0 +1,14 @@
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2
+ export type { __ServiceExceptionOptions };
3
+ export { __ServiceException };
4
+ /**
5
+ * @public
6
+ *
7
+ * Base exception class for all service exceptions from CognitoIdentity service.
8
+ */
9
+ export declare class CognitoIdentityServiceException extends __ServiceException {
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(options: __ServiceExceptionOptions);
14
+ }
@@ -0,0 +1,119 @@
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
3
+ /**
4
+ * <p>An exception thrown when a dependent service such as Facebook or Twitter is not
5
+ * responding</p>
6
+ * @public
7
+ */
8
+ export declare class ExternalServiceException extends __BaseException {
9
+ readonly name: "ExternalServiceException";
10
+ readonly $fault: "client";
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<ExternalServiceException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>Thrown when the service encounters an error during processing the request.</p>
18
+ * @public
19
+ */
20
+ export declare class InternalErrorException extends __BaseException {
21
+ readonly name: "InternalErrorException";
22
+ readonly $fault: "server";
23
+ /**
24
+ * @internal
25
+ */
26
+ constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
27
+ }
28
+ /**
29
+ * <p>If you provided authentication information in the request, the identity pool has no
30
+ * authenticated role configured, or STS returned an error response to the
31
+ * request to assume the authenticated role from the identity pool. If you provided no
32
+ * authentication information in the request, the identity pool has no unauthenticated role
33
+ * configured, or STS returned an error response to the request to assume the
34
+ * unauthenticated role from the identity pool.</p>
35
+ * <p>Your role trust policy must grant <code>AssumeRoleWithWebIdentity</code> permissions to <code>cognito-identity.amazonaws.com</code>.</p>
36
+ * @public
37
+ */
38
+ export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
39
+ readonly name: "InvalidIdentityPoolConfigurationException";
40
+ readonly $fault: "client";
41
+ /**
42
+ * @internal
43
+ */
44
+ constructor(opts: __ExceptionOptionType<InvalidIdentityPoolConfigurationException, __BaseException>);
45
+ }
46
+ /**
47
+ * <p>Thrown for missing or bad input parameter(s).</p>
48
+ * @public
49
+ */
50
+ export declare class InvalidParameterException extends __BaseException {
51
+ readonly name: "InvalidParameterException";
52
+ readonly $fault: "client";
53
+ /**
54
+ * @internal
55
+ */
56
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
57
+ }
58
+ /**
59
+ * <p>Thrown when a user is not authorized to access the requested resource.</p>
60
+ * @public
61
+ */
62
+ export declare class NotAuthorizedException extends __BaseException {
63
+ readonly name: "NotAuthorizedException";
64
+ readonly $fault: "client";
65
+ /**
66
+ * @internal
67
+ */
68
+ constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
69
+ }
70
+ /**
71
+ * <p>Thrown when a user tries to use a login which is already linked to another
72
+ * account.</p>
73
+ * @public
74
+ */
75
+ export declare class ResourceConflictException extends __BaseException {
76
+ readonly name: "ResourceConflictException";
77
+ readonly $fault: "client";
78
+ /**
79
+ * @internal
80
+ */
81
+ constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
82
+ }
83
+ /**
84
+ * <p>Thrown when the requested resource (for example, a dataset or record) does not
85
+ * exist.</p>
86
+ * @public
87
+ */
88
+ export declare class ResourceNotFoundException extends __BaseException {
89
+ readonly name: "ResourceNotFoundException";
90
+ readonly $fault: "client";
91
+ /**
92
+ * @internal
93
+ */
94
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
95
+ }
96
+ /**
97
+ * <p>Thrown when a request is throttled.</p>
98
+ * @public
99
+ */
100
+ export declare class TooManyRequestsException extends __BaseException {
101
+ readonly name: "TooManyRequestsException";
102
+ readonly $fault: "client";
103
+ /**
104
+ * @internal
105
+ */
106
+ constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
107
+ }
108
+ /**
109
+ * <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
110
+ * @public
111
+ */
112
+ export declare class LimitExceededException extends __BaseException {
113
+ readonly name: "LimitExceededException";
114
+ readonly $fault: "client";
115
+ /**
116
+ * @internal
117
+ */
118
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
119
+ }
@@ -0,0 +1,136 @@
1
+ /**
2
+ * <p>Input to the <code>GetCredentialsForIdentity</code> action.</p>
3
+ * @public
4
+ */
5
+ export interface GetCredentialsForIdentityInput {
6
+ /**
7
+ * <p>A unique identifier in the format REGION:GUID.</p>
8
+ * @public
9
+ */
10
+ IdentityId: string | undefined;
11
+ /**
12
+ * <p>A set of optional name-value pairs that map provider names to provider tokens. The
13
+ * name-value pair will follow the syntax "provider_name":
14
+ * "provider_user_identifier".</p>
15
+ * <p>Logins should not be specified when trying to get credentials for an unauthenticated
16
+ * identity.</p>
17
+ * <p>The Logins parameter is required when using identities associated with external
18
+ * identity providers such as Facebook. For examples of <code>Logins</code> maps, see the code
19
+ * examples in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html">External Identity
20
+ * Providers</a> section of the Amazon Cognito Developer Guide.</p>
21
+ * @public
22
+ */
23
+ Logins?: Record<string, string> | undefined;
24
+ /**
25
+ * <p>The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were
26
+ * received in the token from the identity provider. For example, a SAML-based identity
27
+ * provider. This parameter is optional for identity providers that do not support role
28
+ * customization.</p>
29
+ * @public
30
+ */
31
+ CustomRoleArn?: string | undefined;
32
+ }
33
+ /**
34
+ * <p>Credentials for the provided identity ID.</p>
35
+ * @public
36
+ */
37
+ export interface Credentials {
38
+ /**
39
+ * <p>The Access Key portion of the credentials.</p>
40
+ * @public
41
+ */
42
+ AccessKeyId?: string | undefined;
43
+ /**
44
+ * <p>The Secret Access Key portion of the credentials</p>
45
+ * @public
46
+ */
47
+ SecretKey?: string | undefined;
48
+ /**
49
+ * <p>The Session Token portion of the credentials</p>
50
+ * @public
51
+ */
52
+ SessionToken?: string | undefined;
53
+ /**
54
+ * <p>The date at which these credentials will expire.</p>
55
+ * @public
56
+ */
57
+ Expiration?: Date | undefined;
58
+ }
59
+ /**
60
+ * <p>Returned in response to a successful <code>GetCredentialsForIdentity</code>
61
+ * operation.</p>
62
+ * @public
63
+ */
64
+ export interface GetCredentialsForIdentityResponse {
65
+ /**
66
+ * <p>A unique identifier in the format REGION:GUID.</p>
67
+ * @public
68
+ */
69
+ IdentityId?: string | undefined;
70
+ /**
71
+ * <p>Credentials for the provided identity ID.</p>
72
+ * @public
73
+ */
74
+ Credentials?: Credentials | undefined;
75
+ }
76
+ /**
77
+ * <p>Input to the GetId action.</p>
78
+ * @public
79
+ */
80
+ export interface GetIdInput {
81
+ /**
82
+ * <p>A standard Amazon Web Services account ID (9+ digits).</p>
83
+ * @public
84
+ */
85
+ AccountId?: string | undefined;
86
+ /**
87
+ * <p>An identity pool ID in the format REGION:GUID.</p>
88
+ * @public
89
+ */
90
+ IdentityPoolId: string | undefined;
91
+ /**
92
+ * <p>A set of optional name-value pairs that map provider names to provider tokens. The
93
+ * available provider names for <code>Logins</code> are as follows:</p>
94
+ * <ul>
95
+ * <li>
96
+ * <p>Facebook: <code>graph.facebook.com</code>
97
+ * </p>
98
+ * </li>
99
+ * <li>
100
+ * <p>Amazon Cognito user pool:
101
+ * <code>cognito-idp.<region>.amazonaws.com/<YOUR_USER_POOL_ID></code>,
102
+ * for example, <code>cognito-idp.us-east-1.amazonaws.com/us-east-1_123456789</code>.
103
+ * </p>
104
+ * </li>
105
+ * <li>
106
+ * <p>Google: <code>accounts.google.com</code>
107
+ * </p>
108
+ * </li>
109
+ * <li>
110
+ * <p>Amazon: <code>www.amazon.com</code>
111
+ * </p>
112
+ * </li>
113
+ * <li>
114
+ * <p>Twitter: <code>api.twitter.com</code>
115
+ * </p>
116
+ * </li>
117
+ * <li>
118
+ * <p>Digits: <code>www.digits.com</code>
119
+ * </p>
120
+ * </li>
121
+ * </ul>
122
+ * @public
123
+ */
124
+ Logins?: Record<string, string> | undefined;
125
+ }
126
+ /**
127
+ * <p>Returned in response to a GetId request.</p>
128
+ * @public
129
+ */
130
+ export interface GetIdResponse {
131
+ /**
132
+ * <p>A unique identifier in the format REGION:GUID.</p>
133
+ * @public
134
+ */
135
+ IdentityId?: string | undefined;
136
+ }
@@ -0,0 +1,62 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import type { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
11
+ maxAttempts: number | import("@smithy/types").Provider<number>;
12
+ region: string | import("@smithy/types").Provider<any>;
13
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
14
+ retryMode: string | import("@smithy/types").Provider<string>;
15
+ sha256: import("@smithy/types").HashConstructor;
16
+ streamCollector: import("@smithy/types").StreamCollector;
17
+ useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
18
+ useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
19
+ cacheMiddleware?: boolean | undefined;
20
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
21
+ protocolSettings: {
22
+ defaultNamespace?: string;
23
+ [setting: string]: unknown;
24
+ };
25
+ apiVersion: string;
26
+ urlParser: import("@smithy/types").UrlParser;
27
+ base64Decoder: import("@smithy/types").Decoder;
28
+ base64Encoder: (_input: Uint8Array | string) => string;
29
+ utf8Decoder: import("@smithy/types").Decoder;
30
+ utf8Encoder: (input: Uint8Array | string) => string;
31
+ disableHostPrefix: boolean;
32
+ serviceId: string;
33
+ profile?: string;
34
+ logger: import("@smithy/types").Logger;
35
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
36
+ customUserAgent?: string | import("@smithy/types").UserAgent;
37
+ userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
39
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
40
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
41
+ logger?: import("@smithy/types").Logger;
42
+ }) => import("@smithy/types").EndpointV2;
43
+ tls?: boolean;
44
+ serviceConfiguredEndpoint?: never;
45
+ authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
46
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
47
+ schemeId: string;
48
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
49
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
50
+ } | {
51
+ schemeId: string;
52
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
53
+ signer: import("@smithy/core").NoAuthSigner;
54
+ })[];
55
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
56
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
57
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
58
+ signingEscapePath?: boolean;
59
+ systemClockOffset?: number;
60
+ signingRegion?: string;
61
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
62
+ };
@@ -0,0 +1,62 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import type { CognitoIdentityClientConfig } from "./CognitoIdentityClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: CognitoIdentityClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
10
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<string>;
14
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
15
+ retryMode: string | import("@smithy/types").Provider<string>;
16
+ sha256: import("@smithy/types").HashConstructor;
17
+ streamCollector: import("@smithy/types").StreamCollector;
18
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
21
+ cacheMiddleware?: boolean | undefined;
22
+ protocol: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | typeof import("@aws-sdk/core").AwsJson1_1Protocol;
23
+ protocolSettings: {
24
+ defaultNamespace?: string;
25
+ [setting: string]: unknown;
26
+ };
27
+ apiVersion: string;
28
+ urlParser: import("@smithy/types").UrlParser;
29
+ base64Decoder: import("@smithy/types").Decoder;
30
+ base64Encoder: (_input: Uint8Array | string) => string;
31
+ utf8Decoder: import("@smithy/types").Decoder;
32
+ utf8Encoder: (input: Uint8Array | string) => string;
33
+ disableHostPrefix: boolean;
34
+ serviceId: string;
35
+ profile?: string;
36
+ logger: import("@smithy/types").Logger;
37
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
38
+ customUserAgent?: string | import("@smithy/types").UserAgent;
39
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
40
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
41
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
42
+ logger?: import("@smithy/types").Logger;
43
+ }) => import("@smithy/types").EndpointV2;
44
+ tls?: boolean;
45
+ serviceConfiguredEndpoint?: never;
46
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[] | ({
47
+ schemeId: string;
48
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | undefined;
49
+ signer: import("@aws-sdk/core").AwsSdkSigV4Signer;
50
+ } | {
51
+ schemeId: string;
52
+ identityProvider: (ipc: import("@smithy/types").IdentityProviderConfig) => import("@smithy/types").IdentityProvider<import("@smithy/types").Identity> | (() => Promise<{}>);
53
+ signer: import("@smithy/core").NoAuthSigner;
54
+ })[];
55
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CognitoIdentityHttpAuthSchemeProvider;
56
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
57
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme) => Promise<import("@smithy/types").RequestSigner>);
58
+ signingEscapePath?: boolean;
59
+ systemClockOffset?: number;
60
+ signingRegion?: string;
61
+ signerConstructor?: new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner;
62
+ };