@aws-sdk/client-securityhub 3.477.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-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-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 +5 -5
|
@@ -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");
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeActionTargets: (config: SecurityHubPaginationConfiguration, input: DescribeActionTargetsCommandInput, ...rest: any[]) => Paginator<DescribeActionTargetsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeProducts: (config: SecurityHubPaginationConfiguration, input: DescribeProductsCommandInput, ...rest: any[]) => Paginator<DescribeProductsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeStandardsControls: (config: SecurityHubPaginationConfiguration, input: DescribeStandardsControlsCommandInput, ...rest: any[]) => Paginator<DescribeStandardsControlsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeStandards: (config: SecurityHubPaginationConfiguration, input: DescribeStandardsCommandInput, ...rest: any[]) => Paginator<DescribeStandardsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetEnabledStandards: (config: SecurityHubPaginationConfiguration, input: GetEnabledStandardsCommandInput, ...rest: any[]) => Paginator<GetEnabledStandardsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetFindingHistory: (config: SecurityHubPaginationConfiguration, input: GetFindingHistoryCommandInput, ...rest: any[]) => Paginator<GetFindingHistoryCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetFindings: (config: SecurityHubPaginationConfiguration, input: GetFindingsCommandInput, ...rest: any[]) => Paginator<GetFindingsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetInsights: (config: SecurityHubPaginationConfiguration, input: GetInsightsCommandInput, ...rest: any[]) => Paginator<GetInsightsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListConfigurationPolicies: (config: SecurityHubPaginationConfiguration, input: ListConfigurationPoliciesCommandInput, ...rest: any[]) => Paginator<ListConfigurationPoliciesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListConfigurationPolicyAssociations: (config: SecurityHubPaginationConfiguration, input: ListConfigurationPolicyAssociationsCommandInput, ...rest: any[]) => Paginator<ListConfigurationPolicyAssociationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListEnabledProductsForImport: (config: SecurityHubPaginationConfiguration, input: ListEnabledProductsForImportCommandInput, ...rest: any[]) => Paginator<ListEnabledProductsForImportCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListFindingAggregators: (config: SecurityHubPaginationConfiguration, input: ListFindingAggregatorsCommandInput, ...rest: any[]) => Paginator<ListFindingAggregatorsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListInvitations: (config: SecurityHubPaginationConfiguration, input: ListInvitationsCommandInput, ...rest: any[]) => Paginator<ListInvitationsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListMembers: (config: SecurityHubPaginationConfiguration, input: ListMembersCommandInput, ...rest: any[]) => Paginator<ListMembersCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListOrganizationAdminAccounts: (config: SecurityHubPaginationConfiguration, input: ListOrganizationAdminAccountsCommandInput, ...rest: any[]) => Paginator<ListOrganizationAdminAccountsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListSecurityControlDefinitions: (config: SecurityHubPaginationConfiguration, input: ListSecurityControlDefinitionsCommandInput, ...rest: any[]) => Paginator<ListSecurityControlDefinitionsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListStandardsControlAssociations: (config: SecurityHubPaginationConfiguration, input: ListStandardsControlAssociationsCommandInput, ...rest: any[]) => Paginator<ListStandardsControlAssociationsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeActionTargetsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeActionTargetsCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeActionTargets: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: DescribeActionTargetsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeActionTargetsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeProductsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeProductsCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeProducts: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: DescribeProductsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeProductsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeStandardsControlsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeStandardsControlsCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeStandardsControls: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: DescribeStandardsControlsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeStandardsControlsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
DescribeStandardsCommandOutput,
|
|
5
5
|
} from "../commands/DescribeStandardsCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateDescribeStandards: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: DescribeStandardsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<DescribeStandardsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GetEnabledStandardsCommandOutput,
|
|
5
5
|
} from "../commands/GetEnabledStandardsCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetEnabledStandards: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: GetEnabledStandardsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetEnabledStandardsCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GetFindingHistoryCommandOutput,
|
|
5
5
|
} from "../commands/GetFindingHistoryCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetFindingHistory: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: GetFindingHistoryCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetFindingHistoryCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
GetFindingsCommandOutput,
|
|
5
5
|
} from "../commands/GetFindingsCommand";
|
|
6
6
|
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateGetFindings: (
|
|
8
8
|
config: SecurityHubPaginationConfiguration,
|
|
9
9
|
input: GetFindingsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetFindingsCommandOutput>;
|