@aws-sdk/client-guardduty 3.301.0 → 3.303.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 +25 -10
- package/dist-cjs/GuardDuty.js +30 -0
- package/dist-cjs/commands/GetCoverageStatisticsCommand.js +45 -0
- package/dist-cjs/commands/ListCoverageCommand.js +45 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +205 -198
- package/dist-cjs/pagination/ListCoveragePaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +462 -3
- package/dist-es/GuardDuty.js +30 -0
- package/dist-es/commands/GetCoverageStatisticsCommand.js +41 -0
- package/dist-es/commands/ListCoverageCommand.js +41 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +204 -197
- package/dist-es/pagination/ListCoveragePaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +455 -0
- package/dist-types/GuardDuty.d.ts +75 -47
- package/dist-types/GuardDutyClient.d.ts +13 -12
- package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +2 -1
- package/dist-types/commands/ArchiveFindingsCommand.d.ts +2 -2
- package/dist-types/commands/CreateDetectorCommand.d.ts +7 -1
- package/dist-types/commands/CreateMembersCommand.d.ts +3 -3
- package/dist-types/commands/CreateThreatIntelSetCommand.d.ts +2 -2
- package/dist-types/commands/DeclineInvitationsCommand.d.ts +2 -2
- package/dist-types/commands/DeleteInvitationsCommand.d.ts +2 -2
- package/dist-types/commands/DeleteMembersCommand.d.ts +5 -4
- package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +3 -2
- package/dist-types/commands/DisassociateMembersCommand.d.ts +5 -3
- package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +90 -0
- package/dist-types/commands/GetMembersCommand.d.ts +2 -2
- package/dist-types/commands/GetRemainingFreeTrialDaysCommand.d.ts +2 -1
- package/dist-types/commands/InviteMembersCommand.d.ts +2 -2
- package/dist-types/commands/ListCoverageCommand.d.ts +93 -0
- package/dist-types/commands/ListIPSetsCommand.d.ts +2 -2
- package/dist-types/commands/ListMembersCommand.d.ts +2 -1
- package/dist-types/commands/ListThreatIntelSetsCommand.d.ts +2 -2
- package/dist-types/commands/StartMonitoringMembersCommand.d.ts +1 -2
- package/dist-types/commands/StopMonitoringMembersCommand.d.ts +3 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateDetectorCommand.d.ts +8 -2
- package/dist-types/commands/UpdateFilterCommand.d.ts +1 -1
- package/dist-types/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
- package/dist-types/commands/UpdateIPSetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMemberDetectorsCommand.d.ts +8 -2
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +10 -4
- package/dist-types/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
- package/dist-types/commands/UpdateThreatIntelSetCommand.d.ts +1 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1105 -691
- package/dist-types/models/models_1.d.ts +472 -0
- package/dist-types/pagination/ListCoveragePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/GuardDuty.d.ts +34 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetCoverageStatisticsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListCoverageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateDetectorCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFilterCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateFindingsFeedbackCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateIPSetCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMalwareScanSettingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateMemberDetectorsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdatePublishingDestinationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateThreatIntelSetCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +396 -272
- package/dist-types/ts3.4/models/models_1.d.ts +133 -0
- package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +34 -34
package/README.md
CHANGED
|
@@ -16,16 +16,15 @@ It uses threat intelligence
|
|
|
16
16
|
feeds, such as lists of malicious IPs and domains, and machine learning to identify
|
|
17
17
|
unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services environment.
|
|
18
18
|
This can include issues like escalations of privileges, uses of exposed credentials, or
|
|
19
|
-
communication with malicious IPs, domains, or presence of malware on your
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<p>GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, such
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
For more information, see the <i>
|
|
19
|
+
communication with malicious IPs, domains, or presence of malware on your Amazon EC2 instances
|
|
20
|
+
and container workloads. For example, GuardDuty can detect compromised EC2 instances and
|
|
21
|
+
container workloads serving malware, or mining bitcoin. </p>
|
|
22
|
+
<p>GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, such as
|
|
23
|
+
unauthorized infrastructure deployments like EC2 instances deployed in a Region that has never
|
|
24
|
+
been used, or unusual API calls like a password policy change to reduce password strength. </p>
|
|
25
|
+
<p>GuardDuty informs you about the status of your Amazon Web Services environment by producing security
|
|
26
|
+
findings that you can view in the GuardDuty console or through Amazon EventBridge. For more
|
|
27
|
+
information, see the <i>
|
|
29
28
|
<a href="https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html">Amazon
|
|
30
29
|
GuardDuty User Guide</a>
|
|
31
30
|
</i>. </p>
|
|
@@ -440,6 +439,14 @@ GetAdministratorAccount
|
|
|
440
439
|
|
|
441
440
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/classes/getadministratoraccountcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/getadministratoraccountcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/getadministratoraccountcommandoutput.html)
|
|
442
441
|
|
|
442
|
+
</details>
|
|
443
|
+
<details>
|
|
444
|
+
<summary>
|
|
445
|
+
GetCoverageStatistics
|
|
446
|
+
</summary>
|
|
447
|
+
|
|
448
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/classes/getcoveragestatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/getcoveragestatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/getcoveragestatisticscommandoutput.html)
|
|
449
|
+
|
|
443
450
|
</details>
|
|
444
451
|
<details>
|
|
445
452
|
<summary>
|
|
@@ -552,6 +559,14 @@ InviteMembers
|
|
|
552
559
|
|
|
553
560
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/classes/invitememberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/invitememberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/invitememberscommandoutput.html)
|
|
554
561
|
|
|
562
|
+
</details>
|
|
563
|
+
<details>
|
|
564
|
+
<summary>
|
|
565
|
+
ListCoverage
|
|
566
|
+
</summary>
|
|
567
|
+
|
|
568
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/classes/listcoveragecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/listcoveragecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-guardduty/interfaces/listcoveragecommandoutput.html)
|
|
569
|
+
|
|
555
570
|
</details>
|
|
556
571
|
<details>
|
|
557
572
|
<summary>
|
package/dist-cjs/GuardDuty.js
CHANGED
|
@@ -28,6 +28,7 @@ const DisassociateFromMasterAccountCommand_1 = require("./commands/DisassociateF
|
|
|
28
28
|
const DisassociateMembersCommand_1 = require("./commands/DisassociateMembersCommand");
|
|
29
29
|
const EnableOrganizationAdminAccountCommand_1 = require("./commands/EnableOrganizationAdminAccountCommand");
|
|
30
30
|
const GetAdministratorAccountCommand_1 = require("./commands/GetAdministratorAccountCommand");
|
|
31
|
+
const GetCoverageStatisticsCommand_1 = require("./commands/GetCoverageStatisticsCommand");
|
|
31
32
|
const GetDetectorCommand_1 = require("./commands/GetDetectorCommand");
|
|
32
33
|
const GetFilterCommand_1 = require("./commands/GetFilterCommand");
|
|
33
34
|
const GetFindingsCommand_1 = require("./commands/GetFindingsCommand");
|
|
@@ -42,6 +43,7 @@ const GetRemainingFreeTrialDaysCommand_1 = require("./commands/GetRemainingFreeT
|
|
|
42
43
|
const GetThreatIntelSetCommand_1 = require("./commands/GetThreatIntelSetCommand");
|
|
43
44
|
const GetUsageStatisticsCommand_1 = require("./commands/GetUsageStatisticsCommand");
|
|
44
45
|
const InviteMembersCommand_1 = require("./commands/InviteMembersCommand");
|
|
46
|
+
const ListCoverageCommand_1 = require("./commands/ListCoverageCommand");
|
|
45
47
|
const ListDetectorsCommand_1 = require("./commands/ListDetectorsCommand");
|
|
46
48
|
const ListFiltersCommand_1 = require("./commands/ListFiltersCommand");
|
|
47
49
|
const ListFindingsCommand_1 = require("./commands/ListFindingsCommand");
|
|
@@ -446,6 +448,20 @@ class GuardDuty extends GuardDutyClient_1.GuardDutyClient {
|
|
|
446
448
|
return this.send(command, optionsOrCb);
|
|
447
449
|
}
|
|
448
450
|
}
|
|
451
|
+
getCoverageStatistics(args, optionsOrCb, cb) {
|
|
452
|
+
const command = new GetCoverageStatisticsCommand_1.GetCoverageStatisticsCommand(args);
|
|
453
|
+
if (typeof optionsOrCb === "function") {
|
|
454
|
+
this.send(command, optionsOrCb);
|
|
455
|
+
}
|
|
456
|
+
else if (typeof cb === "function") {
|
|
457
|
+
if (typeof optionsOrCb !== "object")
|
|
458
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
459
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
return this.send(command, optionsOrCb);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
449
465
|
getDetector(args, optionsOrCb, cb) {
|
|
450
466
|
const command = new GetDetectorCommand_1.GetDetectorCommand(args);
|
|
451
467
|
if (typeof optionsOrCb === "function") {
|
|
@@ -642,6 +658,20 @@ class GuardDuty extends GuardDutyClient_1.GuardDutyClient {
|
|
|
642
658
|
return this.send(command, optionsOrCb);
|
|
643
659
|
}
|
|
644
660
|
}
|
|
661
|
+
listCoverage(args, optionsOrCb, cb) {
|
|
662
|
+
const command = new ListCoverageCommand_1.ListCoverageCommand(args);
|
|
663
|
+
if (typeof optionsOrCb === "function") {
|
|
664
|
+
this.send(command, optionsOrCb);
|
|
665
|
+
}
|
|
666
|
+
else if (typeof cb === "function") {
|
|
667
|
+
if (typeof optionsOrCb !== "object")
|
|
668
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
669
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
return this.send(command, optionsOrCb);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
645
675
|
listDetectors(args, optionsOrCb, cb) {
|
|
646
676
|
const command = new ListDetectorsCommand_1.ListDetectorsCommand(args);
|
|
647
677
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetCoverageStatisticsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetCoverageStatisticsCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCoverageStatisticsCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "GuardDutyClient";
|
|
27
|
+
const commandName = "GetCoverageStatisticsCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetCoverageStatisticsCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetCoverageStatisticsCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.GetCoverageStatisticsCommand = GetCoverageStatisticsCommand;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCoverageCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListCoverageCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListCoverageCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "GuardDutyClient";
|
|
27
|
+
const commandName = "ListCoverageCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListCoverageCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListCoverageCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ListCoverageCommand = ListCoverageCommand;
|
|
@@ -28,6 +28,7 @@ tslib_1.__exportStar(require("./DisassociateFromMasterAccountCommand"), exports)
|
|
|
28
28
|
tslib_1.__exportStar(require("./DisassociateMembersCommand"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./EnableOrganizationAdminAccountCommand"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./GetAdministratorAccountCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./GetCoverageStatisticsCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./GetDetectorCommand"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./GetFilterCommand"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./GetFindingsCommand"), exports);
|
|
@@ -42,6 +43,7 @@ tslib_1.__exportStar(require("./GetRemainingFreeTrialDaysCommand"), exports);
|
|
|
42
43
|
tslib_1.__exportStar(require("./GetThreatIntelSetCommand"), exports);
|
|
43
44
|
tslib_1.__exportStar(require("./GetUsageStatisticsCommand"), exports);
|
|
44
45
|
tslib_1.__exportStar(require("./InviteMembersCommand"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./ListCoverageCommand"), exports);
|
|
45
47
|
tslib_1.__exportStar(require("./ListDetectorsCommand"), exports);
|
|
46
48
|
tslib_1.__exportStar(require("./ListFiltersCommand"), exports);
|
|
47
49
|
tslib_1.__exportStar(require("./ListFindingsCommand"), exports);
|