@aws-sdk/client-resiliencehub 3.476.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-cjs/protocols/Aws_restJson1.js +267 -641
- 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-es/protocols/Aws_restJson1.js +268 -642
- 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 +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAlarmRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAlarmRecommendationsCommand_1 = require("../commands/ListAlarmRecommendationsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAlarmRecommendationsCommand_1.ListAlarmRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAlarmRecommendations(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAlarmRecommendations = paginateListAlarmRecommendations;
|
|
7
|
+
exports.paginateListAlarmRecommendations = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAlarmRecommendationsCommand_1.ListAlarmRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppAssessmentComplianceDrifts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppAssessmentComplianceDriftsCommand_1 = require("../commands/ListAppAssessmentComplianceDriftsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppAssessmentComplianceDriftsCommand_1.ListAppAssessmentComplianceDriftsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppAssessmentComplianceDrifts(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppAssessmentComplianceDrifts = paginateListAppAssessmentComplianceDrifts;
|
|
7
|
+
exports.paginateListAppAssessmentComplianceDrifts = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppAssessmentComplianceDriftsCommand_1.ListAppAssessmentComplianceDriftsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppAssessments = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppAssessmentsCommand_1 = require("../commands/ListAppAssessmentsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppAssessmentsCommand_1.ListAppAssessmentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppAssessments(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppAssessments = paginateListAppAssessments;
|
|
7
|
+
exports.paginateListAppAssessments = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppAssessmentsCommand_1.ListAppAssessmentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppComponentCompliances = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppComponentCompliancesCommand_1 = require("../commands/ListAppComponentCompliancesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppComponentCompliancesCommand_1.ListAppComponentCompliancesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppComponentCompliances(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppComponentCompliances = paginateListAppComponentCompliances;
|
|
7
|
+
exports.paginateListAppComponentCompliances = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppComponentCompliancesCommand_1.ListAppComponentCompliancesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppComponentRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppComponentRecommendationsCommand_1 = require("../commands/ListAppComponentRecommendationsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppComponentRecommendationsCommand_1.ListAppComponentRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppComponentRecommendations(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppComponentRecommendations = paginateListAppComponentRecommendations;
|
|
7
|
+
exports.paginateListAppComponentRecommendations = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppComponentRecommendationsCommand_1.ListAppComponentRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppInputSources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppInputSourcesCommand_1 = require("../commands/ListAppInputSourcesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppInputSourcesCommand_1.ListAppInputSourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppInputSources(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppInputSources = paginateListAppInputSources;
|
|
7
|
+
exports.paginateListAppInputSources = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppInputSourcesCommand_1.ListAppInputSourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppVersionAppComponents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppVersionAppComponentsCommand_1 = require("../commands/ListAppVersionAppComponentsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppVersionAppComponentsCommand_1.ListAppVersionAppComponentsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppVersionAppComponents(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppVersionAppComponents = paginateListAppVersionAppComponents;
|
|
7
|
+
exports.paginateListAppVersionAppComponents = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppVersionAppComponentsCommand_1.ListAppVersionAppComponentsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppVersionResourceMappings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppVersionResourceMappingsCommand_1 = require("../commands/ListAppVersionResourceMappingsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppVersionResourceMappingsCommand_1.ListAppVersionResourceMappingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppVersionResourceMappings(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppVersionResourceMappings = paginateListAppVersionResourceMappings;
|
|
7
|
+
exports.paginateListAppVersionResourceMappings = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppVersionResourceMappingsCommand_1.ListAppVersionResourceMappingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppVersionResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppVersionResourcesCommand_1 = require("../commands/ListAppVersionResourcesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppVersionResourcesCommand_1.ListAppVersionResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppVersionResources(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppVersionResources = paginateListAppVersionResources;
|
|
7
|
+
exports.paginateListAppVersionResources = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppVersionResourcesCommand_1.ListAppVersionResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAppVersions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppVersionsCommand_1 = require("../commands/ListAppVersionsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppVersionsCommand_1.ListAppVersionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAppVersions(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListAppVersions = paginateListAppVersions;
|
|
7
|
+
exports.paginateListAppVersions = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppVersionsCommand_1.ListAppVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApps = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAppsCommand_1 = require("../commands/ListAppsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAppsCommand_1.ListAppsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListApps(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListApps = paginateListApps;
|
|
7
|
+
exports.paginateListApps = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListAppsCommand_1.ListAppsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRecommendationTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRecommendationTemplatesCommand_1 = require("../commands/ListRecommendationTemplatesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRecommendationTemplatesCommand_1.ListRecommendationTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRecommendationTemplates(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListRecommendationTemplates = paginateListRecommendationTemplates;
|
|
7
|
+
exports.paginateListRecommendationTemplates = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListRecommendationTemplatesCommand_1.ListRecommendationTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResiliencyPolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResiliencyPoliciesCommand_1 = require("../commands/ListResiliencyPoliciesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResiliencyPoliciesCommand_1.ListResiliencyPoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResiliencyPolicies(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListResiliencyPolicies = paginateListResiliencyPolicies;
|
|
7
|
+
exports.paginateListResiliencyPolicies = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListResiliencyPoliciesCommand_1.ListResiliencyPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSopRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSopRecommendationsCommand_1 = require("../commands/ListSopRecommendationsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSopRecommendationsCommand_1.ListSopRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSopRecommendations(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListSopRecommendations = paginateListSopRecommendations;
|
|
7
|
+
exports.paginateListSopRecommendations = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListSopRecommendationsCommand_1.ListSopRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSuggestedResiliencyPolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSuggestedResiliencyPoliciesCommand_1 = require("../commands/ListSuggestedResiliencyPoliciesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSuggestedResiliencyPoliciesCommand_1.ListSuggestedResiliencyPoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSuggestedResiliencyPolicies(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListSuggestedResiliencyPolicies = paginateListSuggestedResiliencyPolicies;
|
|
7
|
+
exports.paginateListSuggestedResiliencyPolicies = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListSuggestedResiliencyPoliciesCommand_1.ListSuggestedResiliencyPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListTestRecommendations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListTestRecommendationsCommand_1 = require("../commands/ListTestRecommendationsCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListTestRecommendationsCommand_1.ListTestRecommendationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListTestRecommendations(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListTestRecommendations = paginateListTestRecommendations;
|
|
7
|
+
exports.paginateListTestRecommendations = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListTestRecommendationsCommand_1.ListTestRecommendationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListUnsupportedAppVersionResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListUnsupportedAppVersionResourcesCommand_1 = require("../commands/ListUnsupportedAppVersionResourcesCommand");
|
|
5
6
|
const ResiliencehubClient_1 = require("../ResiliencehubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListUnsupportedAppVersionResourcesCommand_1.ListUnsupportedAppVersionResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListUnsupportedAppVersionResources(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 ResiliencehubClient_1.ResiliencehubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected Resiliencehub | ResiliencehubClient");
|
|
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.paginateListUnsupportedAppVersionResources = paginateListUnsupportedAppVersionResources;
|
|
7
|
+
exports.paginateListUnsupportedAppVersionResources = (0, core_1.createPaginator)(ResiliencehubClient_1.ResiliencehubClient, ListUnsupportedAppVersionResourcesCommand_1.ListUnsupportedAppVersionResourcesCommand, "nextToken", "nextToken", "maxResults");
|