@aws-sdk/client-health 3.194.0 → 3.195.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 (84) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/HealthClient.js +11 -8
  3. package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +10 -0
  4. package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +10 -0
  5. package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +10 -0
  6. package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +10 -0
  7. package/dist-cjs/commands/DescribeEventAggregatesCommand.js +10 -0
  8. package/dist-cjs/commands/DescribeEventDetailsCommand.js +10 -0
  9. package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +10 -0
  10. package/dist-cjs/commands/DescribeEventTypesCommand.js +10 -0
  11. package/dist-cjs/commands/DescribeEventsCommand.js +10 -0
  12. package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +10 -0
  13. package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +10 -0
  14. package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js +10 -0
  15. package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js +10 -0
  16. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  17. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  18. package/dist-cjs/endpoint/ruleset.js +864 -0
  19. package/dist-cjs/runtimeConfig.shared.js +3 -3
  20. package/dist-es/HealthClient.js +12 -9
  21. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +10 -0
  22. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +10 -0
  23. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +10 -0
  24. package/dist-es/commands/DescribeEntityAggregatesCommand.js +10 -0
  25. package/dist-es/commands/DescribeEventAggregatesCommand.js +10 -0
  26. package/dist-es/commands/DescribeEventDetailsCommand.js +10 -0
  27. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +10 -0
  28. package/dist-es/commands/DescribeEventTypesCommand.js +10 -0
  29. package/dist-es/commands/DescribeEventsCommand.js +10 -0
  30. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +10 -0
  31. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +10 -0
  32. package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +10 -0
  33. package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +10 -0
  34. package/dist-es/endpoint/EndpointParameters.js +8 -0
  35. package/dist-es/endpoint/endpointResolver.js +8 -0
  36. package/dist-es/endpoint/ruleset.js +861 -0
  37. package/dist-es/runtimeConfig.shared.js +2 -2
  38. package/dist-types/HealthClient.d.ts +6 -9
  39. package/dist-types/commands/DescribeAffectedAccountsForOrganizationCommand.d.ts +2 -0
  40. package/dist-types/commands/DescribeAffectedEntitiesCommand.d.ts +2 -0
  41. package/dist-types/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -0
  42. package/dist-types/commands/DescribeEntityAggregatesCommand.d.ts +2 -0
  43. package/dist-types/commands/DescribeEventAggregatesCommand.d.ts +2 -0
  44. package/dist-types/commands/DescribeEventDetailsCommand.d.ts +2 -0
  45. package/dist-types/commands/DescribeEventDetailsForOrganizationCommand.d.ts +2 -0
  46. package/dist-types/commands/DescribeEventTypesCommand.d.ts +2 -0
  47. package/dist-types/commands/DescribeEventsCommand.d.ts +2 -0
  48. package/dist-types/commands/DescribeEventsForOrganizationCommand.d.ts +2 -0
  49. package/dist-types/commands/DescribeHealthServiceStatusForOrganizationCommand.d.ts +2 -0
  50. package/dist-types/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +2 -0
  51. package/dist-types/commands/EnableHealthServiceAccessForOrganizationCommand.d.ts +2 -0
  52. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  53. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  54. package/dist-types/endpoint/ruleset.d.ts +2 -0
  55. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  56. package/dist-types/runtimeConfig.d.ts +4 -2
  57. package/dist-types/runtimeConfig.native.d.ts +4 -2
  58. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  59. package/dist-types/ts3.4/HealthClient.d.ts +15 -8
  60. package/dist-types/ts3.4/commands/DescribeAffectedAccountsForOrganizationCommand.d.ts +2 -0
  61. package/dist-types/ts3.4/commands/DescribeAffectedEntitiesCommand.d.ts +2 -0
  62. package/dist-types/ts3.4/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -0
  63. package/dist-types/ts3.4/commands/DescribeEntityAggregatesCommand.d.ts +2 -0
  64. package/dist-types/ts3.4/commands/DescribeEventAggregatesCommand.d.ts +2 -0
  65. package/dist-types/ts3.4/commands/DescribeEventDetailsCommand.d.ts +2 -0
  66. package/dist-types/ts3.4/commands/DescribeEventDetailsForOrganizationCommand.d.ts +2 -0
  67. package/dist-types/ts3.4/commands/DescribeEventTypesCommand.d.ts +2 -0
  68. package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +2 -0
  69. package/dist-types/ts3.4/commands/DescribeEventsForOrganizationCommand.d.ts +2 -0
  70. package/dist-types/ts3.4/commands/DescribeHealthServiceStatusForOrganizationCommand.d.ts +2 -0
  71. package/dist-types/ts3.4/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +2 -0
  72. package/dist-types/ts3.4/commands/EnableHealthServiceAccessForOrganizationCommand.d.ts +2 -0
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  74. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  75. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  79. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  80. package/package.json +3 -1
  81. package/dist-cjs/endpoints.js +0 -155
  82. package/dist-es/endpoints.js +0 -151
  83. package/dist-types/endpoints.d.ts +0 -2
  84. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
- const endpoints_1 = require("./endpoints");
5
+ const endpointResolver_1 = require("./endpoint/endpointResolver");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a, _b, _c, _d, _e;
8
8
  return ({
9
9
  apiVersion: "2016-08-04",
10
10
  disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
12
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
11
+ endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
+ logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
13
  serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Health",
14
14
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
15
  });
@@ -1,5 +1,6 @@
1
- import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
1
+ import { resolveRegionConfig } from "@aws-sdk/config-resolver";
2
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
+ import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
4
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
5
6
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
@@ -7,18 +8,20 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
10
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
13
  export class HealthClient extends __Client {
12
14
  constructor(configuration) {
13
15
  const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
16
+ const _config_1 = resolveClientEndpointParameters(_config_0);
17
+ const _config_2 = resolveRegionConfig(_config_1);
18
+ const _config_3 = resolveEndpointConfig(_config_2);
19
+ const _config_4 = resolveRetryConfig(_config_3);
20
+ const _config_5 = resolveHostHeaderConfig(_config_4);
21
+ const _config_6 = resolveAwsAuthConfig(_config_5);
22
+ const _config_7 = resolveUserAgentConfig(_config_6);
23
+ super(_config_7);
24
+ this.config = _config_7;
22
25
  this.middlewareStack.use(getRetryPlugin(this.config));
23
26
  this.middlewareStack.use(getContentLengthPlugin(this.config));
24
27
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeAffectedAccountsForOrganizationRequestFilterSensitiveLog, DescribeAffectedAccountsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeAffectedAccountsForOrganizationCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAffectedAccountsForOrganizationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeAffectedEntitiesRequestFilterSensitiveLog, DescribeAffectedEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeAffectedEntitiesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAffectedEntitiesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog, DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeAffectedEntitiesForOrganizationCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAffectedEntitiesForOrganizationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeEntityAggregatesRequestFilterSensitiveLog, DescribeEntityAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
@@ -7,8 +8,17 @@ export class DescribeEntityAggregatesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEntityAggregatesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeEventAggregatesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEventAggregatesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeEventDetailsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEventDetailsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeEventDetailsForOrganizationCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEventDetailsForOrganizationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeEventTypesCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEventTypesCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeEventsCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEventsCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeEventsForOrganizationCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEventsForOrganizationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -7,8 +8,17 @@ export class DescribeHealthServiceStatusForOrganizationCommand extends $Command
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeHealthServiceStatusForOrganizationCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -6,8 +7,17 @@ export class DisableHealthServiceAccessForOrganizationCommand extends $Command {
6
7
  super();
7
8
  this.input = input;
8
9
  }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
9
18
  resolveMiddleware(clientStack, configuration, options) {
10
19
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, DisableHealthServiceAccessForOrganizationCommand.getEndpointParameterInstructions()));
11
21
  const stack = clientStack.concat(this.middlewareStack);
12
22
  const { logger } = configuration;
13
23
  const clientName = "HealthClient";
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
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";
@@ -6,8 +7,17 @@ export class EnableHealthServiceAccessForOrganizationCommand extends $Command {
6
7
  super();
7
8
  this.input = input;
8
9
  }
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
9
18
  resolveMiddleware(clientStack, configuration, options) {
10
19
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
20
+ this.middlewareStack.use(getEndpointPlugin(configuration, EnableHealthServiceAccessForOrganizationCommand.getEndpointParameterInstructions()));
11
21
  const stack = clientStack.concat(this.middlewareStack);
12
22
  const { logger } = configuration;
13
23
  const clientName = "HealthClient";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "health",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@aws-sdk/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };