@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.
Files changed (43) hide show
  1. package/dist-cjs/pagination/GetFindingV2Paginator.js +2 -24
  2. package/dist-cjs/pagination/ListAccessPreviewFindingsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAccessPreviewsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAnalyzedResourcesPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAnalyzersPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListArchiveRulesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListFindingsV2Paginator.js +2 -24
  9. package/dist-cjs/pagination/ListPolicyGenerationsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ValidatePolicyPaginator.js +2 -24
  11. package/dist-cjs/protocols/Aws_restJson1.js +188 -428
  12. package/dist-es/pagination/GetFindingV2Paginator.js +2 -23
  13. package/dist-es/pagination/ListAccessPreviewFindingsPaginator.js +2 -23
  14. package/dist-es/pagination/ListAccessPreviewsPaginator.js +2 -23
  15. package/dist-es/pagination/ListAnalyzedResourcesPaginator.js +2 -23
  16. package/dist-es/pagination/ListAnalyzersPaginator.js +2 -23
  17. package/dist-es/pagination/ListArchiveRulesPaginator.js +2 -23
  18. package/dist-es/pagination/ListFindingsPaginator.js +2 -23
  19. package/dist-es/pagination/ListFindingsV2Paginator.js +2 -23
  20. package/dist-es/pagination/ListPolicyGenerationsPaginator.js +2 -23
  21. package/dist-es/pagination/ValidatePolicyPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +189 -429
  23. package/dist-types/pagination/GetFindingV2Paginator.d.ts +1 -1
  24. package/dist-types/pagination/ListAccessPreviewFindingsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListAccessPreviewsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListAnalyzedResourcesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListAnalyzersPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListArchiveRulesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListFindingsV2Paginator.d.ts +1 -1
  31. package/dist-types/pagination/ListPolicyGenerationsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ValidatePolicyPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/GetFindingV2Paginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListAccessPreviewFindingsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListAccessPreviewsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListAnalyzedResourcesPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListAnalyzersPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListArchiveRulesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListFindingsV2Paginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListPolicyGenerationsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ValidatePolicyPaginator.d.ts +3 -3
  43. 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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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
- const makePagedClientRequest = async (client, input, ...args) => {
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");