@aws-sdk/client-cognito-identity 3.36.0 → 3.39.0

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 (78) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist-cjs/CognitoIdentity.js +0 -16
  3. package/dist-cjs/CognitoIdentityClient.js +0 -21
  4. package/dist-cjs/commands/CreateIdentityPoolCommand.js +0 -50
  5. package/dist-cjs/commands/DeleteIdentitiesCommand.js +0 -26
  6. package/dist-cjs/commands/DeleteIdentityPoolCommand.js +0 -26
  7. package/dist-cjs/commands/DescribeIdentityCommand.js +0 -26
  8. package/dist-cjs/commands/DescribeIdentityPoolCommand.js +0 -26
  9. package/dist-cjs/commands/GetCredentialsForIdentityCommand.js +0 -28
  10. package/dist-cjs/commands/GetIdCommand.js +0 -26
  11. package/dist-cjs/commands/GetIdentityPoolRolesCommand.js +0 -25
  12. package/dist-cjs/commands/GetOpenIdTokenCommand.js +0 -28
  13. package/dist-cjs/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +0 -36
  14. package/dist-cjs/commands/GetPrincipalTagAttributeMapCommand.js +0 -24
  15. package/dist-cjs/commands/ListIdentitiesCommand.js +0 -25
  16. package/dist-cjs/commands/ListIdentityPoolsCommand.js +0 -25
  17. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
  18. package/dist-cjs/commands/LookupDeveloperIdentityCommand.js +0 -40
  19. package/dist-cjs/commands/MergeDeveloperIdentitiesCommand.js +0 -36
  20. package/dist-cjs/commands/SetIdentityPoolRolesCommand.js +0 -25
  21. package/dist-cjs/commands/SetPrincipalTagAttributeMapCommand.js +0 -24
  22. package/dist-cjs/commands/TagResourceCommand.js +0 -38
  23. package/dist-cjs/commands/UnlinkDeveloperIdentityCommand.js +0 -28
  24. package/dist-cjs/commands/UnlinkIdentityCommand.js +0 -27
  25. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  26. package/dist-cjs/commands/UpdateIdentityPoolCommand.js +0 -25
  27. package/dist-cjs/commands/index.js +26 -0
  28. package/dist-cjs/endpoints.js +6 -1
  29. package/dist-cjs/index.js +4 -27
  30. package/dist-cjs/models/models_0.js +0 -171
  31. package/dist-cjs/pagination/ListIdentityPoolsPaginator.js +0 -10
  32. package/dist-cjs/pagination/index.js +5 -0
  33. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  34. package/dist-cjs/runtimeConfig.browser.js +1 -5
  35. package/dist-cjs/runtimeConfig.js +1 -5
  36. package/dist-cjs/runtimeConfig.native.js +0 -3
  37. package/dist-cjs/runtimeConfig.shared.js +0 -3
  38. package/dist-es/commands/index.js +23 -0
  39. package/dist-es/endpoints.js +6 -1
  40. package/dist-es/index.js +4 -27
  41. package/dist-es/pagination/index.js +2 -0
  42. package/dist-types/commands/index.d.ts +23 -0
  43. package/dist-types/index.d.ts +4 -27
  44. package/dist-types/pagination/index.d.ts +2 -0
  45. package/dist-types/ts3.4/CognitoIdentity.d.ts +24 -199
  46. package/dist-types/ts3.4/CognitoIdentityClient.d.ts +24 -102
  47. package/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +2 -46
  48. package/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +2 -22
  49. package/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +2 -22
  50. package/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +2 -22
  51. package/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +2 -22
  52. package/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +2 -24
  53. package/dist-types/ts3.4/commands/GetIdCommand.d.ts +2 -22
  54. package/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +2 -21
  55. package/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +2 -24
  56. package/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +2 -32
  57. package/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +2 -20
  58. package/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +2 -21
  59. package/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +2 -21
  60. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -23
  61. package/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +2 -36
  62. package/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +2 -32
  63. package/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +2 -21
  64. package/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +2 -20
  65. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -34
  66. package/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +2 -24
  67. package/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +2 -23
  68. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
  69. package/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +2 -21
  70. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  71. package/dist-types/ts3.4/index.d.ts +4 -27
  72. package/dist-types/ts3.4/models/models_0.d.ts +240 -862
  73. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  74. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  75. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  76. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  77. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  78. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity
9
+
10
+
11
+
12
+
13
+
14
+ # [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
15
+
16
+
17
+ ### Features
18
+
19
+ * **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
20
+ * **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
21
+ * **clients:** update clients as of 2021/10/22 ([#2924](https://github.com/aws/aws-sdk-js-v3/issues/2924)) ([4d79819](https://github.com/aws/aws-sdk-js-v3/commit/4d798196e652f8cfdc1c155a46ac6b6aa31b2656))
22
+
23
+
24
+
25
+
26
+
27
+ # [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
28
+
29
+
30
+ ### Features
31
+
32
+ * **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
33
+
34
+
35
+
36
+
37
+
38
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
44
+
45
+
46
+
47
+
48
+
6
49
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
50
 
8
51
 
@@ -25,22 +25,6 @@ const UnlinkDeveloperIdentityCommand_1 = require("./commands/UnlinkDeveloperIden
25
25
  const UnlinkIdentityCommand_1 = require("./commands/UnlinkIdentityCommand");
26
26
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
27
27
  const UpdateIdentityPoolCommand_1 = require("./commands/UpdateIdentityPoolCommand");
28
- /**
29
- * <fullname>Amazon Cognito Federated Identities</fullname>
30
- * <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
31
- * credentials to mobile devices and other untrusted environments. It uniquely identifies a
32
- * device and supplies the user with a consistent identity over the lifetime of an
33
- * application.</p>
34
- * <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
35
- * more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
36
- * Cognito user pool, and you can also choose to support unauthenticated access from your app.
37
- * Cognito delivers a unique identifier for each user and acts as an OpenID token provider
38
- * trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS
39
- * credentials.</p>
40
- * <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
41
- * see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication Flow</a>.</p>
42
- * <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated Identities</a>.</p>
43
- */
44
28
  class CognitoIdentity extends CognitoIdentityClient_1.CognitoIdentityClient {
45
29
  createIdentityPool(args, optionsOrCb, cb) {
46
30
  const command = new CreateIdentityPoolCommand_1.CreateIdentityPoolCommand(args);
@@ -10,22 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>Amazon Cognito Federated Identities</fullname>
15
- * <p>Amazon Cognito Federated Identities is a web service that delivers scoped temporary
16
- * credentials to mobile devices and other untrusted environments. It uniquely identifies a
17
- * device and supplies the user with a consistent identity over the lifetime of an
18
- * application.</p>
19
- * <p>Using Amazon Cognito Federated Identities, you can enable authentication with one or
20
- * more third-party identity providers (Facebook, Google, or Login with Amazon) or an Amazon
21
- * Cognito user pool, and you can also choose to support unauthenticated access from your app.
22
- * Cognito delivers a unique identifier for each user and acts as an OpenID token provider
23
- * trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS
24
- * credentials.</p>
25
- * <p>For a description of the authentication flow from the Amazon Cognito Developer Guide
26
- * see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html">Authentication Flow</a>.</p>
27
- * <p>For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-identity.html">Amazon Cognito Federated Identities</a>.</p>
28
- */
29
13
  class CognitoIdentityClient extends smithy_client_1.Client {
30
14
  constructor(configuration) {
31
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -43,11 +27,6 @@ class CognitoIdentityClient extends smithy_client_1.Client {
43
27
  this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
44
28
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
45
29
  }
46
- /**
47
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
48
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
49
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
50
- */
51
30
  destroy() {
52
31
  super.destroy();
53
32
  }
@@ -6,61 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Creates a new identity pool. The identity pool is a store of user identity
11
- * information that is specific to your AWS account. The keys for <code>SupportedLoginProviders</code> are as follows:</p>
12
- *
13
- * <ul>
14
- * <li>
15
- * <p>Facebook: <code>graph.facebook.com</code>
16
- * </p>
17
- * </li>
18
- * <li>
19
- * <p>Google: <code>accounts.google.com</code>
20
- * </p>
21
- * </li>
22
- * <li>
23
- * <p>Amazon: <code>www.amazon.com</code>
24
- * </p>
25
- * </li>
26
- * <li>
27
- * <p>Twitter: <code>api.twitter.com</code>
28
- * </p>
29
- * </li>
30
- * <li>
31
- * <p>Digits: <code>www.digits.com</code>
32
- * </p>
33
- * </li>
34
- * </ul>
35
- *
36
- * <p>You must use AWS Developer credentials to call this API.</p>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { CognitoIdentityClient, CreateIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
41
- * // const { CognitoIdentityClient, CreateIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
42
- * const client = new CognitoIdentityClient(config);
43
- * const command = new CreateIdentityPoolCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link CreateIdentityPoolCommandInput} for command's `input` shape.
48
- * @see {@link CreateIdentityPoolCommandOutput} for command's `response` shape.
49
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
9
  class CreateIdentityPoolCommand extends smithy_client_1.Command {
53
- // Start section: command_properties
54
- // End section: command_properties
55
10
  constructor(input) {
56
- // Start section: command_constructor
57
11
  super();
58
12
  this.input = input;
59
- // End section: command_constructor
60
13
  }
61
- /**
62
- * @internal
63
- */
64
14
  resolveMiddleware(clientStack, configuration, options) {
65
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
66
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,37 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Deletes identities from an identity pool. You can specify a list of 1-60 identities
11
- * that you want to delete.</p>
12
- * <p>You must use AWS Developer credentials to call this API.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CognitoIdentityClient, DeleteIdentitiesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
17
- * // const { CognitoIdentityClient, DeleteIdentitiesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
18
- * const client = new CognitoIdentityClient(config);
19
- * const command = new DeleteIdentitiesCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DeleteIdentitiesCommandInput} for command's `input` shape.
24
- * @see {@link DeleteIdentitiesCommandOutput} for command's `response` shape.
25
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
9
  class DeleteIdentitiesCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
10
  constructor(input) {
32
- // Start section: command_constructor
33
11
  super();
34
12
  this.input = input;
35
- // End section: command_constructor
36
13
  }
37
- /**
38
- * @internal
39
- */
40
14
  resolveMiddleware(clientStack, configuration, options) {
41
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,37 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Deletes an identity pool. Once a pool is deleted, users will not be able to
11
- * authenticate with the pool.</p>
12
- * <p>You must use AWS Developer credentials to call this API.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CognitoIdentityClient, DeleteIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
17
- * // const { CognitoIdentityClient, DeleteIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
18
- * const client = new CognitoIdentityClient(config);
19
- * const command = new DeleteIdentityPoolCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DeleteIdentityPoolCommandInput} for command's `input` shape.
24
- * @see {@link DeleteIdentityPoolCommandOutput} for command's `response` shape.
25
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
9
  class DeleteIdentityPoolCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
10
  constructor(input) {
32
- // Start section: command_constructor
33
11
  super();
34
12
  this.input = input;
35
- // End section: command_constructor
36
13
  }
37
- /**
38
- * @internal
39
- */
40
14
  resolveMiddleware(clientStack, configuration, options) {
41
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,37 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Returns metadata related to the given identity, including when the identity was
11
- * created and any associated linked logins.</p>
12
- * <p>You must use AWS Developer credentials to call this API.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CognitoIdentityClient, DescribeIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
17
- * // const { CognitoIdentityClient, DescribeIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
18
- * const client = new CognitoIdentityClient(config);
19
- * const command = new DescribeIdentityCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DescribeIdentityCommandInput} for command's `input` shape.
24
- * @see {@link DescribeIdentityCommandOutput} for command's `response` shape.
25
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
9
  class DescribeIdentityCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
10
  constructor(input) {
32
- // Start section: command_constructor
33
11
  super();
34
12
  this.input = input;
35
- // End section: command_constructor
36
13
  }
37
- /**
38
- * @internal
39
- */
40
14
  resolveMiddleware(clientStack, configuration, options) {
41
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,37 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Gets details about a particular identity pool, including the pool name, ID
11
- * description, creation date, and current number of users.</p>
12
- * <p>You must use AWS Developer credentials to call this API.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CognitoIdentityClient, DescribeIdentityPoolCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
17
- * // const { CognitoIdentityClient, DescribeIdentityPoolCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
18
- * const client = new CognitoIdentityClient(config);
19
- * const command = new DescribeIdentityPoolCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DescribeIdentityPoolCommandInput} for command's `input` shape.
24
- * @see {@link DescribeIdentityPoolCommandOutput} for command's `response` shape.
25
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
9
  class DescribeIdentityPoolCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
10
  constructor(input) {
32
- // Start section: command_constructor
33
11
  super();
34
12
  this.input = input;
35
- // End section: command_constructor
36
13
  }
37
- /**
38
- * @internal
39
- */
40
14
  resolveMiddleware(clientStack, configuration, options) {
41
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Returns credentials for the provided identity ID. Any provided logins will be
10
- * validated against supported login providers. If the token is for
11
- * cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service
12
- * with the appropriate role for the token.</p>
13
- * <p>This is a public API. You do not need any credentials to call this API.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CognitoIdentityClient, GetCredentialsForIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
18
- * // const { CognitoIdentityClient, GetCredentialsForIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
19
- * const client = new CognitoIdentityClient(config);
20
- * const command = new GetCredentialsForIdentityCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link GetCredentialsForIdentityCommandInput} for command's `input` shape.
25
- * @see {@link GetCredentialsForIdentityCommandOutput} for command's `response` shape.
26
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class GetCredentialsForIdentityCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an
10
- * implicit linked account.</p>
11
- * <p>This is a public API. You do not need any credentials to call this API.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityClient, GetIdCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
16
- * // const { CognitoIdentityClient, GetIdCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
17
- * const client = new CognitoIdentityClient(config);
18
- * const command = new GetIdCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link GetIdCommandInput} for command's `input` shape.
23
- * @see {@link GetIdCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class GetIdCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Gets the roles for an identity pool.</p>
11
- * <p>You must use AWS Developer credentials to call this API.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityClient, GetIdentityPoolRolesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
16
- * // const { CognitoIdentityClient, GetIdentityPoolRolesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
17
- * const client = new CognitoIdentityClient(config);
18
- * const command = new GetIdentityPoolRolesCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link GetIdentityPoolRolesCommandInput} for command's `input` shape.
23
- * @see {@link GetIdentityPoolRolesCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class GetIdentityPoolRolesCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by
10
- * <a>GetId</a>. You can optionally add additional logins for the identity.
11
- * Supplying multiple logins creates an implicit link.</p>
12
- * <p>The OpenID token is valid for 10 minutes.</p>
13
- * <p>This is a public API. You do not need any credentials to call this API.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CognitoIdentityClient, GetOpenIdTokenCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
18
- * // const { CognitoIdentityClient, GetOpenIdTokenCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
19
- * const client = new CognitoIdentityClient(config);
20
- * const command = new GetOpenIdTokenCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link GetOpenIdTokenCommandInput} for command's `input` shape.
25
- * @see {@link GetOpenIdTokenCommandOutput} for command's `response` shape.
26
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class GetOpenIdTokenCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -6,47 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Registers (or retrieves) a Cognito <code>IdentityId</code> and an OpenID Connect
11
- * token for a user authenticated by your backend authentication process. Supplying multiple
12
- * logins will create an implicit linked account. You can only specify one developer provider
13
- * as part of the <code>Logins</code> map, which is linked to the identity pool. The developer
14
- * provider is the "domain" by which Cognito will refer to your users.</p>
15
- * <p>You can use <code>GetOpenIdTokenForDeveloperIdentity</code> to create a new identity
16
- * and to link new logins (that is, user credentials issued by a public provider or developer
17
- * provider) to an existing identity. When you want to create a new identity, the
18
- * <code>IdentityId</code> should be null. When you want to associate a new login with an
19
- * existing authenticated/unauthenticated identity, you can do so by providing the existing
20
- * <code>IdentityId</code>. This API will create the identity in the specified
21
- * <code>IdentityPoolId</code>.</p>
22
- * <p>You must use AWS Developer credentials to call this API.</p>
23
- * @example
24
- * Use a bare-bones client and the command you need to make an API call.
25
- * ```javascript
26
- * import { CognitoIdentityClient, GetOpenIdTokenForDeveloperIdentityCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
27
- * // const { CognitoIdentityClient, GetOpenIdTokenForDeveloperIdentityCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
28
- * const client = new CognitoIdentityClient(config);
29
- * const command = new GetOpenIdTokenForDeveloperIdentityCommand(input);
30
- * const response = await client.send(command);
31
- * ```
32
- *
33
- * @see {@link GetOpenIdTokenForDeveloperIdentityCommandInput} for command's `input` shape.
34
- * @see {@link GetOpenIdTokenForDeveloperIdentityCommandOutput} for command's `response` shape.
35
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
36
- *
37
- */
38
9
  class GetOpenIdTokenForDeveloperIdentityCommand extends smithy_client_1.Command {
39
- // Start section: command_properties
40
- // End section: command_properties
41
10
  constructor(input) {
42
- // Start section: command_constructor
43
11
  super();
44
12
  this.input = input;
45
- // End section: command_constructor
46
13
  }
47
- /**
48
- * @internal
49
- */
50
14
  resolveMiddleware(clientStack, configuration, options) {
51
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
52
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,35 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Use <code>GetPrincipalTagAttributeMap</code> to list all mappings between <code>PrincipalTags</code> and user attributes.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CognitoIdentityClient, GetPrincipalTagAttributeMapCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
15
- * // const { CognitoIdentityClient, GetPrincipalTagAttributeMapCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
16
- * const client = new CognitoIdentityClient(config);
17
- * const command = new GetPrincipalTagAttributeMapCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetPrincipalTagAttributeMapCommandInput} for command's `input` shape.
22
- * @see {@link GetPrincipalTagAttributeMapCommandOutput} for command's `response` shape.
23
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
9
  class GetPrincipalTagAttributeMapCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
10
  constructor(input) {
30
- // Start section: command_constructor
31
11
  super();
32
12
  this.input = input;
33
- // End section: command_constructor
34
13
  }
35
- /**
36
- * @internal
37
- */
38
14
  resolveMiddleware(clientStack, configuration, options) {
39
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Lists the identities in an identity pool.</p>
11
- * <p>You must use AWS Developer credentials to call this API.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityClient, ListIdentitiesCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
16
- * // const { CognitoIdentityClient, ListIdentitiesCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
17
- * const client = new CognitoIdentityClient(config);
18
- * const command = new ListIdentitiesCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListIdentitiesCommandInput} for command's `input` shape.
23
- * @see {@link ListIdentitiesCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class ListIdentitiesCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Lists all of the Cognito identity pools registered for your account.</p>
11
- * <p>You must use AWS Developer credentials to call this API.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityClient, ListIdentityPoolsCommand } from "@aws-sdk/client-cognito-identity"; // ES Modules import
16
- * // const { CognitoIdentityClient, ListIdentityPoolsCommand } = require("@aws-sdk/client-cognito-identity"); // CommonJS import
17
- * const client = new CognitoIdentityClient(config);
18
- * const command = new ListIdentityPoolsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link ListIdentityPoolsCommandInput} for command's `input` shape.
23
- * @see {@link ListIdentityPoolsCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class ListIdentityPoolsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));