1
1
// smithy-typescript generated code
2
2
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ;
3
3
4
+ import {
5
+ AcceptAdministratorInvitationCommand ,
6
+ AcceptAdministratorInvitationCommandInput ,
7
+ AcceptAdministratorInvitationCommandOutput ,
8
+ } from "./commands/AcceptAdministratorInvitationCommand" ;
4
9
import {
5
10
AcceptInvitationCommand ,
6
11
AcceptInvitationCommandInput ,
@@ -93,6 +98,11 @@ import {
93
98
DisableOrganizationAdminAccountCommandInput ,
94
99
DisableOrganizationAdminAccountCommandOutput ,
95
100
} from "./commands/DisableOrganizationAdminAccountCommand" ;
101
+ import {
102
+ DisassociateFromAdministratorAccountCommand ,
103
+ DisassociateFromAdministratorAccountCommandInput ,
104
+ DisassociateFromAdministratorAccountCommandOutput ,
105
+ } from "./commands/DisassociateFromAdministratorAccountCommand" ;
96
106
import {
97
107
DisassociateFromMasterAccountCommand ,
98
108
DisassociateFromMasterAccountCommandInput ,
@@ -108,6 +118,11 @@ import {
108
118
EnableOrganizationAdminAccountCommandInput ,
109
119
EnableOrganizationAdminAccountCommandOutput ,
110
120
} from "./commands/EnableOrganizationAdminAccountCommand" ;
121
+ import {
122
+ GetAdministratorAccountCommand ,
123
+ GetAdministratorAccountCommandInput ,
124
+ GetAdministratorAccountCommandOutput ,
125
+ } from "./commands/GetAdministratorAccountCommand" ;
111
126
import { GetDetectorCommand , GetDetectorCommandInput , GetDetectorCommandOutput } from "./commands/GetDetectorCommand" ;
112
127
import { GetFilterCommand , GetFilterCommandInput , GetFilterCommandOutput } from "./commands/GetFilterCommand" ;
113
128
import { GetFindingsCommand , GetFindingsCommandInput , GetFindingsCommandOutput } from "./commands/GetFindingsCommand" ;
@@ -133,6 +148,11 @@ import {
133
148
GetMemberDetectorsCommandOutput ,
134
149
} from "./commands/GetMemberDetectorsCommand" ;
135
150
import { GetMembersCommand , GetMembersCommandInput , GetMembersCommandOutput } from "./commands/GetMembersCommand" ;
151
+ import {
152
+ GetRemainingFreeTrialDaysCommand ,
153
+ GetRemainingFreeTrialDaysCommandInput ,
154
+ GetRemainingFreeTrialDaysCommandOutput ,
155
+ } from "./commands/GetRemainingFreeTrialDaysCommand" ;
136
156
import {
137
157
GetThreatIntelSetCommand ,
138
158
GetThreatIntelSetCommandInput ,
@@ -247,12 +267,14 @@ import { GuardDutyClient } from "./GuardDutyClient";
247
267
248
268
/**
249
269
* <p>Amazon GuardDuty is a continuous security monitoring service that analyzes and processes
250
- * the following data sources: VPC Flow Logs, Amazon Web Services CloudTrail event logs, and DNS logs. It uses
251
- * threat intelligence feeds (such as lists of malicious IPs and domains) and machine learning to
252
- * identify unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services
253
- * environment. This can include issues like escalations of privileges, uses of exposed
254
- * credentials, or communication with malicious IPs, URLs, or domains. For example, GuardDuty can
255
- * detect compromised EC2 instances that serve malware or mine bitcoin. </p>
270
+ * the following data sources: VPC Flow Logs, AWS CloudTrail management event logs, CloudTrail S3 data event
271
+ * logs, EKS audit logs, and DNS logs.
272
+ * It uses threat intelligence
273
+ * feeds (such as lists of malicious IPs and domains) and machine learning to identify
274
+ * unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services environment.
275
+ * This can include issues like escalations of privileges, uses of exposed credentials, or
276
+ * communication with malicious IPs, URLs, or domains. For example, GuardDuty can detect
277
+ * compromised EC2 instances that serve malware or mine bitcoin. </p>
256
278
* <p>GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise. Some examples
257
279
* of this are unauthorized infrastructure deployments such as EC2 instances deployed in a Region
258
280
* that has never been used, or unusual API calls like a password policy change to reduce
@@ -266,6 +288,40 @@ import { GuardDutyClient } from "./GuardDutyClient";
266
288
*/
267
289
export class GuardDuty extends GuardDutyClient {
268
290
/**
291
+ * <p>Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent the invitation.</p>
292
+ */
293
+ public acceptAdministratorInvitation (
294
+ args : AcceptAdministratorInvitationCommandInput ,
295
+ options ?: __HttpHandlerOptions
296
+ ) : Promise < AcceptAdministratorInvitationCommandOutput > ;
297
+ public acceptAdministratorInvitation (
298
+ args : AcceptAdministratorInvitationCommandInput ,
299
+ cb : ( err : any , data ?: AcceptAdministratorInvitationCommandOutput ) => void
300
+ ) : void ;
301
+ public acceptAdministratorInvitation (
302
+ args : AcceptAdministratorInvitationCommandInput ,
303
+ options : __HttpHandlerOptions ,
304
+ cb : ( err : any , data ?: AcceptAdministratorInvitationCommandOutput ) => void
305
+ ) : void ;
306
+ public acceptAdministratorInvitation (
307
+ args : AcceptAdministratorInvitationCommandInput ,
308
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: AcceptAdministratorInvitationCommandOutput ) => void ) ,
309
+ cb ?: ( err : any , data ?: AcceptAdministratorInvitationCommandOutput ) => void
310
+ ) : Promise < AcceptAdministratorInvitationCommandOutput > | void {
311
+ const command = new AcceptAdministratorInvitationCommand ( args ) ;
312
+ if ( typeof optionsOrCb === "function" ) {
313
+ this . send ( command , optionsOrCb ) ;
314
+ } else if ( typeof cb === "function" ) {
315
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
316
+ this . send ( command , optionsOrCb || { } , cb ) ;
317
+ } else {
318
+ return this . send ( command , optionsOrCb ) ;
319
+ }
320
+ }
321
+
322
+ /**
323
+ * @deprecated
324
+ *
269
325
* <p>Accepts the invitation to be monitored by a GuardDuty administrator account.</p>
270
326
*/
271
327
public acceptInvitation (
@@ -923,6 +979,40 @@ export class GuardDuty extends GuardDutyClient {
923
979
/**
924
980
* <p>Disassociates the current GuardDuty member account from its administrator account.</p>
925
981
*/
982
+ public disassociateFromAdministratorAccount (
983
+ args : DisassociateFromAdministratorAccountCommandInput ,
984
+ options ?: __HttpHandlerOptions
985
+ ) : Promise < DisassociateFromAdministratorAccountCommandOutput > ;
986
+ public disassociateFromAdministratorAccount (
987
+ args : DisassociateFromAdministratorAccountCommandInput ,
988
+ cb : ( err : any , data ?: DisassociateFromAdministratorAccountCommandOutput ) => void
989
+ ) : void ;
990
+ public disassociateFromAdministratorAccount (
991
+ args : DisassociateFromAdministratorAccountCommandInput ,
992
+ options : __HttpHandlerOptions ,
993
+ cb : ( err : any , data ?: DisassociateFromAdministratorAccountCommandOutput ) => void
994
+ ) : void ;
995
+ public disassociateFromAdministratorAccount (
996
+ args : DisassociateFromAdministratorAccountCommandInput ,
997
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DisassociateFromAdministratorAccountCommandOutput ) => void ) ,
998
+ cb ?: ( err : any , data ?: DisassociateFromAdministratorAccountCommandOutput ) => void
999
+ ) : Promise < DisassociateFromAdministratorAccountCommandOutput > | void {
1000
+ const command = new DisassociateFromAdministratorAccountCommand ( args ) ;
1001
+ if ( typeof optionsOrCb === "function" ) {
1002
+ this . send ( command , optionsOrCb ) ;
1003
+ } else if ( typeof cb === "function" ) {
1004
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1005
+ this . send ( command , optionsOrCb || { } , cb ) ;
1006
+ } else {
1007
+ return this . send ( command , optionsOrCb ) ;
1008
+ }
1009
+ }
1010
+
1011
+ /**
1012
+ * @deprecated
1013
+ *
1014
+ * <p>Disassociates the current GuardDuty member account from its administrator account.</p>
1015
+ */
926
1016
public disassociateFromMasterAccount (
927
1017
args : DisassociateFromMasterAccountCommandInput ,
928
1018
options ?: __HttpHandlerOptions
@@ -954,8 +1044,7 @@ export class GuardDuty extends GuardDutyClient {
954
1044
955
1045
/**
956
1046
* <p>Disassociates GuardDuty member accounts (to the current GuardDuty administrator account)
957
- * specified by the account IDs. Member accounts added through <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_invitations.html">Invitation</a> get deleted from the
958
- * current GuardDuty administrator account after 30 days of disassociation.</p>
1047
+ * specified by the account IDs.</p>
959
1048
*/
960
1049
public disassociateMembers (
961
1050
args : DisassociateMembersCommandInput ,
@@ -1019,6 +1108,39 @@ export class GuardDuty extends GuardDutyClient {
1019
1108
}
1020
1109
}
1021
1110
1111
+ /**
1112
+ * <p>Provides the details for the GuardDuty administrator account associated with the current
1113
+ * GuardDuty member account.</p>
1114
+ */
1115
+ public getAdministratorAccount (
1116
+ args : GetAdministratorAccountCommandInput ,
1117
+ options ?: __HttpHandlerOptions
1118
+ ) : Promise < GetAdministratorAccountCommandOutput > ;
1119
+ public getAdministratorAccount (
1120
+ args : GetAdministratorAccountCommandInput ,
1121
+ cb : ( err : any , data ?: GetAdministratorAccountCommandOutput ) => void
1122
+ ) : void ;
1123
+ public getAdministratorAccount (
1124
+ args : GetAdministratorAccountCommandInput ,
1125
+ options : __HttpHandlerOptions ,
1126
+ cb : ( err : any , data ?: GetAdministratorAccountCommandOutput ) => void
1127
+ ) : void ;
1128
+ public getAdministratorAccount (
1129
+ args : GetAdministratorAccountCommandInput ,
1130
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetAdministratorAccountCommandOutput ) => void ) ,
1131
+ cb ?: ( err : any , data ?: GetAdministratorAccountCommandOutput ) => void
1132
+ ) : Promise < GetAdministratorAccountCommandOutput > | void {
1133
+ const command = new GetAdministratorAccountCommand ( args ) ;
1134
+ if ( typeof optionsOrCb === "function" ) {
1135
+ this . send ( command , optionsOrCb ) ;
1136
+ } else if ( typeof cb === "function" ) {
1137
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1138
+ this . send ( command , optionsOrCb || { } , cb ) ;
1139
+ } else {
1140
+ return this . send ( command , optionsOrCb ) ;
1141
+ }
1142
+ }
1143
+
1022
1144
/**
1023
1145
* <p>Retrieves an Amazon GuardDuty detector specified by the detectorId.</p>
1024
1146
*/
@@ -1189,6 +1311,8 @@ export class GuardDuty extends GuardDutyClient {
1189
1311
}
1190
1312
1191
1313
/**
1314
+ * @deprecated
1315
+ *
1192
1316
* <p>Provides the details for the GuardDuty administrator account associated with the current
1193
1317
* GuardDuty member account.</p>
1194
1318
*/
@@ -1280,6 +1404,38 @@ export class GuardDuty extends GuardDutyClient {
1280
1404
}
1281
1405
}
1282
1406
1407
+ /**
1408
+ * <p>Provides the number of days left for each data source used in the free trial period.</p>
1409
+ */
1410
+ public getRemainingFreeTrialDays (
1411
+ args : GetRemainingFreeTrialDaysCommandInput ,
1412
+ options ?: __HttpHandlerOptions
1413
+ ) : Promise < GetRemainingFreeTrialDaysCommandOutput > ;
1414
+ public getRemainingFreeTrialDays (
1415
+ args : GetRemainingFreeTrialDaysCommandInput ,
1416
+ cb : ( err : any , data ?: GetRemainingFreeTrialDaysCommandOutput ) => void
1417
+ ) : void ;
1418
+ public getRemainingFreeTrialDays (
1419
+ args : GetRemainingFreeTrialDaysCommandInput ,
1420
+ options : __HttpHandlerOptions ,
1421
+ cb : ( err : any , data ?: GetRemainingFreeTrialDaysCommandOutput ) => void
1422
+ ) : void ;
1423
+ public getRemainingFreeTrialDays (
1424
+ args : GetRemainingFreeTrialDaysCommandInput ,
1425
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: GetRemainingFreeTrialDaysCommandOutput ) => void ) ,
1426
+ cb ?: ( err : any , data ?: GetRemainingFreeTrialDaysCommandOutput ) => void
1427
+ ) : Promise < GetRemainingFreeTrialDaysCommandOutput > | void {
1428
+ const command = new GetRemainingFreeTrialDaysCommand ( args ) ;
1429
+ if ( typeof optionsOrCb === "function" ) {
1430
+ this . send ( command , optionsOrCb ) ;
1431
+ } else if ( typeof cb === "function" ) {
1432
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1433
+ this . send ( command , optionsOrCb || { } , cb ) ;
1434
+ } else {
1435
+ return this . send ( command , optionsOrCb ) ;
1436
+ }
1437
+ }
1438
+
1283
1439
/**
1284
1440
* <p>Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.</p>
1285
1441
*/
@@ -1314,9 +1470,9 @@ export class GuardDuty extends GuardDutyClient {
1314
1470
1315
1471
/**
1316
1472
* <p>Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector
1317
- * ID. For newly enabled detectors or data sources the cost returned will include only the usage
1318
- * so far under 30 days, this may differ from the cost metrics in the console, which projects
1319
- * usage over 30 days to provide a monthly cost estimate. For more information see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/monitoring_costs.html#usage-calculations">Understanding How Usage Costs are Calculated</a>.</p>
1473
+ * ID. For newly enabled detectors or data sources, the cost returned will include only the usage
1474
+ * so far under 30 days. This may differ from the cost metrics in the console, which project
1475
+ * usage over 30 days to provide a monthly cost estimate. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/monitoring_costs.html#usage-calculations">Understanding How Usage Costs are Calculated</a>.</p>
1320
1476
*/
1321
1477
public getUsageStatistics (
1322
1478
args : GetUsageStatisticsCommandInput ,
0 commit comments