@aws-sdk/client-health 3.183.0 → 3.186.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 +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/Health.js +61 -54
  4. package/dist-es/HealthClient.js +28 -22
  5. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +28 -21
  6. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +28 -21
  7. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +28 -21
  8. package/dist-es/commands/DescribeEntityAggregatesCommand.js +28 -21
  9. package/dist-es/commands/DescribeEventAggregatesCommand.js +28 -21
  10. package/dist-es/commands/DescribeEventDetailsCommand.js +28 -21
  11. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +28 -21
  12. package/dist-es/commands/DescribeEventTypesCommand.js +28 -21
  13. package/dist-es/commands/DescribeEventsCommand.js +28 -21
  14. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +28 -21
  15. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +29 -22
  16. package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +30 -23
  17. package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +30 -23
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/HealthServiceException.js +10 -5
  20. package/dist-es/models/models_0.js +73 -150
  21. package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +68 -25
  22. package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +68 -25
  23. package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js +68 -25
  24. package/dist-es/pagination/DescribeEventAggregatesPaginator.js +68 -25
  25. package/dist-es/pagination/DescribeEventTypesPaginator.js +68 -25
  26. package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js +68 -25
  27. package/dist-es/pagination/DescribeEventsPaginator.js +68 -25
  28. package/dist-es/protocols/Aws_json1_1.js +1110 -908
  29. package/dist-es/runtimeConfig.browser.js +12 -26
  30. package/dist-es/runtimeConfig.js +12 -30
  31. package/dist-es/runtimeConfig.native.js +5 -8
  32. package/dist-es/runtimeConfig.shared.js +11 -8
  33. package/package.json +33 -33
@@ -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 { DescribeEventAggregatesRequestFilterSensitiveLog, DescribeEventAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEventAggregatesCommand, serializeAws_json1_1DescribeEventAggregatesCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEventAggregatesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEventAggregatesCommand.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 = "HealthClient";
15
- const commandName = "DescribeEventAggregatesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeEventAggregatesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEventAggregatesResponseFilterSensitiveLog,
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
+ DescribeEventAggregatesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEventAggregatesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEventAggregatesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEventAggregatesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEventAggregatesCommand;
38
+ }($Command));
39
+ export { DescribeEventAggregatesCommand };
@@ -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 { DescribeEventDetailsRequestFilterSensitiveLog, DescribeEventDetailsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEventDetailsCommand, serializeAws_json1_1DescribeEventDetailsCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEventDetailsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEventDetailsCommand.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 = "HealthClient";
15
- const commandName = "DescribeEventDetailsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeEventDetailsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEventDetailsResponseFilterSensitiveLog,
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
+ DescribeEventDetailsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEventDetailsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEventDetailsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEventDetailsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEventDetailsCommand;
38
+ }($Command));
39
+ export { DescribeEventDetailsCommand };
@@ -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 { DescribeEventDetailsForOrganizationRequestFilterSensitiveLog, DescribeEventDetailsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand, serializeAws_json1_1DescribeEventDetailsForOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEventDetailsForOrganizationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEventDetailsForOrganizationCommand.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 = "HealthClient";
15
- const commandName = "DescribeEventDetailsForOrganizationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeEventDetailsForOrganizationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEventDetailsForOrganizationResponseFilterSensitiveLog,
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
+ DescribeEventDetailsForOrganizationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEventDetailsForOrganizationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEventDetailsForOrganizationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEventDetailsForOrganizationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEventDetailsForOrganizationCommand;
38
+ }($Command));
39
+ export { DescribeEventDetailsForOrganizationCommand };
@@ -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 { DescribeEventTypesRequestFilterSensitiveLog, DescribeEventTypesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEventTypesCommand, serializeAws_json1_1DescribeEventTypesCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEventTypesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEventTypesCommand.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 = "HealthClient";
15
- const commandName = "DescribeEventTypesCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeEventTypesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEventTypesResponseFilterSensitiveLog,
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
+ DescribeEventTypesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEventTypesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEventTypesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEventTypesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEventTypesCommand;
38
+ }($Command));
39
+ export { DescribeEventTypesCommand };
@@ -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 { DescribeEventsRequestFilterSensitiveLog, DescribeEventsResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEventsCommand, serializeAws_json1_1DescribeEventsCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEventsCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEventsCommand.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 = "HealthClient";
15
- const commandName = "DescribeEventsCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeEventsRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEventsResponseFilterSensitiveLog,
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
+ DescribeEventsCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEventsCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEventsCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEventsCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEventsCommand;
38
+ }($Command));
39
+ export { DescribeEventsCommand };
@@ -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 { DescribeEventsForOrganizationRequestFilterSensitiveLog, DescribeEventsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeEventsForOrganizationCommand, serializeAws_json1_1DescribeEventsForOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeEventsForOrganizationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeEventsForOrganizationCommand.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 = "HealthClient";
15
- const commandName = "DescribeEventsForOrganizationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
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,
20
23
  inputFilterSensitiveLog: DescribeEventsForOrganizationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeEventsForOrganizationResponseFilterSensitiveLog,
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
+ DescribeEventsForOrganizationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeEventsForOrganizationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeEventsForOrganizationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeEventsForOrganizationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeEventsForOrganizationCommand;
38
+ }($Command));
39
+ export { DescribeEventsForOrganizationCommand };
@@ -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 { DescribeHealthServiceStatusForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand, serializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeHealthServiceStatusForOrganizationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
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;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeHealthServiceStatusForOrganizationCommand.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 = "HealthClient";
15
- const commandName = "DescribeHealthServiceStatusForOrganizationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
20
- inputFilterSensitiveLog: (input) => input,
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; },
21
24
  outputFilterSensitiveLog: DescribeHealthServiceStatusForOrganizationResponseFilterSensitiveLog,
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
+ DescribeHealthServiceStatusForOrganizationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeHealthServiceStatusForOrganizationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeHealthServiceStatusForOrganizationCommand;
38
+ }($Command));
39
+ export { DescribeHealthServiceStatusForOrganizationCommand };
@@ -1,31 +1,38 @@
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 { deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand, serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand, } from "../protocols/Aws_json1_1";
4
- export class DisableHealthServiceAccessForOrganizationCommand extends $Command {
5
- constructor(input) {
6
- super();
7
- this.input = input;
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;
8
11
  }
9
- resolveMiddleware(clientStack, configuration, options) {
12
+ DisableHealthServiceAccessForOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
13
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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; },
21
24
  };
22
- const { requestHandler } = configuration;
23
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24
- }
25
- serialize(input, context) {
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) {
26
31
  return serializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand(input, context);
27
- }
28
- deserialize(output, context) {
32
+ };
33
+ DisableHealthServiceAccessForOrganizationCommand.prototype.deserialize = function (output, context) {
29
34
  return deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommand(output, context);
30
- }
31
- }
35
+ };
36
+ return DisableHealthServiceAccessForOrganizationCommand;
37
+ }($Command));
38
+ export { DisableHealthServiceAccessForOrganizationCommand };
@@ -1,31 +1,38 @@
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 { deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand, serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand, } from "../protocols/Aws_json1_1";
4
- export class EnableHealthServiceAccessForOrganizationCommand extends $Command {
5
- constructor(input) {
6
- super();
7
- this.input = input;
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;
8
11
  }
9
- resolveMiddleware(clientStack, configuration, options) {
12
+ EnableHealthServiceAccessForOrganizationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
13
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
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; },
21
24
  };
22
- const { requestHandler } = configuration;
23
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24
- }
25
- serialize(input, context) {
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) {
26
31
  return serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand(input, context);
27
- }
28
- deserialize(output, context) {
32
+ };
33
+ EnableHealthServiceAccessForOrganizationCommand.prototype.deserialize = function (output, context) {
29
34
  return deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand(output, context);
30
- }
31
- }
35
+ };
36
+ return EnableHealthServiceAccessForOrganizationCommand;
37
+ }($Command));
38
+ export { EnableHealthServiceAccessForOrganizationCommand };
@@ -1,5 +1,6 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {
3
+ var regionHash = {
3
4
  "aws-cn-global": {
4
5
  variants: [
5
6
  {
@@ -19,7 +20,7 @@ const regionHash = {
19
20
  signingRegion: "us-east-1",
20
21
  },
21
22
  };
22
- const partitionHash = {
23
+ var partitionHash = {
23
24
  aws: {
24
25
  regions: [
25
26
  "af-south-1",
@@ -143,9 +144,8 @@ const partitionHash = {
143
144
  ],
144
145
  },
145
146
  };
146
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
147
- ...options,
148
- signingService: "health",
149
- regionHash,
150
- partitionHash,
151
- });
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
+ }); };
@@ -1,7 +1,12 @@
1
+ import { __extends } from "tslib";
1
2
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
2
- export class HealthServiceException extends __ServiceException {
3
- constructor(options) {
4
- super(options);
5
- Object.setPrototypeOf(this, HealthServiceException.prototype);
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;
6
9
  }
7
- }
10
+ return HealthServiceException;
11
+ }(__ServiceException));
12
+ export { HealthServiceException };