@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,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeActionTargets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeActionTargetsCommand_1 = require("../commands/DescribeActionTargetsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeActionTargetsCommand_1.DescribeActionTargetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeActionTargets(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeActionTargets = paginateDescribeActionTargets;
|
|
7
|
+
exports.paginateDescribeActionTargets = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, DescribeActionTargetsCommand_1.DescribeActionTargetsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeProducts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeProductsCommand_1 = require("../commands/DescribeProductsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeProductsCommand_1.DescribeProductsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeProducts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeProducts = paginateDescribeProducts;
|
|
7
|
+
exports.paginateDescribeProducts = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, DescribeProductsCommand_1.DescribeProductsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeStandardsControls = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeStandardsControlsCommand_1 = require("../commands/DescribeStandardsControlsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeStandardsControlsCommand_1.DescribeStandardsControlsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeStandardsControls(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeStandardsControls = paginateDescribeStandardsControls;
|
|
7
|
+
exports.paginateDescribeStandardsControls = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, DescribeStandardsControlsCommand_1.DescribeStandardsControlsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeStandards = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeStandardsCommand_1 = require("../commands/DescribeStandardsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeStandardsCommand_1.DescribeStandardsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeStandards(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeStandards = paginateDescribeStandards;
|
|
7
|
+
exports.paginateDescribeStandards = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, DescribeStandardsCommand_1.DescribeStandardsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetEnabledStandards = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetEnabledStandardsCommand_1 = require("../commands/GetEnabledStandardsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetEnabledStandardsCommand_1.GetEnabledStandardsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetEnabledStandards(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetEnabledStandards = paginateGetEnabledStandards;
|
|
7
|
+
exports.paginateGetEnabledStandards = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, GetEnabledStandardsCommand_1.GetEnabledStandardsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetFindingHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetFindingHistoryCommand_1 = require("../commands/GetFindingHistoryCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetFindingHistoryCommand_1.GetFindingHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetFindingHistory(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetFindingHistory = paginateGetFindingHistory;
|
|
7
|
+
exports.paginateGetFindingHistory = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, GetFindingHistoryCommand_1.GetFindingHistoryCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetFindings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetFindingsCommand_1 = require("../commands/GetFindingsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetFindingsCommand_1.GetFindingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetFindings(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetFindings = paginateGetFindings;
|
|
7
|
+
exports.paginateGetFindings = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, GetFindingsCommand_1.GetFindingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetInsights = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetInsightsCommand_1 = require("../commands/GetInsightsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetInsightsCommand_1.GetInsightsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetInsights(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateGetInsights = paginateGetInsights;
|
|
7
|
+
exports.paginateGetInsights = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, GetInsightsCommand_1.GetInsightsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListConfigurationPolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListConfigurationPoliciesCommand_1 = require("../commands/ListConfigurationPoliciesCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListConfigurationPoliciesCommand_1.ListConfigurationPoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListConfigurationPolicies(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListConfigurationPolicies = paginateListConfigurationPolicies;
|
|
7
|
+
exports.paginateListConfigurationPolicies = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListConfigurationPoliciesCommand_1.ListConfigurationPoliciesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListConfigurationPolicyAssociations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListConfigurationPolicyAssociationsCommand_1 = require("../commands/ListConfigurationPolicyAssociationsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListConfigurationPolicyAssociationsCommand_1.ListConfigurationPolicyAssociationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListConfigurationPolicyAssociations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListConfigurationPolicyAssociations = paginateListConfigurationPolicyAssociations;
|
|
7
|
+
exports.paginateListConfigurationPolicyAssociations = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListConfigurationPolicyAssociationsCommand_1.ListConfigurationPolicyAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListEnabledProductsForImport = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListEnabledProductsForImportCommand_1 = require("../commands/ListEnabledProductsForImportCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListEnabledProductsForImportCommand_1.ListEnabledProductsForImportCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListEnabledProductsForImport(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListEnabledProductsForImport = paginateListEnabledProductsForImport;
|
|
7
|
+
exports.paginateListEnabledProductsForImport = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListEnabledProductsForImportCommand_1.ListEnabledProductsForImportCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindingAggregators = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFindingAggregatorsCommand_1 = require("../commands/ListFindingAggregatorsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingAggregatorsCommand_1.ListFindingAggregatorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindingAggregators(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListFindingAggregators = paginateListFindingAggregators;
|
|
7
|
+
exports.paginateListFindingAggregators = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListFindingAggregatorsCommand_1.ListFindingAggregatorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListInvitations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListInvitationsCommand_1 = require("../commands/ListInvitationsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListInvitationsCommand_1.ListInvitationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListInvitations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListInvitations = paginateListInvitations;
|
|
7
|
+
exports.paginateListInvitations = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListInvitationsCommand_1.ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListMembers = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListMembersCommand_1 = require("../commands/ListMembersCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListMembersCommand_1.ListMembersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListMembers(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListMembers = paginateListMembers;
|
|
7
|
+
exports.paginateListMembers = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListMembersCommand_1.ListMembersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListOrganizationAdminAccounts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListOrganizationAdminAccountsCommand_1 = require("../commands/ListOrganizationAdminAccountsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListOrganizationAdminAccounts(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListOrganizationAdminAccounts = paginateListOrganizationAdminAccounts;
|
|
7
|
+
exports.paginateListOrganizationAdminAccounts = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListOrganizationAdminAccountsCommand_1.ListOrganizationAdminAccountsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListSecurityControlDefinitions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListSecurityControlDefinitionsCommand_1 = require("../commands/ListSecurityControlDefinitionsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListSecurityControlDefinitionsCommand_1.ListSecurityControlDefinitionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListSecurityControlDefinitions(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListSecurityControlDefinitions = paginateListSecurityControlDefinitions;
|
|
7
|
+
exports.paginateListSecurityControlDefinitions = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListSecurityControlDefinitionsCommand_1.ListSecurityControlDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListStandardsControlAssociations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListStandardsControlAssociationsCommand_1 = require("../commands/ListStandardsControlAssociationsCommand");
|
|
5
6
|
const SecurityHubClient_1 = require("../SecurityHubClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListStandardsControlAssociationsCommand_1.ListStandardsControlAssociationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListStandardsControlAssociations(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof SecurityHubClient_1.SecurityHubClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected SecurityHub | SecurityHubClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListStandardsControlAssociations = paginateListStandardsControlAssociations;
|
|
7
|
+
exports.paginateListStandardsControlAssociations = (0, core_1.createPaginator)(SecurityHubClient_1.SecurityHubClient, ListStandardsControlAssociationsCommand_1.ListStandardsControlAssociationsCommand, "NextToken", "NextToken", "MaxResults");
|