@aws-sdk/client-ssm-contacts 3.181.0 → 3.183.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 (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/SSMContacts.js +110 -117
  3. package/dist-es/SSMContactsClient.js +22 -28
  4. package/dist-es/commands/AcceptPageCommand.js +21 -28
  5. package/dist-es/commands/ActivateContactChannelCommand.js +21 -28
  6. package/dist-es/commands/CreateContactChannelCommand.js +21 -28
  7. package/dist-es/commands/CreateContactCommand.js +21 -28
  8. package/dist-es/commands/DeactivateContactChannelCommand.js +21 -28
  9. package/dist-es/commands/DeleteContactChannelCommand.js +21 -28
  10. package/dist-es/commands/DeleteContactCommand.js +21 -28
  11. package/dist-es/commands/DescribeEngagementCommand.js +21 -28
  12. package/dist-es/commands/DescribePageCommand.js +21 -28
  13. package/dist-es/commands/GetContactChannelCommand.js +21 -28
  14. package/dist-es/commands/GetContactCommand.js +21 -28
  15. package/dist-es/commands/GetContactPolicyCommand.js +21 -28
  16. package/dist-es/commands/ListContactChannelsCommand.js +21 -28
  17. package/dist-es/commands/ListContactsCommand.js +21 -28
  18. package/dist-es/commands/ListEngagementsCommand.js +21 -28
  19. package/dist-es/commands/ListPageReceiptsCommand.js +21 -28
  20. package/dist-es/commands/ListPagesByContactCommand.js +21 -28
  21. package/dist-es/commands/ListPagesByEngagementCommand.js +21 -28
  22. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  23. package/dist-es/commands/PutContactPolicyCommand.js +21 -28
  24. package/dist-es/commands/SendActivationCodeCommand.js +21 -28
  25. package/dist-es/commands/StartEngagementCommand.js +21 -28
  26. package/dist-es/commands/StopEngagementCommand.js +21 -28
  27. package/dist-es/commands/TagResourceCommand.js +21 -28
  28. package/dist-es/commands/UntagResourceCommand.js +21 -28
  29. package/dist-es/commands/UpdateContactChannelCommand.js +21 -28
  30. package/dist-es/commands/UpdateContactCommand.js +21 -28
  31. package/dist-es/endpoints.js +8 -8
  32. package/dist-es/models/SSMContactsServiceException.js +5 -10
  33. package/dist-es/models/models_0.js +314 -179
  34. package/dist-es/pagination/ListContactChannelsPaginator.js +25 -68
  35. package/dist-es/pagination/ListContactsPaginator.js +25 -68
  36. package/dist-es/pagination/ListEngagementsPaginator.js +25 -68
  37. package/dist-es/pagination/ListPageReceiptsPaginator.js +25 -68
  38. package/dist-es/pagination/ListPagesByContactPaginator.js +25 -68
  39. package/dist-es/pagination/ListPagesByEngagementPaginator.js +25 -68
  40. package/dist-es/protocols/Aws_json1_1.js +1913 -2482
  41. package/dist-es/runtimeConfig.browser.js +26 -12
  42. package/dist-es/runtimeConfig.js +30 -12
  43. package/dist-es/runtimeConfig.native.js +8 -5
  44. package/dist-es/runtimeConfig.shared.js +8 -11
  45. 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 { GetContactPolicyRequestFilterSensitiveLog, GetContactPolicyResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetContactPolicyCommand, serializeAws_json1_1GetContactPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var GetContactPolicyCommand = (function (_super) {
7
- __extends(GetContactPolicyCommand, _super);
8
- function GetContactPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContactPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContactPolicyCommand.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 = "SSMContactsClient";
18
- var commandName = "GetContactPolicyCommand";
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 = "SSMContactsClient";
15
+ const commandName = "GetContactPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContactPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContactPolicyResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContactPolicyCommand.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_json1_1GetContactPolicyCommand(input, context);
33
- };
34
- GetContactPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetContactPolicyCommand(output, context);
36
- };
37
- return GetContactPolicyCommand;
38
- }($Command));
39
- export { GetContactPolicyCommand };
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 { ListContactChannelsRequestFilterSensitiveLog, ListContactChannelsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListContactChannelsCommand, serializeAws_json1_1ListContactChannelsCommand, } from "../protocols/Aws_json1_1";
6
- var ListContactChannelsCommand = (function (_super) {
7
- __extends(ListContactChannelsCommand, _super);
8
- function ListContactChannelsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListContactChannelsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListContactChannelsCommand.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 = "SSMContactsClient";
18
- var commandName = "ListContactChannelsCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListContactChannelsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListContactChannelsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListContactChannelsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListContactChannelsCommand.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_json1_1ListContactChannelsCommand(input, context);
33
- };
34
- ListContactChannelsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListContactChannelsCommand(output, context);
36
- };
37
- return ListContactChannelsCommand;
38
- }($Command));
39
- export { ListContactChannelsCommand };
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 { ListContactsRequestFilterSensitiveLog, ListContactsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListContactsCommand, serializeAws_json1_1ListContactsCommand, } from "../protocols/Aws_json1_1";
6
- var ListContactsCommand = (function (_super) {
7
- __extends(ListContactsCommand, _super);
8
- function ListContactsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListContactsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListContactsCommand.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 = "SSMContactsClient";
18
- var commandName = "ListContactsCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListContactsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListContactsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListContactsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListContactsCommand.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_json1_1ListContactsCommand(input, context);
33
- };
34
- ListContactsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListContactsCommand(output, context);
36
- };
37
- return ListContactsCommand;
38
- }($Command));
39
- export { ListContactsCommand };
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 { ListEngagementsRequestFilterSensitiveLog, ListEngagementsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListEngagementsCommand, serializeAws_json1_1ListEngagementsCommand, } from "../protocols/Aws_json1_1";
6
- var ListEngagementsCommand = (function (_super) {
7
- __extends(ListEngagementsCommand, _super);
8
- function ListEngagementsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListEngagementsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListEngagementsCommand.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 = "SSMContactsClient";
18
- var commandName = "ListEngagementsCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListEngagementsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListEngagementsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListEngagementsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListEngagementsCommand.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_json1_1ListEngagementsCommand(input, context);
33
- };
34
- ListEngagementsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListEngagementsCommand(output, context);
36
- };
37
- return ListEngagementsCommand;
38
- }($Command));
39
- export { ListEngagementsCommand };
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 { ListPageReceiptsRequestFilterSensitiveLog, ListPageReceiptsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListPageReceiptsCommand, serializeAws_json1_1ListPageReceiptsCommand, } from "../protocols/Aws_json1_1";
6
- var ListPageReceiptsCommand = (function (_super) {
7
- __extends(ListPageReceiptsCommand, _super);
8
- function ListPageReceiptsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPageReceiptsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPageReceiptsCommand.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 = "SSMContactsClient";
18
- var commandName = "ListPageReceiptsCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListPageReceiptsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPageReceiptsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPageReceiptsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPageReceiptsCommand.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_json1_1ListPageReceiptsCommand(input, context);
33
- };
34
- ListPageReceiptsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListPageReceiptsCommand(output, context);
36
- };
37
- return ListPageReceiptsCommand;
38
- }($Command));
39
- export { ListPageReceiptsCommand };
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 { ListPagesByContactRequestFilterSensitiveLog, ListPagesByContactResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListPagesByContactCommand, serializeAws_json1_1ListPagesByContactCommand, } from "../protocols/Aws_json1_1";
6
- var ListPagesByContactCommand = (function (_super) {
7
- __extends(ListPagesByContactCommand, _super);
8
- function ListPagesByContactCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPagesByContactCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPagesByContactCommand.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 = "SSMContactsClient";
18
- var commandName = "ListPagesByContactCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListPagesByContactCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPagesByContactRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPagesByContactResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPagesByContactCommand.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_json1_1ListPagesByContactCommand(input, context);
33
- };
34
- ListPagesByContactCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListPagesByContactCommand(output, context);
36
- };
37
- return ListPagesByContactCommand;
38
- }($Command));
39
- export { ListPagesByContactCommand };
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 { ListPagesByEngagementRequestFilterSensitiveLog, ListPagesByEngagementResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListPagesByEngagementCommand, serializeAws_json1_1ListPagesByEngagementCommand, } from "../protocols/Aws_json1_1";
6
- var ListPagesByEngagementCommand = (function (_super) {
7
- __extends(ListPagesByEngagementCommand, _super);
8
- function ListPagesByEngagementCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPagesByEngagementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPagesByEngagementCommand.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 = "SSMContactsClient";
18
- var commandName = "ListPagesByEngagementCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListPagesByEngagementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPagesByEngagementRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPagesByEngagementResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPagesByEngagementCommand.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_json1_1ListPagesByEngagementCommand(input, context);
33
- };
34
- ListPagesByEngagementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListPagesByEngagementCommand(output, context);
36
- };
37
- return ListPagesByEngagementCommand;
38
- }($Command));
39
- export { ListPagesByEngagementCommand };
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 { ListTagsForResourceRequestFilterSensitiveLog, ListTagsForResourceResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
- var ListTagsForResourceCommand = (function (_super) {
7
- __extends(ListTagsForResourceCommand, _super);
8
- function ListTagsForResourceCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsForResourceCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsForResourceCommand.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 = "SSMContactsClient";
18
- var commandName = "ListTagsForResourceCommand";
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 = "SSMContactsClient";
15
+ const commandName = "ListTagsForResourceCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsForResourceRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsForResourceResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsForResourceCommand.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_json1_1ListTagsForResourceCommand(input, context);
33
- };
34
- ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
- };
37
- return ListTagsForResourceCommand;
38
- }($Command));
39
- export { ListTagsForResourceCommand };
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 { PutContactPolicyRequestFilterSensitiveLog, PutContactPolicyResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutContactPolicyCommand, serializeAws_json1_1PutContactPolicyCommand, } from "../protocols/Aws_json1_1";
6
- var PutContactPolicyCommand = (function (_super) {
7
- __extends(PutContactPolicyCommand, _super);
8
- function PutContactPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutContactPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutContactPolicyCommand.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 = "SSMContactsClient";
18
- var commandName = "PutContactPolicyCommand";
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 = "SSMContactsClient";
15
+ const commandName = "PutContactPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutContactPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: PutContactPolicyResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutContactPolicyCommand.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_json1_1PutContactPolicyCommand(input, context);
33
- };
34
- PutContactPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutContactPolicyCommand(output, context);
36
- };
37
- return PutContactPolicyCommand;
38
- }($Command));
39
- export { PutContactPolicyCommand };
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 { SendActivationCodeRequestFilterSensitiveLog, SendActivationCodeResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1SendActivationCodeCommand, serializeAws_json1_1SendActivationCodeCommand, } from "../protocols/Aws_json1_1";
6
- var SendActivationCodeCommand = (function (_super) {
7
- __extends(SendActivationCodeCommand, _super);
8
- function SendActivationCodeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class SendActivationCodeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- SendActivationCodeCommand.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 = "SSMContactsClient";
18
- var commandName = "SendActivationCodeCommand";
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 = "SSMContactsClient";
15
+ const commandName = "SendActivationCodeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: SendActivationCodeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: SendActivationCodeResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- SendActivationCodeCommand.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_json1_1SendActivationCodeCommand(input, context);
33
- };
34
- SendActivationCodeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1SendActivationCodeCommand(output, context);
36
- };
37
- return SendActivationCodeCommand;
38
- }($Command));
39
- export { SendActivationCodeCommand };
31
+ }
32
+ }