@aws-sdk/client-accessanalyzer 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/GetFindingV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListAccessPreviewFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAccessPreviewsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnalyzedResourcesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAnalyzersPaginator.js +2 -24
- package/dist-cjs/pagination/ListArchiveRulesPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsV2Paginator.js +2 -24
- package/dist-cjs/pagination/ListPolicyGenerationsPaginator.js +2 -24
- package/dist-cjs/pagination/ValidatePolicyPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +188 -428
- package/dist-es/pagination/GetFindingV2Paginator.js +2 -23
- package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListAccessPreviewsPaginator.js +2 -23
- package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +2 -23
- package/dist-es/pagination/ListAnalyzersPaginator.js +2 -23
- package/dist-es/pagination/ListArchiveRulesPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsV2Paginator.js +2 -23
- package/dist-es/pagination/ListPolicyGenerationsPaginator.js +2 -23
- package/dist-es/pagination/ValidatePolicyPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +189 -429
- package/dist-types/pagination/GetFindingV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAnalyzersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListArchiveRulesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsV2Paginator.d.ts +1 -1
- package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ValidatePolicyPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/GetFindingV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessPreviewFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAccessPreviewsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnalyzedResourcesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAnalyzersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListArchiveRulesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsV2Paginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ValidatePolicyPaginator.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.paginateGetFindingV2 = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const GetFindingV2Command_1 = require("../commands/GetFindingV2Command");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetFindingV2Command_1.GetFindingV2Command(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetFindingV2(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateGetFindingV2 = paginateGetFindingV2;
|
|
7
|
+
exports.paginateGetFindingV2 = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, GetFindingV2Command_1.GetFindingV2Command, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessPreviewFindings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListAccessPreviewFindingsCommand_1 = require("../commands/ListAccessPreviewFindingsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessPreviewFindingsCommand_1.ListAccessPreviewFindingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessPreviewFindings(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListAccessPreviewFindings = paginateListAccessPreviewFindings;
|
|
7
|
+
exports.paginateListAccessPreviewFindings = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListAccessPreviewFindingsCommand_1.ListAccessPreviewFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAccessPreviews = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListAccessPreviewsCommand_1 = require("../commands/ListAccessPreviewsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAccessPreviewsCommand_1.ListAccessPreviewsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAccessPreviews(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListAccessPreviews = paginateListAccessPreviews;
|
|
7
|
+
exports.paginateListAccessPreviews = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListAccessPreviewsCommand_1.ListAccessPreviewsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAnalyzedResources = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListAnalyzedResourcesCommand_1 = require("../commands/ListAnalyzedResourcesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAnalyzedResourcesCommand_1.ListAnalyzedResourcesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAnalyzedResources(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListAnalyzedResources = paginateListAnalyzedResources;
|
|
7
|
+
exports.paginateListAnalyzedResources = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListAnalyzedResourcesCommand_1.ListAnalyzedResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAnalyzers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListAnalyzersCommand_1 = require("../commands/ListAnalyzersCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAnalyzersCommand_1.ListAnalyzersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAnalyzers(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListAnalyzers = paginateListAnalyzers;
|
|
7
|
+
exports.paginateListAnalyzers = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListAnalyzersCommand_1.ListAnalyzersCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListArchiveRules = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListArchiveRulesCommand_1 = require("../commands/ListArchiveRulesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListArchiveRulesCommand_1.ListArchiveRulesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListArchiveRules(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListArchiveRules = paginateListArchiveRules;
|
|
7
|
+
exports.paginateListArchiveRules = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListArchiveRulesCommand_1.ListArchiveRulesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListFindingsCommand_1 = require("../commands/ListFindingsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingsCommand_1.ListFindingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindings(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListFindings = paginateListFindings;
|
|
7
|
+
exports.paginateListFindings = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListFindingsCommand_1.ListFindingsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindingsV2 = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListFindingsV2Command_1 = require("../commands/ListFindingsV2Command");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingsV2Command_1.ListFindingsV2Command(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindingsV2(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListFindingsV2 = paginateListFindingsV2;
|
|
7
|
+
exports.paginateListFindingsV2 = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListFindingsV2Command_1.ListFindingsV2Command, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPolicyGenerations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ListPolicyGenerationsCommand_1 = require("../commands/ListPolicyGenerationsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPolicyGenerationsCommand_1.ListPolicyGenerationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPolicyGenerations(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateListPolicyGenerations = paginateListPolicyGenerations;
|
|
7
|
+
exports.paginateListPolicyGenerations = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ListPolicyGenerationsCommand_1.ListPolicyGenerationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateValidatePolicy = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const AccessAnalyzerClient_1 = require("../AccessAnalyzerClient");
|
|
5
6
|
const ValidatePolicyCommand_1 = require("../commands/ValidatePolicyCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ValidatePolicyCommand_1.ValidatePolicyCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateValidatePolicy(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 AccessAnalyzerClient_1.AccessAnalyzerClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected AccessAnalyzer | AccessAnalyzerClient");
|
|
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.paginateValidatePolicy = paginateValidatePolicy;
|
|
7
|
+
exports.paginateValidatePolicy = (0, core_1.createPaginator)(AccessAnalyzerClient_1.AccessAnalyzerClient, ValidatePolicyCommand_1.ValidatePolicyCommand, "nextToken", "nextToken", "maxResults");
|