@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.
- package/CHANGELOG.md +42 -0
- package/dist-cjs/Health.js +0 -52
- package/dist-cjs/HealthClient.js +0 -57
- package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +0 -32
- package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +0 -42
- package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +0 -45
- package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +0 -25
- package/dist-cjs/commands/DescribeEventAggregatesCommand.js +0 -29
- package/dist-cjs/commands/DescribeEventDetailsCommand.js +0 -33
- package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +0 -56
- package/dist-cjs/commands/DescribeEventTypesCommand.js +0 -31
- package/dist-cjs/commands/DescribeEventsCommand.js +0 -46
- package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +0 -55
- package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +0 -27
- package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js +0 -38
- package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js +0 -46
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +4 -23
- package/dist-cjs/models/models_0.js +0 -126
- package/dist-cjs/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeAffectedEntitiesPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeEventAggregatesPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeEventTypesPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeEventsForOrganizationPaginator.js +0 -10
- package/dist-cjs/pagination/DescribeEventsPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +4 -23
- package/dist-es/pagination/index.js +8 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/index.d.ts +4 -23
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/Health.d.ts +14 -284
- package/dist-types/ts3.4/HealthClient.d.ts +24 -138
- package/dist-types/ts3.4/commands/DescribeAffectedAccountsForOrganizationCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/DescribeAffectedEntitiesCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/DescribeEntityAggregatesCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeEventAggregatesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DescribeEventDetailsCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DescribeEventDetailsForOrganizationCommand.d.ts +2 -52
- package/dist-types/ts3.4/commands/DescribeEventTypesCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/DescribeEventsForOrganizationCommand.d.ts +2 -51
- package/dist-types/ts3.4/commands/DescribeHealthServiceStatusForOrganizationCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DisableHealthServiceAccessForOrganizationCommand.d.ts +2 -34
- package/dist-types/ts3.4/commands/EnableHealthServiceAccessForOrganizationCommand.d.ts +2 -42
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/index.d.ts +4 -23
- package/dist-types/ts3.4/models/models_0.d.ts +209 -927
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +32 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-health
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
20
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
49
|
|
|
8
50
|
|
package/dist-cjs/Health.js
CHANGED
|
@@ -15,58 +15,6 @@ const DescribeHealthServiceStatusForOrganizationCommand_1 = require("./commands/
|
|
|
15
15
|
const DisableHealthServiceAccessForOrganizationCommand_1 = require("./commands/DisableHealthServiceAccessForOrganizationCommand");
|
|
16
16
|
const EnableHealthServiceAccessForOrganizationCommand_1 = require("./commands/EnableHealthServiceAccessForOrganizationCommand");
|
|
17
17
|
const HealthClient_1 = require("./HealthClient");
|
|
18
|
-
/**
|
|
19
|
-
* <fullname>AWS Health</fullname>
|
|
20
|
-
*
|
|
21
|
-
* <p>The AWS Health API provides programmatic access to the AWS Health information that
|
|
22
|
-
* appears in the <a href="https://phd.aws.amazon.com/phd/home#/">AWS Personal Health Dashboard</a>. You
|
|
23
|
-
* can use the API operations to get information about AWS Health events that affect your
|
|
24
|
-
* AWS services and resources.</p>
|
|
25
|
-
* <note>
|
|
26
|
-
* <ul>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">AWS Support</a> to use the
|
|
29
|
-
* AWS Health API. If you call the AWS Health API from an AWS account that
|
|
30
|
-
* doesn't have a Business or Enterprise Support plan, you receive a
|
|
31
|
-
* <code>SubscriptionRequiredException</code> error.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>You can use the AWS Health endpoint health.us-east-1.amazonaws.com (HTTPS) to
|
|
35
|
-
* call the AWS Health API operations. AWS Health supports a multi-Region
|
|
36
|
-
* application architecture and has two regional endpoints in an active-passive
|
|
37
|
-
* configuration. You can use the high availability endpoint example to determine
|
|
38
|
-
* which AWS Region is active, so that you can get the latest information from the
|
|
39
|
-
* API. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the AWS Health API</a> in the
|
|
40
|
-
* <i>AWS Health User Guide</i>.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
* </note>
|
|
44
|
-
* <p>For authentication of requests, AWS Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 Signing
|
|
45
|
-
* Process</a>.</p>
|
|
46
|
-
* <p>If your AWS account is part of AWS Organizations, you can use the AWS Health organizational
|
|
47
|
-
* view feature. This feature provides a centralized view of AWS Health events across all
|
|
48
|
-
* accounts in your organization. You can aggregate AWS Health events in real time to
|
|
49
|
-
* identify accounts in your organization that are affected by an operational event or get
|
|
50
|
-
* notified of security vulnerabilities. Use the organizational view API operations to enable
|
|
51
|
-
* this feature and return event information. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
|
|
52
|
-
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p>
|
|
53
|
-
* <note>
|
|
54
|
-
* <p>When you use the AWS Health API operations to return AWS Health events, see the
|
|
55
|
-
* following recommendations:</p>
|
|
56
|
-
* <ul>
|
|
57
|
-
* <li>
|
|
58
|
-
* <p>Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a> parameter to specify whether to return AWS Health
|
|
59
|
-
* events that are public or account-specific.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>Use pagination to view all events from the response. For example, if you call
|
|
63
|
-
* the <code>DescribeEventsForOrganization</code> operation to get all events in your
|
|
64
|
-
* organization, you might receive several page results. Specify the
|
|
65
|
-
* <code>nextToken</code> in the next request to return more results.</p>
|
|
66
|
-
* </li>
|
|
67
|
-
* </ul>
|
|
68
|
-
* </note>
|
|
69
|
-
*/
|
|
70
18
|
class Health extends HealthClient_1.HealthClient {
|
|
71
19
|
describeAffectedAccountsForOrganization(args, optionsOrCb, cb) {
|
|
72
20
|
const command = new DescribeAffectedAccountsForOrganizationCommand_1.DescribeAffectedAccountsForOrganizationCommand(args);
|
package/dist-cjs/HealthClient.js
CHANGED
|
@@ -10,58 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
10
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
11
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
|
-
/**
|
|
14
|
-
* <fullname>AWS Health</fullname>
|
|
15
|
-
*
|
|
16
|
-
* <p>The AWS Health API provides programmatic access to the AWS Health information that
|
|
17
|
-
* appears in the <a href="https://phd.aws.amazon.com/phd/home#/">AWS Personal Health Dashboard</a>. You
|
|
18
|
-
* can use the API operations to get information about AWS Health events that affect your
|
|
19
|
-
* AWS services and resources.</p>
|
|
20
|
-
* <note>
|
|
21
|
-
* <ul>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>You must have a Business or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">AWS Support</a> to use the
|
|
24
|
-
* AWS Health API. If you call the AWS Health API from an AWS account that
|
|
25
|
-
* doesn't have a Business or Enterprise Support plan, you receive a
|
|
26
|
-
* <code>SubscriptionRequiredException</code> error.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>You can use the AWS Health endpoint health.us-east-1.amazonaws.com (HTTPS) to
|
|
30
|
-
* call the AWS Health API operations. AWS Health supports a multi-Region
|
|
31
|
-
* application architecture and has two regional endpoints in an active-passive
|
|
32
|
-
* configuration. You can use the high availability endpoint example to determine
|
|
33
|
-
* which AWS Region is active, so that you can get the latest information from the
|
|
34
|
-
* API. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/health-api.html">Accessing the AWS Health API</a> in the
|
|
35
|
-
* <i>AWS Health User Guide</i>.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* </ul>
|
|
38
|
-
* </note>
|
|
39
|
-
* <p>For authentication of requests, AWS Health uses the <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature Version 4 Signing
|
|
40
|
-
* Process</a>.</p>
|
|
41
|
-
* <p>If your AWS account is part of AWS Organizations, you can use the AWS Health organizational
|
|
42
|
-
* view feature. This feature provides a centralized view of AWS Health events across all
|
|
43
|
-
* accounts in your organization. You can aggregate AWS Health events in real time to
|
|
44
|
-
* identify accounts in your organization that are affected by an operational event or get
|
|
45
|
-
* notified of security vulnerabilities. Use the organizational view API operations to enable
|
|
46
|
-
* this feature and return event information. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating
|
|
47
|
-
* AWS Health events</a> in the <i>AWS Health User Guide</i>.</p>
|
|
48
|
-
* <note>
|
|
49
|
-
* <p>When you use the AWS Health API operations to return AWS Health events, see the
|
|
50
|
-
* following recommendations:</p>
|
|
51
|
-
* <ul>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>Use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a> parameter to specify whether to return AWS Health
|
|
54
|
-
* events that are public or account-specific.</p>
|
|
55
|
-
* </li>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>Use pagination to view all events from the response. For example, if you call
|
|
58
|
-
* the <code>DescribeEventsForOrganization</code> operation to get all events in your
|
|
59
|
-
* organization, you might receive several page results. Specify the
|
|
60
|
-
* <code>nextToken</code> in the next request to return more results.</p>
|
|
61
|
-
* </li>
|
|
62
|
-
* </ul>
|
|
63
|
-
* </note>
|
|
64
|
-
*/
|
|
65
13
|
class HealthClient extends smithy_client_1.Client {
|
|
66
14
|
constructor(configuration) {
|
|
67
15
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -80,11 +28,6 @@ class HealthClient extends smithy_client_1.Client {
|
|
|
80
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
81
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
82
30
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
85
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
86
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
87
|
-
*/
|
|
88
31
|
destroy() {
|
|
89
32
|
super.destroy();
|
|
90
33
|
}
|
|
@@ -5,43 +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 a list of accounts in the organization from AWS Organizations that are affected by the
|
|
10
|
-
* provided event. For more information about the different types of AWS Health events, see
|
|
11
|
-
* <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>. </p>
|
|
12
|
-
* <p>Before you can call this operation, you must first enable AWS Health to work with
|
|
13
|
-
* 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
|
|
14
|
-
* management account.</p>
|
|
15
|
-
* <note>
|
|
16
|
-
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
17
|
-
* </note>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { HealthClient, DescribeAffectedAccountsForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
22
|
-
* // const { HealthClient, DescribeAffectedAccountsForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
23
|
-
* const client = new HealthClient(config);
|
|
24
|
-
* const command = new DescribeAffectedAccountsForOrganizationCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link DescribeAffectedAccountsForOrganizationCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link DescribeAffectedAccountsForOrganizationCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class DescribeAffectedAccountsForOrganizationCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,53 +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 a list of entities that have been affected by the specified events, based on the
|
|
10
|
-
* specified filter criteria. Entities can refer to individual customer resources, groups of
|
|
11
|
-
* customer resources, or any other construct, depending on the AWS service. Events that
|
|
12
|
-
* have impact beyond that of the affected entities, or where the extent of impact is unknown,
|
|
13
|
-
* include at least one entity indicating this.</p>
|
|
14
|
-
* <p>At least one event ARN is required. Results are sorted by the
|
|
15
|
-
* <code>lastUpdatedTime</code> of the entity, starting with the most recent.</p>
|
|
16
|
-
*
|
|
17
|
-
* <note>
|
|
18
|
-
* <ul>
|
|
19
|
-
* <li>
|
|
20
|
-
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
21
|
-
* </li>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>This operation supports resource-level permissions. You can use this operation to allow or deny access to specific AWS Health events. For more
|
|
24
|
-
* information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- and action-based conditions</a> in the <i>AWS Health User Guide</i>.</p>
|
|
25
|
-
* </li>
|
|
26
|
-
* </ul>
|
|
27
|
-
* </note>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { HealthClient, DescribeAffectedEntitiesCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
32
|
-
* // const { HealthClient, DescribeAffectedEntitiesCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
33
|
-
* const client = new HealthClient(config);
|
|
34
|
-
* const command = new DescribeAffectedEntitiesCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link DescribeAffectedEntitiesCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link DescribeAffectedEntitiesCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
8
|
class DescribeAffectedEntitiesCommand extends smithy_client_1.Command {
|
|
44
|
-
// Start section: command_properties
|
|
45
|
-
// End section: command_properties
|
|
46
9
|
constructor(input) {
|
|
47
|
-
// Start section: command_constructor
|
|
48
10
|
super();
|
|
49
11
|
this.input = input;
|
|
50
|
-
// End section: command_constructor
|
|
51
12
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
56
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,56 +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 a list of entities that have been affected by one or more events for one or more
|
|
10
|
-
* accounts in your organization in AWS Organizations, based on the filter criteria. Entities can refer
|
|
11
|
-
* to individual customer resources, groups of customer resources, or any other construct,
|
|
12
|
-
* depending on the AWS service.</p>
|
|
13
|
-
* <p>At least one event Amazon Resource Name (ARN) and account ID are required. Results are
|
|
14
|
-
* sorted by the <code>lastUpdatedTime</code> of the entity, starting with the most
|
|
15
|
-
* recent.</p>
|
|
16
|
-
* <p>Before you can call this operation, you must first enable AWS Health to work with
|
|
17
|
-
* AWS Organizations. To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a>
|
|
18
|
-
* operation from your organization's management account.</p>
|
|
19
|
-
* <note>
|
|
20
|
-
* <ul>
|
|
21
|
-
* <li>
|
|
22
|
-
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>This operation doesn't support resource-level permissions. You can't use this operation to allow or deny access to specific AWS Health events. For more
|
|
26
|
-
* information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- and action-based conditions</a> in the <i>AWS Health User Guide</i>.</p>
|
|
27
|
-
* </li>
|
|
28
|
-
* </ul>
|
|
29
|
-
*
|
|
30
|
-
* </note>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { HealthClient, DescribeAffectedEntitiesForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
35
|
-
* // const { HealthClient, DescribeAffectedEntitiesForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
36
|
-
* const client = new HealthClient(config);
|
|
37
|
-
* const command = new DescribeAffectedEntitiesForOrganizationCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeAffectedEntitiesForOrganizationCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeAffectedEntitiesForOrganizationCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
8
|
class DescribeAffectedEntitiesForOrganizationCommand extends smithy_client_1.Command {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
9
|
constructor(input) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
10
|
super();
|
|
52
11
|
this.input = input;
|
|
53
|
-
// End section: command_constructor
|
|
54
12
|
}
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
59
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
60
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,36 +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 the number of entities that are affected by each of the specified events. If no
|
|
10
|
-
* events are specified, the counts of all affected entities are returned.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { HealthClient, DescribeEntityAggregatesCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
15
|
-
* // const { HealthClient, DescribeEntityAggregatesCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
16
|
-
* const client = new HealthClient(config);
|
|
17
|
-
* const command = new DescribeEntityAggregatesCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link DescribeEntityAggregatesCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link DescribeEntityAggregatesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
8
|
class DescribeEntityAggregatesCommand extends smithy_client_1.Command {
|
|
27
|
-
// Start section: command_properties
|
|
28
|
-
// End section: command_properties
|
|
29
9
|
constructor(input) {
|
|
30
|
-
// Start section: command_constructor
|
|
31
10
|
super();
|
|
32
11
|
this.input = input;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +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 the number of events of each event type (issue, scheduled change, and account
|
|
10
|
-
* notification). If no filter is specified, the counts of all events in each category are
|
|
11
|
-
* returned.</p>
|
|
12
|
-
* <note>
|
|
13
|
-
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
14
|
-
* </note>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { HealthClient, DescribeEventAggregatesCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
19
|
-
* // const { HealthClient, DescribeEventAggregatesCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
20
|
-
* const client = new HealthClient(config);
|
|
21
|
-
* const command = new DescribeEventAggregatesCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link DescribeEventAggregatesCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link DescribeEventAggregatesCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class DescribeEventAggregatesCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,44 +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 detailed information about one or more specified events. Information includes
|
|
10
|
-
* standard event data (AWS Region, service, and so on, as returned by <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>), a detailed event description, and possible additional metadata
|
|
11
|
-
* that depends upon the nature of the event. Affected entities are not included. To retrieve
|
|
12
|
-
* the entities, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a> operation.</p>
|
|
13
|
-
* <p>If a specified event can't be retrieved, an error message is returned for that
|
|
14
|
-
* event.</p>
|
|
15
|
-
* <note>
|
|
16
|
-
* <p>This operation supports resource-level permissions. You can use this operation to allow or deny access to specific AWS Health events. For more
|
|
17
|
-
* information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- and action-based conditions</a> in the <i>AWS Health User Guide</i>.</p>
|
|
18
|
-
* </note>
|
|
19
|
-
* @example
|
|
20
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
21
|
-
* ```javascript
|
|
22
|
-
* import { HealthClient, DescribeEventDetailsCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
23
|
-
* // const { HealthClient, DescribeEventDetailsCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
24
|
-
* const client = new HealthClient(config);
|
|
25
|
-
* const command = new DescribeEventDetailsCommand(input);
|
|
26
|
-
* const response = await client.send(command);
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* @see {@link DescribeEventDetailsCommandInput} for command's `input` shape.
|
|
30
|
-
* @see {@link DescribeEventDetailsCommandOutput} for command's `response` shape.
|
|
31
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
8
|
class DescribeEventDetailsCommand extends smithy_client_1.Command {
|
|
35
|
-
// Start section: command_properties
|
|
36
|
-
// End section: command_properties
|
|
37
9
|
constructor(input) {
|
|
38
|
-
// Start section: command_constructor
|
|
39
10
|
super();
|
|
40
11
|
this.input = input;
|
|
41
|
-
// End section: command_constructor
|
|
42
12
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
*/
|
|
46
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
47
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
48
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,67 +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 detailed information about one or more specified events for one or more AWS
|
|
10
|
-
* accounts in your organization. This information includes standard event data (such as the
|
|
11
|
-
* AWS Region and service), an event description, and (depending on the event) possible
|
|
12
|
-
* metadata. This operation doesn't return affected entities, such as the resources related to
|
|
13
|
-
* the event. To return affected entities, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> operation.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>Before you can call this operation, you must first enable AWS Health to work with
|
|
16
|
-
* 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
|
|
17
|
-
* management account.</p>
|
|
18
|
-
* </note>
|
|
19
|
-
* <p>When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify
|
|
20
|
-
* the <code>organizationEventDetailFilters</code> object in the request. Depending on the
|
|
21
|
-
* AWS Health event type, note the following differences:</p>
|
|
22
|
-
* <ul>
|
|
23
|
-
* <li>
|
|
24
|
-
* <p>To return event details for a public event, you must specify a null value for the
|
|
25
|
-
* <code>awsAccountId</code> parameter. If you specify an account ID for a public
|
|
26
|
-
* event, AWS Health returns an error message because public events aren't specific to
|
|
27
|
-
* an account.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>To return event details for an event that is specific to an account in your
|
|
31
|
-
* organization, you must specify the <code>awsAccountId</code> parameter in the
|
|
32
|
-
* request. If you don't specify an account ID, AWS Health returns an error message
|
|
33
|
-
* because the event is specific to an account in your organization. </p>
|
|
34
|
-
* </li>
|
|
35
|
-
* </ul>
|
|
36
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
|
|
37
|
-
*
|
|
38
|
-
* <note>
|
|
39
|
-
* <p>This operation doesn't support resource-level permissions. You can't use this operation to allow or deny access to specific AWS Health events. For more
|
|
40
|
-
* information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- and action-based conditions</a> in the <i>AWS Health User Guide</i>.</p>
|
|
41
|
-
* </note>
|
|
42
|
-
* @example
|
|
43
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
44
|
-
* ```javascript
|
|
45
|
-
* import { HealthClient, DescribeEventDetailsForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
46
|
-
* // const { HealthClient, DescribeEventDetailsForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
47
|
-
* const client = new HealthClient(config);
|
|
48
|
-
* const command = new DescribeEventDetailsForOrganizationCommand(input);
|
|
49
|
-
* const response = await client.send(command);
|
|
50
|
-
* ```
|
|
51
|
-
*
|
|
52
|
-
* @see {@link DescribeEventDetailsForOrganizationCommandInput} for command's `input` shape.
|
|
53
|
-
* @see {@link DescribeEventDetailsForOrganizationCommandOutput} for command's `response` shape.
|
|
54
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
8
|
class DescribeEventDetailsForOrganizationCommand extends smithy_client_1.Command {
|
|
58
|
-
// Start section: command_properties
|
|
59
|
-
// End section: command_properties
|
|
60
9
|
constructor(input) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
10
|
super();
|
|
63
11
|
this.input = input;
|
|
64
|
-
// End section: command_constructor
|
|
65
12
|
}
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
70
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,42 +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 the event types that meet the specified filter criteria. You can use this API
|
|
10
|
-
* operation to find information about the AWS Health event, such as the category, AWS
|
|
11
|
-
* service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a> object. </p>
|
|
12
|
-
* <p>If you don't specify a filter criteria, the API operation returns all event types, in no
|
|
13
|
-
* particular order. </p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
16
|
-
* </note>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { HealthClient, DescribeEventTypesCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
21
|
-
* // const { HealthClient, DescribeEventTypesCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
22
|
-
* const client = new HealthClient(config);
|
|
23
|
-
* const command = new DescribeEventTypesCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link DescribeEventTypesCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link DescribeEventTypesCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class DescribeEventTypesCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,57 +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 that meet the specified filter criteria. Events are
|
|
10
|
-
* returned in a summary form and do not include the detailed description, any additional
|
|
11
|
-
* metadata that depends on the event type, or any affected resources. To retrieve that
|
|
12
|
-
* information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a> and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a> operations.</p>
|
|
13
|
-
* <p>If no filter criteria are specified, all events are returned. Results are sorted by
|
|
14
|
-
* <code>lastModifiedTime</code>, starting with the most recent event.</p>
|
|
15
|
-
* <note>
|
|
16
|
-
* <ul>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>When you call the <code>DescribeEvents</code> operation and specify an entity
|
|
19
|
-
* for the <code>entityValues</code> parameter, AWS Health might return public
|
|
20
|
-
* events that aren't specific to that resource. For example, if you call
|
|
21
|
-
* <code>DescribeEvents</code> and specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2)
|
|
22
|
-
* instance, AWS Health might return events that aren't specific to that resource or
|
|
23
|
-
* service. To get events that are specific to a service, use the
|
|
24
|
-
* <code>services</code> parameter in the <code>filter</code> object. For more
|
|
25
|
-
* information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>This API operation uses pagination. Specify the <code>nextToken</code> parameter in the next request to return more results.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* </note>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { HealthClient, DescribeEventsCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
36
|
-
* // const { HealthClient, DescribeEventsCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
37
|
-
* const client = new HealthClient(config);
|
|
38
|
-
* const command = new DescribeEventsCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link DescribeEventsCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link DescribeEventsCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link HealthClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
8
|
class DescribeEventsCommand extends smithy_client_1.Command {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
9
|
constructor(input) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
10
|
super();
|
|
53
11
|
this.input = input;
|
|
54
|
-
// End section: command_constructor
|
|
55
12
|
}
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
60
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
61
15
|
const stack = clientStack.concat(this.middlewareStack);
|