@aws-sdk/client-guardduty 3.1073.0 → 3.1074.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.
Files changed (43) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +80 -1
  3. package/dist-cjs/schemas/schemas_0.js +179 -55
  4. package/dist-es/GuardDuty.js +8 -0
  5. package/dist-es/commands/CreateInvestigationCommand.js +16 -0
  6. package/dist-es/commands/GetInvestigationCommand.js +16 -0
  7. package/dist-es/commands/ListInvestigationsCommand.js +16 -0
  8. package/dist-es/commands/index.js +3 -0
  9. package/dist-es/models/enums.js +28 -0
  10. package/dist-es/pagination/ListInvestigationsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +167 -55
  13. package/dist-types/GuardDuty.d.ts +28 -0
  14. package/dist-types/GuardDutyClient.d.ts +5 -2
  15. package/dist-types/commands/CreateInvestigationCommand.d.ts +87 -0
  16. package/dist-types/commands/GetInvestigationCommand.d.ts +113 -0
  17. package/dist-types/commands/GetMalwareScanCommand.d.ts +2 -1
  18. package/dist-types/commands/GetMalwareScanSettingsCommand.d.ts +1 -1
  19. package/dist-types/commands/GetMasterAccountCommand.d.ts +1 -2
  20. package/dist-types/commands/ListInvestigationsCommand.d.ts +104 -0
  21. package/dist-types/commands/index.d.ts +3 -0
  22. package/dist-types/models/enums.d.ts +68 -0
  23. package/dist-types/models/models_0.d.ts +180 -196
  24. package/dist-types/models/models_1.d.ts +304 -2
  25. package/dist-types/pagination/ListInvestigationsPaginator.d.ts +7 -0
  26. package/dist-types/pagination/index.d.ts +1 -0
  27. package/dist-types/schemas/schemas_0.d.ts +15 -0
  28. package/dist-types/ts3.4/GuardDuty.d.ts +58 -0
  29. package/dist-types/ts3.4/GuardDutyClient.d.ts +18 -0
  30. package/dist-types/ts3.4/commands/CreateInvestigationCommand.d.ts +53 -0
  31. package/dist-types/ts3.4/commands/GetInvestigationCommand.d.ts +52 -0
  32. package/dist-types/ts3.4/commands/GetMalwareScanCommand.d.ts +2 -4
  33. package/dist-types/ts3.4/commands/GetMalwareScanSettingsCommand.d.ts +1 -1
  34. package/dist-types/ts3.4/commands/GetMasterAccountCommand.d.ts +4 -2
  35. package/dist-types/ts3.4/commands/ListInvestigationsCommand.d.ts +53 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/models/enums.d.ts +35 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +47 -48
  39. package/dist-types/ts3.4/models/models_1.d.ts +82 -2
  40. package/dist-types/ts3.4/pagination/ListInvestigationsPaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  42. package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
  43. package/package.json +3 -3
package/README.md CHANGED
@@ -216,6 +216,13 @@ CreateFilter
216
216
  </details>
217
217
  <details>
218
218
  <summary>
219
+ CreateInvestigation
220
+ </summary>
221
+
222
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/CreateInvestigationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/CreateInvestigationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/CreateInvestigationCommandOutput/)
223
+ </details>
224
+ <details>
225
+ <summary>
219
226
  CreateIPSet
220
227
  </summary>
221
228
 
@@ -447,6 +454,13 @@ GetFindingsStatistics
447
454
  </details>
448
455
  <details>
449
456
  <summary>
457
+ GetInvestigation
458
+ </summary>
459
+
460
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/GetInvestigationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetInvestigationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/GetInvestigationCommandOutput/)
461
+ </details>
462
+ <details>
463
+ <summary>
450
464
  GetInvitationsCount
451
465
  </summary>
452
466
 
@@ -580,6 +594,13 @@ ListFindings
580
594
  </details>
581
595
  <details>
582
596
  <summary>
597
+ ListInvestigations
598
+ </summary>
599
+
600
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/guardduty/command/ListInvestigationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListInvestigationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-guardduty/Interface/ListInvestigationsCommandOutput/)
601
+ </details>
602
+ <details>
603
+ <summary>
583
604
  ListInvitations
584
605
  </summary>
585
606
 
package/dist-cjs/index.js CHANGED
@@ -11,7 +11,7 @@ const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
11
  const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
12
  const { resolveHttpAuthSchemeConfig, defaultGuardDutyHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
13
  const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AcceptAdministratorInvitation$, AcceptInvitation$, ArchiveFindings$, CreateDetector$, CreateFilter$, CreateIPSet$, CreateMalwareProtectionPlan$, CreateMembers$, CreatePublishingDestination$, CreateSampleFindings$, CreateThreatEntitySet$, CreateThreatIntelSet$, CreateTrustedEntitySet$, DeclineInvitations$, DeleteDetector$, DeleteFilter$, DeleteInvitations$, DeleteIPSet$, DeleteMalwareProtectionPlan$, DeleteMembers$, DeletePublishingDestination$, DeleteThreatEntitySet$, DeleteThreatIntelSet$, DeleteTrustedEntitySet$, DescribeMalwareScans$, DescribeOrganizationConfiguration$, DescribePublishingDestination$, DisableOrganizationAdminAccount$, DisassociateFromAdministratorAccount$, DisassociateFromMasterAccount$, DisassociateMembers$, EnableOrganizationAdminAccount$, GetAdministratorAccount$, GetCoverageStatistics$, GetDetector$, GetFilter$, GetFindings$, GetFindingsStatistics$, GetInvitationsCount$, GetIPSet$, GetMalwareProtectionPlan$, GetMalwareScan$, GetMalwareScanSettings$, GetMasterAccount$, GetMemberDetectors$, GetMembers$, GetOrganizationStatistics$, GetRemainingFreeTrialDays$, GetThreatEntitySet$, GetThreatIntelSet$, GetTrustedEntitySet$, GetUsageStatistics$, InviteMembers$, ListCoverage$, ListDetectors$, ListFilters$, ListFindings$, ListInvitations$, ListIPSets$, ListMalwareProtectionPlans$, ListMalwareScans$, ListMembers$, ListOrganizationAdminAccounts$, ListPublishingDestinations$, ListTagsForResource$, ListThreatEntitySets$, ListThreatIntelSets$, ListTrustedEntitySets$, SendObjectMalwareScan$, StartMalwareScan$, StartMonitoringMembers$, StopMonitoringMembers$, TagResource$, UnarchiveFindings$, UntagResource$, UpdateDetector$, UpdateFilter$, UpdateFindingsFeedback$, UpdateIPSet$, UpdateMalwareProtectionPlan$, UpdateMalwareScanSettings$, UpdateMemberDetectors$, UpdateOrganizationConfiguration$, UpdatePublishingDestination$, UpdateThreatEntitySet$, UpdateThreatIntelSet$, UpdateTrustedEntitySet$ } = require("./schemas/schemas_0");
14
+ const { AcceptAdministratorInvitation$, AcceptInvitation$, ArchiveFindings$, CreateDetector$, CreateFilter$, CreateInvestigation$, CreateIPSet$, CreateMalwareProtectionPlan$, CreateMembers$, CreatePublishingDestination$, CreateSampleFindings$, CreateThreatEntitySet$, CreateThreatIntelSet$, CreateTrustedEntitySet$, DeclineInvitations$, DeleteDetector$, DeleteFilter$, DeleteInvitations$, DeleteIPSet$, DeleteMalwareProtectionPlan$, DeleteMembers$, DeletePublishingDestination$, DeleteThreatEntitySet$, DeleteThreatIntelSet$, DeleteTrustedEntitySet$, DescribeMalwareScans$, DescribeOrganizationConfiguration$, DescribePublishingDestination$, DisableOrganizationAdminAccount$, DisassociateFromAdministratorAccount$, DisassociateFromMasterAccount$, DisassociateMembers$, EnableOrganizationAdminAccount$, GetAdministratorAccount$, GetCoverageStatistics$, GetDetector$, GetFilter$, GetFindings$, GetFindingsStatistics$, GetInvestigation$, GetInvitationsCount$, GetIPSet$, GetMalwareProtectionPlan$, GetMalwareScan$, GetMalwareScanSettings$, GetMasterAccount$, GetMemberDetectors$, GetMembers$, GetOrganizationStatistics$, GetRemainingFreeTrialDays$, GetThreatEntitySet$, GetThreatIntelSet$, GetTrustedEntitySet$, GetUsageStatistics$, InviteMembers$, ListCoverage$, ListDetectors$, ListFilters$, ListFindings$, ListInvestigations$, ListInvitations$, ListIPSets$, ListMalwareProtectionPlans$, ListMalwareScans$, ListMembers$, ListOrganizationAdminAccounts$, ListPublishingDestinations$, ListTagsForResource$, ListThreatEntitySets$, ListThreatIntelSets$, ListTrustedEntitySets$, SendObjectMalwareScan$, StartMalwareScan$, StartMonitoringMembers$, StopMonitoringMembers$, TagResource$, UnarchiveFindings$, UntagResource$, UpdateDetector$, UpdateFilter$, UpdateFindingsFeedback$, UpdateIPSet$, UpdateMalwareProtectionPlan$, UpdateMalwareScanSettings$, UpdateMemberDetectors$, UpdateOrganizationConfiguration$, UpdatePublishingDestination$, UpdateThreatEntitySet$, UpdateThreatIntelSet$, UpdateTrustedEntitySet$ } = require("./schemas/schemas_0");
15
15
  __exportStar(require("./schemas/schemas_0"), exports);
16
16
  __exportStar(require("./models/errors"), exports);
17
17
  const { GuardDutyServiceException } = require("./models/GuardDutyServiceException");
@@ -171,6 +171,18 @@ class CreateFilterCommand extends Command
171
171
  .build() {
172
172
  }
173
173
 
174
+ class CreateInvestigationCommand extends Command
175
+ .classBuilder()
176
+ .ep(commonParams)
177
+ .m(function (Command, cs, config, o) {
178
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
179
+ })
180
+ .s("GuardDutyAPIService", "CreateInvestigation", {})
181
+ .n("GuardDutyClient", "CreateInvestigationCommand")
182
+ .sc(CreateInvestigation$)
183
+ .build() {
184
+ }
185
+
174
186
  class CreateIPSetCommand extends Command
175
187
  .classBuilder()
176
188
  .ep(commonParams)
@@ -567,6 +579,18 @@ class GetFindingsStatisticsCommand extends Command
567
579
  .build() {
568
580
  }
569
581
 
582
+ class GetInvestigationCommand extends Command
583
+ .classBuilder()
584
+ .ep(commonParams)
585
+ .m(function (Command, cs, config, o) {
586
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
587
+ })
588
+ .s("GuardDutyAPIService", "GetInvestigation", {})
589
+ .n("GuardDutyClient", "GetInvestigationCommand")
590
+ .sc(GetInvestigation$)
591
+ .build() {
592
+ }
593
+
570
594
  class GetInvitationsCountCommand extends Command
571
595
  .classBuilder()
572
596
  .ep(commonParams)
@@ -795,6 +819,18 @@ class ListFindingsCommand extends Command
795
819
  .build() {
796
820
  }
797
821
 
822
+ class ListInvestigationsCommand extends Command
823
+ .classBuilder()
824
+ .ep(commonParams)
825
+ .m(function (Command, cs, config, o) {
826
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
827
+ })
828
+ .s("GuardDutyAPIService", "ListInvestigations", {})
829
+ .n("GuardDutyClient", "ListInvestigationsCommand")
830
+ .sc(ListInvestigations$)
831
+ .build() {
832
+ }
833
+
798
834
  class ListInvitationsCommand extends Command
799
835
  .classBuilder()
800
836
  .ep(commonParams)
@@ -1169,6 +1205,8 @@ const paginateListFilters = createPaginator(GuardDutyClient, ListFiltersCommand,
1169
1205
 
1170
1206
  const paginateListFindings = createPaginator(GuardDutyClient, ListFindingsCommand, "NextToken", "NextToken", "MaxResults");
1171
1207
 
1208
+ const paginateListInvestigations = createPaginator(GuardDutyClient, ListInvestigationsCommand, "NextToken", "NextToken", "MaxResults");
1209
+
1172
1210
  const paginateListInvitations = createPaginator(GuardDutyClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
1173
1211
 
1174
1212
  const paginateListIPSets = createPaginator(GuardDutyClient, ListIPSetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1193,6 +1231,7 @@ const commands = {
1193
1231
  ArchiveFindingsCommand,
1194
1232
  CreateDetectorCommand,
1195
1233
  CreateFilterCommand,
1234
+ CreateInvestigationCommand,
1196
1235
  CreateIPSetCommand,
1197
1236
  CreateMalwareProtectionPlanCommand,
1198
1237
  CreateMembersCommand,
@@ -1226,6 +1265,7 @@ const commands = {
1226
1265
  GetFilterCommand,
1227
1266
  GetFindingsCommand,
1228
1267
  GetFindingsStatisticsCommand,
1268
+ GetInvestigationCommand,
1229
1269
  GetInvitationsCountCommand,
1230
1270
  GetIPSetCommand,
1231
1271
  GetMalwareProtectionPlanCommand,
@@ -1245,6 +1285,7 @@ const commands = {
1245
1285
  ListDetectorsCommand,
1246
1286
  ListFiltersCommand,
1247
1287
  ListFindingsCommand,
1288
+ ListInvestigationsCommand,
1248
1289
  ListInvitationsCommand,
1249
1290
  ListIPSetsCommand,
1250
1291
  ListMalwareProtectionPlansCommand,
@@ -1284,6 +1325,7 @@ const paginators = {
1284
1325
  paginateListDetectors,
1285
1326
  paginateListFilters,
1286
1327
  paginateListFindings,
1328
+ paginateListInvestigations,
1287
1329
  paginateListInvitations,
1288
1330
  paginateListIPSets,
1289
1331
  paginateListMalwareScans,
@@ -1333,6 +1375,9 @@ const AutoEnableMembers = {
1333
1375
  NEW: "NEW",
1334
1376
  NONE: "NONE",
1335
1377
  };
1378
+ const CloudProvider = {
1379
+ AWS: "AWS",
1380
+ };
1336
1381
  const DataSourceStatus = {
1337
1382
  DISABLED: "DISABLED",
1338
1383
  ENABLED: "ENABLED",
@@ -1345,6 +1390,12 @@ const ClusterStatus = {
1345
1390
  PENDING: "PENDING",
1346
1391
  UPDATING: "UPDATING",
1347
1392
  };
1393
+ const Confidence = {
1394
+ HIGH: "High",
1395
+ LOW: "Low",
1396
+ MEDIUM: "Medium",
1397
+ UNKNOWN: "Unknown",
1398
+ };
1348
1399
  const CoverageStatus = {
1349
1400
  HEALTHY: "HEALTHY",
1350
1401
  UNHEALTHY: "UNHEALTHY",
@@ -1652,6 +1703,18 @@ const GroupByType = {
1652
1703
  RESOURCE: "RESOURCE",
1653
1704
  SEVERITY: "SEVERITY",
1654
1705
  };
1706
+ const RiskLevel = {
1707
+ CRITICAL: "Critical",
1708
+ HIGH: "High",
1709
+ INFO: "Info",
1710
+ LOW: "Low",
1711
+ MEDIUM: "Medium",
1712
+ };
1713
+ const InvestigationStatus = {
1714
+ COMPLETED: "COMPLETED",
1715
+ FAILED: "FAILED",
1716
+ RUNNING: "RUNNING",
1717
+ };
1655
1718
  const IpSetStatus = {
1656
1719
  ACTIVATING: "ACTIVATING",
1657
1720
  ACTIVE: "ACTIVE",
@@ -1760,6 +1823,13 @@ const UsageStatisticType = {
1760
1823
  TOP_ACCOUNTS_BY_FEATURE: "TOP_ACCOUNTS_BY_FEATURE",
1761
1824
  TOP_RESOURCES: "TOP_RESOURCES",
1762
1825
  };
1826
+ const InvestigationSortField = {
1827
+ CONFIDENCE: "CONFIDENCE",
1828
+ END_TIME: "END_TIME",
1829
+ RISK_LEVEL: "RISK_LEVEL",
1830
+ START_TIME: "START_TIME",
1831
+ STATUS: "STATUS",
1832
+ };
1763
1833
  const ListMalwareScansCriterionKey = {
1764
1834
  ACCOUNT_ID: "ACCOUNT_ID",
1765
1835
  GUARDDUTY_FINDING_ID: "GUARDDUTY_FINDING_ID",
@@ -1776,7 +1846,9 @@ exports.AcceptInvitationCommand = AcceptInvitationCommand;
1776
1846
  exports.AdminStatus = AdminStatus;
1777
1847
  exports.ArchiveFindingsCommand = ArchiveFindingsCommand;
1778
1848
  exports.AutoEnableMembers = AutoEnableMembers;
1849
+ exports.CloudProvider = CloudProvider;
1779
1850
  exports.ClusterStatus = ClusterStatus;
1851
+ exports.Confidence = Confidence;
1780
1852
  exports.CoverageFilterCriterionKey = CoverageFilterCriterionKey;
1781
1853
  exports.CoverageSortKey = CoverageSortKey;
1782
1854
  exports.CoverageStatisticsType = CoverageStatisticsType;
@@ -1784,6 +1856,7 @@ exports.CoverageStatus = CoverageStatus;
1784
1856
  exports.CreateDetectorCommand = CreateDetectorCommand;
1785
1857
  exports.CreateFilterCommand = CreateFilterCommand;
1786
1858
  exports.CreateIPSetCommand = CreateIPSetCommand;
1859
+ exports.CreateInvestigationCommand = CreateInvestigationCommand;
1787
1860
  exports.CreateMalwareProtectionPlanCommand = CreateMalwareProtectionPlanCommand;
1788
1861
  exports.CreateMembersCommand = CreateMembersCommand;
1789
1862
  exports.CreatePublishingDestinationCommand = CreatePublishingDestinationCommand;
@@ -1836,6 +1909,7 @@ exports.GetFilterCommand = GetFilterCommand;
1836
1909
  exports.GetFindingsCommand = GetFindingsCommand;
1837
1910
  exports.GetFindingsStatisticsCommand = GetFindingsStatisticsCommand;
1838
1911
  exports.GetIPSetCommand = GetIPSetCommand;
1912
+ exports.GetInvestigationCommand = GetInvestigationCommand;
1839
1913
  exports.GetInvitationsCountCommand = GetInvitationsCountCommand;
1840
1914
  exports.GetMalwareProtectionPlanCommand = GetMalwareProtectionPlanCommand;
1841
1915
  exports.GetMalwareScanCommand = GetMalwareScanCommand;
@@ -1853,6 +1927,8 @@ exports.GroupByType = GroupByType;
1853
1927
  exports.GuardDuty = GuardDuty;
1854
1928
  exports.GuardDutyClient = GuardDutyClient;
1855
1929
  exports.IndicatorType = IndicatorType;
1930
+ exports.InvestigationSortField = InvestigationSortField;
1931
+ exports.InvestigationStatus = InvestigationStatus;
1856
1932
  exports.InviteMembersCommand = InviteMembersCommand;
1857
1933
  exports.IpSetFormat = IpSetFormat;
1858
1934
  exports.IpSetStatus = IpSetStatus;
@@ -1862,6 +1938,7 @@ exports.ListDetectorsCommand = ListDetectorsCommand;
1862
1938
  exports.ListFiltersCommand = ListFiltersCommand;
1863
1939
  exports.ListFindingsCommand = ListFindingsCommand;
1864
1940
  exports.ListIPSetsCommand = ListIPSetsCommand;
1941
+ exports.ListInvestigationsCommand = ListInvestigationsCommand;
1865
1942
  exports.ListInvitationsCommand = ListInvitationsCommand;
1866
1943
  exports.ListMalwareProtectionPlansCommand = ListMalwareProtectionPlansCommand;
1867
1944
  exports.ListMalwareScansCommand = ListMalwareScansCommand;
@@ -1892,6 +1969,7 @@ exports.PublicAclIgnoreBehavior = PublicAclIgnoreBehavior;
1892
1969
  exports.PublicBucketRestrictBehavior = PublicBucketRestrictBehavior;
1893
1970
  exports.PublishingStatus = PublishingStatus;
1894
1971
  exports.ResourceType = ResourceType;
1972
+ exports.RiskLevel = RiskLevel;
1895
1973
  exports.ScanCategory = ScanCategory;
1896
1974
  exports.ScanCriterionKey = ScanCriterionKey;
1897
1975
  exports.ScanResult = ScanResult;
@@ -1936,6 +2014,7 @@ exports.paginateListDetectors = paginateListDetectors;
1936
2014
  exports.paginateListFilters = paginateListFilters;
1937
2015
  exports.paginateListFindings = paginateListFindings;
1938
2016
  exports.paginateListIPSets = paginateListIPSets;
2017
+ exports.paginateListInvestigations = paginateListInvestigations;
1939
2018
  exports.paginateListInvitations = paginateListInvitations;
1940
2019
  exports.paginateListMalwareScans = paginateListMalwareScans;
1941
2020
  exports.paginateListMembers = paginateListMembers;