@aws-sdk/client-cognito-identity 3.477.0 → 3.481.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 (101) hide show
  1. package/dist-cjs/commands/CreateIdentityPoolCommand.js +19 -42
  2. package/dist-cjs/commands/DeleteIdentitiesCommand.js +19 -42
  3. package/dist-cjs/commands/DeleteIdentityPoolCommand.js +19 -42
  4. package/dist-cjs/commands/DescribeIdentityCommand.js +19 -42
  5. package/dist-cjs/commands/DescribeIdentityPoolCommand.js +19 -42
  6. package/dist-cjs/commands/GetCredentialsForIdentityCommand.js +18 -41
  7. package/dist-cjs/commands/GetIdCommand.js +18 -41
  8. package/dist-cjs/commands/GetIdentityPoolRolesCommand.js +19 -42
  9. package/dist-cjs/commands/GetOpenIdTokenCommand.js +18 -41
  10. package/dist-cjs/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +19 -42
  11. package/dist-cjs/commands/GetPrincipalTagAttributeMapCommand.js +19 -42
  12. package/dist-cjs/commands/ListIdentitiesCommand.js +19 -42
  13. package/dist-cjs/commands/ListIdentityPoolsCommand.js +19 -42
  14. package/dist-cjs/commands/ListTagsForResourceCommand.js +19 -42
  15. package/dist-cjs/commands/LookupDeveloperIdentityCommand.js +19 -42
  16. package/dist-cjs/commands/MergeDeveloperIdentitiesCommand.js +19 -42
  17. package/dist-cjs/commands/SetIdentityPoolRolesCommand.js +19 -42
  18. package/dist-cjs/commands/SetPrincipalTagAttributeMapCommand.js +19 -42
  19. package/dist-cjs/commands/TagResourceCommand.js +19 -42
  20. package/dist-cjs/commands/UnlinkDeveloperIdentityCommand.js +19 -42
  21. package/dist-cjs/commands/UnlinkIdentityCommand.js +18 -41
  22. package/dist-cjs/commands/UntagResourceCommand.js +19 -42
  23. package/dist-cjs/commands/UpdateIdentityPoolCommand.js +19 -42
  24. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  25. package/dist-cjs/pagination/ListIdentityPoolsPaginator.js +2 -24
  26. package/dist-es/commands/CreateIdentityPoolCommand.js +19 -42
  27. package/dist-es/commands/DeleteIdentitiesCommand.js +19 -42
  28. package/dist-es/commands/DeleteIdentityPoolCommand.js +19 -42
  29. package/dist-es/commands/DescribeIdentityCommand.js +19 -42
  30. package/dist-es/commands/DescribeIdentityPoolCommand.js +19 -42
  31. package/dist-es/commands/GetCredentialsForIdentityCommand.js +18 -41
  32. package/dist-es/commands/GetIdCommand.js +18 -41
  33. package/dist-es/commands/GetIdentityPoolRolesCommand.js +19 -42
  34. package/dist-es/commands/GetOpenIdTokenCommand.js +18 -41
  35. package/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +19 -42
  36. package/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +19 -42
  37. package/dist-es/commands/ListIdentitiesCommand.js +19 -42
  38. package/dist-es/commands/ListIdentityPoolsCommand.js +19 -42
  39. package/dist-es/commands/ListTagsForResourceCommand.js +19 -42
  40. package/dist-es/commands/LookupDeveloperIdentityCommand.js +19 -42
  41. package/dist-es/commands/MergeDeveloperIdentitiesCommand.js +19 -42
  42. package/dist-es/commands/SetIdentityPoolRolesCommand.js +19 -42
  43. package/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +19 -42
  44. package/dist-es/commands/TagResourceCommand.js +19 -42
  45. package/dist-es/commands/UnlinkDeveloperIdentityCommand.js +19 -42
  46. package/dist-es/commands/UnlinkIdentityCommand.js +18 -41
  47. package/dist-es/commands/UntagResourceCommand.js +19 -42
  48. package/dist-es/commands/UpdateIdentityPoolCommand.js +19 -42
  49. package/dist-es/endpoint/EndpointParameters.js +6 -0
  50. package/dist-es/pagination/ListIdentityPoolsPaginator.js +2 -23
  51. package/dist-types/commands/CreateIdentityPoolCommand.d.ts +6 -21
  52. package/dist-types/commands/DeleteIdentitiesCommand.d.ts +6 -21
  53. package/dist-types/commands/DeleteIdentityPoolCommand.d.ts +6 -21
  54. package/dist-types/commands/DescribeIdentityCommand.d.ts +6 -21
  55. package/dist-types/commands/DescribeIdentityPoolCommand.d.ts +6 -21
  56. package/dist-types/commands/GetCredentialsForIdentityCommand.d.ts +6 -21
  57. package/dist-types/commands/GetIdCommand.d.ts +6 -21
  58. package/dist-types/commands/GetIdentityPoolRolesCommand.d.ts +6 -21
  59. package/dist-types/commands/GetOpenIdTokenCommand.d.ts +6 -21
  60. package/dist-types/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +6 -21
  61. package/dist-types/commands/GetPrincipalTagAttributeMapCommand.d.ts +6 -21
  62. package/dist-types/commands/ListIdentitiesCommand.d.ts +6 -21
  63. package/dist-types/commands/ListIdentityPoolsCommand.d.ts +6 -21
  64. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  65. package/dist-types/commands/LookupDeveloperIdentityCommand.d.ts +6 -21
  66. package/dist-types/commands/MergeDeveloperIdentitiesCommand.d.ts +6 -21
  67. package/dist-types/commands/SetIdentityPoolRolesCommand.d.ts +6 -21
  68. package/dist-types/commands/SetPrincipalTagAttributeMapCommand.d.ts +6 -21
  69. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  70. package/dist-types/commands/UnlinkDeveloperIdentityCommand.d.ts +6 -21
  71. package/dist-types/commands/UnlinkIdentityCommand.d.ts +6 -21
  72. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  73. package/dist-types/commands/UpdateIdentityPoolCommand.d.ts +6 -21
  74. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  75. package/dist-types/pagination/ListIdentityPoolsPaginator.d.ts +1 -1
  76. package/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +14 -23
  78. package/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +12 -24
  82. package/dist-types/ts3.4/commands/GetIdCommand.d.ts +12 -23
  83. package/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +12 -24
  86. package/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +14 -23
  89. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  90. package/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +12 -24
  92. package/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +12 -24
  94. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +12 -24
  96. package/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +14 -23
  97. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +14 -23
  99. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  100. package/dist-types/ts3.4/pagination/ListIdentityPoolsPaginator.d.ts +3 -3
  101. package/package.json +12 -11
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class CreateIdentityPoolCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateIdentityPoolCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "CognitoIdentityClient";
31
- const commandName = "CreateIdentityPoolCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "CreateIdentityPool",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_CreateIdentityPoolCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_CreateIdentityPoolCommand)(output, context);
51
- }
11
+ class CreateIdentityPoolCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_signing_1.getAwsAuthPlugin)(config),
21
+ ];
22
+ })
23
+ .s("AWSCognitoIdentityService", "CreateIdentityPool", {})
24
+ .n("CognitoIdentityClient", "CreateIdentityPoolCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_CreateIdentityPoolCommand)
27
+ .de(Aws_json1_1_1.de_CreateIdentityPoolCommand)
28
+ .build() {
52
29
  }
53
30
  exports.CreateIdentityPoolCommand = CreateIdentityPoolCommand;
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class DeleteIdentitiesCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteIdentitiesCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "CognitoIdentityClient";
31
- const commandName = "DeleteIdentitiesCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "DeleteIdentities",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_DeleteIdentitiesCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_DeleteIdentitiesCommand)(output, context);
51
- }
11
+ class DeleteIdentitiesCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_signing_1.getAwsAuthPlugin)(config),
21
+ ];
22
+ })
23
+ .s("AWSCognitoIdentityService", "DeleteIdentities", {})
24
+ .n("CognitoIdentityClient", "DeleteIdentitiesCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_DeleteIdentitiesCommand)
27
+ .de(Aws_json1_1_1.de_DeleteIdentitiesCommand)
28
+ .build() {
52
29
  }
53
30
  exports.DeleteIdentitiesCommand = DeleteIdentitiesCommand;
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class DeleteIdentityPoolCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteIdentityPoolCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "CognitoIdentityClient";
31
- const commandName = "DeleteIdentityPoolCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "DeleteIdentityPool",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_DeleteIdentityPoolCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_DeleteIdentityPoolCommand)(output, context);
51
- }
11
+ class DeleteIdentityPoolCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_signing_1.getAwsAuthPlugin)(config),
21
+ ];
22
+ })
23
+ .s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
24
+ .n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_DeleteIdentityPoolCommand)
27
+ .de(Aws_json1_1_1.de_DeleteIdentityPoolCommand)
28
+ .build() {
52
29
  }
53
30
  exports.DeleteIdentityPoolCommand = DeleteIdentityPoolCommand;
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class DescribeIdentityCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeIdentityCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "CognitoIdentityClient";
31
- const commandName = "DescribeIdentityCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "DescribeIdentity",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_DescribeIdentityCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_DescribeIdentityCommand)(output, context);
51
- }
11
+ class DescribeIdentityCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_signing_1.getAwsAuthPlugin)(config),
21
+ ];
22
+ })
23
+ .s("AWSCognitoIdentityService", "DescribeIdentity", {})
24
+ .n("CognitoIdentityClient", "DescribeIdentityCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_DescribeIdentityCommand)
27
+ .de(Aws_json1_1_1.de_DescribeIdentityCommand)
28
+ .build() {
52
29
  }
53
30
  exports.DescribeIdentityCommand = DescribeIdentityCommand;
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class DescribeIdentityPoolCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeIdentityPoolCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "CognitoIdentityClient";
31
- const commandName = "DescribeIdentityPoolCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "DescribeIdentityPool",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_DescribeIdentityPoolCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_DescribeIdentityPoolCommand)(output, context);
51
- }
11
+ class DescribeIdentityPoolCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_signing_1.getAwsAuthPlugin)(config),
21
+ ];
22
+ })
23
+ .s("AWSCognitoIdentityService", "DescribeIdentityPool", {})
24
+ .n("CognitoIdentityClient", "DescribeIdentityPoolCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_DescribeIdentityPoolCommand)
27
+ .de(Aws_json1_1_1.de_DescribeIdentityPoolCommand)
28
+ .build() {
52
29
  }
53
30
  exports.DescribeIdentityPoolCommand = DescribeIdentityPoolCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class GetCredentialsForIdentityCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCredentialsForIdentityCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "CognitoIdentityClient";
29
- const commandName = "GetCredentialsForIdentityCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSCognitoIdentityService",
38
- operation: "GetCredentialsForIdentity",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_GetCredentialsForIdentityCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_GetCredentialsForIdentityCommand)(output, context);
49
- }
10
+ class GetCredentialsForIdentityCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
22
+ .n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_GetCredentialsForIdentityCommand)
25
+ .de(Aws_json1_1_1.de_GetCredentialsForIdentityCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class GetIdCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetIdCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "CognitoIdentityClient";
29
- const commandName = "GetIdCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSCognitoIdentityService",
38
- operation: "GetId",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_GetIdCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_GetIdCommand)(output, context);
49
- }
10
+ class GetIdCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSCognitoIdentityService", "GetId", {})
22
+ .n("CognitoIdentityClient", "GetIdCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_GetIdCommand)
25
+ .de(Aws_json1_1_1.de_GetIdCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetIdCommand = GetIdCommand;
@@ -6,48 +6,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
6
6
  const middleware_serde_1 = require("@smithy/middleware-serde");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
9
- const types_1 = require("@smithy/types");
9
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
10
10
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
11
- class GetIdentityPoolRolesCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetIdentityPoolRolesCommand.getEndpointParameterInstructions()));
27
- this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration));
28
- const stack = clientStack.concat(this.middlewareStack);
29
- const { logger } = configuration;
30
- const clientName = "CognitoIdentityClient";
31
- const commandName = "GetIdentityPoolRolesCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "GetIdentityPoolRoles",
41
- },
42
- };
43
- const { requestHandler } = configuration;
44
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
45
- }
46
- serialize(input, context) {
47
- return (0, Aws_json1_1_1.se_GetIdentityPoolRolesCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_GetIdentityPoolRolesCommand)(output, context);
51
- }
11
+ class GetIdentityPoolRolesCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ (0, middleware_signing_1.getAwsAuthPlugin)(config),
21
+ ];
22
+ })
23
+ .s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {})
24
+ .n("CognitoIdentityClient", "GetIdentityPoolRolesCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_GetIdentityPoolRolesCommand)
27
+ .de(Aws_json1_1_1.de_GetIdentityPoolRolesCommand)
28
+ .build() {
52
29
  }
53
30
  exports.GetIdentityPoolRolesCommand = GetIdentityPoolRolesCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
10
- class GetOpenIdTokenCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetOpenIdTokenCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "CognitoIdentityClient";
29
- const commandName = "GetOpenIdTokenCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSCognitoIdentityService",
38
- operation: "GetOpenIdToken",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_json1_1_1.se_GetOpenIdTokenCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_GetOpenIdTokenCommand)(output, context);
49
- }
10
+ class GetOpenIdTokenCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("AWSCognitoIdentityService", "GetOpenIdToken", {})
22
+ .n("CognitoIdentityClient", "GetOpenIdTokenCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_GetOpenIdTokenCommand)
25
+ .de(Aws_json1_1_1.de_GetOpenIdTokenCommand)
26
+ .build() {
50
27
  }
51
28
  exports.GetOpenIdTokenCommand = GetOpenIdTokenCommand;