@aws-sdk/client-guardduty 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/README.md +8 -0
- package/dist-cjs/GuardDuty.js +2 -0
- package/dist-cjs/commands/GetOrganizationStatisticsCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +1 -0
- package/dist-cjs/pagination/DescribeMalwareScansPaginator.js +2 -24
- package/dist-cjs/pagination/DescribeOrganizationConfigurationPaginator.js +2 -24
- package/dist-cjs/pagination/GetUsageStatisticsPaginator.js +2 -24
- package/dist-cjs/pagination/ListCoveragePaginator.js +2 -24
- package/dist-cjs/pagination/ListDetectorsPaginator.js +2 -24
- package/dist-cjs/pagination/ListFiltersPaginator.js +2 -24
- package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
- package/dist-cjs/pagination/ListIPSetsPaginator.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/ListPublishingDestinationsPaginator.js +2 -24
- package/dist-cjs/pagination/ListThreatIntelSetsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +501 -874
- package/dist-es/GuardDuty.js +2 -0
- package/dist-es/commands/GetOrganizationStatisticsCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/DescribeMalwareScansPaginator.js +2 -23
- package/dist-es/pagination/DescribeOrganizationConfigurationPaginator.js +2 -23
- package/dist-es/pagination/GetUsageStatisticsPaginator.js +2 -23
- package/dist-es/pagination/ListCoveragePaginator.js +2 -23
- package/dist-es/pagination/ListDetectorsPaginator.js +2 -23
- package/dist-es/pagination/ListFiltersPaginator.js +2 -23
- package/dist-es/pagination/ListFindingsPaginator.js +2 -23
- package/dist-es/pagination/ListIPSetsPaginator.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/ListPublishingDestinationsPaginator.js +2 -23
- package/dist-es/pagination/ListThreatIntelSetsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +497 -872
- package/dist-types/GuardDuty.d.ts +7 -0
- package/dist-types/GuardDutyClient.d.ts +3 -2
- package/dist-types/commands/CreateMembersCommand.d.ts +5 -0
- package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +2 -2
- package/dist-types/commands/GetOrganizationStatisticsCommand.d.ts +101 -0
- package/dist-types/commands/GetUsageStatisticsCommand.d.ts +16 -5
- package/dist-types/commands/ListCoverageCommand.d.ts +2 -2
- package/dist-types/commands/ListDetectorsCommand.d.ts +1 -1
- package/dist-types/commands/ListFiltersCommand.d.ts +1 -1
- package/dist-types/commands/ListFindingsCommand.d.ts +1 -1
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +166 -308
- package/dist-types/models/models_1.d.ts +299 -1
- package/dist-types/pagination/DescribeMalwareScansPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribeOrganizationConfigurationPaginator.d.ts +1 -1
- package/dist-types/pagination/GetUsageStatisticsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListCoveragePaginator.d.ts +1 -1
- package/dist-types/pagination/ListDetectorsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFiltersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListIPSetsPaginator.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/ListPublishingDestinationsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListThreatIntelSetsPaginator.d.ts +1 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/GuardDuty.d.ts +17 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetOrganizationStatisticsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListDetectorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -32
- package/dist-types/ts3.4/models/models_1.d.ts +33 -0
- package/dist-types/ts3.4/pagination/DescribeMalwareScansPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribeOrganizationConfigurationPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetUsageStatisticsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDetectorsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFiltersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListIPSetsPaginator.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/ListPublishingDestinationsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListThreatIntelSetsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -525,6 +525,14 @@ GetMembers
|
|
|
525
525
|
|
|
526
526
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/GetMembersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetMembersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetMembersCommandOutput/)
|
|
527
527
|
|
|
528
|
+
</details>
|
|
529
|
+
<details>
|
|
530
|
+
<summary>
|
|
531
|
+
GetOrganizationStatistics
|
|
532
|
+
</summary>
|
|
533
|
+
|
|
534
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/GetOrganizationStatisticsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetOrganizationStatisticsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetOrganizationStatisticsCommandOutput/)
|
|
535
|
+
|
|
528
536
|
</details>
|
|
529
537
|
<details>
|
|
530
538
|
<summary>
|
package/dist-cjs/GuardDuty.js
CHANGED
|
@@ -40,6 +40,7 @@ const GetMalwareScanSettingsCommand_1 = require("./commands/GetMalwareScanSettin
|
|
|
40
40
|
const GetMasterAccountCommand_1 = require("./commands/GetMasterAccountCommand");
|
|
41
41
|
const GetMemberDetectorsCommand_1 = require("./commands/GetMemberDetectorsCommand");
|
|
42
42
|
const GetMembersCommand_1 = require("./commands/GetMembersCommand");
|
|
43
|
+
const GetOrganizationStatisticsCommand_1 = require("./commands/GetOrganizationStatisticsCommand");
|
|
43
44
|
const GetRemainingFreeTrialDaysCommand_1 = require("./commands/GetRemainingFreeTrialDaysCommand");
|
|
44
45
|
const GetThreatIntelSetCommand_1 = require("./commands/GetThreatIntelSetCommand");
|
|
45
46
|
const GetUsageStatisticsCommand_1 = require("./commands/GetUsageStatisticsCommand");
|
|
@@ -110,6 +111,7 @@ const commands = {
|
|
|
110
111
|
GetMasterAccountCommand: GetMasterAccountCommand_1.GetMasterAccountCommand,
|
|
111
112
|
GetMemberDetectorsCommand: GetMemberDetectorsCommand_1.GetMemberDetectorsCommand,
|
|
112
113
|
GetMembersCommand: GetMembersCommand_1.GetMembersCommand,
|
|
114
|
+
GetOrganizationStatisticsCommand: GetOrganizationStatisticsCommand_1.GetOrganizationStatisticsCommand,
|
|
113
115
|
GetRemainingFreeTrialDaysCommand: GetRemainingFreeTrialDaysCommand_1.GetRemainingFreeTrialDaysCommand,
|
|
114
116
|
GetThreatIntelSetCommand: GetThreatIntelSetCommand_1.GetThreatIntelSetCommand,
|
|
115
117
|
GetUsageStatisticsCommand: GetUsageStatisticsCommand_1.GetUsageStatisticsCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetOrganizationStatisticsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class GetOrganizationStatisticsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetOrganizationStatisticsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "GuardDutyClient";
|
|
29
|
+
const commandName = "GetOrganizationStatisticsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "GuardDutyAPIService",
|
|
38
|
+
operation: "GetOrganizationStatistics",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_restJson1_1.se_GetOrganizationStatisticsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_restJson1_1.de_GetOrganizationStatisticsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.GetOrganizationStatisticsCommand = GetOrganizationStatisticsCommand;
|
|
@@ -39,6 +39,7 @@ tslib_1.__exportStar(require("./GetMalwareScanSettingsCommand"), exports);
|
|
|
39
39
|
tslib_1.__exportStar(require("./GetMasterAccountCommand"), exports);
|
|
40
40
|
tslib_1.__exportStar(require("./GetMemberDetectorsCommand"), exports);
|
|
41
41
|
tslib_1.__exportStar(require("./GetMembersCommand"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./GetOrganizationStatisticsCommand"), exports);
|
|
42
43
|
tslib_1.__exportStar(require("./GetRemainingFreeTrialDaysCommand"), exports);
|
|
43
44
|
tslib_1.__exportStar(require("./GetThreatIntelSetCommand"), exports);
|
|
44
45
|
tslib_1.__exportStar(require("./GetUsageStatisticsCommand"), exports);
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeMalwareScans = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeMalwareScansCommand_1 = require("../commands/DescribeMalwareScansCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeMalwareScansCommand_1.DescribeMalwareScansCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeMalwareScans(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateDescribeMalwareScans = paginateDescribeMalwareScans;
|
|
7
|
+
exports.paginateDescribeMalwareScans = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, DescribeMalwareScansCommand_1.DescribeMalwareScansCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeOrganizationConfiguration = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeOrganizationConfigurationCommand_1 = require("../commands/DescribeOrganizationConfigurationCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeOrganizationConfiguration(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateDescribeOrganizationConfiguration = paginateDescribeOrganizationConfiguration;
|
|
7
|
+
exports.paginateDescribeOrganizationConfiguration = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, DescribeOrganizationConfigurationCommand_1.DescribeOrganizationConfigurationCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetUsageStatistics = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const GetUsageStatisticsCommand_1 = require("../commands/GetUsageStatisticsCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetUsageStatisticsCommand_1.GetUsageStatisticsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetUsageStatistics(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateGetUsageStatistics = paginateGetUsageStatistics;
|
|
7
|
+
exports.paginateGetUsageStatistics = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, GetUsageStatisticsCommand_1.GetUsageStatisticsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListCoverage = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListCoverageCommand_1 = require("../commands/ListCoverageCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListCoverageCommand_1.ListCoverageCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListCoverage(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateListCoverage = paginateListCoverage;
|
|
7
|
+
exports.paginateListCoverage = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListCoverageCommand_1.ListCoverageCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListDetectors = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListDetectorsCommand_1 = require("../commands/ListDetectorsCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListDetectorsCommand_1.ListDetectorsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListDetectors(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateListDetectors = paginateListDetectors;
|
|
7
|
+
exports.paginateListDetectors = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListDetectorsCommand_1.ListDetectorsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFilters = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFiltersCommand_1 = require("../commands/ListFiltersCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFiltersCommand_1.ListFiltersCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFilters(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateListFilters = paginateListFilters;
|
|
7
|
+
exports.paginateListFilters = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListFiltersCommand_1.ListFiltersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFindings = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListFindingsCommand_1 = require("../commands/ListFindingsCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFindingsCommand_1.ListFindingsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFindings(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.NextToken = token;
|
|
15
|
-
input["MaxResults"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextToken;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListFindings = paginateListFindings;
|
|
7
|
+
exports.paginateListFindings = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListFindingsCommand_1.ListFindingsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListIPSets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListIPSetsCommand_1 = require("../commands/ListIPSetsCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListIPSetsCommand_1.ListIPSetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListIPSets(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateListIPSets = paginateListIPSets;
|
|
7
|
+
exports.paginateListIPSets = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListIPSetsCommand_1.ListIPSetsCommand, "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 GuardDutyClient_1 = require("../GuardDutyClient");
|
|
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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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)(GuardDutyClient_1.GuardDutyClient, 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 GuardDutyClient_1 = require("../GuardDutyClient");
|
|
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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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)(GuardDutyClient_1.GuardDutyClient, 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 GuardDutyClient_1 = require("../GuardDutyClient");
|
|
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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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)(GuardDutyClient_1.GuardDutyClient, 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.paginateListPublishingDestinations = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListPublishingDestinationsCommand_1 = require("../commands/ListPublishingDestinationsCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPublishingDestinationsCommand_1.ListPublishingDestinationsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPublishingDestinations(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateListPublishingDestinations = paginateListPublishingDestinations;
|
|
7
|
+
exports.paginateListPublishingDestinations = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListPublishingDestinationsCommand_1.ListPublishingDestinationsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListThreatIntelSets = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListThreatIntelSetsCommand_1 = require("../commands/ListThreatIntelSetsCommand");
|
|
5
6
|
const GuardDutyClient_1 = require("../GuardDutyClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListThreatIntelSetsCommand_1.ListThreatIntelSetsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListThreatIntelSets(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 GuardDutyClient_1.GuardDutyClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
|
|
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.paginateListThreatIntelSets = paginateListThreatIntelSets;
|
|
7
|
+
exports.paginateListThreatIntelSets = (0, core_1.createPaginator)(GuardDutyClient_1.GuardDutyClient, ListThreatIntelSetsCommand_1.ListThreatIntelSetsCommand, "NextToken", "NextToken", "MaxResults");
|