@aws-sdk/client-inspector 3.35.0 → 3.36.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/CHANGELOG.md +13 -0
- package/dist-cjs/Inspector.js +0 -1
- package/dist-cjs/InspectorClient.js +0 -1
- package/dist-cjs/commands/AddAttributesToFindingsCommand.js +0 -1
- package/dist-cjs/commands/CreateAssessmentTargetCommand.js +0 -1
- package/dist-cjs/commands/CreateAssessmentTemplateCommand.js +0 -1
- package/dist-cjs/commands/CreateExclusionsPreviewCommand.js +0 -1
- package/dist-cjs/commands/CreateResourceGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteAssessmentRunCommand.js +0 -1
- package/dist-cjs/commands/DeleteAssessmentTargetCommand.js +0 -1
- package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js +0 -1
- package/dist-cjs/commands/DescribeAssessmentRunsCommand.js +0 -1
- package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js +0 -1
- package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js +0 -1
- package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js +0 -1
- package/dist-cjs/commands/DescribeExclusionsCommand.js +0 -1
- package/dist-cjs/commands/DescribeFindingsCommand.js +0 -1
- package/dist-cjs/commands/DescribeResourceGroupsCommand.js +0 -1
- package/dist-cjs/commands/DescribeRulesPackagesCommand.js +0 -1
- package/dist-cjs/commands/GetAssessmentReportCommand.js +0 -1
- package/dist-cjs/commands/GetExclusionsPreviewCommand.js +0 -1
- package/dist-cjs/commands/GetTelemetryMetadataCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentRunsCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentTargetsCommand.js +0 -1
- package/dist-cjs/commands/ListAssessmentTemplatesCommand.js +0 -1
- package/dist-cjs/commands/ListEventSubscriptionsCommand.js +0 -1
- package/dist-cjs/commands/ListExclusionsCommand.js +0 -1
- package/dist-cjs/commands/ListFindingsCommand.js +0 -1
- package/dist-cjs/commands/ListRulesPackagesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PreviewAgentsCommand.js +0 -1
- package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js +0 -1
- package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js +0 -1
- package/dist-cjs/commands/SetTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/StartAssessmentRunCommand.js +0 -1
- package/dist-cjs/commands/StopAssessmentRunCommand.js +0 -1
- package/dist-cjs/commands/SubscribeToEventCommand.js +0 -1
- package/dist-cjs/commands/UnsubscribeFromEventCommand.js +0 -1
- package/dist-cjs/commands/UpdateAssessmentTargetCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetExclusionsPreviewPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssessmentRunsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js +0 -1
- package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListExclusionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListFindingsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRulesPackagesPaginator.js +0 -1
- package/dist-cjs/pagination/PreviewAgentsPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/Inspector.js +0 -1
- package/dist-es/InspectorClient.js +0 -1
- package/dist-es/commands/AddAttributesToFindingsCommand.js +0 -1
- package/dist-es/commands/CreateAssessmentTargetCommand.js +0 -1
- package/dist-es/commands/CreateAssessmentTemplateCommand.js +0 -1
- package/dist-es/commands/CreateExclusionsPreviewCommand.js +0 -1
- package/dist-es/commands/CreateResourceGroupCommand.js +0 -1
- package/dist-es/commands/DeleteAssessmentRunCommand.js +0 -1
- package/dist-es/commands/DeleteAssessmentTargetCommand.js +0 -1
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js +0 -1
- package/dist-es/commands/DescribeAssessmentRunsCommand.js +0 -1
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js +0 -1
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +0 -1
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +0 -1
- package/dist-es/commands/DescribeExclusionsCommand.js +0 -1
- package/dist-es/commands/DescribeFindingsCommand.js +0 -1
- package/dist-es/commands/DescribeResourceGroupsCommand.js +0 -1
- package/dist-es/commands/DescribeRulesPackagesCommand.js +0 -1
- package/dist-es/commands/GetAssessmentReportCommand.js +0 -1
- package/dist-es/commands/GetExclusionsPreviewCommand.js +0 -1
- package/dist-es/commands/GetTelemetryMetadataCommand.js +0 -1
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js +0 -1
- package/dist-es/commands/ListAssessmentRunsCommand.js +0 -1
- package/dist-es/commands/ListAssessmentTargetsCommand.js +0 -1
- package/dist-es/commands/ListAssessmentTemplatesCommand.js +0 -1
- package/dist-es/commands/ListEventSubscriptionsCommand.js +0 -1
- package/dist-es/commands/ListExclusionsCommand.js +0 -1
- package/dist-es/commands/ListFindingsCommand.js +0 -1
- package/dist-es/commands/ListRulesPackagesCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PreviewAgentsCommand.js +0 -1
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +0 -1
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +0 -1
- package/dist-es/commands/SetTagsForResourceCommand.js +0 -1
- package/dist-es/commands/StartAssessmentRunCommand.js +0 -1
- package/dist-es/commands/StopAssessmentRunCommand.js +0 -1
- package/dist-es/commands/SubscribeToEventCommand.js +0 -1
- package/dist-es/commands/UnsubscribeFromEventCommand.js +0 -1
- package/dist-es/commands/UpdateAssessmentTargetCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/GetExclusionsPreviewPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js +0 -1
- package/dist-es/pagination/ListAssessmentRunsPaginator.js +0 -1
- package/dist-es/pagination/ListAssessmentTargetsPaginator.js +0 -1
- package/dist-es/pagination/ListAssessmentTemplatesPaginator.js +0 -1
- package/dist-es/pagination/ListEventSubscriptionsPaginator.js +0 -1
- package/dist-es/pagination/ListExclusionsPaginator.js +0 -1
- package/dist-es/pagination/ListFindingsPaginator.js +0 -1
- package/dist-es/pagination/ListRulesPackagesPaginator.js +0 -1
- package/dist-es/pagination/PreviewAgentsPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/Inspector.js.map +0 -1
- package/dist-cjs/InspectorClient.js.map +0 -1
- package/dist-cjs/commands/AddAttributesToFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAssessmentTargetCommand.js.map +0 -1
- package/dist-cjs/commands/CreateAssessmentTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/CreateExclusionsPreviewCommand.js.map +0 -1
- package/dist-cjs/commands/CreateResourceGroupCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAssessmentRunCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAssessmentTargetCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAssessmentRunsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeExclusionsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeResourceGroupsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRulesPackagesCommand.js.map +0 -1
- package/dist-cjs/commands/GetAssessmentReportCommand.js.map +0 -1
- package/dist-cjs/commands/GetExclusionsPreviewCommand.js.map +0 -1
- package/dist-cjs/commands/GetTelemetryMetadataCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentRunsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentTargetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListAssessmentTemplatesCommand.js.map +0 -1
- package/dist-cjs/commands/ListEventSubscriptionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListExclusionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRulesPackagesCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PreviewAgentsCommand.js.map +0 -1
- package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
- package/dist-cjs/commands/SetTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/StartAssessmentRunCommand.js.map +0 -1
- package/dist-cjs/commands/StopAssessmentRunCommand.js.map +0 -1
- package/dist-cjs/commands/SubscribeToEventCommand.js.map +0 -1
- package/dist-cjs/commands/UnsubscribeFromEventCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateAssessmentTargetCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentRunsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListExclusionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRulesPackagesPaginator.js.map +0 -1
- package/dist-cjs/pagination/PreviewAgentsPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Inspector.js.map +0 -1
- package/dist-es/InspectorClient.js.map +0 -1
- package/dist-es/commands/AddAttributesToFindingsCommand.js.map +0 -1
- package/dist-es/commands/CreateAssessmentTargetCommand.js.map +0 -1
- package/dist-es/commands/CreateAssessmentTemplateCommand.js.map +0 -1
- package/dist-es/commands/CreateExclusionsPreviewCommand.js.map +0 -1
- package/dist-es/commands/CreateResourceGroupCommand.js.map +0 -1
- package/dist-es/commands/DeleteAssessmentRunCommand.js.map +0 -1
- package/dist-es/commands/DeleteAssessmentTargetCommand.js.map +0 -1
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js.map +0 -1
- package/dist-es/commands/DescribeAssessmentRunsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js.map +0 -1
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js.map +0 -1
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-es/commands/DescribeExclusionsCommand.js.map +0 -1
- package/dist-es/commands/DescribeFindingsCommand.js.map +0 -1
- package/dist-es/commands/DescribeResourceGroupsCommand.js.map +0 -1
- package/dist-es/commands/DescribeRulesPackagesCommand.js.map +0 -1
- package/dist-es/commands/GetAssessmentReportCommand.js.map +0 -1
- package/dist-es/commands/GetExclusionsPreviewCommand.js.map +0 -1
- package/dist-es/commands/GetTelemetryMetadataCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentRunsCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentTargetsCommand.js.map +0 -1
- package/dist-es/commands/ListAssessmentTemplatesCommand.js.map +0 -1
- package/dist-es/commands/ListEventSubscriptionsCommand.js.map +0 -1
- package/dist-es/commands/ListExclusionsCommand.js.map +0 -1
- package/dist-es/commands/ListFindingsCommand.js.map +0 -1
- package/dist-es/commands/ListRulesPackagesCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PreviewAgentsCommand.js.map +0 -1
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js.map +0 -1
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js.map +0 -1
- package/dist-es/commands/SetTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/StartAssessmentRunCommand.js.map +0 -1
- package/dist-es/commands/StopAssessmentRunCommand.js.map +0 -1
- package/dist-es/commands/SubscribeToEventCommand.js.map +0 -1
- package/dist-es/commands/UnsubscribeFromEventCommand.js.map +0 -1
- package/dist-es/commands/UpdateAssessmentTargetCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/GetExclusionsPreviewPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListAssessmentRunAgentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListAssessmentRunsPaginator.js.map +0 -1
- package/dist-es/pagination/ListAssessmentTargetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListAssessmentTemplatesPaginator.js.map +0 -1
- package/dist-es/pagination/ListEventSubscriptionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListExclusionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListFindingsPaginator.js.map +0 -1
- package/dist-es/pagination/ListRulesPackagesPaginator.js.map +0 -1
- package/dist-es/pagination/PreviewAgentsPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Inspector.ts +0 -1425
- package/src/InspectorClient.ts +0 -428
- package/src/commands/AddAttributesToFindingsCommand.ts +0 -96
- package/src/commands/CreateAssessmentTargetCommand.ts +0 -102
- package/src/commands/CreateAssessmentTemplateCommand.ts +0 -98
- package/src/commands/CreateExclusionsPreviewCommand.ts +0 -97
- package/src/commands/CreateResourceGroupCommand.ts +0 -98
- package/src/commands/DeleteAssessmentRunCommand.ts +0 -96
- package/src/commands/DeleteAssessmentTargetCommand.ts +0 -96
- package/src/commands/DeleteAssessmentTemplateCommand.ts +0 -96
- package/src/commands/DescribeAssessmentRunsCommand.ts +0 -96
- package/src/commands/DescribeAssessmentTargetsCommand.ts +0 -99
- package/src/commands/DescribeAssessmentTemplatesCommand.ts +0 -101
- package/src/commands/DescribeCrossAccountAccessRoleCommand.ts +0 -104
- package/src/commands/DescribeExclusionsCommand.ts +0 -95
- package/src/commands/DescribeFindingsCommand.ts +0 -95
- package/src/commands/DescribeResourceGroupsCommand.ts +0 -96
- package/src/commands/DescribeRulesPackagesCommand.ts +0 -96
- package/src/commands/GetAssessmentReportCommand.ts +0 -96
- package/src/commands/GetExclusionsPreviewCommand.ts +0 -97
- package/src/commands/GetTelemetryMetadataCommand.ts +0 -96
- package/src/commands/ListAssessmentRunAgentsCommand.ts +0 -96
- package/src/commands/ListAssessmentRunsCommand.ts +0 -96
- package/src/commands/ListAssessmentTargetsCommand.ts +0 -97
- package/src/commands/ListAssessmentTemplatesCommand.ts +0 -96
- package/src/commands/ListEventSubscriptionsCommand.ts +0 -96
- package/src/commands/ListExclusionsCommand.ts +0 -95
- package/src/commands/ListFindingsCommand.ts +0 -96
- package/src/commands/ListRulesPackagesCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PreviewAgentsCommand.ts +0 -96
- package/src/commands/RegisterCrossAccountAccessRoleCommand.ts +0 -102
- package/src/commands/RemoveAttributesFromFindingsCommand.ts +0 -101
- package/src/commands/SetTagsForResourceCommand.ts +0 -96
- package/src/commands/StartAssessmentRunCommand.ts +0 -97
- package/src/commands/StopAssessmentRunCommand.ts +0 -96
- package/src/commands/SubscribeToEventCommand.ts +0 -96
- package/src/commands/UnsubscribeFromEventCommand.ts +0 -96
- package/src/commands/UpdateAssessmentTargetCommand.ts +0 -98
- package/src/endpoints.ts +0 -86
- package/src/index.ts +0 -51
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3381
- package/src/pagination/GetExclusionsPreviewPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListAssessmentRunAgentsPaginator.ts +0 -59
- package/src/pagination/ListAssessmentRunsPaginator.ts +0 -59
- package/src/pagination/ListAssessmentTargetsPaginator.ts +0 -59
- package/src/pagination/ListAssessmentTemplatesPaginator.ts +0 -59
- package/src/pagination/ListEventSubscriptionsPaginator.ts +0 -59
- package/src/pagination/ListExclusionsPaginator.ts +0 -59
- package/src/pagination/ListFindingsPaginator.ts +0 -59
- package/src/pagination/ListRulesPackagesPaginator.ts +0 -59
- package/src/pagination/PreviewAgentsPaginator.ts +0 -59
- package/src/protocols/Aws_json1_1.ts +0 -5926
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
GetExclusionsPreviewCommand,
|
|
5
|
-
GetExclusionsPreviewCommandInput,
|
|
6
|
-
GetExclusionsPreviewCommandOutput,
|
|
7
|
-
} from "../commands/GetExclusionsPreviewCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: GetExclusionsPreviewCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<GetExclusionsPreviewCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new GetExclusionsPreviewCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: GetExclusionsPreviewCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<GetExclusionsPreviewCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.getExclusionsPreview(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateGetExclusionsPreview(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: GetExclusionsPreviewCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<GetExclusionsPreviewCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: GetExclusionsPreviewCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { Inspector } from "../Inspector";
|
|
4
|
-
import { InspectorClient } from "../InspectorClient";
|
|
5
|
-
|
|
6
|
-
export interface InspectorPaginationConfiguration extends PaginationConfiguration {
|
|
7
|
-
client: Inspector | InspectorClient;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListAssessmentRunAgentsCommand,
|
|
5
|
-
ListAssessmentRunAgentsCommandInput,
|
|
6
|
-
ListAssessmentRunAgentsCommandOutput,
|
|
7
|
-
} from "../commands/ListAssessmentRunAgentsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListAssessmentRunAgentsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListAssessmentRunAgentsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListAssessmentRunAgentsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListAssessmentRunAgentsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListAssessmentRunAgentsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listAssessmentRunAgents(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListAssessmentRunAgents(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListAssessmentRunAgentsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListAssessmentRunAgentsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListAssessmentRunAgentsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListAssessmentRunsCommand,
|
|
5
|
-
ListAssessmentRunsCommandInput,
|
|
6
|
-
ListAssessmentRunsCommandOutput,
|
|
7
|
-
} from "../commands/ListAssessmentRunsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListAssessmentRunsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListAssessmentRunsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListAssessmentRunsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListAssessmentRunsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListAssessmentRunsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listAssessmentRuns(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListAssessmentRuns(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListAssessmentRunsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListAssessmentRunsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListAssessmentRunsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListAssessmentTargetsCommand,
|
|
5
|
-
ListAssessmentTargetsCommandInput,
|
|
6
|
-
ListAssessmentTargetsCommandOutput,
|
|
7
|
-
} from "../commands/ListAssessmentTargetsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListAssessmentTargetsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListAssessmentTargetsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListAssessmentTargetsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListAssessmentTargetsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListAssessmentTargetsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listAssessmentTargets(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListAssessmentTargets(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListAssessmentTargetsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListAssessmentTargetsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListAssessmentTargetsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListAssessmentTemplatesCommand,
|
|
5
|
-
ListAssessmentTemplatesCommandInput,
|
|
6
|
-
ListAssessmentTemplatesCommandOutput,
|
|
7
|
-
} from "../commands/ListAssessmentTemplatesCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListAssessmentTemplatesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListAssessmentTemplatesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListAssessmentTemplatesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListAssessmentTemplatesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListAssessmentTemplatesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listAssessmentTemplates(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListAssessmentTemplates(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListAssessmentTemplatesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListAssessmentTemplatesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListAssessmentTemplatesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListEventSubscriptionsCommand,
|
|
5
|
-
ListEventSubscriptionsCommandInput,
|
|
6
|
-
ListEventSubscriptionsCommandOutput,
|
|
7
|
-
} from "../commands/ListEventSubscriptionsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListEventSubscriptionsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListEventSubscriptionsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListEventSubscriptionsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListEventSubscriptionsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListEventSubscriptionsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listEventSubscriptions(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListEventSubscriptions(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListEventSubscriptionsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListEventSubscriptionsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListEventSubscriptionsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListExclusionsCommand,
|
|
5
|
-
ListExclusionsCommandInput,
|
|
6
|
-
ListExclusionsCommandOutput,
|
|
7
|
-
} from "../commands/ListExclusionsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListExclusionsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListExclusionsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListExclusionsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListExclusionsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListExclusionsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listExclusions(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListExclusions(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListExclusionsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListExclusionsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListExclusionsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListFindingsCommand,
|
|
5
|
-
ListFindingsCommandInput,
|
|
6
|
-
ListFindingsCommandOutput,
|
|
7
|
-
} from "../commands/ListFindingsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListFindingsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListFindingsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListFindingsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListFindingsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListFindingsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listFindings(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListFindings(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListFindingsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListFindingsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListFindingsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
ListRulesPackagesCommand,
|
|
5
|
-
ListRulesPackagesCommandInput,
|
|
6
|
-
ListRulesPackagesCommandOutput,
|
|
7
|
-
} from "../commands/ListRulesPackagesCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: ListRulesPackagesCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<ListRulesPackagesCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new ListRulesPackagesCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: ListRulesPackagesCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<ListRulesPackagesCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.listRulesPackages(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginateListRulesPackages(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: ListRulesPackagesCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<ListRulesPackagesCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: ListRulesPackagesCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
PreviewAgentsCommand,
|
|
5
|
-
PreviewAgentsCommandInput,
|
|
6
|
-
PreviewAgentsCommandOutput,
|
|
7
|
-
} from "../commands/PreviewAgentsCommand";
|
|
8
|
-
import { Inspector } from "../Inspector";
|
|
9
|
-
import { InspectorClient } from "../InspectorClient";
|
|
10
|
-
import { InspectorPaginationConfiguration } from "./Interfaces";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @private
|
|
14
|
-
*/
|
|
15
|
-
const makePagedClientRequest = async (
|
|
16
|
-
client: InspectorClient,
|
|
17
|
-
input: PreviewAgentsCommandInput,
|
|
18
|
-
...args: any
|
|
19
|
-
): Promise<PreviewAgentsCommandOutput> => {
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
return await client.send(new PreviewAgentsCommand(input), ...args);
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @private
|
|
25
|
-
*/
|
|
26
|
-
const makePagedRequest = async (
|
|
27
|
-
client: Inspector,
|
|
28
|
-
input: PreviewAgentsCommandInput,
|
|
29
|
-
...args: any
|
|
30
|
-
): Promise<PreviewAgentsCommandOutput> => {
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
return await client.previewAgents(input, ...args);
|
|
33
|
-
};
|
|
34
|
-
export async function* paginatePreviewAgents(
|
|
35
|
-
config: InspectorPaginationConfiguration,
|
|
36
|
-
input: PreviewAgentsCommandInput,
|
|
37
|
-
...additionalArguments: any
|
|
38
|
-
): Paginator<PreviewAgentsCommandOutput> {
|
|
39
|
-
// ToDo: replace with actual type instead of typeof input.nextToken
|
|
40
|
-
let token: typeof input.nextToken | undefined = config.startingToken || undefined;
|
|
41
|
-
let hasNext = true;
|
|
42
|
-
let page: PreviewAgentsCommandOutput;
|
|
43
|
-
while (hasNext) {
|
|
44
|
-
input.nextToken = token;
|
|
45
|
-
input["maxResults"] = config.pageSize;
|
|
46
|
-
if (config.client instanceof Inspector) {
|
|
47
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
48
|
-
} else if (config.client instanceof InspectorClient) {
|
|
49
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
50
|
-
} else {
|
|
51
|
-
throw new Error("Invalid client, expected Inspector | InspectorClient");
|
|
52
|
-
}
|
|
53
|
-
yield page;
|
|
54
|
-
token = page.nextToken;
|
|
55
|
-
hasNext = !!token;
|
|
56
|
-
}
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
return undefined;
|
|
59
|
-
}
|