@aws-sdk/client-cognito-identity 3.478.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 (97) 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-es/commands/CreateIdentityPoolCommand.js +19 -42
  26. package/dist-es/commands/DeleteIdentitiesCommand.js +19 -42
  27. package/dist-es/commands/DeleteIdentityPoolCommand.js +19 -42
  28. package/dist-es/commands/DescribeIdentityCommand.js +19 -42
  29. package/dist-es/commands/DescribeIdentityPoolCommand.js +19 -42
  30. package/dist-es/commands/GetCredentialsForIdentityCommand.js +18 -41
  31. package/dist-es/commands/GetIdCommand.js +18 -41
  32. package/dist-es/commands/GetIdentityPoolRolesCommand.js +19 -42
  33. package/dist-es/commands/GetOpenIdTokenCommand.js +18 -41
  34. package/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +19 -42
  35. package/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +19 -42
  36. package/dist-es/commands/ListIdentitiesCommand.js +19 -42
  37. package/dist-es/commands/ListIdentityPoolsCommand.js +19 -42
  38. package/dist-es/commands/ListTagsForResourceCommand.js +19 -42
  39. package/dist-es/commands/LookupDeveloperIdentityCommand.js +19 -42
  40. package/dist-es/commands/MergeDeveloperIdentitiesCommand.js +19 -42
  41. package/dist-es/commands/SetIdentityPoolRolesCommand.js +19 -42
  42. package/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +19 -42
  43. package/dist-es/commands/TagResourceCommand.js +19 -42
  44. package/dist-es/commands/UnlinkDeveloperIdentityCommand.js +19 -42
  45. package/dist-es/commands/UnlinkIdentityCommand.js +18 -41
  46. package/dist-es/commands/UntagResourceCommand.js +19 -42
  47. package/dist-es/commands/UpdateIdentityPoolCommand.js +19 -42
  48. package/dist-es/endpoint/EndpointParameters.js +6 -0
  49. package/dist-types/commands/CreateIdentityPoolCommand.d.ts +6 -21
  50. package/dist-types/commands/DeleteIdentitiesCommand.d.ts +6 -21
  51. package/dist-types/commands/DeleteIdentityPoolCommand.d.ts +6 -21
  52. package/dist-types/commands/DescribeIdentityCommand.d.ts +6 -21
  53. package/dist-types/commands/DescribeIdentityPoolCommand.d.ts +6 -21
  54. package/dist-types/commands/GetCredentialsForIdentityCommand.d.ts +6 -21
  55. package/dist-types/commands/GetIdCommand.d.ts +6 -21
  56. package/dist-types/commands/GetIdentityPoolRolesCommand.d.ts +6 -21
  57. package/dist-types/commands/GetOpenIdTokenCommand.d.ts +6 -21
  58. package/dist-types/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +6 -21
  59. package/dist-types/commands/GetPrincipalTagAttributeMapCommand.d.ts +6 -21
  60. package/dist-types/commands/ListIdentitiesCommand.d.ts +6 -21
  61. package/dist-types/commands/ListIdentityPoolsCommand.d.ts +6 -21
  62. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  63. package/dist-types/commands/LookupDeveloperIdentityCommand.d.ts +6 -21
  64. package/dist-types/commands/MergeDeveloperIdentitiesCommand.d.ts +6 -21
  65. package/dist-types/commands/SetIdentityPoolRolesCommand.d.ts +6 -21
  66. package/dist-types/commands/SetPrincipalTagAttributeMapCommand.d.ts +6 -21
  67. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  68. package/dist-types/commands/UnlinkDeveloperIdentityCommand.d.ts +6 -21
  69. package/dist-types/commands/UnlinkIdentityCommand.d.ts +6 -21
  70. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  71. package/dist-types/commands/UpdateIdentityPoolCommand.d.ts +6 -21
  72. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  73. package/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +14 -23
  74. package/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +14 -23
  76. package/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +12 -24
  79. package/dist-types/ts3.4/commands/GetIdCommand.d.ts +12 -23
  80. package/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +12 -24
  81. package/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +12 -24
  83. package/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +12 -24
  84. package/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  87. package/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +12 -24
  88. package/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +12 -24
  90. package/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +12 -24
  91. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  92. package/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +12 -24
  93. package/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +14 -23
  94. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  95. package/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +14 -23
  96. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  97. package/package.json +10 -10
@@ -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 TagResourceCommand 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, TagResourceCommand.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 = "TagResourceCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "TagResource",
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_TagResourceCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_TagResourceCommand)(output, context);
51
- }
11
+ class TagResourceCommand 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", "TagResource", {})
24
+ .n("CognitoIdentityClient", "TagResourceCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_TagResourceCommand)
27
+ .de(Aws_json1_1_1.de_TagResourceCommand)
28
+ .build() {
52
29
  }
53
30
  exports.TagResourceCommand = TagResourceCommand;
@@ -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 UnlinkDeveloperIdentityCommand 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, UnlinkDeveloperIdentityCommand.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 = "UnlinkDeveloperIdentityCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "UnlinkDeveloperIdentity",
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_UnlinkDeveloperIdentityCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_UnlinkDeveloperIdentityCommand)(output, context);
51
- }
11
+ class UnlinkDeveloperIdentityCommand 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", "UnlinkDeveloperIdentity", {})
24
+ .n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_UnlinkDeveloperIdentityCommand)
27
+ .de(Aws_json1_1_1.de_UnlinkDeveloperIdentityCommand)
28
+ .build() {
52
29
  }
53
30
  exports.UnlinkDeveloperIdentityCommand = UnlinkDeveloperIdentityCommand;
@@ -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 UnlinkIdentityCommand 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, UnlinkIdentityCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "CognitoIdentityClient";
29
- const commandName = "UnlinkIdentityCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "AWSCognitoIdentityService",
38
- operation: "UnlinkIdentity",
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_UnlinkIdentityCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_json1_1_1.de_UnlinkIdentityCommand)(output, context);
49
- }
10
+ class UnlinkIdentityCommand 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", "UnlinkIdentity", {})
22
+ .n("CognitoIdentityClient", "UnlinkIdentityCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_json1_1_1.se_UnlinkIdentityCommand)
25
+ .de(Aws_json1_1_1.de_UnlinkIdentityCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UnlinkIdentityCommand = UnlinkIdentityCommand;
@@ -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 UntagResourceCommand 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, UntagResourceCommand.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 = "UntagResourceCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "UntagResource",
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_UntagResourceCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_UntagResourceCommand)(output, context);
51
- }
11
+ class UntagResourceCommand 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", "UntagResource", {})
24
+ .n("CognitoIdentityClient", "UntagResourceCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_UntagResourceCommand)
27
+ .de(Aws_json1_1_1.de_UntagResourceCommand)
28
+ .build() {
52
29
  }
53
30
  exports.UntagResourceCommand = UntagResourceCommand;
@@ -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 UpdateIdentityPoolCommand 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, UpdateIdentityPoolCommand.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 = "UpdateIdentityPoolCommand";
32
- const handlerExecutionContext = {
33
- logger,
34
- clientName,
35
- commandName,
36
- inputFilterSensitiveLog: (_) => _,
37
- outputFilterSensitiveLog: (_) => _,
38
- [types_1.SMITHY_CONTEXT_KEY]: {
39
- service: "AWSCognitoIdentityService",
40
- operation: "UpdateIdentityPool",
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_UpdateIdentityPoolCommand)(input, context);
48
- }
49
- deserialize(output, context) {
50
- return (0, Aws_json1_1_1.de_UpdateIdentityPoolCommand)(output, context);
51
- }
11
+ class UpdateIdentityPoolCommand 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", "UpdateIdentityPool", {})
24
+ .n("CognitoIdentityClient", "UpdateIdentityPoolCommand")
25
+ .f(void 0, void 0)
26
+ .ser(Aws_json1_1_1.se_UpdateIdentityPoolCommand)
27
+ .de(Aws_json1_1_1.de_UpdateIdentityPoolCommand)
28
+ .build() {
52
29
  }
53
30
  exports.UpdateIdentityPoolCommand = UpdateIdentityPoolCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
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
+ };
@@ -2,48 +2,25 @@ import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_CreateIdentityPoolCommand, se_CreateIdentityPoolCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class CreateIdentityPoolCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateIdentityPoolCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "CognitoIdentityClient";
28
- const commandName = "CreateIdentityPoolCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AWSCognitoIdentityService",
37
- operation: "CreateIdentityPool",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_CreateIdentityPoolCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_CreateIdentityPoolCommand(output, context);
48
- }
8
+ export class CreateIdentityPoolCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getAwsAuthPlugin(config),
18
+ ];
19
+ })
20
+ .s("AWSCognitoIdentityService", "CreateIdentityPool", {})
21
+ .n("CognitoIdentityClient", "CreateIdentityPoolCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_CreateIdentityPoolCommand)
24
+ .de(de_CreateIdentityPoolCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_DeleteIdentitiesCommand, se_DeleteIdentitiesCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class DeleteIdentitiesCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteIdentitiesCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "CognitoIdentityClient";
28
- const commandName = "DeleteIdentitiesCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AWSCognitoIdentityService",
37
- operation: "DeleteIdentities",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_DeleteIdentitiesCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_DeleteIdentitiesCommand(output, context);
48
- }
8
+ export class DeleteIdentitiesCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getAwsAuthPlugin(config),
18
+ ];
19
+ })
20
+ .s("AWSCognitoIdentityService", "DeleteIdentities", {})
21
+ .n("CognitoIdentityClient", "DeleteIdentitiesCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DeleteIdentitiesCommand)
24
+ .de(de_DeleteIdentitiesCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_DeleteIdentityPoolCommand, se_DeleteIdentityPoolCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class DeleteIdentityPoolCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DeleteIdentityPoolCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "CognitoIdentityClient";
28
- const commandName = "DeleteIdentityPoolCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AWSCognitoIdentityService",
37
- operation: "DeleteIdentityPool",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_DeleteIdentityPoolCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_DeleteIdentityPoolCommand(output, context);
48
- }
8
+ export class DeleteIdentityPoolCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getAwsAuthPlugin(config),
18
+ ];
19
+ })
20
+ .s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
21
+ .n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DeleteIdentityPoolCommand)
24
+ .de(de_DeleteIdentityPoolCommand)
25
+ .build() {
49
26
  }
@@ -2,48 +2,25 @@ import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
2
2
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3
3
  import { getSerdePlugin } from "@smithy/middleware-serde";
4
4
  import { Command as $Command } from "@smithy/smithy-client";
5
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { commonParams } from "../endpoint/EndpointParameters";
6
6
  import { de_DescribeIdentityCommand, se_DescribeIdentityCommand } from "../protocols/Aws_json1_1";
7
7
  export { $Command };
8
- export class DescribeIdentityCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, DescribeIdentityCommand.getEndpointParameterInstructions()));
24
- this.middlewareStack.use(getAwsAuthPlugin(configuration));
25
- const stack = clientStack.concat(this.middlewareStack);
26
- const { logger } = configuration;
27
- const clientName = "CognitoIdentityClient";
28
- const commandName = "DescribeIdentityCommand";
29
- const handlerExecutionContext = {
30
- logger,
31
- clientName,
32
- commandName,
33
- inputFilterSensitiveLog: (_) => _,
34
- outputFilterSensitiveLog: (_) => _,
35
- [SMITHY_CONTEXT_KEY]: {
36
- service: "AWSCognitoIdentityService",
37
- operation: "DescribeIdentity",
38
- },
39
- };
40
- const { requestHandler } = configuration;
41
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
42
- }
43
- serialize(input, context) {
44
- return se_DescribeIdentityCommand(input, context);
45
- }
46
- deserialize(output, context) {
47
- return de_DescribeIdentityCommand(output, context);
48
- }
8
+ export class DescribeIdentityCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ getAwsAuthPlugin(config),
18
+ ];
19
+ })
20
+ .s("AWSCognitoIdentityService", "DescribeIdentity", {})
21
+ .n("CognitoIdentityClient", "DescribeIdentityCommand")
22
+ .f(void 0, void 0)
23
+ .ser(se_DescribeIdentityCommand)
24
+ .de(de_DescribeIdentityCommand)
25
+ .build() {
49
26
  }