@aws-sdk/client-health 3.186.0 → 3.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Health.js +54 -61
  3. package/dist-es/HealthClient.js +22 -28
  4. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +21 -28
  5. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +21 -28
  6. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +21 -28
  7. package/dist-es/commands/DescribeEntityAggregatesCommand.js +21 -28
  8. package/dist-es/commands/DescribeEventAggregatesCommand.js +21 -28
  9. package/dist-es/commands/DescribeEventDetailsCommand.js +21 -28
  10. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +21 -28
  11. package/dist-es/commands/DescribeEventTypesCommand.js +21 -28
  12. package/dist-es/commands/DescribeEventsCommand.js +21 -28
  13. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +21 -28
  14. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +22 -29
  15. package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +23 -30
  16. package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +23 -30
  17. package/dist-es/endpoints.js +8 -8
  18. package/dist-es/models/HealthServiceException.js +5 -10
  19. package/dist-es/models/models_0.js +150 -73
  20. package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +25 -68
  21. package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +25 -68
  22. package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js +25 -68
  23. package/dist-es/pagination/DescribeEventAggregatesPaginator.js +25 -68
  24. package/dist-es/pagination/DescribeEventTypesPaginator.js +25 -68
  25. package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js +25 -68
  26. package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
  27. package/dist-es/protocols/Aws_json1_1.js +908 -1110
  28. package/dist-es/runtimeConfig.browser.js +26 -12
  29. package/dist-es/runtimeConfig.js +30 -12
  30. package/dist-es/runtimeConfig.native.js +8 -5
  31. package/dist-es/runtimeConfig.shared.js +8 -11
  32. 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 { 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
+ }
@@ -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_1EnableHealthServiceAccessForOrganizationCommand, serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- var EnableHealthServiceAccessForOrganizationCommand = (function (_super) {
6
- __extends(EnableHealthServiceAccessForOrganizationCommand, _super);
7
- function EnableHealthServiceAccessForOrganizationCommand(input) {
8
- var _this = _super.call(this) || this;
9
- _this.input = input;
10
- return _this;
4
+ export class EnableHealthServiceAccessForOrganizationCommand extends $Command {
5
+ constructor(input) {
6
+ super();
7
+ this.input = input;
11
8
  }
12
- EnableHealthServiceAccessForOrganizationCommand.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 = "EnableHealthServiceAccessForOrganizationCommand";
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 = "EnableHealthServiceAccessForOrganizationCommand";
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
- EnableHealthServiceAccessForOrganizationCommand.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_1EnableHealthServiceAccessForOrganizationCommand(input, context);
32
- };
33
- EnableHealthServiceAccessForOrganizationCommand.prototype.deserialize = function (output, context) {
27
+ }
28
+ deserialize(output, context) {
34
29
  return deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand(output, context);
35
- };
36
- return EnableHealthServiceAccessForOrganizationCommand;
37
- }($Command));
38
- export { EnableHealthServiceAccessForOrganizationCommand };
30
+ }
31
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "aws-cn-global": {
5
4
  variants: [
6
5
  {
@@ -20,7 +19,7 @@ var regionHash = {
20
19
  signingRegion: "us-east-1",
21
20
  },
22
21
  };
23
- var partitionHash = {
22
+ const partitionHash = {
24
23
  aws: {
25
24
  regions: [
26
25
  "af-south-1",
@@ -144,8 +143,9 @@ var partitionHash = {
144
143
  ],
145
144
  },
146
145
  };
147
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
148
- return __generator(this, function (_a) {
149
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "health", regionHash: regionHash, partitionHash: partitionHash }))];
150
- });
151
- }); };
146
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
147
+ ...options,
148
+ signingService: "health",
149
+ regionHash,
150
+ partitionHash,
151
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var HealthServiceException = (function (_super) {
4
- __extends(HealthServiceException, _super);
5
- function HealthServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, HealthServiceException.prototype);
8
- return _this;
2
+ export class HealthServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, HealthServiceException.prototype);
9
6
  }
10
- return HealthServiceException;
11
- }(__ServiceException));
12
- export { HealthServiceException };
7
+ }