@aws-sdk/client-health 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 (33) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +19 -13
  3. package/dist-es/Health.js +54 -61
  4. package/dist-es/HealthClient.js +22 -28
  5. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +21 -28
  6. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +21 -28
  7. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +21 -28
  8. package/dist-es/commands/DescribeEntityAggregatesCommand.js +21 -28
  9. package/dist-es/commands/DescribeEventAggregatesCommand.js +21 -28
  10. package/dist-es/commands/DescribeEventDetailsCommand.js +21 -28
  11. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +21 -28
  12. package/dist-es/commands/DescribeEventTypesCommand.js +21 -28
  13. package/dist-es/commands/DescribeEventsCommand.js +21 -28
  14. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +21 -28
  15. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +22 -29
  16. package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +23 -30
  17. package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +23 -30
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/HealthServiceException.js +5 -10
  20. package/dist-es/models/models_0.js +150 -73
  21. package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +25 -68
  22. package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +25 -68
  23. package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js +25 -68
  24. package/dist-es/pagination/DescribeEventAggregatesPaginator.js +25 -68
  25. package/dist-es/pagination/DescribeEventTypesPaginator.js +25 -68
  26. package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js +25 -68
  27. package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
  28. package/dist-es/protocols/Aws_json1_1.js +908 -1097
  29. package/dist-es/runtimeConfig.browser.js +26 -12
  30. package/dist-es/runtimeConfig.js +30 -12
  31. package/dist-es/runtimeConfig.native.js +8 -5
  32. package/dist-es/runtimeConfig.shared.js +8 -11
  33. 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 { DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog, DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand, serializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAffectedEntitiesForOrganizationCommand = (function (_super) {
7
- __extends(DescribeAffectedEntitiesForOrganizationCommand, _super);
8
- function DescribeAffectedEntitiesForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAffectedEntitiesForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAffectedEntitiesForOrganizationCommand.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 = "HealthClient";
18
- var commandName = "DescribeAffectedEntitiesForOrganizationCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeAffectedEntitiesForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAffectedEntitiesForOrganizationCommand.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_1DescribeAffectedEntitiesForOrganizationCommand(input, context);
33
- };
34
- DescribeAffectedEntitiesForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand(output, context);
36
- };
37
- return DescribeAffectedEntitiesForOrganizationCommand;
38
- }($Command));
39
- export { DescribeAffectedEntitiesForOrganizationCommand };
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 { DescribeEntityAggregatesRequestFilterSensitiveLog, DescribeEntityAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEntityAggregatesCommand, serializeAws_json1_1DescribeEntityAggregatesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEntityAggregatesCommand = (function (_super) {
7
- __extends(DescribeEntityAggregatesCommand, _super);
8
- function DescribeEntityAggregatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEntityAggregatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEntityAggregatesCommand.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 = "HealthClient";
18
- var commandName = "DescribeEntityAggregatesCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEntityAggregatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEntityAggregatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEntityAggregatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEntityAggregatesCommand.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_1DescribeEntityAggregatesCommand(input, context);
33
- };
34
- DescribeEntityAggregatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEntityAggregatesCommand(output, context);
36
- };
37
- return DescribeEntityAggregatesCommand;
38
- }($Command));
39
- export { DescribeEntityAggregatesCommand };
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 { DescribeEventAggregatesRequestFilterSensitiveLog, DescribeEventAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventAggregatesCommand, serializeAws_json1_1DescribeEventAggregatesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventAggregatesCommand = (function (_super) {
7
- __extends(DescribeEventAggregatesCommand, _super);
8
- function DescribeEventAggregatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventAggregatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventAggregatesCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventAggregatesCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventAggregatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventAggregatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventAggregatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventAggregatesCommand.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_1DescribeEventAggregatesCommand(input, context);
33
- };
34
- DescribeEventAggregatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventAggregatesCommand(output, context);
36
- };
37
- return DescribeEventAggregatesCommand;
38
- }($Command));
39
- export { DescribeEventAggregatesCommand };
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 { DescribeEventDetailsRequestFilterSensitiveLog, DescribeEventDetailsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventDetailsCommand, serializeAws_json1_1DescribeEventDetailsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventDetailsCommand = (function (_super) {
7
- __extends(DescribeEventDetailsCommand, _super);
8
- function DescribeEventDetailsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventDetailsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventDetailsCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventDetailsCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventDetailsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventDetailsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventDetailsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventDetailsCommand.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_1DescribeEventDetailsCommand(input, context);
33
- };
34
- DescribeEventDetailsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventDetailsCommand(output, context);
36
- };
37
- return DescribeEventDetailsCommand;
38
- }($Command));
39
- export { DescribeEventDetailsCommand };
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 { DescribeEventDetailsForOrganizationRequestFilterSensitiveLog, DescribeEventDetailsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand, serializeAws_json1_1DescribeEventDetailsForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventDetailsForOrganizationCommand = (function (_super) {
7
- __extends(DescribeEventDetailsForOrganizationCommand, _super);
8
- function DescribeEventDetailsForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventDetailsForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventDetailsForOrganizationCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventDetailsForOrganizationCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventDetailsForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventDetailsForOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventDetailsForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventDetailsForOrganizationCommand.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_1DescribeEventDetailsForOrganizationCommand(input, context);
33
- };
34
- DescribeEventDetailsForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand(output, context);
36
- };
37
- return DescribeEventDetailsForOrganizationCommand;
38
- }($Command));
39
- export { DescribeEventDetailsForOrganizationCommand };
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 { DescribeEventTypesRequestFilterSensitiveLog, DescribeEventTypesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventTypesCommand, serializeAws_json1_1DescribeEventTypesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventTypesCommand = (function (_super) {
7
- __extends(DescribeEventTypesCommand, _super);
8
- function DescribeEventTypesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventTypesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventTypesCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventTypesCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventTypesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventTypesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventTypesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventTypesCommand.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_1DescribeEventTypesCommand(input, context);
33
- };
34
- DescribeEventTypesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventTypesCommand(output, context);
36
- };
37
- return DescribeEventTypesCommand;
38
- }($Command));
39
- export { DescribeEventTypesCommand };
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 { DescribeEventsRequestFilterSensitiveLog, DescribeEventsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventsCommand, serializeAws_json1_1DescribeEventsCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventsCommand = (function (_super) {
7
- __extends(DescribeEventsCommand, _super);
8
- function DescribeEventsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventsCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventsCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventsCommand.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_1DescribeEventsCommand(input, context);
33
- };
34
- DescribeEventsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventsCommand(output, context);
36
- };
37
- return DescribeEventsCommand;
38
- }($Command));
39
- export { DescribeEventsCommand };
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 { DescribeEventsForOrganizationRequestFilterSensitiveLog, DescribeEventsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventsForOrganizationCommand, serializeAws_json1_1DescribeEventsForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventsForOrganizationCommand = (function (_super) {
7
- __extends(DescribeEventsForOrganizationCommand, _super);
8
- function DescribeEventsForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventsForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventsForOrganizationCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventsForOrganizationCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventsForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventsForOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventsForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventsForOrganizationCommand.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_1DescribeEventsForOrganizationCommand(input, context);
33
- };
34
- DescribeEventsForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventsForOrganizationCommand(output, context);
36
- };
37
- return DescribeEventsForOrganizationCommand;
38
- }($Command));
39
- export { DescribeEventsForOrganizationCommand };
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 { DescribeHealthServiceStatusForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand, serializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeHealthServiceStatusForOrganizationCommand = (function (_super) {
7
- __extends(DescribeHealthServiceStatusForOrganizationCommand, _super);
8
- function DescribeHealthServiceStatusForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeHealthServiceStatusForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeHealthServiceStatusForOrganizationCommand.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 = "HealthClient";
18
- var commandName = "DescribeHealthServiceStatusForOrganizationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
23
- inputFilterSensitiveLog: function (input) { return input; },
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "HealthClient";
15
+ const commandName = "DescribeHealthServiceStatusForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
20
+ inputFilterSensitiveLog: (input) => input,
24
21
  outputFilterSensitiveLog: DescribeHealthServiceStatusForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeHealthServiceStatusForOrganizationCommand.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_1DescribeHealthServiceStatusForOrganizationCommand(input, context);
33
- };
34
- DescribeHealthServiceStatusForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand(output, context);
36
- };
37
- return DescribeHealthServiceStatusForOrganizationCommand;
38
- }($Command));
39
- export { DescribeHealthServiceStatusForOrganizationCommand };
31
+ }
32
+ }
@@ -1,38 +1,31 @@
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 { deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand, serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- var DisableHealthServiceAccessForOrganizationCommand = (function (_super) {
6
- __extends(DisableHealthServiceAccessForOrganizationCommand, _super);
7
- function DisableHealthServiceAccessForOrganizationCommand(input) {
8
- var _this = _super.call(this) || this;
9
- _this.input = input;
10
- return _this;
4
+ export class DisableHealthServiceAccessForOrganizationCommand extends $Command {
5
+ constructor(input) {
6
+ super();
7
+ this.input = input;
11
8
  }
12
- DisableHealthServiceAccessForOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9
+ resolveMiddleware(clientStack, configuration, options) {
13
10
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
14
- var stack = clientStack.concat(this.middlewareStack);
15
- var logger = configuration.logger;
16
- var clientName = "HealthClient";
17
- var commandName = "DisableHealthServiceAccessForOrganizationCommand";
18
- var handlerExecutionContext = {
19
- logger: logger,
20
- clientName: clientName,
21
- commandName: commandName,
22
- inputFilterSensitiveLog: function (input) { return input; },
23
- outputFilterSensitiveLog: function (output) { return output; },
11
+ const stack = clientStack.concat(this.middlewareStack);
12
+ const { logger } = configuration;
13
+ const clientName = "HealthClient";
14
+ const commandName = "DisableHealthServiceAccessForOrganizationCommand";
15
+ const handlerExecutionContext = {
16
+ logger,
17
+ clientName,
18
+ commandName,
19
+ inputFilterSensitiveLog: (input) => input,
20
+ outputFilterSensitiveLog: (output) => output,
24
21
  };
25
- var requestHandler = configuration.requestHandler;
26
- return stack.resolve(function (request) {
27
- return requestHandler.handle(request.request, options || {});
28
- }, handlerExecutionContext);
29
- };
30
- DisableHealthServiceAccessForOrganizationCommand.prototype.serialize = function (input, context) {
22
+ const { requestHandler } = configuration;
23
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24
+ }
25
+ serialize(input, context) {
31
26
  return serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand(input, context);
32
- };
33
- DisableHealthServiceAccessForOrganizationCommand.prototype.deserialize = function (output, context) {
27
+ }
28
+ deserialize(output, context) {
34
29
  return deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand(output, context);
35
- };
36
- return DisableHealthServiceAccessForOrganizationCommand;
37
- }($Command));
38
- export { DisableHealthServiceAccessForOrganizationCommand };
30
+ }
31
+ }