@aws-sdk/client-cognito-sync 3.185.0 → 3.188.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 (29) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/CognitoSync.js +70 -77
  3. package/dist-es/CognitoSyncClient.js +22 -28
  4. package/dist-es/commands/BulkPublishCommand.js +21 -28
  5. package/dist-es/commands/DeleteDatasetCommand.js +21 -28
  6. package/dist-es/commands/DescribeDatasetCommand.js +21 -28
  7. package/dist-es/commands/DescribeIdentityPoolUsageCommand.js +21 -28
  8. package/dist-es/commands/DescribeIdentityUsageCommand.js +21 -28
  9. package/dist-es/commands/GetBulkPublishDetailsCommand.js +21 -28
  10. package/dist-es/commands/GetCognitoEventsCommand.js +21 -28
  11. package/dist-es/commands/GetIdentityPoolConfigurationCommand.js +21 -28
  12. package/dist-es/commands/ListDatasetsCommand.js +21 -28
  13. package/dist-es/commands/ListIdentityPoolUsageCommand.js +21 -28
  14. package/dist-es/commands/ListRecordsCommand.js +21 -28
  15. package/dist-es/commands/RegisterDeviceCommand.js +21 -28
  16. package/dist-es/commands/SetCognitoEventsCommand.js +22 -29
  17. package/dist-es/commands/SetIdentityPoolConfigurationCommand.js +21 -28
  18. package/dist-es/commands/SubscribeToDatasetCommand.js +21 -28
  19. package/dist-es/commands/UnsubscribeFromDatasetCommand.js +21 -28
  20. package/dist-es/commands/UpdateRecordsCommand.js +21 -28
  21. package/dist-es/endpoints.js +8 -8
  22. package/dist-es/models/CognitoSyncServiceException.js +5 -10
  23. package/dist-es/models/models_0.js +263 -184
  24. package/dist-es/protocols/Aws_restJson1.js +1389 -1942
  25. package/dist-es/runtimeConfig.browser.js +26 -12
  26. package/dist-es/runtimeConfig.js +30 -12
  27. package/dist-es/runtimeConfig.native.js +8 -5
  28. package/dist-es/runtimeConfig.shared.js +8 -11
  29. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeIdentityPoolUsageRequestFilterSensitiveLog, DescribeIdentityPoolUsageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeIdentityPoolUsageCommand, serializeAws_restJson1DescribeIdentityPoolUsageCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeIdentityPoolUsageCommand = (function (_super) {
7
- __extends(DescribeIdentityPoolUsageCommand, _super);
8
- function DescribeIdentityPoolUsageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeIdentityPoolUsageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeIdentityPoolUsageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "DescribeIdentityPoolUsageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "DescribeIdentityPoolUsageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeIdentityPoolUsageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeIdentityPoolUsageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeIdentityPoolUsageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeIdentityPoolUsageCommand(input, context);
33
- };
34
- DescribeIdentityPoolUsageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeIdentityPoolUsageCommand(output, context);
36
- };
37
- return DescribeIdentityPoolUsageCommand;
38
- }($Command));
39
- export { DescribeIdentityPoolUsageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeIdentityUsageRequestFilterSensitiveLog, DescribeIdentityUsageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeIdentityUsageCommand, serializeAws_restJson1DescribeIdentityUsageCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeIdentityUsageCommand = (function (_super) {
7
- __extends(DescribeIdentityUsageCommand, _super);
8
- function DescribeIdentityUsageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeIdentityUsageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeIdentityUsageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "DescribeIdentityUsageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "DescribeIdentityUsageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeIdentityUsageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeIdentityUsageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeIdentityUsageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeIdentityUsageCommand(input, context);
33
- };
34
- DescribeIdentityUsageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeIdentityUsageCommand(output, context);
36
- };
37
- return DescribeIdentityUsageCommand;
38
- }($Command));
39
- export { DescribeIdentityUsageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetBulkPublishDetailsRequestFilterSensitiveLog, GetBulkPublishDetailsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBulkPublishDetailsCommand, serializeAws_restJson1GetBulkPublishDetailsCommand, } from "../protocols/Aws_restJson1";
6
- var GetBulkPublishDetailsCommand = (function (_super) {
7
- __extends(GetBulkPublishDetailsCommand, _super);
8
- function GetBulkPublishDetailsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBulkPublishDetailsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBulkPublishDetailsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "GetBulkPublishDetailsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "GetBulkPublishDetailsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBulkPublishDetailsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBulkPublishDetailsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBulkPublishDetailsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetBulkPublishDetailsCommand(input, context);
33
- };
34
- GetBulkPublishDetailsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBulkPublishDetailsCommand(output, context);
36
- };
37
- return GetBulkPublishDetailsCommand;
38
- }($Command));
39
- export { GetBulkPublishDetailsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetCognitoEventsRequestFilterSensitiveLog, GetCognitoEventsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetCognitoEventsCommand, serializeAws_restJson1GetCognitoEventsCommand, } from "../protocols/Aws_restJson1";
6
- var GetCognitoEventsCommand = (function (_super) {
7
- __extends(GetCognitoEventsCommand, _super);
8
- function GetCognitoEventsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCognitoEventsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCognitoEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "GetCognitoEventsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "GetCognitoEventsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCognitoEventsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCognitoEventsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCognitoEventsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetCognitoEventsCommand(input, context);
33
- };
34
- GetCognitoEventsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetCognitoEventsCommand(output, context);
36
- };
37
- return GetCognitoEventsCommand;
38
- }($Command));
39
- export { GetCognitoEventsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetIdentityPoolConfigurationRequestFilterSensitiveLog, GetIdentityPoolConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetIdentityPoolConfigurationCommand, serializeAws_restJson1GetIdentityPoolConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var GetIdentityPoolConfigurationCommand = (function (_super) {
7
- __extends(GetIdentityPoolConfigurationCommand, _super);
8
- function GetIdentityPoolConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetIdentityPoolConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetIdentityPoolConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "GetIdentityPoolConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "GetIdentityPoolConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetIdentityPoolConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetIdentityPoolConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetIdentityPoolConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetIdentityPoolConfigurationCommand(input, context);
33
- };
34
- GetIdentityPoolConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetIdentityPoolConfigurationCommand(output, context);
36
- };
37
- return GetIdentityPoolConfigurationCommand;
38
- }($Command));
39
- export { GetIdentityPoolConfigurationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListDatasetsRequestFilterSensitiveLog, ListDatasetsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListDatasetsCommand, serializeAws_restJson1ListDatasetsCommand, } from "../protocols/Aws_restJson1";
6
- var ListDatasetsCommand = (function (_super) {
7
- __extends(ListDatasetsCommand, _super);
8
- function ListDatasetsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListDatasetsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListDatasetsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "ListDatasetsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "ListDatasetsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListDatasetsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListDatasetsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListDatasetsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListDatasetsCommand(input, context);
33
- };
34
- ListDatasetsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListDatasetsCommand(output, context);
36
- };
37
- return ListDatasetsCommand;
38
- }($Command));
39
- export { ListDatasetsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListIdentityPoolUsageRequestFilterSensitiveLog, ListIdentityPoolUsageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListIdentityPoolUsageCommand, serializeAws_restJson1ListIdentityPoolUsageCommand, } from "../protocols/Aws_restJson1";
6
- var ListIdentityPoolUsageCommand = (function (_super) {
7
- __extends(ListIdentityPoolUsageCommand, _super);
8
- function ListIdentityPoolUsageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListIdentityPoolUsageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListIdentityPoolUsageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "ListIdentityPoolUsageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "ListIdentityPoolUsageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListIdentityPoolUsageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListIdentityPoolUsageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListIdentityPoolUsageCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListIdentityPoolUsageCommand(input, context);
33
- };
34
- ListIdentityPoolUsageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListIdentityPoolUsageCommand(output, context);
36
- };
37
- return ListIdentityPoolUsageCommand;
38
- }($Command));
39
- export { ListIdentityPoolUsageCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListRecordsRequestFilterSensitiveLog, ListRecordsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListRecordsCommand, serializeAws_restJson1ListRecordsCommand, } from "../protocols/Aws_restJson1";
6
- var ListRecordsCommand = (function (_super) {
7
- __extends(ListRecordsCommand, _super);
8
- function ListRecordsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListRecordsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListRecordsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "ListRecordsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "ListRecordsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListRecordsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListRecordsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListRecordsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ListRecordsCommand(input, context);
33
- };
34
- ListRecordsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListRecordsCommand(output, context);
36
- };
37
- return ListRecordsCommand;
38
- }($Command));
39
- export { ListRecordsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RegisterDeviceRequestFilterSensitiveLog, RegisterDeviceResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1RegisterDeviceCommand, serializeAws_restJson1RegisterDeviceCommand, } from "../protocols/Aws_restJson1";
6
- var RegisterDeviceCommand = (function (_super) {
7
- __extends(RegisterDeviceCommand, _super);
8
- function RegisterDeviceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RegisterDeviceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RegisterDeviceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "RegisterDeviceCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "RegisterDeviceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RegisterDeviceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RegisterDeviceResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RegisterDeviceCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1RegisterDeviceCommand(input, context);
33
- };
34
- RegisterDeviceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1RegisterDeviceCommand(output, context);
36
- };
37
- return RegisterDeviceCommand;
38
- }($Command));
39
- export { RegisterDeviceCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { SetCognitoEventsRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1SetCognitoEventsCommand, serializeAws_restJson1SetCognitoEventsCommand, } from "../protocols/Aws_restJson1";
6
- var SetCognitoEventsCommand = (function (_super) {
7
- __extends(SetCognitoEventsCommand, _super);
8
- function SetCognitoEventsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SetCognitoEventsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SetCognitoEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "CognitoSyncClient";
18
- var commandName = "SetCognitoEventsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "CognitoSyncClient";
15
+ const commandName = "SetCognitoEventsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SetCognitoEventsRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SetCognitoEventsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1SetCognitoEventsCommand(input, context);
33
- };
34
- SetCognitoEventsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1SetCognitoEventsCommand(output, context);
36
- };
37
- return SetCognitoEventsCommand;
38
- }($Command));
39
- export { SetCognitoEventsCommand };
31
+ }
32
+ }