@aws-sdk/client-health 3.36.0 → 3.39.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 (64) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/Health.js +0 -52
  3. package/dist-cjs/HealthClient.js +0 -57
  4. package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +0 -32
  5. package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +0 -42
  6. package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +0 -45
  7. package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +0 -25
  8. package/dist-cjs/commands/DescribeEventAggregatesCommand.js +0 -29
  9. package/dist-cjs/commands/DescribeEventDetailsCommand.js +0 -33
  10. package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +0 -56
  11. package/dist-cjs/commands/DescribeEventTypesCommand.js +0 -31
  12. package/dist-cjs/commands/DescribeEventsCommand.js +0 -46
  13. package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +0 -55
  14. package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +0 -27
  15. package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js +0 -38
  16. package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js +0 -46
  17. package/dist-cjs/commands/index.js +16 -0
  18. package/dist-cjs/endpoints.js +6 -1
  19. package/dist-cjs/index.js +4 -23
  20. package/dist-cjs/models/models_0.js +0 -126
  21. package/dist-cjs/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +0 -10
  22. package/dist-cjs/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +0 -10
  23. package/dist-cjs/pagination/DescribeAffectedEntitiesPaginator.js +0 -10
  24. package/dist-cjs/pagination/DescribeEventAggregatesPaginator.js +0 -10
  25. package/dist-cjs/pagination/DescribeEventTypesPaginator.js +0 -10
  26. package/dist-cjs/pagination/DescribeEventsForOrganizationPaginator.js +0 -10
  27. package/dist-cjs/pagination/DescribeEventsPaginator.js +0 -10
  28. package/dist-cjs/pagination/index.js +11 -0
  29. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  30. package/dist-cjs/runtimeConfig.browser.js +1 -5
  31. package/dist-cjs/runtimeConfig.js +1 -5
  32. package/dist-cjs/runtimeConfig.native.js +0 -3
  33. package/dist-cjs/runtimeConfig.shared.js +0 -3
  34. package/dist-es/commands/index.js +13 -0
  35. package/dist-es/endpoints.js +6 -1
  36. package/dist-es/index.js +4 -23
  37. package/dist-es/pagination/index.js +8 -0
  38. package/dist-types/commands/index.d.ts +13 -0
  39. package/dist-types/index.d.ts +4 -23
  40. package/dist-types/pagination/index.d.ts +8 -0
  41. package/dist-types/ts3.4/Health.d.ts +14 -284
  42. package/dist-types/ts3.4/HealthClient.d.ts +24 -138
  43. package/dist-types/ts3.4/commands/DescribeAffectedAccountsForOrganizationCommand.d.ts +2 -28
  44. package/dist-types/ts3.4/commands/DescribeAffectedEntitiesCommand.d.ts +2 -38
  45. package/dist-types/ts3.4/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -41
  46. package/dist-types/ts3.4/commands/DescribeEntityAggregatesCommand.d.ts +2 -21
  47. package/dist-types/ts3.4/commands/DescribeEventAggregatesCommand.d.ts +2 -25
  48. package/dist-types/ts3.4/commands/DescribeEventDetailsCommand.d.ts +2 -29
  49. package/dist-types/ts3.4/commands/DescribeEventDetailsForOrganizationCommand.d.ts +2 -52
  50. package/dist-types/ts3.4/commands/DescribeEventTypesCommand.d.ts +2 -27
  51. package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +2 -42
  52. package/dist-types/ts3.4/commands/DescribeEventsForOrganizationCommand.d.ts +2 -51
  53. package/dist-types/ts3.4/commands/DescribeHealthServiceStatusForOrganizationCommand.d.ts +2 -23
  54. package/dist-types/ts3.4/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +2 -34
  55. package/dist-types/ts3.4/commands/EnableHealthServiceAccessForOrganizationCommand.d.ts +2 -42
  56. package/dist-types/ts3.4/commands/index.d.ts +13 -0
  57. package/dist-types/ts3.4/index.d.ts +4 -23
  58. package/dist-types/ts3.4/models/models_0.d.ts +209 -927
  59. package/dist-types/ts3.4/pagination/index.d.ts +8 -0
  60. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  61. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  62. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  63. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  64. package/package.json +32 -32
@@ -5,66 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Returns information about events across your organization in AWS Organizations. You can use
10
- * the<code>filters</code> parameter to specify the events that you want to return. Events
11
- * are returned in a summary form and don't include the affected accounts, detailed
12
- * description, any additional metadata that depends on the event type, or any affected
13
- * resources. To retrieve that information, use the following operations:</p>
14
- * <ul>
15
- * <li>
16
- * <p>
17
- * <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a>
18
- * </p>
19
- * </li>
20
- * <li>
21
- * <p>
22
- * <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a>
23
- * </p>
24
- * </li>
25
- * <li>
26
- * <p>
27
- * <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a>
28
- * </p>
29
- * </li>
30
- * </ul>
31
- * <p>If you don't specify a <code>filter</code>, the
32
- * <code>DescribeEventsForOrganizations</code> returns all events across your organization.
33
- * Results are sorted by <code>lastModifiedTime</code>, starting with the most recent event. </p>
34
- * <p>For more information about the different types of AWS Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
35
- * <p>Before you can call this operation, you must first enable AWS Health to work with
36
- * AWS Organizations. To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> operation from your organization's
37
- * management account.</p>
38
- * <note>
39
- * <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
40
- * </note>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { HealthClient, DescribeEventsForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
45
- * // const { HealthClient, DescribeEventsForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
46
- * const client = new HealthClient(config);
47
- * const command = new DescribeEventsForOrganizationCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link DescribeEventsForOrganizationCommandInput} for command's `input` shape.
52
- * @see {@link DescribeEventsForOrganizationCommandOutput} for command's `response` shape.
53
- * @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
56
8
  class DescribeEventsForOrganizationCommand extends smithy_client_1.Command {
57
- // Start section: command_properties
58
- // End section: command_properties
59
9
  constructor(input) {
60
- // Start section: command_constructor
61
10
  super();
62
11
  this.input = input;
63
- // End section: command_constructor
64
12
  }
65
- /**
66
- * @internal
67
- */
68
13
  resolveMiddleware(clientStack, configuration, options) {
69
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
70
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>This operation provides status information on enabling or disabling AWS Health to work
10
- * with your organization. To call this operation, you must sign in as an IAM user, assume
11
- * an IAM role, or sign in as the root user (not recommended) in the organization's
12
- * management account.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { HealthClient, DescribeHealthServiceStatusForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
17
- * // const { HealthClient, DescribeHealthServiceStatusForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
18
- * const client = new HealthClient(config);
19
- * const command = new DescribeHealthServiceStatusForOrganizationCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DescribeHealthServiceStatusForOrganizationCommandInput} for command's `input` shape.
24
- * @see {@link DescribeHealthServiceStatusForOrganizationCommandOutput} for command's `response` shape.
25
- * @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class DescribeHealthServiceStatusForOrganizationCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -4,49 +4,11 @@ exports.DisableHealthServiceAccessForOrganizationCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
7
- /**
8
- * <p>Disables AWS Health from working with AWS Organizations. To call this operation, you must sign
9
- * in as an AWS Identity and Access Management (IAM) user, assume an IAM role, or sign in as the root user (not
10
- * recommended) in the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
11
- * AWS Health events</a> in the
12
- * <i>AWS Health User Guide</i>.</p>
13
- * <p>This operation doesn't remove the service-linked role from the management account in your organization. You must use the IAM console, API, or AWS Command Line Interface (AWS CLI) to
14
- * remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting a Service-Linked Role</a> in the
15
- * <i>IAM User Guide</i>.</p>
16
- * <note>
17
- * <p>You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a> API operation. After you call this operation,
18
- * AWS Health stops aggregating events for all other AWS accounts in your organization.
19
- * If you call the AWS Health API operations for organizational view, AWS Health returns
20
- * an error. AWS Health continues to aggregate health events for your AWS
21
- * account.</p>
22
- * </note>
23
- * @example
24
- * Use a bare-bones client and the command you need to make an API call.
25
- * ```javascript
26
- * import { HealthClient, DisableHealthServiceAccessForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
27
- * // const { HealthClient, DisableHealthServiceAccessForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
28
- * const client = new HealthClient(config);
29
- * const command = new DisableHealthServiceAccessForOrganizationCommand(input);
30
- * const response = await client.send(command);
31
- * ```
32
- *
33
- * @see {@link DisableHealthServiceAccessForOrganizationCommandInput} for command's `input` shape.
34
- * @see {@link DisableHealthServiceAccessForOrganizationCommandOutput} for command's `response` shape.
35
- * @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
36
- *
37
- */
38
7
  class DisableHealthServiceAccessForOrganizationCommand extends smithy_client_1.Command {
39
- // Start section: command_properties
40
- // End section: command_properties
41
8
  constructor(input) {
42
- // Start section: command_constructor
43
9
  super();
44
10
  this.input = input;
45
- // End section: command_constructor
46
11
  }
47
- /**
48
- * @internal
49
- */
50
12
  resolveMiddleware(clientStack, configuration, options) {
51
13
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
52
14
  const stack = clientStack.concat(this.middlewareStack);
@@ -4,57 +4,11 @@ exports.EnableHealthServiceAccessForOrganizationCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
7
- /**
8
- * <p>Enables AWS Health to work with AWS Organizations. You can use the organizational view feature
9
- * to aggregate events from all AWS accounts in your organization in a centralized location. </p>
10
- * <p>This operation also creates a service-linked role for the management account in the
11
- * organization. </p>
12
- * <note>
13
- * <p>To call this operation, you must meet the following requirements:</p>
14
- * <ul>
15
- * <li>
16
- * <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">AWS Support</a> to use the AWS Health
17
- * API. If you call the AWS Health API from an AWS account that doesn't have a
18
- * Business or Enterprise Support plan, you receive a
19
- * <code>SubscriptionRequiredException</code> error.</p>
20
- * </li>
21
- * <li>
22
- * <p>You must have permission to call this operation from the organization's
23
- * management account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">AWS Health
24
- * identity-based policy examples</a>.</p>
25
- * </li>
26
- * </ul>
27
- * </note>
28
- * <p>If you don't have the required support plan, you can instead use the AWS Health console
29
- * to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
30
- * AWS Health events</a> in the <i>AWS Health User Guide</i>.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { HealthClient, EnableHealthServiceAccessForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
35
- * // const { HealthClient, EnableHealthServiceAccessForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
36
- * const client = new HealthClient(config);
37
- * const command = new EnableHealthServiceAccessForOrganizationCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link EnableHealthServiceAccessForOrganizationCommandInput} for command's `input` shape.
42
- * @see {@link EnableHealthServiceAccessForOrganizationCommandOutput} for command's `response` shape.
43
- * @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
7
  class EnableHealthServiceAccessForOrganizationCommand extends smithy_client_1.Command {
47
- // Start section: command_properties
48
- // End section: command_properties
49
8
  constructor(input) {
50
- // Start section: command_constructor
51
9
  super();
52
10
  this.input = input;
53
- // End section: command_constructor
54
11
  }
55
- /**
56
- * @internal
57
- */
58
12
  resolveMiddleware(clientStack, configuration, options) {
59
13
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
60
14
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./DescribeAffectedAccountsForOrganizationCommand"), exports);
5
+ tslib_1.__exportStar(require("./DescribeAffectedEntitiesCommand"), exports);
6
+ tslib_1.__exportStar(require("./DescribeAffectedEntitiesForOrganizationCommand"), exports);
7
+ tslib_1.__exportStar(require("./DescribeEntityAggregatesCommand"), exports);
8
+ tslib_1.__exportStar(require("./DescribeEventAggregatesCommand"), exports);
9
+ tslib_1.__exportStar(require("./DescribeEventDetailsCommand"), exports);
10
+ tslib_1.__exportStar(require("./DescribeEventDetailsForOrganizationCommand"), exports);
11
+ tslib_1.__exportStar(require("./DescribeEventTypesCommand"), exports);
12
+ tslib_1.__exportStar(require("./DescribeEventsCommand"), exports);
13
+ tslib_1.__exportStar(require("./DescribeEventsForOrganizationCommand"), exports);
14
+ tslib_1.__exportStar(require("./DescribeHealthServiceStatusForOrganizationCommand"), exports);
15
+ tslib_1.__exportStar(require("./DisableHealthServiceAccessForOrganizationCommand"), exports);
16
+ tslib_1.__exportStar(require("./EnableHealthServiceAccessForOrganizationCommand"), exports);
@@ -38,22 +38,27 @@ const partitionHash = {
38
38
  "us-west-1",
39
39
  "us-west-2",
40
40
  ],
41
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
41
42
  hostname: "health.{region}.amazonaws.com",
42
43
  },
43
44
  "aws-cn": {
44
45
  regions: ["cn-north-1", "cn-northwest-1"],
46
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
45
47
  hostname: "health.{region}.amazonaws.com.cn",
46
48
  },
47
49
  "aws-iso": {
48
- regions: ["us-iso-east-1"],
50
+ regions: ["us-iso-east-1", "us-iso-west-1"],
51
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
49
52
  hostname: "health.{region}.c2s.ic.gov",
50
53
  },
51
54
  "aws-iso-b": {
52
55
  regions: ["us-isob-east-1"],
56
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
53
57
  hostname: "health.{region}.sc2s.sgov.gov",
54
58
  },
55
59
  "aws-us-gov": {
56
60
  regions: ["fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
61
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
57
62
  hostname: "health.{region}.amazonaws.com",
58
63
  },
59
64
  };
package/dist-cjs/index.js CHANGED
@@ -1,27 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./HealthClient"), exports);
5
4
  tslib_1.__exportStar(require("./Health"), exports);
6
- tslib_1.__exportStar(require("./commands/DescribeAffectedAccountsForOrganizationCommand"), exports);
7
- tslib_1.__exportStar(require("./pagination/DescribeAffectedAccountsForOrganizationPaginator"), exports);
8
- tslib_1.__exportStar(require("./commands/DescribeAffectedEntitiesCommand"), exports);
9
- tslib_1.__exportStar(require("./pagination/DescribeAffectedEntitiesPaginator"), exports);
10
- tslib_1.__exportStar(require("./commands/DescribeAffectedEntitiesForOrganizationCommand"), exports);
11
- tslib_1.__exportStar(require("./pagination/DescribeAffectedEntitiesForOrganizationPaginator"), exports);
12
- tslib_1.__exportStar(require("./commands/DescribeEntityAggregatesCommand"), exports);
13
- tslib_1.__exportStar(require("./commands/DescribeEventAggregatesCommand"), exports);
14
- tslib_1.__exportStar(require("./pagination/DescribeEventAggregatesPaginator"), exports);
15
- tslib_1.__exportStar(require("./commands/DescribeEventDetailsCommand"), exports);
16
- tslib_1.__exportStar(require("./commands/DescribeEventDetailsForOrganizationCommand"), exports);
17
- tslib_1.__exportStar(require("./commands/DescribeEventsCommand"), exports);
18
- tslib_1.__exportStar(require("./pagination/DescribeEventsPaginator"), exports);
19
- tslib_1.__exportStar(require("./commands/DescribeEventsForOrganizationCommand"), exports);
20
- tslib_1.__exportStar(require("./pagination/DescribeEventsForOrganizationPaginator"), exports);
21
- tslib_1.__exportStar(require("./commands/DescribeEventTypesCommand"), exports);
22
- tslib_1.__exportStar(require("./pagination/DescribeEventTypesPaginator"), exports);
23
- tslib_1.__exportStar(require("./commands/DescribeHealthServiceStatusForOrganizationCommand"), exports);
24
- tslib_1.__exportStar(require("./commands/DisableHealthServiceAccessForOrganizationCommand"), exports);
25
- tslib_1.__exportStar(require("./commands/EnableHealthServiceAccessForOrganizationCommand"), exports);
26
- tslib_1.__exportStar(require("./pagination/Interfaces"), exports);
27
- tslib_1.__exportStar(require("./models/index"), exports);
5
+ tslib_1.__exportStar(require("./HealthClient"), exports);
6
+ tslib_1.__exportStar(require("./commands"), exports);
7
+ tslib_1.__exportStar(require("./models"), exports);
8
+ tslib_1.__exportStar(require("./pagination"), exports);