@aws-sdk/client-health 3.395.0 → 3.404.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/README.md +8 -0
- package/dist-cjs/Health.js +2 -0
- package/dist-cjs/commands/DescribeEntityAggregatesForOrganizationCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +35 -1
- package/dist-cjs/runtimeExtensions.js +5 -5
- package/dist-es/Health.js +2 -0
- package/dist-es/commands/DescribeEntityAggregatesForOrganizationCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +32 -0
- package/dist-es/runtimeExtensions.js +5 -5
- package/dist-types/Health.d.ts +7 -0
- package/dist-types/HealthClient.d.ts +3 -2
- package/dist-types/commands/DescribeAffectedEntitiesCommand.d.ts +2 -2
- package/dist-types/commands/DescribeAffectedEntitiesForOrganizationCommand.d.ts +11 -2
- package/dist-types/commands/DescribeEntityAggregatesCommand.d.ts +3 -0
- package/dist-types/commands/DescribeEntityAggregatesForOrganizationCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/extensionConfiguration.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +119 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/runtimeExtensions.d.ts +2 -2
- package/dist-types/ts3.4/Health.d.ts +23 -0
- package/dist-types/ts3.4/HealthClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DescribeEntityAggregatesForOrganizationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +28 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +2 -2
- package/package.json +29 -29
- package/dist-types/clientConfiguration.d.ts +0 -6
- package/dist-types/ts3.4/clientConfiguration.d.ts +0 -2
- /package/dist-cjs/{clientConfiguration.js → extensionConfiguration.js} +0 -0
- /package/dist-es/{clientConfiguration.js → extensionConfiguration.js} +0 -0
package/README.md
CHANGED
|
@@ -277,6 +277,14 @@ DescribeEntityAggregates
|
|
|
277
277
|
|
|
278
278
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-health/classes/describeentityaggregatescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-health/interfaces/describeentityaggregatescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-health/interfaces/describeentityaggregatescommandoutput.html)
|
|
279
279
|
|
|
280
|
+
</details>
|
|
281
|
+
<details>
|
|
282
|
+
<summary>
|
|
283
|
+
DescribeEntityAggregatesForOrganization
|
|
284
|
+
</summary>
|
|
285
|
+
|
|
286
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-health/classes/describeentityaggregatesfororganizationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-health/interfaces/describeentityaggregatesfororganizationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-health/interfaces/describeentityaggregatesfororganizationcommandoutput.html)
|
|
287
|
+
|
|
280
288
|
</details>
|
|
281
289
|
<details>
|
|
282
290
|
<summary>
|
package/dist-cjs/Health.js
CHANGED
|
@@ -6,6 +6,7 @@ const DescribeAffectedAccountsForOrganizationCommand_1 = require("./commands/Des
|
|
|
6
6
|
const DescribeAffectedEntitiesCommand_1 = require("./commands/DescribeAffectedEntitiesCommand");
|
|
7
7
|
const DescribeAffectedEntitiesForOrganizationCommand_1 = require("./commands/DescribeAffectedEntitiesForOrganizationCommand");
|
|
8
8
|
const DescribeEntityAggregatesCommand_1 = require("./commands/DescribeEntityAggregatesCommand");
|
|
9
|
+
const DescribeEntityAggregatesForOrganizationCommand_1 = require("./commands/DescribeEntityAggregatesForOrganizationCommand");
|
|
9
10
|
const DescribeEventAggregatesCommand_1 = require("./commands/DescribeEventAggregatesCommand");
|
|
10
11
|
const DescribeEventDetailsCommand_1 = require("./commands/DescribeEventDetailsCommand");
|
|
11
12
|
const DescribeEventDetailsForOrganizationCommand_1 = require("./commands/DescribeEventDetailsForOrganizationCommand");
|
|
@@ -21,6 +22,7 @@ const commands = {
|
|
|
21
22
|
DescribeAffectedEntitiesCommand: DescribeAffectedEntitiesCommand_1.DescribeAffectedEntitiesCommand,
|
|
22
23
|
DescribeAffectedEntitiesForOrganizationCommand: DescribeAffectedEntitiesForOrganizationCommand_1.DescribeAffectedEntitiesForOrganizationCommand,
|
|
23
24
|
DescribeEntityAggregatesCommand: DescribeEntityAggregatesCommand_1.DescribeEntityAggregatesCommand,
|
|
25
|
+
DescribeEntityAggregatesForOrganizationCommand: DescribeEntityAggregatesForOrganizationCommand_1.DescribeEntityAggregatesForOrganizationCommand,
|
|
24
26
|
DescribeEventAggregatesCommand: DescribeEventAggregatesCommand_1.DescribeEventAggregatesCommand,
|
|
25
27
|
DescribeEventDetailsCommand: DescribeEventDetailsCommand_1.DescribeEventDetailsCommand,
|
|
26
28
|
DescribeEventDetailsForOrganizationCommand: DescribeEventDetailsForOrganizationCommand_1.DescribeEventDetailsForOrganizationCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeEntityAggregatesForOrganizationCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DescribeEntityAggregatesForOrganizationCommand extends smithy_client_1.Command {
|
|
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
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeEntityAggregatesForOrganizationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "HealthClient";
|
|
28
|
+
const commandName = "DescribeEntityAggregatesForOrganizationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DescribeEntityAggregatesForOrganizationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DescribeEntityAggregatesForOrganizationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DescribeEntityAggregatesForOrganizationCommand = DescribeEntityAggregatesForOrganizationCommand;
|
|
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./DescribeAffectedAccountsForOrganizationCommand")
|
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeAffectedEntitiesCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./DescribeAffectedEntitiesForOrganizationCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DescribeEntityAggregatesCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DescribeEntityAggregatesForOrganizationCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeEventAggregatesCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DescribeEventDetailsCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DescribeEventDetailsForOrganizationCommand"), exports);
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
5
5
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = "health", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [x]: "Region" }, p = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, q = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, r = [l], s = [m], t = [o];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: a, [w]: [k] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: a, [w]: [k] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: k, properties: n, headers: n }, type: d }] }, { conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ conditions: [p, q], type: b, rules: [{ endpoint: { url: "https://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [p], type: b, rules: [{ endpoint: { url: "https://health-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ endpoint: { url: "https://health.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { conditions: [{ [v]: f, [w]: [o, "aws-global"] }], endpoint: { url: "https://global.health.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-east-1" }] }, headers: n }, type: d }, { conditions: [{ [v]: f, [w]: [o, "aws-cn-global"] }], endpoint: { url: "https://global.health.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-northwest-1" }] }, headers: n }, type: d }, { endpoint: { url: "https://health.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -4,6 +4,8 @@ exports.ConcurrentModificationException = exports.EventTypeCategory = exports.Ev
|
|
|
4
4
|
const HealthServiceException_1 = require("./HealthServiceException");
|
|
5
5
|
exports.EntityStatusCode = {
|
|
6
6
|
IMPAIRED: "IMPAIRED",
|
|
7
|
+
PENDING: "PENDING",
|
|
8
|
+
RESOLVED: "RESOLVED",
|
|
7
9
|
UNIMPAIRED: "UNIMPAIRED",
|
|
8
10
|
UNKNOWN: "UNKNOWN",
|
|
9
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_EnableHealthServiceAccessForOrganizationCommand = exports.de_DisableHealthServiceAccessForOrganizationCommand = exports.de_DescribeHealthServiceStatusForOrganizationCommand = exports.de_DescribeEventTypesCommand = exports.de_DescribeEventsForOrganizationCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEventDetailsForOrganizationCommand = exports.de_DescribeEventDetailsCommand = exports.de_DescribeEventAggregatesCommand = exports.de_DescribeEntityAggregatesCommand = exports.de_DescribeAffectedEntitiesForOrganizationCommand = exports.de_DescribeAffectedEntitiesCommand = exports.de_DescribeAffectedAccountsForOrganizationCommand = exports.se_EnableHealthServiceAccessForOrganizationCommand = exports.se_DisableHealthServiceAccessForOrganizationCommand = exports.se_DescribeHealthServiceStatusForOrganizationCommand = exports.se_DescribeEventTypesCommand = exports.se_DescribeEventsForOrganizationCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEventDetailsForOrganizationCommand = exports.se_DescribeEventDetailsCommand = exports.se_DescribeEventAggregatesCommand = exports.se_DescribeEntityAggregatesCommand = exports.se_DescribeAffectedEntitiesForOrganizationCommand = exports.se_DescribeAffectedEntitiesCommand = exports.se_DescribeAffectedAccountsForOrganizationCommand = void 0;
|
|
3
|
+
exports.de_EnableHealthServiceAccessForOrganizationCommand = exports.de_DisableHealthServiceAccessForOrganizationCommand = exports.de_DescribeHealthServiceStatusForOrganizationCommand = exports.de_DescribeEventTypesCommand = exports.de_DescribeEventsForOrganizationCommand = exports.de_DescribeEventsCommand = exports.de_DescribeEventDetailsForOrganizationCommand = exports.de_DescribeEventDetailsCommand = exports.de_DescribeEventAggregatesCommand = exports.de_DescribeEntityAggregatesForOrganizationCommand = exports.de_DescribeEntityAggregatesCommand = exports.de_DescribeAffectedEntitiesForOrganizationCommand = exports.de_DescribeAffectedEntitiesCommand = exports.de_DescribeAffectedAccountsForOrganizationCommand = exports.se_EnableHealthServiceAccessForOrganizationCommand = exports.se_DisableHealthServiceAccessForOrganizationCommand = exports.se_DescribeHealthServiceStatusForOrganizationCommand = exports.se_DescribeEventTypesCommand = exports.se_DescribeEventsForOrganizationCommand = exports.se_DescribeEventsCommand = exports.se_DescribeEventDetailsForOrganizationCommand = exports.se_DescribeEventDetailsCommand = exports.se_DescribeEventAggregatesCommand = exports.se_DescribeEntityAggregatesForOrganizationCommand = exports.se_DescribeEntityAggregatesCommand = exports.se_DescribeAffectedEntitiesForOrganizationCommand = exports.se_DescribeAffectedEntitiesCommand = exports.se_DescribeAffectedAccountsForOrganizationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const HealthServiceException_1 = require("../models/HealthServiceException");
|
|
@@ -33,6 +33,13 @@ const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
exports.se_DescribeEntityAggregatesCommand = se_DescribeEntityAggregatesCommand;
|
|
36
|
+
const se_DescribeEntityAggregatesForOrganizationCommand = async (input, context) => {
|
|
37
|
+
const headers = sharedHeaders("DescribeEntityAggregatesForOrganization");
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
42
|
+
exports.se_DescribeEntityAggregatesForOrganizationCommand = se_DescribeEntityAggregatesForOrganizationCommand;
|
|
36
43
|
const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
37
44
|
const headers = sharedHeaders("DescribeEventAggregates");
|
|
38
45
|
let body;
|
|
@@ -225,6 +232,33 @@ const de_DescribeEntityAggregatesCommandError = async (output, context) => {
|
|
|
225
232
|
errorCode,
|
|
226
233
|
});
|
|
227
234
|
};
|
|
235
|
+
const de_DescribeEntityAggregatesForOrganizationCommand = async (output, context) => {
|
|
236
|
+
if (output.statusCode >= 300) {
|
|
237
|
+
return de_DescribeEntityAggregatesForOrganizationCommandError(output, context);
|
|
238
|
+
}
|
|
239
|
+
const data = await parseBody(output.body, context);
|
|
240
|
+
let contents = {};
|
|
241
|
+
contents = (0, smithy_client_1._json)(data);
|
|
242
|
+
const response = {
|
|
243
|
+
$metadata: deserializeMetadata(output),
|
|
244
|
+
...contents,
|
|
245
|
+
};
|
|
246
|
+
return response;
|
|
247
|
+
};
|
|
248
|
+
exports.de_DescribeEntityAggregatesForOrganizationCommand = de_DescribeEntityAggregatesForOrganizationCommand;
|
|
249
|
+
const de_DescribeEntityAggregatesForOrganizationCommandError = async (output, context) => {
|
|
250
|
+
const parsedOutput = {
|
|
251
|
+
...output,
|
|
252
|
+
body: await parseErrorBody(output.body, context),
|
|
253
|
+
};
|
|
254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
255
|
+
const parsedBody = parsedOutput.body;
|
|
256
|
+
return throwDefaultError({
|
|
257
|
+
output,
|
|
258
|
+
parsedBody,
|
|
259
|
+
errorCode,
|
|
260
|
+
});
|
|
261
|
+
};
|
|
228
262
|
const de_DescribeEventAggregatesCommand = async (output, context) => {
|
|
229
263
|
if (output.statusCode >= 300) {
|
|
230
264
|
return de_DescribeEventAggregatesCommandError(output, context);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const asPartial = (t) => t;
|
|
6
6
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const
|
|
8
|
-
...asPartial((0,
|
|
7
|
+
const extensionConfiguration = {
|
|
8
|
+
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
9
9
|
};
|
|
10
|
-
extensions.forEach((extension) => extension.
|
|
10
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
11
|
return {
|
|
12
12
|
...runtimeConfig,
|
|
13
|
-
...(0,
|
|
13
|
+
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
package/dist-es/Health.js
CHANGED
|
@@ -3,6 +3,7 @@ import { DescribeAffectedAccountsForOrganizationCommand, } from "./commands/Desc
|
|
|
3
3
|
import { DescribeAffectedEntitiesCommand, } from "./commands/DescribeAffectedEntitiesCommand";
|
|
4
4
|
import { DescribeAffectedEntitiesForOrganizationCommand, } from "./commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
5
5
|
import { DescribeEntityAggregatesCommand, } from "./commands/DescribeEntityAggregatesCommand";
|
|
6
|
+
import { DescribeEntityAggregatesForOrganizationCommand, } from "./commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
6
7
|
import { DescribeEventAggregatesCommand, } from "./commands/DescribeEventAggregatesCommand";
|
|
7
8
|
import { DescribeEventDetailsCommand, } from "./commands/DescribeEventDetailsCommand";
|
|
8
9
|
import { DescribeEventDetailsForOrganizationCommand, } from "./commands/DescribeEventDetailsForOrganizationCommand";
|
|
@@ -18,6 +19,7 @@ const commands = {
|
|
|
18
19
|
DescribeAffectedEntitiesCommand,
|
|
19
20
|
DescribeAffectedEntitiesForOrganizationCommand,
|
|
20
21
|
DescribeEntityAggregatesCommand,
|
|
22
|
+
DescribeEntityAggregatesForOrganizationCommand,
|
|
21
23
|
DescribeEventAggregatesCommand,
|
|
22
24
|
DescribeEventDetailsCommand,
|
|
23
25
|
DescribeEventDetailsForOrganizationCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { de_DescribeEntityAggregatesForOrganizationCommand, se_DescribeEntityAggregatesForOrganizationCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DescribeEntityAggregatesForOrganizationCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEntityAggregatesForOrganizationCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "HealthClient";
|
|
25
|
+
const commandName = "DescribeEntityAggregatesForOrganizationCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DescribeEntityAggregatesForOrganizationCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DescribeEntityAggregatesForOrganizationCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./DescribeAffectedAccountsForOrganizationCommand";
|
|
|
2
2
|
export * from "./DescribeAffectedEntitiesCommand";
|
|
3
3
|
export * from "./DescribeAffectedEntitiesForOrganizationCommand";
|
|
4
4
|
export * from "./DescribeEntityAggregatesCommand";
|
|
5
|
+
export * from "./DescribeEntityAggregatesForOrganizationCommand";
|
|
5
6
|
export * from "./DescribeEventAggregatesCommand";
|
|
6
7
|
export * from "./DescribeEventDetailsCommand";
|
|
7
8
|
export * from "./DescribeEventDetailsForOrganizationCommand";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const u = "required", v = "fn", w = "argv", x = "ref";
|
|
2
2
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = "health", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [x]: "Region" }, p = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsFIPS"] }] }, q = { [v]: "booleanEquals", [w]: [true, { [v]: "getAttr", [w]: [{ [x]: e }, "supportsDualStack"] }] }, r = [l], s = [m], t = [o];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: a, [w]: [k] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: a, [w]: [k] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: k, properties: n, headers: n }, type: d }] }, { conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ conditions: [p, q], type: b, rules: [{ endpoint: { url: "https://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [p], type: b, rules: [{ endpoint: { url: "https://health-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ endpoint: { url: "https://health.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { conditions: [{ [v]: f, [w]: [o, "aws-global"] }], endpoint: { url: "https://global.health.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "us-east-1" }] }, headers: n }, type: d }, { conditions: [{ [v]: f, [w]: [o, "aws-cn-global"] }], endpoint: { url: "https://global.health.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: h, signingRegion: "cn-northwest-1" }] }, headers: n }, type: d }, { endpoint: { url: "https://health.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -26,6 +26,12 @@ export const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
|
26
26
|
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
|
+
export const se_DescribeEntityAggregatesForOrganizationCommand = async (input, context) => {
|
|
30
|
+
const headers = sharedHeaders("DescribeEntityAggregatesForOrganization");
|
|
31
|
+
let body;
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
+
};
|
|
29
35
|
export const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
30
36
|
const headers = sharedHeaders("DescribeEventAggregates");
|
|
31
37
|
let body;
|
|
@@ -205,6 +211,32 @@ const de_DescribeEntityAggregatesCommandError = async (output, context) => {
|
|
|
205
211
|
errorCode,
|
|
206
212
|
});
|
|
207
213
|
};
|
|
214
|
+
export const de_DescribeEntityAggregatesForOrganizationCommand = async (output, context) => {
|
|
215
|
+
if (output.statusCode >= 300) {
|
|
216
|
+
return de_DescribeEntityAggregatesForOrganizationCommandError(output, context);
|
|
217
|
+
}
|
|
218
|
+
const data = await parseBody(output.body, context);
|
|
219
|
+
let contents = {};
|
|
220
|
+
contents = _json(data);
|
|
221
|
+
const response = {
|
|
222
|
+
$metadata: deserializeMetadata(output),
|
|
223
|
+
...contents,
|
|
224
|
+
};
|
|
225
|
+
return response;
|
|
226
|
+
};
|
|
227
|
+
const de_DescribeEntityAggregatesForOrganizationCommandError = async (output, context) => {
|
|
228
|
+
const parsedOutput = {
|
|
229
|
+
...output,
|
|
230
|
+
body: await parseErrorBody(output.body, context),
|
|
231
|
+
};
|
|
232
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
|
+
const parsedBody = parsedOutput.body;
|
|
234
|
+
return throwDefaultError({
|
|
235
|
+
output,
|
|
236
|
+
parsedBody,
|
|
237
|
+
errorCode,
|
|
238
|
+
});
|
|
239
|
+
};
|
|
208
240
|
export const de_DescribeEventAggregatesCommand = async (output, context) => {
|
|
209
241
|
if (output.statusCode >= 300) {
|
|
210
242
|
return de_DescribeEventAggregatesCommandError(output, context);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
2
2
|
const asPartial = (t) => t;
|
|
3
3
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
4
|
-
const
|
|
5
|
-
...asPartial(
|
|
4
|
+
const extensionConfiguration = {
|
|
5
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
6
6
|
};
|
|
7
|
-
extensions.forEach((extension) => extension.
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
8
|
return {
|
|
9
9
|
...runtimeConfig,
|
|
10
|
-
...resolveDefaultRuntimeConfig(
|
|
10
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
11
11
|
};
|
|
12
12
|
};
|
package/dist-types/Health.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAc
|
|
|
3
3
|
import { DescribeAffectedEntitiesCommandInput, DescribeAffectedEntitiesCommandOutput } from "./commands/DescribeAffectedEntitiesCommand";
|
|
4
4
|
import { DescribeAffectedEntitiesForOrganizationCommandInput, DescribeAffectedEntitiesForOrganizationCommandOutput } from "./commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
5
5
|
import { DescribeEntityAggregatesCommandInput, DescribeEntityAggregatesCommandOutput } from "./commands/DescribeEntityAggregatesCommand";
|
|
6
|
+
import { DescribeEntityAggregatesForOrganizationCommandInput, DescribeEntityAggregatesForOrganizationCommandOutput } from "./commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
6
7
|
import { DescribeEventAggregatesCommandInput, DescribeEventAggregatesCommandOutput } from "./commands/DescribeEventAggregatesCommand";
|
|
7
8
|
import { DescribeEventDetailsCommandInput, DescribeEventDetailsCommandOutput } from "./commands/DescribeEventDetailsCommand";
|
|
8
9
|
import { DescribeEventDetailsForOrganizationCommandInput, DescribeEventDetailsForOrganizationCommandOutput } from "./commands/DescribeEventDetailsForOrganizationCommand";
|
|
@@ -38,6 +39,12 @@ export interface Health {
|
|
|
38
39
|
describeEntityAggregates(args: DescribeEntityAggregatesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEntityAggregatesCommandOutput>;
|
|
39
40
|
describeEntityAggregates(args: DescribeEntityAggregatesCommandInput, cb: (err: any, data?: DescribeEntityAggregatesCommandOutput) => void): void;
|
|
40
41
|
describeEntityAggregates(args: DescribeEntityAggregatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEntityAggregatesCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* @see {@link DescribeEntityAggregatesForOrganizationCommand}
|
|
44
|
+
*/
|
|
45
|
+
describeEntityAggregatesForOrganization(args: DescribeEntityAggregatesForOrganizationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEntityAggregatesForOrganizationCommandOutput>;
|
|
46
|
+
describeEntityAggregatesForOrganization(args: DescribeEntityAggregatesForOrganizationCommandInput, cb: (err: any, data?: DescribeEntityAggregatesForOrganizationCommandOutput) => void): void;
|
|
47
|
+
describeEntityAggregatesForOrganization(args: DescribeEntityAggregatesForOrganizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEntityAggregatesForOrganizationCommandOutput) => void): void;
|
|
41
48
|
/**
|
|
42
49
|
* @see {@link DescribeEventAggregatesCommand}
|
|
43
50
|
*/
|
|
@@ -12,6 +12,7 @@ import { DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAc
|
|
|
12
12
|
import { DescribeAffectedEntitiesCommandInput, DescribeAffectedEntitiesCommandOutput } from "./commands/DescribeAffectedEntitiesCommand";
|
|
13
13
|
import { DescribeAffectedEntitiesForOrganizationCommandInput, DescribeAffectedEntitiesForOrganizationCommandOutput } from "./commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
14
14
|
import { DescribeEntityAggregatesCommandInput, DescribeEntityAggregatesCommandOutput } from "./commands/DescribeEntityAggregatesCommand";
|
|
15
|
+
import { DescribeEntityAggregatesForOrganizationCommandInput, DescribeEntityAggregatesForOrganizationCommandOutput } from "./commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
15
16
|
import { DescribeEventAggregatesCommandInput, DescribeEventAggregatesCommandOutput } from "./commands/DescribeEventAggregatesCommand";
|
|
16
17
|
import { DescribeEventDetailsCommandInput, DescribeEventDetailsCommandOutput } from "./commands/DescribeEventDetailsCommand";
|
|
17
18
|
import { DescribeEventDetailsForOrganizationCommandInput, DescribeEventDetailsForOrganizationCommandOutput } from "./commands/DescribeEventDetailsForOrganizationCommand";
|
|
@@ -27,11 +28,11 @@ export { __Client };
|
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
30
|
-
export type ServiceInputTypes = DescribeAffectedAccountsForOrganizationCommandInput | DescribeAffectedEntitiesCommandInput | DescribeAffectedEntitiesForOrganizationCommandInput | DescribeEntityAggregatesCommandInput | DescribeEventAggregatesCommandInput | DescribeEventDetailsCommandInput | DescribeEventDetailsForOrganizationCommandInput | DescribeEventTypesCommandInput | DescribeEventsCommandInput | DescribeEventsForOrganizationCommandInput | DescribeHealthServiceStatusForOrganizationCommandInput | DisableHealthServiceAccessForOrganizationCommandInput | EnableHealthServiceAccessForOrganizationCommandInput;
|
|
31
|
+
export type ServiceInputTypes = DescribeAffectedAccountsForOrganizationCommandInput | DescribeAffectedEntitiesCommandInput | DescribeAffectedEntitiesForOrganizationCommandInput | DescribeEntityAggregatesCommandInput | DescribeEntityAggregatesForOrganizationCommandInput | DescribeEventAggregatesCommandInput | DescribeEventDetailsCommandInput | DescribeEventDetailsForOrganizationCommandInput | DescribeEventTypesCommandInput | DescribeEventsCommandInput | DescribeEventsForOrganizationCommandInput | DescribeHealthServiceStatusForOrganizationCommandInput | DisableHealthServiceAccessForOrganizationCommandInput | EnableHealthServiceAccessForOrganizationCommandInput;
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
34
|
-
export type ServiceOutputTypes = DescribeAffectedAccountsForOrganizationCommandOutput | DescribeAffectedEntitiesCommandOutput | DescribeAffectedEntitiesForOrganizationCommandOutput | DescribeEntityAggregatesCommandOutput | DescribeEventAggregatesCommandOutput | DescribeEventDetailsCommandOutput | DescribeEventDetailsForOrganizationCommandOutput | DescribeEventTypesCommandOutput | DescribeEventsCommandOutput | DescribeEventsForOrganizationCommandOutput | DescribeHealthServiceStatusForOrganizationCommandOutput | DisableHealthServiceAccessForOrganizationCommandOutput | EnableHealthServiceAccessForOrganizationCommandOutput;
|
|
35
|
+
export type ServiceOutputTypes = DescribeAffectedAccountsForOrganizationCommandOutput | DescribeAffectedEntitiesCommandOutput | DescribeAffectedEntitiesForOrganizationCommandOutput | DescribeEntityAggregatesCommandOutput | DescribeEntityAggregatesForOrganizationCommandOutput | DescribeEventAggregatesCommandOutput | DescribeEventDetailsCommandOutput | DescribeEventDetailsForOrganizationCommandOutput | DescribeEventTypesCommandOutput | DescribeEventsCommandOutput | DescribeEventsForOrganizationCommandOutput | DescribeHealthServiceStatusForOrganizationCommandOutput | DisableHealthServiceAccessForOrganizationCommandOutput | EnableHealthServiceAccessForOrganizationCommandOutput;
|
|
35
36
|
/**
|
|
36
37
|
* @public
|
|
37
38
|
*/
|
|
@@ -69,7 +69,7 @@ export interface DescribeAffectedEntitiesCommandOutput extends DescribeAffectedE
|
|
|
69
69
|
* },
|
|
70
70
|
* ],
|
|
71
71
|
* statusCodes: [ // entityStatusCodeList
|
|
72
|
-
* "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN",
|
|
72
|
+
* "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN" || "PENDING" || "RESOLVED",
|
|
73
73
|
* ],
|
|
74
74
|
* },
|
|
75
75
|
* locale: "STRING_VALUE",
|
|
@@ -87,7 +87,7 @@ export interface DescribeAffectedEntitiesCommandOutput extends DescribeAffectedE
|
|
|
87
87
|
* // entityUrl: "STRING_VALUE",
|
|
88
88
|
* // awsAccountId: "STRING_VALUE",
|
|
89
89
|
* // lastUpdatedTime: new Date("TIMESTAMP"),
|
|
90
|
-
* // statusCode: "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN",
|
|
90
|
+
* // statusCode: "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN" || "PENDING" || "RESOLVED",
|
|
91
91
|
* // tags: { // tagSet
|
|
92
92
|
* // "<keys>": "STRING_VALUE",
|
|
93
93
|
* // },
|
|
@@ -49,7 +49,7 @@ export interface DescribeAffectedEntitiesForOrganizationCommandOutput extends De
|
|
|
49
49
|
* // const { HealthClient, DescribeAffectedEntitiesForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
50
50
|
* const client = new HealthClient(config);
|
|
51
51
|
* const input = { // DescribeAffectedEntitiesForOrganizationRequest
|
|
52
|
-
* organizationEntityFilters: [ // OrganizationEntityFiltersList
|
|
52
|
+
* organizationEntityFilters: [ // OrganizationEntityFiltersList
|
|
53
53
|
* { // EventAccountFilter
|
|
54
54
|
* eventArn: "STRING_VALUE", // required
|
|
55
55
|
* awsAccountId: "STRING_VALUE",
|
|
@@ -58,6 +58,15 @@ export interface DescribeAffectedEntitiesForOrganizationCommandOutput extends De
|
|
|
58
58
|
* locale: "STRING_VALUE",
|
|
59
59
|
* nextToken: "STRING_VALUE",
|
|
60
60
|
* maxResults: Number("int"),
|
|
61
|
+
* organizationEntityAccountFilters: [ // OrganizationEntityAccountFiltersList
|
|
62
|
+
* { // EntityAccountFilter
|
|
63
|
+
* eventArn: "STRING_VALUE", // required
|
|
64
|
+
* awsAccountId: "STRING_VALUE",
|
|
65
|
+
* statusCodes: [ // entityStatusCodeList
|
|
66
|
+
* "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN" || "PENDING" || "RESOLVED",
|
|
67
|
+
* ],
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
61
70
|
* };
|
|
62
71
|
* const command = new DescribeAffectedEntitiesForOrganizationCommand(input);
|
|
63
72
|
* const response = await client.send(command);
|
|
@@ -70,7 +79,7 @@ export interface DescribeAffectedEntitiesForOrganizationCommandOutput extends De
|
|
|
70
79
|
* // entityUrl: "STRING_VALUE",
|
|
71
80
|
* // awsAccountId: "STRING_VALUE",
|
|
72
81
|
* // lastUpdatedTime: new Date("TIMESTAMP"),
|
|
73
|
-
* // statusCode: "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN",
|
|
82
|
+
* // statusCode: "IMPAIRED" || "UNIMPAIRED" || "UNKNOWN" || "PENDING" || "RESOLVED",
|
|
74
83
|
* // tags: { // tagSet
|
|
75
84
|
* // "<keys>": "STRING_VALUE",
|
|
76
85
|
* // },
|
|
@@ -42,6 +42,9 @@ export interface DescribeEntityAggregatesCommandOutput extends DescribeEntityAgg
|
|
|
42
42
|
* // { // EntityAggregate
|
|
43
43
|
* // eventArn: "STRING_VALUE",
|
|
44
44
|
* // count: Number("int"),
|
|
45
|
+
* // statuses: { // entityStatuses
|
|
46
|
+
* // "<keys>": Number("int"),
|
|
47
|
+
* // },
|
|
45
48
|
* // },
|
|
46
49
|
* // ],
|
|
47
50
|
* // };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { HealthClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../HealthClient";
|
|
5
|
+
import { DescribeEntityAggregatesForOrganizationRequest, DescribeEntityAggregatesForOrganizationResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DescribeEntityAggregatesForOrganizationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DescribeEntityAggregatesForOrganizationCommandInput extends DescribeEntityAggregatesForOrganizationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DescribeEntityAggregatesForOrganizationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DescribeEntityAggregatesForOrganizationCommandOutput extends DescribeEntityAggregatesForOrganizationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns a list of entity aggregates for your Organizations that are affected by each of the specified events.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { HealthClient, DescribeEntityAggregatesForOrganizationCommand } from "@aws-sdk/client-health"; // ES Modules import
|
|
31
|
+
* // const { HealthClient, DescribeEntityAggregatesForOrganizationCommand } = require("@aws-sdk/client-health"); // CommonJS import
|
|
32
|
+
* const client = new HealthClient(config);
|
|
33
|
+
* const input = { // DescribeEntityAggregatesForOrganizationRequest
|
|
34
|
+
* eventArns: [ // OrganizationEventArnsList // required
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* awsAccountIds: [ // OrganizationAccountIdsList
|
|
38
|
+
* "STRING_VALUE",
|
|
39
|
+
* ],
|
|
40
|
+
* };
|
|
41
|
+
* const command = new DescribeEntityAggregatesForOrganizationCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // DescribeEntityAggregatesForOrganizationResponse
|
|
44
|
+
* // organizationEntityAggregates: [ // OrganizationEntityAggregatesList
|
|
45
|
+
* // { // OrganizationEntityAggregate
|
|
46
|
+
* // eventArn: "STRING_VALUE",
|
|
47
|
+
* // count: Number("int"),
|
|
48
|
+
* // statuses: { // entityStatuses
|
|
49
|
+
* // "<keys>": Number("int"),
|
|
50
|
+
* // },
|
|
51
|
+
* // accounts: [ // AccountEntityAggregatesList
|
|
52
|
+
* // { // AccountEntityAggregate
|
|
53
|
+
* // accountId: "STRING_VALUE",
|
|
54
|
+
* // count: Number("int"),
|
|
55
|
+
* // statuses: {
|
|
56
|
+
* // "<keys>": Number("int"),
|
|
57
|
+
* // },
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // ],
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param DescribeEntityAggregatesForOrganizationCommandInput - {@link DescribeEntityAggregatesForOrganizationCommandInput}
|
|
67
|
+
* @returns {@link DescribeEntityAggregatesForOrganizationCommandOutput}
|
|
68
|
+
* @see {@link DescribeEntityAggregatesForOrganizationCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link DescribeEntityAggregatesForOrganizationCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link HealthClientResolvedConfig | config} for HealthClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link HealthServiceException}
|
|
73
|
+
* <p>Base exception class for all service exceptions from Health service.</p>
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
export declare class DescribeEntityAggregatesForOrganizationCommand extends $Command<DescribeEntityAggregatesForOrganizationCommandInput, DescribeEntityAggregatesForOrganizationCommandOutput, HealthClientResolvedConfig> {
|
|
77
|
+
readonly input: DescribeEntityAggregatesForOrganizationCommandInput;
|
|
78
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
constructor(input: DescribeEntityAggregatesForOrganizationCommandInput);
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: HealthClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeEntityAggregatesForOrganizationCommandInput, DescribeEntityAggregatesForOrganizationCommandOutput>;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
private serialize;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private deserialize;
|
|
95
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./DescribeAffectedAccountsForOrganizationCommand";
|
|
|
2
2
|
export * from "./DescribeAffectedEntitiesCommand";
|
|
3
3
|
export * from "./DescribeAffectedEntitiesForOrganizationCommand";
|
|
4
4
|
export * from "./DescribeEntityAggregatesCommand";
|
|
5
|
+
export * from "./DescribeEntityAggregatesForOrganizationCommand";
|
|
5
6
|
export * from "./DescribeEventAggregatesCommand";
|
|
6
7
|
export * from "./DescribeEventDetailsCommand";
|
|
7
8
|
export * from "./DescribeEventDetailsForOrganizationCommand";
|
|
@@ -6,6 +6,8 @@ import { HealthServiceException as __BaseException } from "./HealthServiceExcept
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const EntityStatusCode: {
|
|
8
8
|
readonly IMPAIRED: "IMPAIRED";
|
|
9
|
+
readonly PENDING: "PENDING";
|
|
10
|
+
readonly RESOLVED: "RESOLVED";
|
|
9
11
|
readonly UNIMPAIRED: "UNIMPAIRED";
|
|
10
12
|
readonly UNKNOWN: "UNKNOWN";
|
|
11
13
|
};
|
|
@@ -13,6 +15,27 @@ export declare const EntityStatusCode: {
|
|
|
13
15
|
* @public
|
|
14
16
|
*/
|
|
15
17
|
export type EntityStatusCode = (typeof EntityStatusCode)[keyof typeof EntityStatusCode];
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
* <p>The number of entities in an account that are impacted by a specific event aggregated by the entity status codes.</p>
|
|
21
|
+
*/
|
|
22
|
+
export interface AccountEntityAggregate {
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
* <p>The 12-digit Amazon Web Services account numbers that contains the affected entities.</p>
|
|
26
|
+
*/
|
|
27
|
+
accountId?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
* <p>The number of entities that match the filter criteria for the specified events.</p>
|
|
31
|
+
*/
|
|
32
|
+
count?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
* <p>The number of affected entities aggregated by the entity status codes.</p>
|
|
36
|
+
*/
|
|
37
|
+
statuses?: Record<string, number>;
|
|
38
|
+
}
|
|
16
39
|
/**
|
|
17
40
|
* @public
|
|
18
41
|
* <p>Information about an entity that is affected by a Health event.</p>
|
|
@@ -289,6 +312,34 @@ export declare class UnsupportedLocale extends __BaseException {
|
|
|
289
312
|
*/
|
|
290
313
|
constructor(opts: __ExceptionOptionType<UnsupportedLocale, __BaseException>);
|
|
291
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* @public
|
|
317
|
+
* <p>A JSON set of elements including the <code>awsAccountId</code>, <code>eventArn</code> and a set of <code>statusCodes</code>.</p>
|
|
318
|
+
*/
|
|
319
|
+
export interface EntityAccountFilter {
|
|
320
|
+
/**
|
|
321
|
+
* @public
|
|
322
|
+
* <p>The unique identifier for the event. The event ARN has the
|
|
323
|
+
* <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i>
|
|
324
|
+
* </code>
|
|
325
|
+
* format.</p>
|
|
326
|
+
* <p>For example, an event ARN might look like the following:</p>
|
|
327
|
+
* <p>
|
|
328
|
+
* <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code>
|
|
329
|
+
* </p>
|
|
330
|
+
*/
|
|
331
|
+
eventArn: string | undefined;
|
|
332
|
+
/**
|
|
333
|
+
* @public
|
|
334
|
+
* <p>The 12-digit Amazon Web Services account numbers that contains the affected entities.</p>
|
|
335
|
+
*/
|
|
336
|
+
awsAccountId?: string;
|
|
337
|
+
/**
|
|
338
|
+
* @public
|
|
339
|
+
* <p>A list of entity status codes.</p>
|
|
340
|
+
*/
|
|
341
|
+
statusCodes?: (EntityStatusCode | string)[];
|
|
342
|
+
}
|
|
292
343
|
/**
|
|
293
344
|
* @public
|
|
294
345
|
* <p>The values used to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> operations.</p>
|
|
@@ -318,10 +369,12 @@ export interface EventAccountFilter {
|
|
|
318
369
|
export interface DescribeAffectedEntitiesForOrganizationRequest {
|
|
319
370
|
/**
|
|
320
371
|
* @public
|
|
372
|
+
* @deprecated
|
|
373
|
+
*
|
|
321
374
|
* <p>A JSON set of elements including the <code>awsAccountId</code> and the
|
|
322
375
|
* <code>eventArn</code>.</p>
|
|
323
376
|
*/
|
|
324
|
-
organizationEntityFilters
|
|
377
|
+
organizationEntityFilters?: EventAccountFilter[];
|
|
325
378
|
/**
|
|
326
379
|
* @public
|
|
327
380
|
* <p>The locale (language) to return information in. English (en) is the default and the only supported value at this time.</p>
|
|
@@ -340,6 +393,11 @@ export interface DescribeAffectedEntitiesForOrganizationRequest {
|
|
|
340
393
|
* <p>The maximum number of items to return in one batch, between 10 and 100, inclusive.</p>
|
|
341
394
|
*/
|
|
342
395
|
maxResults?: number;
|
|
396
|
+
/**
|
|
397
|
+
* @public
|
|
398
|
+
* <p>A JSON set of elements including the <code>awsAccountId</code>, <code>eventArn</code> and a set of <code>statusCodes</code>.</p>
|
|
399
|
+
*/
|
|
400
|
+
organizationEntityAccountFilters?: EntityAccountFilter[];
|
|
343
401
|
}
|
|
344
402
|
/**
|
|
345
403
|
* @public
|
|
@@ -438,6 +496,11 @@ export interface EntityAggregate {
|
|
|
438
496
|
* <p>The number of entities that match the criteria for the specified events.</p>
|
|
439
497
|
*/
|
|
440
498
|
count?: number;
|
|
499
|
+
/**
|
|
500
|
+
* @public
|
|
501
|
+
* <p>The number of affected entities aggregated by the entity status codes.</p>
|
|
502
|
+
*/
|
|
503
|
+
statuses?: Record<string, number>;
|
|
441
504
|
}
|
|
442
505
|
/**
|
|
443
506
|
* @public
|
|
@@ -449,6 +512,61 @@ export interface DescribeEntityAggregatesResponse {
|
|
|
449
512
|
*/
|
|
450
513
|
entityAggregates?: EntityAggregate[];
|
|
451
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* @public
|
|
517
|
+
*/
|
|
518
|
+
export interface DescribeEntityAggregatesForOrganizationRequest {
|
|
519
|
+
/**
|
|
520
|
+
* @public
|
|
521
|
+
* <p>A list of event ARNs (unique identifiers). For example: <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
|
|
522
|
+
* </p>
|
|
523
|
+
*/
|
|
524
|
+
eventArns: string[] | undefined;
|
|
525
|
+
/**
|
|
526
|
+
* @public
|
|
527
|
+
* <p>A list of 12-digit Amazon Web Services account numbers that contains the affected entities.</p>
|
|
528
|
+
*/
|
|
529
|
+
awsAccountIds?: string[];
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* @public
|
|
533
|
+
* <p>The aggregate results of entities affected by the specified event in your organization.
|
|
534
|
+
* The results are aggregated by the entity status codes for the specified set of accountsIDs.</p>
|
|
535
|
+
*/
|
|
536
|
+
export interface OrganizationEntityAggregate {
|
|
537
|
+
/**
|
|
538
|
+
* @public
|
|
539
|
+
* <p>A list of event ARNs (unique identifiers). For example: <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code>
|
|
540
|
+
* </p>
|
|
541
|
+
*/
|
|
542
|
+
eventArn?: string;
|
|
543
|
+
/**
|
|
544
|
+
* @public
|
|
545
|
+
* <p>The number of entities for the organization that match the filter criteria for the specified events.</p>
|
|
546
|
+
*/
|
|
547
|
+
count?: number;
|
|
548
|
+
/**
|
|
549
|
+
* @public
|
|
550
|
+
* <p>The number of affected entities aggregated by the entitiy status codes.</p>
|
|
551
|
+
*/
|
|
552
|
+
statuses?: Record<string, number>;
|
|
553
|
+
/**
|
|
554
|
+
* @public
|
|
555
|
+
* <p>A list of entity aggregates for each of the specified accounts in your organization that are affected by
|
|
556
|
+
* a specific event. If there are no <code>awsAccountIds</code> provided in the request, this field will be empty in the response.</p>
|
|
557
|
+
*/
|
|
558
|
+
accounts?: AccountEntityAggregate[];
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @public
|
|
562
|
+
*/
|
|
563
|
+
export interface DescribeEntityAggregatesForOrganizationResponse {
|
|
564
|
+
/**
|
|
565
|
+
* @public
|
|
566
|
+
* <p>The list of entity aggregates for each of the specified accounts that are affected by each of the specified events.</p>
|
|
567
|
+
*/
|
|
568
|
+
organizationEntityAggregates?: OrganizationEntityAggregate[];
|
|
569
|
+
}
|
|
452
570
|
/**
|
|
453
571
|
* @public
|
|
454
572
|
* @enum
|
|
@@ -4,6 +4,7 @@ import { DescribeAffectedAccountsForOrganizationCommandInput, DescribeAffectedAc
|
|
|
4
4
|
import { DescribeAffectedEntitiesCommandInput, DescribeAffectedEntitiesCommandOutput } from "../commands/DescribeAffectedEntitiesCommand";
|
|
5
5
|
import { DescribeAffectedEntitiesForOrganizationCommandInput, DescribeAffectedEntitiesForOrganizationCommandOutput } from "../commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
6
6
|
import { DescribeEntityAggregatesCommandInput, DescribeEntityAggregatesCommandOutput } from "../commands/DescribeEntityAggregatesCommand";
|
|
7
|
+
import { DescribeEntityAggregatesForOrganizationCommandInput, DescribeEntityAggregatesForOrganizationCommandOutput } from "../commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
7
8
|
import { DescribeEventAggregatesCommandInput, DescribeEventAggregatesCommandOutput } from "../commands/DescribeEventAggregatesCommand";
|
|
8
9
|
import { DescribeEventDetailsCommandInput, DescribeEventDetailsCommandOutput } from "../commands/DescribeEventDetailsCommand";
|
|
9
10
|
import { DescribeEventDetailsForOrganizationCommandInput, DescribeEventDetailsForOrganizationCommandOutput } from "../commands/DescribeEventDetailsForOrganizationCommand";
|
|
@@ -29,6 +30,10 @@ export declare const se_DescribeAffectedEntitiesForOrganizationCommand: (input:
|
|
|
29
30
|
* serializeAws_json1_1DescribeEntityAggregatesCommand
|
|
30
31
|
*/
|
|
31
32
|
export declare const se_DescribeEntityAggregatesCommand: (input: DescribeEntityAggregatesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* serializeAws_json1_1DescribeEntityAggregatesForOrganizationCommand
|
|
35
|
+
*/
|
|
36
|
+
export declare const se_DescribeEntityAggregatesForOrganizationCommand: (input: DescribeEntityAggregatesForOrganizationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
37
|
/**
|
|
33
38
|
* serializeAws_json1_1DescribeEventAggregatesCommand
|
|
34
39
|
*/
|
|
@@ -81,6 +86,10 @@ export declare const de_DescribeAffectedEntitiesForOrganizationCommand: (output:
|
|
|
81
86
|
* deserializeAws_json1_1DescribeEntityAggregatesCommand
|
|
82
87
|
*/
|
|
83
88
|
export declare const de_DescribeEntityAggregatesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEntityAggregatesCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* deserializeAws_json1_1DescribeEntityAggregatesForOrganizationCommand
|
|
91
|
+
*/
|
|
92
|
+
export declare const de_DescribeEntityAggregatesForOrganizationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEntityAggregatesForOrganizationCommandOutput>;
|
|
84
93
|
/**
|
|
85
94
|
* deserializeAws_json1_1DescribeEventAggregatesCommand
|
|
86
95
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HealthExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface RuntimeExtension {
|
|
6
|
-
|
|
6
|
+
configure(clientConfiguration: HealthExtensionConfiguration): void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
@@ -15,6 +15,10 @@ import {
|
|
|
15
15
|
DescribeEntityAggregatesCommandInput,
|
|
16
16
|
DescribeEntityAggregatesCommandOutput,
|
|
17
17
|
} from "./commands/DescribeEntityAggregatesCommand";
|
|
18
|
+
import {
|
|
19
|
+
DescribeEntityAggregatesForOrganizationCommandInput,
|
|
20
|
+
DescribeEntityAggregatesForOrganizationCommandOutput,
|
|
21
|
+
} from "./commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
18
22
|
import {
|
|
19
23
|
DescribeEventAggregatesCommandInput,
|
|
20
24
|
DescribeEventAggregatesCommandOutput,
|
|
@@ -117,6 +121,25 @@ export interface Health {
|
|
|
117
121
|
options: __HttpHandlerOptions,
|
|
118
122
|
cb: (err: any, data?: DescribeEntityAggregatesCommandOutput) => void
|
|
119
123
|
): void;
|
|
124
|
+
describeEntityAggregatesForOrganization(
|
|
125
|
+
args: DescribeEntityAggregatesForOrganizationCommandInput,
|
|
126
|
+
options?: __HttpHandlerOptions
|
|
127
|
+
): Promise<DescribeEntityAggregatesForOrganizationCommandOutput>;
|
|
128
|
+
describeEntityAggregatesForOrganization(
|
|
129
|
+
args: DescribeEntityAggregatesForOrganizationCommandInput,
|
|
130
|
+
cb: (
|
|
131
|
+
err: any,
|
|
132
|
+
data?: DescribeEntityAggregatesForOrganizationCommandOutput
|
|
133
|
+
) => void
|
|
134
|
+
): void;
|
|
135
|
+
describeEntityAggregatesForOrganization(
|
|
136
|
+
args: DescribeEntityAggregatesForOrganizationCommandInput,
|
|
137
|
+
options: __HttpHandlerOptions,
|
|
138
|
+
cb: (
|
|
139
|
+
err: any,
|
|
140
|
+
data?: DescribeEntityAggregatesForOrganizationCommandOutput
|
|
141
|
+
) => void
|
|
142
|
+
): void;
|
|
120
143
|
describeEventAggregates(
|
|
121
144
|
args: DescribeEventAggregatesCommandInput,
|
|
122
145
|
options?: __HttpHandlerOptions
|
|
@@ -61,6 +61,10 @@ import {
|
|
|
61
61
|
DescribeEntityAggregatesCommandInput,
|
|
62
62
|
DescribeEntityAggregatesCommandOutput,
|
|
63
63
|
} from "./commands/DescribeEntityAggregatesCommand";
|
|
64
|
+
import {
|
|
65
|
+
DescribeEntityAggregatesForOrganizationCommandInput,
|
|
66
|
+
DescribeEntityAggregatesForOrganizationCommandOutput,
|
|
67
|
+
} from "./commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
64
68
|
import {
|
|
65
69
|
DescribeEventAggregatesCommandInput,
|
|
66
70
|
DescribeEventAggregatesCommandOutput,
|
|
@@ -109,6 +113,7 @@ export type ServiceInputTypes =
|
|
|
109
113
|
| DescribeAffectedEntitiesCommandInput
|
|
110
114
|
| DescribeAffectedEntitiesForOrganizationCommandInput
|
|
111
115
|
| DescribeEntityAggregatesCommandInput
|
|
116
|
+
| DescribeEntityAggregatesForOrganizationCommandInput
|
|
112
117
|
| DescribeEventAggregatesCommandInput
|
|
113
118
|
| DescribeEventDetailsCommandInput
|
|
114
119
|
| DescribeEventDetailsForOrganizationCommandInput
|
|
@@ -123,6 +128,7 @@ export type ServiceOutputTypes =
|
|
|
123
128
|
| DescribeAffectedEntitiesCommandOutput
|
|
124
129
|
| DescribeAffectedEntitiesForOrganizationCommandOutput
|
|
125
130
|
| DescribeEntityAggregatesCommandOutput
|
|
131
|
+
| DescribeEntityAggregatesForOrganizationCommandOutput
|
|
126
132
|
| DescribeEventAggregatesCommandOutput
|
|
127
133
|
| DescribeEventDetailsCommandOutput
|
|
128
134
|
| DescribeEventDetailsForOrganizationCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
HealthClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../HealthClient";
|
|
14
|
+
import {
|
|
15
|
+
DescribeEntityAggregatesForOrganizationRequest,
|
|
16
|
+
DescribeEntityAggregatesForOrganizationResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface DescribeEntityAggregatesForOrganizationCommandInput
|
|
20
|
+
extends DescribeEntityAggregatesForOrganizationRequest {}
|
|
21
|
+
export interface DescribeEntityAggregatesForOrganizationCommandOutput
|
|
22
|
+
extends DescribeEntityAggregatesForOrganizationResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class DescribeEntityAggregatesForOrganizationCommand extends $Command<
|
|
25
|
+
DescribeEntityAggregatesForOrganizationCommandInput,
|
|
26
|
+
DescribeEntityAggregatesForOrganizationCommandOutput,
|
|
27
|
+
HealthClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: DescribeEntityAggregatesForOrganizationCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: DescribeEntityAggregatesForOrganizationCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: HealthClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
DescribeEntityAggregatesForOrganizationCommandInput,
|
|
38
|
+
DescribeEntityAggregatesForOrganizationCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -2,6 +2,7 @@ export * from "./DescribeAffectedAccountsForOrganizationCommand";
|
|
|
2
2
|
export * from "./DescribeAffectedEntitiesCommand";
|
|
3
3
|
export * from "./DescribeAffectedEntitiesForOrganizationCommand";
|
|
4
4
|
export * from "./DescribeEntityAggregatesCommand";
|
|
5
|
+
export * from "./DescribeEntityAggregatesForOrganizationCommand";
|
|
5
6
|
export * from "./DescribeEventAggregatesCommand";
|
|
6
7
|
export * from "./DescribeEventDetailsCommand";
|
|
7
8
|
export * from "./DescribeEventDetailsForOrganizationCommand";
|
|
@@ -2,11 +2,18 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-cli
|
|
|
2
2
|
import { HealthServiceException as __BaseException } from "./HealthServiceException";
|
|
3
3
|
export declare const EntityStatusCode: {
|
|
4
4
|
readonly IMPAIRED: "IMPAIRED";
|
|
5
|
+
readonly PENDING: "PENDING";
|
|
6
|
+
readonly RESOLVED: "RESOLVED";
|
|
5
7
|
readonly UNIMPAIRED: "UNIMPAIRED";
|
|
6
8
|
readonly UNKNOWN: "UNKNOWN";
|
|
7
9
|
};
|
|
8
10
|
export type EntityStatusCode =
|
|
9
11
|
(typeof EntityStatusCode)[keyof typeof EntityStatusCode];
|
|
12
|
+
export interface AccountEntityAggregate {
|
|
13
|
+
accountId?: string;
|
|
14
|
+
count?: number;
|
|
15
|
+
statuses?: Record<string, number>;
|
|
16
|
+
}
|
|
10
17
|
export interface AffectedEntity {
|
|
11
18
|
entityArn?: string;
|
|
12
19
|
eventArn?: string;
|
|
@@ -68,15 +75,21 @@ export declare class UnsupportedLocale extends __BaseException {
|
|
|
68
75
|
readonly $fault: "client";
|
|
69
76
|
constructor(opts: __ExceptionOptionType<UnsupportedLocale, __BaseException>);
|
|
70
77
|
}
|
|
78
|
+
export interface EntityAccountFilter {
|
|
79
|
+
eventArn: string | undefined;
|
|
80
|
+
awsAccountId?: string;
|
|
81
|
+
statusCodes?: (EntityStatusCode | string)[];
|
|
82
|
+
}
|
|
71
83
|
export interface EventAccountFilter {
|
|
72
84
|
eventArn: string | undefined;
|
|
73
85
|
awsAccountId?: string;
|
|
74
86
|
}
|
|
75
87
|
export interface DescribeAffectedEntitiesForOrganizationRequest {
|
|
76
|
-
organizationEntityFilters
|
|
88
|
+
organizationEntityFilters?: EventAccountFilter[];
|
|
77
89
|
locale?: string;
|
|
78
90
|
nextToken?: string;
|
|
79
91
|
maxResults?: number;
|
|
92
|
+
organizationEntityAccountFilters?: EntityAccountFilter[];
|
|
80
93
|
}
|
|
81
94
|
export interface OrganizationAffectedEntitiesErrorItem {
|
|
82
95
|
awsAccountId?: string;
|
|
@@ -95,10 +108,24 @@ export interface DescribeEntityAggregatesRequest {
|
|
|
95
108
|
export interface EntityAggregate {
|
|
96
109
|
eventArn?: string;
|
|
97
110
|
count?: number;
|
|
111
|
+
statuses?: Record<string, number>;
|
|
98
112
|
}
|
|
99
113
|
export interface DescribeEntityAggregatesResponse {
|
|
100
114
|
entityAggregates?: EntityAggregate[];
|
|
101
115
|
}
|
|
116
|
+
export interface DescribeEntityAggregatesForOrganizationRequest {
|
|
117
|
+
eventArns: string[] | undefined;
|
|
118
|
+
awsAccountIds?: string[];
|
|
119
|
+
}
|
|
120
|
+
export interface OrganizationEntityAggregate {
|
|
121
|
+
eventArn?: string;
|
|
122
|
+
count?: number;
|
|
123
|
+
statuses?: Record<string, number>;
|
|
124
|
+
accounts?: AccountEntityAggregate[];
|
|
125
|
+
}
|
|
126
|
+
export interface DescribeEntityAggregatesForOrganizationResponse {
|
|
127
|
+
organizationEntityAggregates?: OrganizationEntityAggregate[];
|
|
128
|
+
}
|
|
102
129
|
export declare const EventAggregateField: {
|
|
103
130
|
readonly EventTypeCategory: "eventTypeCategory";
|
|
104
131
|
};
|
|
@@ -19,6 +19,10 @@ import {
|
|
|
19
19
|
DescribeEntityAggregatesCommandInput,
|
|
20
20
|
DescribeEntityAggregatesCommandOutput,
|
|
21
21
|
} from "../commands/DescribeEntityAggregatesCommand";
|
|
22
|
+
import {
|
|
23
|
+
DescribeEntityAggregatesForOrganizationCommandInput,
|
|
24
|
+
DescribeEntityAggregatesForOrganizationCommandOutput,
|
|
25
|
+
} from "../commands/DescribeEntityAggregatesForOrganizationCommand";
|
|
22
26
|
import {
|
|
23
27
|
DescribeEventAggregatesCommandInput,
|
|
24
28
|
DescribeEventAggregatesCommandOutput,
|
|
@@ -71,6 +75,10 @@ export declare const se_DescribeEntityAggregatesCommand: (
|
|
|
71
75
|
input: DescribeEntityAggregatesCommandInput,
|
|
72
76
|
context: __SerdeContext
|
|
73
77
|
) => Promise<__HttpRequest>;
|
|
78
|
+
export declare const se_DescribeEntityAggregatesForOrganizationCommand: (
|
|
79
|
+
input: DescribeEntityAggregatesForOrganizationCommandInput,
|
|
80
|
+
context: __SerdeContext
|
|
81
|
+
) => Promise<__HttpRequest>;
|
|
74
82
|
export declare const se_DescribeEventAggregatesCommand: (
|
|
75
83
|
input: DescribeEventAggregatesCommandInput,
|
|
76
84
|
context: __SerdeContext
|
|
@@ -123,6 +131,10 @@ export declare const de_DescribeEntityAggregatesCommand: (
|
|
|
123
131
|
output: __HttpResponse,
|
|
124
132
|
context: __SerdeContext
|
|
125
133
|
) => Promise<DescribeEntityAggregatesCommandOutput>;
|
|
134
|
+
export declare const de_DescribeEntityAggregatesForOrganizationCommand: (
|
|
135
|
+
output: __HttpResponse,
|
|
136
|
+
context: __SerdeContext
|
|
137
|
+
) => Promise<DescribeEntityAggregatesForOrganizationCommandOutput>;
|
|
126
138
|
export declare const de_DescribeEventAggregatesCommand: (
|
|
127
139
|
output: __HttpResponse,
|
|
128
140
|
context: __SerdeContext
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HealthExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
export interface RuntimeExtension {
|
|
3
|
-
|
|
3
|
+
configure(clientConfiguration: HealthExtensionConfiguration): void;
|
|
4
4
|
}
|
|
5
5
|
export interface RuntimeExtensionsConfig {
|
|
6
6
|
extensions: RuntimeExtension[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-health",
|
|
3
3
|
"description": "AWS SDK for JavaScript Health Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.404.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.0.
|
|
36
|
-
"@smithy/fetch-http-handler": "^2.0.
|
|
37
|
-
"@smithy/hash-node": "^2.0.
|
|
38
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
39
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
40
|
-
"@smithy/middleware-endpoint": "^2.0.
|
|
41
|
-
"@smithy/middleware-retry": "^2.0.
|
|
42
|
-
"@smithy/middleware-serde": "^2.0.
|
|
24
|
+
"@aws-sdk/client-sts": "3.398.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.398.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.398.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.398.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.398.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.398.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.398.0",
|
|
31
|
+
"@aws-sdk/types": "3.398.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.398.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.398.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.398.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.0.5",
|
|
36
|
+
"@smithy/fetch-http-handler": "^2.0.5",
|
|
37
|
+
"@smithy/hash-node": "^2.0.5",
|
|
38
|
+
"@smithy/invalid-dependency": "^2.0.5",
|
|
39
|
+
"@smithy/middleware-content-length": "^2.0.5",
|
|
40
|
+
"@smithy/middleware-endpoint": "^2.0.5",
|
|
41
|
+
"@smithy/middleware-retry": "^2.0.5",
|
|
42
|
+
"@smithy/middleware-serde": "^2.0.5",
|
|
43
43
|
"@smithy/middleware-stack": "^2.0.0",
|
|
44
|
-
"@smithy/node-config-provider": "^2.0.
|
|
45
|
-
"@smithy/node-http-handler": "^2.0.
|
|
46
|
-
"@smithy/protocol-http": "^2.0.
|
|
47
|
-
"@smithy/smithy-client": "^2.0.
|
|
48
|
-
"@smithy/types": "^2.2.
|
|
49
|
-
"@smithy/url-parser": "^2.0.
|
|
44
|
+
"@smithy/node-config-provider": "^2.0.5",
|
|
45
|
+
"@smithy/node-http-handler": "^2.0.5",
|
|
46
|
+
"@smithy/protocol-http": "^2.0.5",
|
|
47
|
+
"@smithy/smithy-client": "^2.0.5",
|
|
48
|
+
"@smithy/types": "^2.2.2",
|
|
49
|
+
"@smithy/url-parser": "^2.0.5",
|
|
50
50
|
"@smithy/util-base64": "^2.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
52
|
-
"@smithy/util-body-length-node": "^2.
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
52
|
+
"@smithy/util-body-length-node": "^2.1.0",
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^2.0.5",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^2.0.5",
|
|
55
55
|
"@smithy/util-retry": "^2.0.0",
|
|
56
56
|
"@smithy/util-utf8": "^2.0.0",
|
|
57
57
|
"tslib": "^2.5.0"
|
|
File without changes
|
|
File without changes
|