@aws-sdk/client-ssm-contacts 3.180.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 (46) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +33 -27
  3. package/dist-es/SSMContacts.js +110 -117
  4. package/dist-es/SSMContactsClient.js +22 -28
  5. package/dist-es/commands/AcceptPageCommand.js +21 -28
  6. package/dist-es/commands/ActivateContactChannelCommand.js +21 -28
  7. package/dist-es/commands/CreateContactChannelCommand.js +21 -28
  8. package/dist-es/commands/CreateContactCommand.js +21 -28
  9. package/dist-es/commands/DeactivateContactChannelCommand.js +21 -28
  10. package/dist-es/commands/DeleteContactChannelCommand.js +21 -28
  11. package/dist-es/commands/DeleteContactCommand.js +21 -28
  12. package/dist-es/commands/DescribeEngagementCommand.js +21 -28
  13. package/dist-es/commands/DescribePageCommand.js +21 -28
  14. package/dist-es/commands/GetContactChannelCommand.js +21 -28
  15. package/dist-es/commands/GetContactCommand.js +21 -28
  16. package/dist-es/commands/GetContactPolicyCommand.js +21 -28
  17. package/dist-es/commands/ListContactChannelsCommand.js +21 -28
  18. package/dist-es/commands/ListContactsCommand.js +21 -28
  19. package/dist-es/commands/ListEngagementsCommand.js +21 -28
  20. package/dist-es/commands/ListPageReceiptsCommand.js +21 -28
  21. package/dist-es/commands/ListPagesByContactCommand.js +21 -28
  22. package/dist-es/commands/ListPagesByEngagementCommand.js +21 -28
  23. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  24. package/dist-es/commands/PutContactPolicyCommand.js +21 -28
  25. package/dist-es/commands/SendActivationCodeCommand.js +21 -28
  26. package/dist-es/commands/StartEngagementCommand.js +21 -28
  27. package/dist-es/commands/StopEngagementCommand.js +21 -28
  28. package/dist-es/commands/TagResourceCommand.js +21 -28
  29. package/dist-es/commands/UntagResourceCommand.js +21 -28
  30. package/dist-es/commands/UpdateContactChannelCommand.js +21 -28
  31. package/dist-es/commands/UpdateContactCommand.js +21 -28
  32. package/dist-es/endpoints.js +8 -8
  33. package/dist-es/models/SSMContactsServiceException.js +5 -10
  34. package/dist-es/models/models_0.js +314 -179
  35. package/dist-es/pagination/ListContactChannelsPaginator.js +25 -68
  36. package/dist-es/pagination/ListContactsPaginator.js +25 -68
  37. package/dist-es/pagination/ListEngagementsPaginator.js +25 -68
  38. package/dist-es/pagination/ListPageReceiptsPaginator.js +25 -68
  39. package/dist-es/pagination/ListPagesByContactPaginator.js +25 -68
  40. package/dist-es/pagination/ListPagesByEngagementPaginator.js +25 -68
  41. package/dist-es/protocols/Aws_json1_1.js +1913 -2469
  42. package/dist-es/runtimeConfig.browser.js +26 -12
  43. package/dist-es/runtimeConfig.js +30 -12
  44. package/dist-es/runtimeConfig.native.js +8 -5
  45. package/dist-es/runtimeConfig.shared.js +8 -11
  46. 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 { ActivateContactChannelRequestFilterSensitiveLog, ActivateContactChannelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ActivateContactChannelCommand, serializeAws_json1_1ActivateContactChannelCommand, } from "../protocols/Aws_json1_1";
6
- var ActivateContactChannelCommand = (function (_super) {
7
- __extends(ActivateContactChannelCommand, _super);
8
- function ActivateContactChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ActivateContactChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ActivateContactChannelCommand.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 = "ActivateContactChannelCommand";
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 = "ActivateContactChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ActivateContactChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ActivateContactChannelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ActivateContactChannelCommand.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_1ActivateContactChannelCommand(input, context);
33
- };
34
- ActivateContactChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ActivateContactChannelCommand(output, context);
36
- };
37
- return ActivateContactChannelCommand;
38
- }($Command));
39
- export { ActivateContactChannelCommand };
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 { CreateContactChannelRequestFilterSensitiveLog, CreateContactChannelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateContactChannelCommand, serializeAws_json1_1CreateContactChannelCommand, } from "../protocols/Aws_json1_1";
6
- var CreateContactChannelCommand = (function (_super) {
7
- __extends(CreateContactChannelCommand, _super);
8
- function CreateContactChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateContactChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateContactChannelCommand.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 = "CreateContactChannelCommand";
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 = "CreateContactChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateContactChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateContactChannelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateContactChannelCommand.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_1CreateContactChannelCommand(input, context);
33
- };
34
- CreateContactChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateContactChannelCommand(output, context);
36
- };
37
- return CreateContactChannelCommand;
38
- }($Command));
39
- export { CreateContactChannelCommand };
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 { CreateContactRequestFilterSensitiveLog, CreateContactResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateContactCommand, serializeAws_json1_1CreateContactCommand, } from "../protocols/Aws_json1_1";
6
- var CreateContactCommand = (function (_super) {
7
- __extends(CreateContactCommand, _super);
8
- function CreateContactCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateContactCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateContactCommand.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 = "CreateContactCommand";
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 = "CreateContactCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateContactRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateContactResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateContactCommand.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_1CreateContactCommand(input, context);
33
- };
34
- CreateContactCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateContactCommand(output, context);
36
- };
37
- return CreateContactCommand;
38
- }($Command));
39
- export { CreateContactCommand };
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 { DeactivateContactChannelRequestFilterSensitiveLog, DeactivateContactChannelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeactivateContactChannelCommand, serializeAws_json1_1DeactivateContactChannelCommand, } from "../protocols/Aws_json1_1";
6
- var DeactivateContactChannelCommand = (function (_super) {
7
- __extends(DeactivateContactChannelCommand, _super);
8
- function DeactivateContactChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeactivateContactChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeactivateContactChannelCommand.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 = "DeactivateContactChannelCommand";
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 = "DeactivateContactChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeactivateContactChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeactivateContactChannelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeactivateContactChannelCommand.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_1DeactivateContactChannelCommand(input, context);
33
- };
34
- DeactivateContactChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeactivateContactChannelCommand(output, context);
36
- };
37
- return DeactivateContactChannelCommand;
38
- }($Command));
39
- export { DeactivateContactChannelCommand };
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 { DeleteContactChannelRequestFilterSensitiveLog, DeleteContactChannelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteContactChannelCommand, serializeAws_json1_1DeleteContactChannelCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteContactChannelCommand = (function (_super) {
7
- __extends(DeleteContactChannelCommand, _super);
8
- function DeleteContactChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteContactChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteContactChannelCommand.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 = "DeleteContactChannelCommand";
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 = "DeleteContactChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteContactChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteContactChannelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteContactChannelCommand.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_1DeleteContactChannelCommand(input, context);
33
- };
34
- DeleteContactChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteContactChannelCommand(output, context);
36
- };
37
- return DeleteContactChannelCommand;
38
- }($Command));
39
- export { DeleteContactChannelCommand };
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 { DeleteContactRequestFilterSensitiveLog, DeleteContactResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteContactCommand, serializeAws_json1_1DeleteContactCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteContactCommand = (function (_super) {
7
- __extends(DeleteContactCommand, _super);
8
- function DeleteContactCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteContactCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteContactCommand.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 = "DeleteContactCommand";
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 = "DeleteContactCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteContactRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteContactResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteContactCommand.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_1DeleteContactCommand(input, context);
33
- };
34
- DeleteContactCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteContactCommand(output, context);
36
- };
37
- return DeleteContactCommand;
38
- }($Command));
39
- export { DeleteContactCommand };
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 { DescribeEngagementRequestFilterSensitiveLog, DescribeEngagementResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEngagementCommand, serializeAws_json1_1DescribeEngagementCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEngagementCommand = (function (_super) {
7
- __extends(DescribeEngagementCommand, _super);
8
- function DescribeEngagementCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEngagementCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEngagementCommand.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 = "DescribeEngagementCommand";
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 = "DescribeEngagementCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEngagementRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEngagementResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEngagementCommand.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_1DescribeEngagementCommand(input, context);
33
- };
34
- DescribeEngagementCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEngagementCommand(output, context);
36
- };
37
- return DescribeEngagementCommand;
38
- }($Command));
39
- export { DescribeEngagementCommand };
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 { DescribePageRequestFilterSensitiveLog, DescribePageResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribePageCommand, serializeAws_json1_1DescribePageCommand, } from "../protocols/Aws_json1_1";
6
- var DescribePageCommand = (function (_super) {
7
- __extends(DescribePageCommand, _super);
8
- function DescribePageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribePageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribePageCommand.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 = "DescribePageCommand";
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 = "DescribePageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribePageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribePageResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribePageCommand.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_1DescribePageCommand(input, context);
33
- };
34
- DescribePageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribePageCommand(output, context);
36
- };
37
- return DescribePageCommand;
38
- }($Command));
39
- export { DescribePageCommand };
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 { GetContactChannelRequestFilterSensitiveLog, GetContactChannelResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetContactChannelCommand, serializeAws_json1_1GetContactChannelCommand, } from "../protocols/Aws_json1_1";
6
- var GetContactChannelCommand = (function (_super) {
7
- __extends(GetContactChannelCommand, _super);
8
- function GetContactChannelCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContactChannelCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContactChannelCommand.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 = "GetContactChannelCommand";
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 = "GetContactChannelCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContactChannelRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContactChannelResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContactChannelCommand.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_1GetContactChannelCommand(input, context);
33
- };
34
- GetContactChannelCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetContactChannelCommand(output, context);
36
- };
37
- return GetContactChannelCommand;
38
- }($Command));
39
- export { GetContactChannelCommand };
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 { GetContactRequestFilterSensitiveLog, GetContactResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetContactCommand, serializeAws_json1_1GetContactCommand, } from "../protocols/Aws_json1_1";
6
- var GetContactCommand = (function (_super) {
7
- __extends(GetContactCommand, _super);
8
- function GetContactCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetContactCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetContactCommand.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 = "GetContactCommand";
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 = "GetContactCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetContactRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetContactResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetContactCommand.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_1GetContactCommand(input, context);
33
- };
34
- GetContactCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetContactCommand(output, context);
36
- };
37
- return GetContactCommand;
38
- }($Command));
39
- export { GetContactCommand };
31
+ }
32
+ }