@aws-sdk/client-securityhub 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/DescribeActionTargetsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeProductsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeStandardsControlsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeStandardsPaginator.js +2 -24
- package/dist-cjs/pagination/GetEnabledStandardsPaginator.js +2 -24
- package/dist-cjs/pagination/GetFindingHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/GetFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/GetInsightsPaginator.js +2 -24
- package/dist-cjs/pagination/ListConfigurationPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListConfigurationPolicyAssociationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEnabledProductsForImportPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingAggregatorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListInvitationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListMembersPaginator.js +2 -24
- package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSecurityControlDefinitionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListStandardsControlAssociationsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +374 -938
- package/dist-es/pagination/DescribeActionTargetsPaginator.js +2 -23
- package/dist-es/pagination/DescribeProductsPaginator.js +2 -23
- package/dist-es/pagination/DescribeStandardsControlsPaginator.js +2 -23
- package/dist-es/pagination/DescribeStandardsPaginator.js +2 -23
- package/dist-es/pagination/GetEnabledStandardsPaginator.js +2 -23
- package/dist-es/pagination/GetFindingHistoryPaginator.js +2 -23
- package/dist-es/pagination/GetFindingsPaginator.js +2 -23
- package/dist-es/pagination/GetInsightsPaginator.js +2 -23
- package/dist-es/pagination/ListConfigurationPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListConfigurationPolicyAssociationsPaginator.js +2 -23
- package/dist-es/pagination/ListEnabledProductsForImportPaginator.js +2 -23
- package/dist-es/pagination/ListFindingAggregatorsPaginator.js +2 -23
- package/dist-es/pagination/ListInvitationsPaginator.js +2 -23
- package/dist-es/pagination/ListMembersPaginator.js +2 -23
- package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +2 -23
- package/dist-es/pagination/ListSecurityControlDefinitionsPaginator.js +2 -23
- package/dist-es/pagination/ListStandardsControlAssociationsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +375 -939
- package/dist-types/pagination/DescribeActionTargetsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeProductsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeStandardsControlsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeStandardsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetEnabledStandardsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetFindingHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/GetFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetInsightsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListConfigurationPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEnabledProductsForImportPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingAggregatorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListInvitationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListMembersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSecurityControlDefinitionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListStandardsControlAssociationsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeActionTargetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeProductsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeStandardsControlsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeStandardsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetEnabledStandardsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetFindingHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetInsightsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConfigurationPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListConfigurationPolicyAssociationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEnabledProductsForImportPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingAggregatorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSecurityControlDefinitionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListStandardsControlAssociationsPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeActionTargetsCommand, } from "../commands/DescribeActionTargetsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeActionTargetsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeActionTargets(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeActionTargets = createPaginator(SecurityHubClient, DescribeActionTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeProductsCommand, } from "../commands/DescribeProductsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeProductsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeProducts(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeProducts = createPaginator(SecurityHubClient, DescribeProductsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeStandardsControlsCommand, } from "../commands/DescribeStandardsControlsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeStandardsControlsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeStandardsControls(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeStandardsControls = createPaginator(SecurityHubClient, DescribeStandardsControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { DescribeStandardsCommand, } from "../commands/DescribeStandardsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeStandardsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeStandards(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateDescribeStandards = createPaginator(SecurityHubClient, DescribeStandardsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetEnabledStandardsCommand, } from "../commands/GetEnabledStandardsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetEnabledStandardsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetEnabledStandards(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetEnabledStandards = createPaginator(SecurityHubClient, GetEnabledStandardsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetFindingHistoryCommand, } from "../commands/GetFindingHistoryCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetFindingHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetFindingHistory(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetFindingHistory = createPaginator(SecurityHubClient, GetFindingHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetFindingsCommand } from "../commands/GetFindingsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetFindingsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetFindings(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetFindings = createPaginator(SecurityHubClient, GetFindingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { GetInsightsCommand } from "../commands/GetInsightsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetInsightsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetInsights(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetInsights = createPaginator(SecurityHubClient, GetInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListConfigurationPoliciesCommand, } from "../commands/ListConfigurationPoliciesCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListConfigurationPoliciesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListConfigurationPolicies(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListConfigurationPolicies = createPaginator(SecurityHubClient, ListConfigurationPoliciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListConfigurationPolicyAssociationsCommand, } from "../commands/ListConfigurationPolicyAssociationsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListConfigurationPolicyAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListConfigurationPolicyAssociations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListConfigurationPolicyAssociations = createPaginator(SecurityHubClient, ListConfigurationPolicyAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListEnabledProductsForImportCommand, } from "../commands/ListEnabledProductsForImportCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListEnabledProductsForImportCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListEnabledProductsForImport(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListEnabledProductsForImport = createPaginator(SecurityHubClient, ListEnabledProductsForImportCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListFindingAggregatorsCommand, } from "../commands/ListFindingAggregatorsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFindingAggregatorsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFindingAggregators(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListFindingAggregators = createPaginator(SecurityHubClient, ListFindingAggregatorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListInvitationsCommand, } from "../commands/ListInvitationsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListInvitationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListInvitations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListInvitations = createPaginator(SecurityHubClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListMembersCommand } from "../commands/ListMembersCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListMembersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListMembers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListMembers = createPaginator(SecurityHubClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListOrganizationAdminAccountsCommand, } from "../commands/ListOrganizationAdminAccountsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListOrganizationAdminAccountsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListOrganizationAdminAccounts(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListOrganizationAdminAccounts = createPaginator(SecurityHubClient, ListOrganizationAdminAccountsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListSecurityControlDefinitionsCommand, } from "../commands/ListSecurityControlDefinitionsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListSecurityControlDefinitionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListSecurityControlDefinitions(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListSecurityControlDefinitions = createPaginator(SecurityHubClient, ListSecurityControlDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ListStandardsControlAssociationsCommand, } from "../commands/ListStandardsControlAssociationsCommand";
|
|
2
3
|
import { SecurityHubClient } from "../SecurityHubClient";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListStandardsControlAssociationsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListStandardsControlAssociations(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof SecurityHubClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListStandardsControlAssociations = createPaginator(SecurityHubClient, ListStandardsControlAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|