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