@aws-sdk/client-resiliencehub 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/ListAlarmRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppAssessmentComplianceDriftsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppAssessmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppComponentCompliancesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppComponentRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInputSourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppVersionAppComponentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppVersionResourceMappingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppVersionResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppVersionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRecommendationTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListResiliencyPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSopRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSuggestedResiliencyPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListTestRecommendationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListUnsupportedAppVersionResourcesPaginator.js +2 -24
- package/dist-es/pagination/ListAlarmRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListAppAssessmentComplianceDriftsPaginator.js +2 -23
- package/dist-es/pagination/ListAppAssessmentsPaginator.js +2 -23
- package/dist-es/pagination/ListAppComponentCompliancesPaginator.js +2 -23
- package/dist-es/pagination/ListAppComponentRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListAppInputSourcesPaginator.js +2 -23
- package/dist-es/pagination/ListAppVersionAppComponentsPaginator.js +2 -23
- package/dist-es/pagination/ListAppVersionResourceMappingsPaginator.js +2 -23
- package/dist-es/pagination/ListAppVersionResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListAppVersionsPaginator.js +2 -23
- package/dist-es/pagination/ListAppsPaginator.js +2 -23
- package/dist-es/pagination/ListRecommendationTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListResiliencyPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListSopRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListSuggestedResiliencyPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListTestRecommendationsPaginator.js +2 -23
- package/dist-es/pagination/ListUnsupportedAppVersionResourcesPaginator.js +2 -23
- package/dist-types/pagination/ListAlarmRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppAssessmentComplianceDriftsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppAssessmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppComponentCompliancesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppComponentRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInputSourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppVersionAppComponentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppVersionResourceMappingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppVersionResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppVersionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRecommendationTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResiliencyPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSopRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSuggestedResiliencyPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListTestRecommendationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListUnsupportedAppVersionResourcesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAlarmRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppAssessmentComplianceDriftsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppAssessmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppComponentCompliancesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppComponentRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInputSourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppVersionAppComponentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppVersionResourceMappingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppVersionResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppVersionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRecommendationTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResiliencyPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSopRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSuggestedResiliencyPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListTestRecommendationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListUnsupportedAppVersionResourcesPaginator.d.ts +3 -3
- package/package.json +5 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppComponentCompliancesCommand, } from "../commands/ListAppComponentCompliancesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppComponentCompliancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppComponentCompliances(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppComponentCompliances = createPaginator(ResiliencehubClient, ListAppComponentCompliancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppComponentRecommendationsCommand, } from "../commands/ListAppComponentRecommendationsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppComponentRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppComponentRecommendations(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppComponentRecommendations = createPaginator(ResiliencehubClient, ListAppComponentRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppInputSourcesCommand, } from "../commands/ListAppInputSourcesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInputSourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInputSources(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppInputSources = createPaginator(ResiliencehubClient, ListAppInputSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppVersionAppComponentsCommand, } from "../commands/ListAppVersionAppComponentsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppVersionAppComponentsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppVersionAppComponents(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppVersionAppComponents = createPaginator(ResiliencehubClient, ListAppVersionAppComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppVersionResourceMappingsCommand, } from "../commands/ListAppVersionResourceMappingsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppVersionResourceMappingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppVersionResourceMappings(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppVersionResourceMappings = createPaginator(ResiliencehubClient, ListAppVersionResourceMappingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppVersionResourcesCommand, } from "../commands/ListAppVersionResourcesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppVersionResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppVersionResources(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppVersionResources = createPaginator(ResiliencehubClient, ListAppVersionResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppVersionsCommand, } from "../commands/ListAppVersionsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppVersionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppVersions(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListAppVersions = createPaginator(ResiliencehubClient, ListAppVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListAppsCommand } from "../commands/ListAppsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApps(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListApps = createPaginator(ResiliencehubClient, ListAppsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListRecommendationTemplatesCommand, } from "../commands/ListRecommendationTemplatesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRecommendationTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRecommendationTemplates(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListRecommendationTemplates = createPaginator(ResiliencehubClient, ListRecommendationTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListResiliencyPoliciesCommand, } from "../commands/ListResiliencyPoliciesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListResiliencyPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListResiliencyPolicies(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListResiliencyPolicies = createPaginator(ResiliencehubClient, ListResiliencyPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSopRecommendationsCommand, } from "../commands/ListSopRecommendationsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSopRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSopRecommendations(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListSopRecommendations = createPaginator(ResiliencehubClient, ListSopRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSuggestedResiliencyPoliciesCommand, } from "../commands/ListSuggestedResiliencyPoliciesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSuggestedResiliencyPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSuggestedResiliencyPolicies(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListSuggestedResiliencyPolicies = createPaginator(ResiliencehubClient, ListSuggestedResiliencyPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListTestRecommendationsCommand, } from "../commands/ListTestRecommendationsCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListTestRecommendationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListTestRecommendations(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListTestRecommendations = createPaginator(ResiliencehubClient, ListTestRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListUnsupportedAppVersionResourcesCommand, } from "../commands/ListUnsupportedAppVersionResourcesCommand";
|
|
2
3
|
import { ResiliencehubClient } from "../ResiliencehubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListUnsupportedAppVersionResourcesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListUnsupportedAppVersionResources(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 ResiliencehubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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 paginateListUnsupportedAppVersionResources = createPaginator(ResiliencehubClient, ListUnsupportedAppVersionResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAlarmRecommendations: (config: ResiliencehubPaginationConfiguration, input: ListAlarmRecommendationsCommandInput, ...rest: any[]) => Paginator<ListAlarmRecommendationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppAssessmentComplianceDrifts: (config: ResiliencehubPaginationConfiguration, input: ListAppAssessmentComplianceDriftsCommandInput, ...rest: any[]) => Paginator<ListAppAssessmentComplianceDriftsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppAssessments: (config: ResiliencehubPaginationConfiguration, input: ListAppAssessmentsCommandInput, ...rest: any[]) => Paginator<ListAppAssessmentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppComponentCompliances: (config: ResiliencehubPaginationConfiguration, input: ListAppComponentCompliancesCommandInput, ...rest: any[]) => Paginator<ListAppComponentCompliancesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppComponentRecommendations: (config: ResiliencehubPaginationConfiguration, input: ListAppComponentRecommendationsCommandInput, ...rest: any[]) => Paginator<ListAppComponentRecommendationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInputSources: (config: ResiliencehubPaginationConfiguration, input: ListAppInputSourcesCommandInput, ...rest: any[]) => Paginator<ListAppInputSourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppVersionAppComponents: (config: ResiliencehubPaginationConfiguration, input: ListAppVersionAppComponentsCommandInput, ...rest: any[]) => Paginator<ListAppVersionAppComponentsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppVersionResourceMappings: (config: ResiliencehubPaginationConfiguration, input: ListAppVersionResourceMappingsCommandInput, ...rest: any[]) => Paginator<ListAppVersionResourceMappingsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppVersionResources: (config: ResiliencehubPaginationConfiguration, input: ListAppVersionResourcesCommandInput, ...rest: any[]) => Paginator<ListAppVersionResourcesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppVersions: (config: ResiliencehubPaginationConfiguration, input: ListAppVersionsCommandInput, ...rest: any[]) => Paginator<ListAppVersionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListApps: (config: ResiliencehubPaginationConfiguration, input: ListAppsCommandInput, ...rest: any[]) => Paginator<ListAppsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListRecommendationTemplates: (config: ResiliencehubPaginationConfiguration, input: ListRecommendationTemplatesCommandInput, ...rest: any[]) => Paginator<ListRecommendationTemplatesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListResiliencyPolicies: (config: ResiliencehubPaginationConfiguration, input: ListResiliencyPoliciesCommandInput, ...rest: any[]) => Paginator<ListResiliencyPoliciesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSopRecommendations: (config: ResiliencehubPaginationConfiguration, input: ListSopRecommendationsCommandInput, ...rest: any[]) => Paginator<ListSopRecommendationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSuggestedResiliencyPolicies: (config: ResiliencehubPaginationConfiguration, input: ListSuggestedResiliencyPoliciesCommandInput, ...rest: any[]) => Paginator<ListSuggestedResiliencyPoliciesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListTestRecommendations: (config: ResiliencehubPaginationConfiguration, input: ListTestRecommendationsCommandInput, ...rest: any[]) => Paginator<ListTestRecommendationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListUnsupportedAppVersionResources: (config: ResiliencehubPaginationConfiguration, input: ListUnsupportedAppVersionResourcesCommandInput, ...rest: any[]) => Paginator<ListUnsupportedAppVersionResourcesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAlarmRecommendationsCommandOutput,
|
|
5
5
|
} from "../commands/ListAlarmRecommendationsCommand";
|
|
6
6
|
import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAlarmRecommendations: (
|
|
8
8
|
config: ResiliencehubPaginationConfiguration,
|
|
9
9
|
input: ListAlarmRecommendationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAlarmRecommendationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppAssessmentComplianceDriftsCommandOutput,
|
|
5
5
|
} from "../commands/ListAppAssessmentComplianceDriftsCommand";
|
|
6
6
|
import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppAssessmentComplianceDrifts: (
|
|
8
8
|
config: ResiliencehubPaginationConfiguration,
|
|
9
9
|
input: ListAppAssessmentComplianceDriftsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppAssessmentComplianceDriftsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppAssessmentsCommandOutput,
|
|
5
5
|
} from "../commands/ListAppAssessmentsCommand";
|
|
6
6
|
import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppAssessments: (
|
|
8
8
|
config: ResiliencehubPaginationConfiguration,
|
|
9
9
|
input: ListAppAssessmentsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppAssessmentsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppComponentCompliancesCommandOutput,
|
|
5
5
|
} from "../commands/ListAppComponentCompliancesCommand";
|
|
6
6
|
import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppComponentCompliances: (
|
|
8
8
|
config: ResiliencehubPaginationConfiguration,
|
|
9
9
|
input: ListAppComponentCompliancesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppComponentCompliancesCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppComponentRecommendationsCommandOutput,
|
|
5
5
|
} from "../commands/ListAppComponentRecommendationsCommand";
|
|
6
6
|
import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppComponentRecommendations: (
|
|
8
8
|
config: ResiliencehubPaginationConfiguration,
|
|
9
9
|
input: ListAppComponentRecommendationsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppComponentRecommendationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListAppInputSourcesCommandOutput,
|
|
5
5
|
} from "../commands/ListAppInputSourcesCommand";
|
|
6
6
|
import { ResiliencehubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListAppInputSources: (
|
|
8
8
|
config: ResiliencehubPaginationConfiguration,
|
|
9
9
|
input: ListAppInputSourcesCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListAppInputSourcesCommandOutput>;
|