@aws-sdk/client-health 3.477.0 → 3.478.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/dist-cjs/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeAffectedEntitiesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventAggregatesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventTypesPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventsForOrganizationPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeEventsPaginator.js +2 -24
- package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +2 -23
- package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +2 -23
- package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventAggregatesPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventTypesPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js +2 -23
- package/dist-es/pagination/DescribeEventsPaginator.js +2 -23
- package/dist-types/pagination/DescribeAffectedAccountsForOrganizationPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAffectedEntitiesForOrganizationPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeAffectedEntitiesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventAggregatesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventTypesPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventsForOrganizationPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeEventsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeAffectedAccountsForOrganizationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAffectedEntitiesForOrganizationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeAffectedEntitiesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventAggregatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventTypesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventsForOrganizationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +3 -3
- package/package.json +6 -5
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeAffectedAccountsForOrganization = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeAffectedAccountsForOrganizationCommand_1 = require("../commands/DescribeAffectedAccountsForOrganizationCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeAffectedAccountsForOrganizationCommand_1.DescribeAffectedAccountsForOrganizationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeAffectedAccountsForOrganization(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeAffectedAccountsForOrganization = paginateDescribeAffectedAccountsForOrganization;
|
|
7
|
+
exports.paginateDescribeAffectedAccountsForOrganization = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeAffectedAccountsForOrganizationCommand_1.DescribeAffectedAccountsForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeAffectedEntitiesForOrganization = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeAffectedEntitiesForOrganizationCommand_1 = require("../commands/DescribeAffectedEntitiesForOrganizationCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeAffectedEntitiesForOrganizationCommand_1.DescribeAffectedEntitiesForOrganizationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeAffectedEntitiesForOrganization(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeAffectedEntitiesForOrganization = paginateDescribeAffectedEntitiesForOrganization;
|
|
7
|
+
exports.paginateDescribeAffectedEntitiesForOrganization = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeAffectedEntitiesForOrganizationCommand_1.DescribeAffectedEntitiesForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeAffectedEntities = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeAffectedEntitiesCommand_1 = require("../commands/DescribeAffectedEntitiesCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeAffectedEntitiesCommand_1.DescribeAffectedEntitiesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeAffectedEntities(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeAffectedEntities = paginateDescribeAffectedEntities;
|
|
7
|
+
exports.paginateDescribeAffectedEntities = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeAffectedEntitiesCommand_1.DescribeAffectedEntitiesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeEventAggregates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeEventAggregatesCommand_1 = require("../commands/DescribeEventAggregatesCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeEventAggregatesCommand_1.DescribeEventAggregatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeEventAggregates(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeEventAggregates = paginateDescribeEventAggregates;
|
|
7
|
+
exports.paginateDescribeEventAggregates = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeEventAggregatesCommand_1.DescribeEventAggregatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeEventTypes = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeEventTypesCommand_1 = require("../commands/DescribeEventTypesCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeEventTypesCommand_1.DescribeEventTypesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeEventTypes(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeEventTypes = paginateDescribeEventTypes;
|
|
7
|
+
exports.paginateDescribeEventTypes = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeEventTypesCommand_1.DescribeEventTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeEventsForOrganization = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeEventsForOrganizationCommand_1 = require("../commands/DescribeEventsForOrganizationCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeEventsForOrganizationCommand_1.DescribeEventsForOrganizationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeEventsForOrganization(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeEventsForOrganization = paginateDescribeEventsForOrganization;
|
|
7
|
+
exports.paginateDescribeEventsForOrganization = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeEventsForOrganizationCommand_1.DescribeEventsForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeEventsCommand_1 = require("../commands/DescribeEventsCommand");
|
|
5
6
|
const HealthClient_1 = require("../HealthClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeEventsCommand_1.DescribeEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeEvents(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.nextToken = token;
|
|
15
|
-
input["maxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof HealthClient_1.HealthClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.nextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeEvents = paginateDescribeEvents;
|
|
7
|
+
exports.paginateDescribeEvents = (0, core_1.createPaginator)(HealthClient_1.HealthClient, DescribeEventsCommand_1.DescribeEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAffectedAccountsForOrganizationCommand, } from "../commands/DescribeAffectedAccountsForOrganizationCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAffectedAccountsForOrganizationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAffectedAccountsForOrganization(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAffectedAccountsForOrganization = createPaginator(HealthClient, DescribeAffectedAccountsForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAffectedEntitiesForOrganizationCommand, } from "../commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAffectedEntitiesForOrganizationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAffectedEntitiesForOrganization(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAffectedEntitiesForOrganization = createPaginator(HealthClient, DescribeAffectedEntitiesForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeAffectedEntitiesCommand, } from "../commands/DescribeAffectedEntitiesCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeAffectedEntitiesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeAffectedEntities(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeAffectedEntities = createPaginator(HealthClient, DescribeAffectedEntitiesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventAggregatesCommand, } from "../commands/DescribeEventAggregatesCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventAggregatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEventAggregates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEventAggregates = createPaginator(HealthClient, DescribeEventAggregatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventTypesCommand, } from "../commands/DescribeEventTypesCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventTypesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEventTypes(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEventTypes = createPaginator(HealthClient, DescribeEventTypesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventsForOrganizationCommand, } from "../commands/DescribeEventsForOrganizationCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventsForOrganizationCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEventsForOrganization(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEventsForOrganization = createPaginator(HealthClient, DescribeEventsForOrganizationCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeEventsCommand, } from "../commands/DescribeEventsCommand";
|
|
2
3
|
import { HealthClient } from "../HealthClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeEvents(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof HealthClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Health | HealthClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeEvents = createPaginator(HealthClient, DescribeEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeAffectedAccountsForOrganization: (config: HealthPaginationConfiguration, input: DescribeAffectedAccountsForOrganizationCommandInput, ...rest: any[]) => Paginator<DescribeAffectedAccountsForOrganizationCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeAffectedEntitiesForOrganization: (config: HealthPaginationConfiguration, input: DescribeAffectedEntitiesForOrganizationCommandInput, ...rest: any[]) => Paginator<DescribeAffectedEntitiesForOrganizationCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeAffectedEntities: (config: HealthPaginationConfiguration, input: DescribeAffectedEntitiesCommandInput, ...rest: any[]) => Paginator<DescribeAffectedEntitiesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEventAggregates: (config: HealthPaginationConfiguration, input: DescribeEventAggregatesCommandInput, ...rest: any[]) => Paginator<DescribeEventAggregatesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEventTypes: (config: HealthPaginationConfiguration, input: DescribeEventTypesCommandInput, ...rest: any[]) => Paginator<DescribeEventTypesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEventsForOrganization: (config: HealthPaginationConfiguration, input: DescribeEventsForOrganizationCommandInput, ...rest: any[]) => Paginator<DescribeEventsForOrganizationCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { HealthPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEvents: (config: HealthPaginationConfiguration, input: DescribeEventsCommandInput, ...rest: any[]) => Paginator<DescribeEventsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeAffectedAccountsForOrganizationCommandOutput,
|
|
5
5
|
} from "../commands/DescribeAffectedAccountsForOrganizationCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeAffectedAccountsForOrganization: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeAffectedAccountsForOrganizationCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeAffectedAccountsForOrganizationCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeAffectedEntitiesForOrganizationCommandOutput,
|
|
5
5
|
} from "../commands/DescribeAffectedEntitiesForOrganizationCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeAffectedEntitiesForOrganization: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeAffectedEntitiesForOrganizationCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeAffectedEntitiesForOrganizationCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeAffectedEntitiesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeAffectedEntitiesCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeAffectedEntities: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeAffectedEntitiesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeAffectedEntitiesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeEventAggregatesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeEventAggregatesCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEventAggregates: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeEventAggregatesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeEventAggregatesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeEventTypesCommandOutput,
|
|
5
5
|
} from "../commands/DescribeEventTypesCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEventTypes: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeEventTypesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeEventTypesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeEventsForOrganizationCommandOutput,
|
|
5
5
|
} from "../commands/DescribeEventsForOrganizationCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEventsForOrganization: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeEventsForOrganizationCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeEventsForOrganizationCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeEventsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeEventsCommand";
|
|
6
6
|
import { HealthPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeEvents: (
|
|
8
8
|
config: HealthPaginationConfiguration,
|
|
9
9
|
input: DescribeEventsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeEventsCommandOutput>;
|
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.478.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",
|
|
@@ -20,20 +20,21 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.478.0",
|
|
24
24
|
"@aws-sdk/core": "3.477.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|