@aws-sdk/client-guardduty 3.477.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.
Files changed (90) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/GuardDuty.js +2 -0
  3. package/dist-cjs/commands/GetOrganizationStatisticsCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +1 -0
  6. package/dist-cjs/pagination/DescribeMalwareScansPaginator.js +2 -24
  7. package/dist-cjs/pagination/DescribeOrganizationConfigurationPaginator.js +2 -24
  8. package/dist-cjs/pagination/GetUsageStatisticsPaginator.js +2 -24
  9. package/dist-cjs/pagination/ListCoveragePaginator.js +2 -24
  10. package/dist-cjs/pagination/ListDetectorsPaginator.js +2 -24
  11. package/dist-cjs/pagination/ListFiltersPaginator.js +2 -24
  12. package/dist-cjs/pagination/ListFindingsPaginator.js +2 -24
  13. package/dist-cjs/pagination/ListIPSetsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListInvitationsPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListMembersPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListOrganizationAdminAccountsPaginator.js +2 -24
  17. package/dist-cjs/pagination/ListPublishingDestinationsPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListThreatIntelSetsPaginator.js +2 -24
  19. package/dist-cjs/protocols/Aws_restJson1.js +129 -3
  20. package/dist-es/GuardDuty.js +2 -0
  21. package/dist-es/commands/GetOrganizationStatisticsCommand.js +47 -0
  22. package/dist-es/commands/index.js +1 -0
  23. package/dist-es/models/models_0.js +1 -0
  24. package/dist-es/pagination/DescribeMalwareScansPaginator.js +2 -23
  25. package/dist-es/pagination/DescribeOrganizationConfigurationPaginator.js +2 -23
  26. package/dist-es/pagination/GetUsageStatisticsPaginator.js +2 -23
  27. package/dist-es/pagination/ListCoveragePaginator.js +2 -23
  28. package/dist-es/pagination/ListDetectorsPaginator.js +2 -23
  29. package/dist-es/pagination/ListFiltersPaginator.js +2 -23
  30. package/dist-es/pagination/ListFindingsPaginator.js +2 -23
  31. package/dist-es/pagination/ListIPSetsPaginator.js +2 -23
  32. package/dist-es/pagination/ListInvitationsPaginator.js +2 -23
  33. package/dist-es/pagination/ListMembersPaginator.js +2 -23
  34. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +2 -23
  35. package/dist-es/pagination/ListPublishingDestinationsPaginator.js +2 -23
  36. package/dist-es/pagination/ListThreatIntelSetsPaginator.js +2 -23
  37. package/dist-es/protocols/Aws_restJson1.js +124 -0
  38. package/dist-types/GuardDuty.d.ts +7 -0
  39. package/dist-types/GuardDutyClient.d.ts +3 -2
  40. package/dist-types/commands/CreateMembersCommand.d.ts +5 -0
  41. package/dist-types/commands/GetCoverageStatisticsCommand.d.ts +2 -2
  42. package/dist-types/commands/GetOrganizationStatisticsCommand.d.ts +101 -0
  43. package/dist-types/commands/GetUsageStatisticsCommand.d.ts +16 -5
  44. package/dist-types/commands/ListCoverageCommand.d.ts +2 -2
  45. package/dist-types/commands/ListDetectorsCommand.d.ts +1 -1
  46. package/dist-types/commands/ListFiltersCommand.d.ts +1 -1
  47. package/dist-types/commands/ListFindingsCommand.d.ts +1 -1
  48. package/dist-types/commands/ListInvitationsCommand.d.ts +1 -2
  49. package/dist-types/commands/index.d.ts +1 -0
  50. package/dist-types/models/models_0.d.ts +166 -308
  51. package/dist-types/models/models_1.d.ts +299 -1
  52. package/dist-types/pagination/DescribeMalwareScansPaginator.d.ts +1 -1
  53. package/dist-types/pagination/DescribeOrganizationConfigurationPaginator.d.ts +1 -1
  54. package/dist-types/pagination/GetUsageStatisticsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/ListCoveragePaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListDetectorsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListFiltersPaginator.d.ts +1 -1
  58. package/dist-types/pagination/ListFindingsPaginator.d.ts +1 -1
  59. package/dist-types/pagination/ListIPSetsPaginator.d.ts +1 -1
  60. package/dist-types/pagination/ListInvitationsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListMembersPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListOrganizationAdminAccountsPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListPublishingDestinationsPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListThreatIntelSetsPaginator.d.ts +1 -1
  65. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  66. package/dist-types/ts3.4/GuardDuty.d.ts +17 -0
  67. package/dist-types/ts3.4/GuardDutyClient.d.ts +6 -0
  68. package/dist-types/ts3.4/commands/GetOrganizationStatisticsCommand.d.ts +38 -0
  69. package/dist-types/ts3.4/commands/ListDetectorsCommand.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/ListFiltersCommand.d.ts +1 -1
  71. package/dist-types/ts3.4/commands/ListFindingsCommand.d.ts +1 -1
  72. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +4 -2
  73. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  74. package/dist-types/ts3.4/models/models_0.d.ts +33 -32
  75. package/dist-types/ts3.4/models/models_1.d.ts +33 -0
  76. package/dist-types/ts3.4/pagination/DescribeMalwareScansPaginator.d.ts +3 -3
  77. package/dist-types/ts3.4/pagination/DescribeOrganizationConfigurationPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/GetUsageStatisticsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/ListCoveragePaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/ListDetectorsPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/ListFiltersPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/ListFindingsPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/ListIPSetsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListInvitationsPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListMembersPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListOrganizationAdminAccountsPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListPublishingDestinationsPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListThreatIntelSetsPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  90. package/package.json +5 -5
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListThreatIntelSetsCommand, } from "../commands/ListThreatIntelSetsCommand";
2
3
  import { GuardDutyClient } from "../GuardDutyClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListThreatIntelSetsCommand(input), ...args);
5
- };
6
- export async function* paginateListThreatIntelSets(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof GuardDutyClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected GuardDuty | GuardDutyClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListThreatIntelSets = createPaginator(GuardDutyClient, ListThreatIntelSetsCommand, "NextToken", "NextToken", "MaxResults");
@@ -494,6 +494,17 @@ export const se_GetMembersCommand = async (input, context) => {
494
494
  b.m("POST").h(headers).b(body);
495
495
  return b.build();
496
496
  };
497
+ export const se_GetOrganizationStatisticsCommand = async (input, context) => {
498
+ const b = rb(input, context);
499
+ const headers = {
500
+ "content-type": "application/json",
501
+ };
502
+ b.bp("/organization/statistics");
503
+ let body;
504
+ body = "";
505
+ b.m("GET").h(headers).b(body);
506
+ return b.build();
507
+ };
497
508
  export const se_GetRemainingFreeTrialDaysCommand = async (input, context) => {
498
509
  const b = rb(input, context);
499
510
  const headers = {
@@ -2275,6 +2286,42 @@ const de_GetMembersCommandError = async (output, context) => {
2275
2286
  });
2276
2287
  }
2277
2288
  };
2289
+ export const de_GetOrganizationStatisticsCommand = async (output, context) => {
2290
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2291
+ return de_GetOrganizationStatisticsCommandError(output, context);
2292
+ }
2293
+ const contents = map({
2294
+ $metadata: deserializeMetadata(output),
2295
+ });
2296
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2297
+ const doc = take(data, {
2298
+ OrganizationDetails: [, (_) => de_OrganizationDetails(_, context), `organizationDetails`],
2299
+ });
2300
+ Object.assign(contents, doc);
2301
+ return contents;
2302
+ };
2303
+ const de_GetOrganizationStatisticsCommandError = async (output, context) => {
2304
+ const parsedOutput = {
2305
+ ...output,
2306
+ body: await parseErrorBody(output.body, context),
2307
+ };
2308
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2309
+ switch (errorCode) {
2310
+ case "BadRequestException":
2311
+ case "com.amazonaws.guardduty#BadRequestException":
2312
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2313
+ case "InternalServerErrorException":
2314
+ case "com.amazonaws.guardduty#InternalServerErrorException":
2315
+ throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2316
+ default:
2317
+ const parsedBody = parsedOutput.body;
2318
+ return throwDefaultError({
2319
+ output,
2320
+ parsedBody,
2321
+ errorCode,
2322
+ });
2323
+ }
2324
+ };
2278
2325
  export const de_GetRemainingFreeTrialDaysCommand = async (output, context) => {
2279
2326
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2280
2327
  return de_GetRemainingFreeTrialDaysCommandError(output, context);
@@ -4637,6 +4684,12 @@ const de_OrganizationDataSourceConfigurationsResult = (output, context) => {
4637
4684
  S3Logs: [, (_) => de_OrganizationS3LogsConfigurationResult(_, context), `s3Logs`],
4638
4685
  });
4639
4686
  };
4687
+ const de_OrganizationDetails = (output, context) => {
4688
+ return take(output, {
4689
+ OrganizationStatistics: [, (_) => de_OrganizationStatistics(_, context), `organizationStatistics`],
4690
+ UpdatedAt: [, (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `updatedAt`],
4691
+ });
4692
+ };
4640
4693
  const de_OrganizationEbsVolumesResult = (output, context) => {
4641
4694
  return take(output, {
4642
4695
  AutoEnable: [, __expectBoolean, `autoEnable`],
@@ -4661,6 +4714,39 @@ const de_OrganizationFeaturesConfigurationsResults = (output, context) => {
4661
4714
  });
4662
4715
  return retVal;
4663
4716
  };
4717
+ const de_OrganizationFeatureStatistics = (output, context) => {
4718
+ return take(output, {
4719
+ AdditionalConfiguration: [
4720
+ ,
4721
+ (_) => de_OrganizationFeatureStatisticsAdditionalConfigurations(_, context),
4722
+ `additionalConfiguration`,
4723
+ ],
4724
+ EnabledAccountsCount: [, __expectInt32, `enabledAccountsCount`],
4725
+ Name: [, __expectString, `name`],
4726
+ });
4727
+ };
4728
+ const de_OrganizationFeatureStatisticsAdditionalConfiguration = (output, context) => {
4729
+ return take(output, {
4730
+ EnabledAccountsCount: [, __expectInt32, `enabledAccountsCount`],
4731
+ Name: [, __expectString, `name`],
4732
+ });
4733
+ };
4734
+ const de_OrganizationFeatureStatisticsAdditionalConfigurations = (output, context) => {
4735
+ const retVal = (output || [])
4736
+ .filter((e) => e != null)
4737
+ .map((entry) => {
4738
+ return de_OrganizationFeatureStatisticsAdditionalConfiguration(entry, context);
4739
+ });
4740
+ return retVal;
4741
+ };
4742
+ const de_OrganizationFeatureStatisticsResults = (output, context) => {
4743
+ const retVal = (output || [])
4744
+ .filter((e) => e != null)
4745
+ .map((entry) => {
4746
+ return de_OrganizationFeatureStatistics(entry, context);
4747
+ });
4748
+ return retVal;
4749
+ };
4664
4750
  const de_OrganizationKubernetesAuditLogsConfigurationResult = (output, context) => {
4665
4751
  return take(output, {
4666
4752
  AutoEnable: [, __expectBoolean, `autoEnable`],
@@ -4690,6 +4776,15 @@ const de_OrganizationScanEc2InstanceWithFindingsResult = (output, context) => {
4690
4776
  EbsVolumes: [, (_) => de_OrganizationEbsVolumesResult(_, context), `ebsVolumes`],
4691
4777
  });
4692
4778
  };
4779
+ const de_OrganizationStatistics = (output, context) => {
4780
+ return take(output, {
4781
+ ActiveAccountsCount: [, __expectInt32, `activeAccountsCount`],
4782
+ CountByFeature: [, (_) => de_OrganizationFeatureStatisticsResults(_, context), `countByFeature`],
4783
+ EnabledAccountsCount: [, __expectInt32, `enabledAccountsCount`],
4784
+ MemberAccountsCount: [, __expectInt32, `memberAccountsCount`],
4785
+ TotalAccountsCount: [, __expectInt32, `totalAccountsCount`],
4786
+ });
4787
+ };
4693
4788
  const de_Owner = (output, context) => {
4694
4789
  return take(output, {
4695
4790
  Id: [, __expectString, `id`],
@@ -5184,9 +5279,38 @@ const de_UsageStatistics = (output, context) => {
5184
5279
  SumByDataSource: [, (_) => de_UsageDataSourceResultList(_, context), `sumByDataSource`],
5185
5280
  SumByFeature: [, (_) => de_UsageFeatureResultList(_, context), `sumByFeature`],
5186
5281
  SumByResource: [, (_) => de_UsageResourceResultList(_, context), `sumByResource`],
5282
+ TopAccountsByFeature: [, (_) => de_UsageTopAccountsResultList(_, context), `topAccountsByFeature`],
5187
5283
  TopResources: [, (_) => de_UsageResourceResultList(_, context), `topResources`],
5188
5284
  });
5189
5285
  };
5286
+ const de_UsageTopAccountResult = (output, context) => {
5287
+ return take(output, {
5288
+ AccountId: [, __expectString, `accountId`],
5289
+ Total: [, (_) => de_Total(_, context), `total`],
5290
+ });
5291
+ };
5292
+ const de_UsageTopAccountsByFeatureList = (output, context) => {
5293
+ const retVal = (output || [])
5294
+ .filter((e) => e != null)
5295
+ .map((entry) => {
5296
+ return de_UsageTopAccountResult(entry, context);
5297
+ });
5298
+ return retVal;
5299
+ };
5300
+ const de_UsageTopAccountsResult = (output, context) => {
5301
+ return take(output, {
5302
+ Accounts: [, (_) => de_UsageTopAccountsByFeatureList(_, context), `accounts`],
5303
+ Feature: [, __expectString, `feature`],
5304
+ });
5305
+ };
5306
+ const de_UsageTopAccountsResultList = (output, context) => {
5307
+ const retVal = (output || [])
5308
+ .filter((e) => e != null)
5309
+ .map((entry) => {
5310
+ return de_UsageTopAccountsResult(entry, context);
5311
+ });
5312
+ return retVal;
5313
+ };
5190
5314
  const de_Volume = (output, context) => {
5191
5315
  return take(output, {
5192
5316
  HostPath: [, (_) => de_HostPath(_, context), `hostPath`],
@@ -37,6 +37,7 @@ import { GetMalwareScanSettingsCommandInput, GetMalwareScanSettingsCommandOutput
37
37
  import { GetMasterAccountCommandInput, GetMasterAccountCommandOutput } from "./commands/GetMasterAccountCommand";
38
38
  import { GetMemberDetectorsCommandInput, GetMemberDetectorsCommandOutput } from "./commands/GetMemberDetectorsCommand";
39
39
  import { GetMembersCommandInput, GetMembersCommandOutput } from "./commands/GetMembersCommand";
40
+ import { GetOrganizationStatisticsCommandInput, GetOrganizationStatisticsCommandOutput } from "./commands/GetOrganizationStatisticsCommand";
40
41
  import { GetRemainingFreeTrialDaysCommandInput, GetRemainingFreeTrialDaysCommandOutput } from "./commands/GetRemainingFreeTrialDaysCommand";
41
42
  import { GetThreatIntelSetCommandInput, GetThreatIntelSetCommandOutput } from "./commands/GetThreatIntelSetCommand";
42
43
  import { GetUsageStatisticsCommandInput, GetUsageStatisticsCommandOutput } from "./commands/GetUsageStatisticsCommand";
@@ -297,6 +298,12 @@ export interface GuardDuty {
297
298
  getMembers(args: GetMembersCommandInput, options?: __HttpHandlerOptions): Promise<GetMembersCommandOutput>;
298
299
  getMembers(args: GetMembersCommandInput, cb: (err: any, data?: GetMembersCommandOutput) => void): void;
299
300
  getMembers(args: GetMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMembersCommandOutput) => void): void;
301
+ /**
302
+ * @see {@link GetOrganizationStatisticsCommand}
303
+ */
304
+ getOrganizationStatistics(args: GetOrganizationStatisticsCommandInput, options?: __HttpHandlerOptions): Promise<GetOrganizationStatisticsCommandOutput>;
305
+ getOrganizationStatistics(args: GetOrganizationStatisticsCommandInput, cb: (err: any, data?: GetOrganizationStatisticsCommandOutput) => void): void;
306
+ getOrganizationStatistics(args: GetOrganizationStatisticsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrganizationStatisticsCommandOutput) => void): void;
300
307
  /**
301
308
  * @see {@link GetRemainingFreeTrialDaysCommand}
302
309
  */
@@ -46,6 +46,7 @@ import { GetMalwareScanSettingsCommandInput, GetMalwareScanSettingsCommandOutput
46
46
  import { GetMasterAccountCommandInput, GetMasterAccountCommandOutput } from "./commands/GetMasterAccountCommand";
47
47
  import { GetMemberDetectorsCommandInput, GetMemberDetectorsCommandOutput } from "./commands/GetMemberDetectorsCommand";
48
48
  import { GetMembersCommandInput, GetMembersCommandOutput } from "./commands/GetMembersCommand";
49
+ import { GetOrganizationStatisticsCommandInput, GetOrganizationStatisticsCommandOutput } from "./commands/GetOrganizationStatisticsCommand";
49
50
  import { GetRemainingFreeTrialDaysCommandInput, GetRemainingFreeTrialDaysCommandOutput } from "./commands/GetRemainingFreeTrialDaysCommand";
50
51
  import { GetThreatIntelSetCommandInput, GetThreatIntelSetCommandOutput } from "./commands/GetThreatIntelSetCommand";
51
52
  import { GetUsageStatisticsCommandInput, GetUsageStatisticsCommandOutput } from "./commands/GetUsageStatisticsCommand";
@@ -82,11 +83,11 @@ export { __Client };
82
83
  /**
83
84
  * @public
84
85
  */
85
- export type ServiceInputTypes = AcceptAdministratorInvitationCommandInput | AcceptInvitationCommandInput | ArchiveFindingsCommandInput | CreateDetectorCommandInput | CreateFilterCommandInput | CreateIPSetCommandInput | CreateMembersCommandInput | CreatePublishingDestinationCommandInput | CreateSampleFindingsCommandInput | CreateThreatIntelSetCommandInput | DeclineInvitationsCommandInput | DeleteDetectorCommandInput | DeleteFilterCommandInput | DeleteIPSetCommandInput | DeleteInvitationsCommandInput | DeleteMembersCommandInput | DeletePublishingDestinationCommandInput | DeleteThreatIntelSetCommandInput | DescribeMalwareScansCommandInput | DescribeOrganizationConfigurationCommandInput | DescribePublishingDestinationCommandInput | DisableOrganizationAdminAccountCommandInput | DisassociateFromAdministratorAccountCommandInput | DisassociateFromMasterAccountCommandInput | DisassociateMembersCommandInput | EnableOrganizationAdminAccountCommandInput | GetAdministratorAccountCommandInput | GetCoverageStatisticsCommandInput | GetDetectorCommandInput | GetFilterCommandInput | GetFindingsCommandInput | GetFindingsStatisticsCommandInput | GetIPSetCommandInput | GetInvitationsCountCommandInput | GetMalwareScanSettingsCommandInput | GetMasterAccountCommandInput | GetMemberDetectorsCommandInput | GetMembersCommandInput | GetRemainingFreeTrialDaysCommandInput | GetThreatIntelSetCommandInput | GetUsageStatisticsCommandInput | InviteMembersCommandInput | ListCoverageCommandInput | ListDetectorsCommandInput | ListFiltersCommandInput | ListFindingsCommandInput | ListIPSetsCommandInput | ListInvitationsCommandInput | ListMembersCommandInput | ListOrganizationAdminAccountsCommandInput | ListPublishingDestinationsCommandInput | ListTagsForResourceCommandInput | ListThreatIntelSetsCommandInput | StartMalwareScanCommandInput | StartMonitoringMembersCommandInput | StopMonitoringMembersCommandInput | TagResourceCommandInput | UnarchiveFindingsCommandInput | UntagResourceCommandInput | UpdateDetectorCommandInput | UpdateFilterCommandInput | UpdateFindingsFeedbackCommandInput | UpdateIPSetCommandInput | UpdateMalwareScanSettingsCommandInput | UpdateMemberDetectorsCommandInput | UpdateOrganizationConfigurationCommandInput | UpdatePublishingDestinationCommandInput | UpdateThreatIntelSetCommandInput;
86
+ export type ServiceInputTypes = AcceptAdministratorInvitationCommandInput | AcceptInvitationCommandInput | ArchiveFindingsCommandInput | CreateDetectorCommandInput | CreateFilterCommandInput | CreateIPSetCommandInput | CreateMembersCommandInput | CreatePublishingDestinationCommandInput | CreateSampleFindingsCommandInput | CreateThreatIntelSetCommandInput | DeclineInvitationsCommandInput | DeleteDetectorCommandInput | DeleteFilterCommandInput | DeleteIPSetCommandInput | DeleteInvitationsCommandInput | DeleteMembersCommandInput | DeletePublishingDestinationCommandInput | DeleteThreatIntelSetCommandInput | DescribeMalwareScansCommandInput | DescribeOrganizationConfigurationCommandInput | DescribePublishingDestinationCommandInput | DisableOrganizationAdminAccountCommandInput | DisassociateFromAdministratorAccountCommandInput | DisassociateFromMasterAccountCommandInput | DisassociateMembersCommandInput | EnableOrganizationAdminAccountCommandInput | GetAdministratorAccountCommandInput | GetCoverageStatisticsCommandInput | GetDetectorCommandInput | GetFilterCommandInput | GetFindingsCommandInput | GetFindingsStatisticsCommandInput | GetIPSetCommandInput | GetInvitationsCountCommandInput | GetMalwareScanSettingsCommandInput | GetMasterAccountCommandInput | GetMemberDetectorsCommandInput | GetMembersCommandInput | GetOrganizationStatisticsCommandInput | GetRemainingFreeTrialDaysCommandInput | GetThreatIntelSetCommandInput | GetUsageStatisticsCommandInput | InviteMembersCommandInput | ListCoverageCommandInput | ListDetectorsCommandInput | ListFiltersCommandInput | ListFindingsCommandInput | ListIPSetsCommandInput | ListInvitationsCommandInput | ListMembersCommandInput | ListOrganizationAdminAccountsCommandInput | ListPublishingDestinationsCommandInput | ListTagsForResourceCommandInput | ListThreatIntelSetsCommandInput | StartMalwareScanCommandInput | StartMonitoringMembersCommandInput | StopMonitoringMembersCommandInput | TagResourceCommandInput | UnarchiveFindingsCommandInput | UntagResourceCommandInput | UpdateDetectorCommandInput | UpdateFilterCommandInput | UpdateFindingsFeedbackCommandInput | UpdateIPSetCommandInput | UpdateMalwareScanSettingsCommandInput | UpdateMemberDetectorsCommandInput | UpdateOrganizationConfigurationCommandInput | UpdatePublishingDestinationCommandInput | UpdateThreatIntelSetCommandInput;
86
87
  /**
87
88
  * @public
88
89
  */
89
- export type ServiceOutputTypes = AcceptAdministratorInvitationCommandOutput | AcceptInvitationCommandOutput | ArchiveFindingsCommandOutput | CreateDetectorCommandOutput | CreateFilterCommandOutput | CreateIPSetCommandOutput | CreateMembersCommandOutput | CreatePublishingDestinationCommandOutput | CreateSampleFindingsCommandOutput | CreateThreatIntelSetCommandOutput | DeclineInvitationsCommandOutput | DeleteDetectorCommandOutput | DeleteFilterCommandOutput | DeleteIPSetCommandOutput | DeleteInvitationsCommandOutput | DeleteMembersCommandOutput | DeletePublishingDestinationCommandOutput | DeleteThreatIntelSetCommandOutput | DescribeMalwareScansCommandOutput | DescribeOrganizationConfigurationCommandOutput | DescribePublishingDestinationCommandOutput | DisableOrganizationAdminAccountCommandOutput | DisassociateFromAdministratorAccountCommandOutput | DisassociateFromMasterAccountCommandOutput | DisassociateMembersCommandOutput | EnableOrganizationAdminAccountCommandOutput | GetAdministratorAccountCommandOutput | GetCoverageStatisticsCommandOutput | GetDetectorCommandOutput | GetFilterCommandOutput | GetFindingsCommandOutput | GetFindingsStatisticsCommandOutput | GetIPSetCommandOutput | GetInvitationsCountCommandOutput | GetMalwareScanSettingsCommandOutput | GetMasterAccountCommandOutput | GetMemberDetectorsCommandOutput | GetMembersCommandOutput | GetRemainingFreeTrialDaysCommandOutput | GetThreatIntelSetCommandOutput | GetUsageStatisticsCommandOutput | InviteMembersCommandOutput | ListCoverageCommandOutput | ListDetectorsCommandOutput | ListFiltersCommandOutput | ListFindingsCommandOutput | ListIPSetsCommandOutput | ListInvitationsCommandOutput | ListMembersCommandOutput | ListOrganizationAdminAccountsCommandOutput | ListPublishingDestinationsCommandOutput | ListTagsForResourceCommandOutput | ListThreatIntelSetsCommandOutput | StartMalwareScanCommandOutput | StartMonitoringMembersCommandOutput | StopMonitoringMembersCommandOutput | TagResourceCommandOutput | UnarchiveFindingsCommandOutput | UntagResourceCommandOutput | UpdateDetectorCommandOutput | UpdateFilterCommandOutput | UpdateFindingsFeedbackCommandOutput | UpdateIPSetCommandOutput | UpdateMalwareScanSettingsCommandOutput | UpdateMemberDetectorsCommandOutput | UpdateOrganizationConfigurationCommandOutput | UpdatePublishingDestinationCommandOutput | UpdateThreatIntelSetCommandOutput;
90
+ export type ServiceOutputTypes = AcceptAdministratorInvitationCommandOutput | AcceptInvitationCommandOutput | ArchiveFindingsCommandOutput | CreateDetectorCommandOutput | CreateFilterCommandOutput | CreateIPSetCommandOutput | CreateMembersCommandOutput | CreatePublishingDestinationCommandOutput | CreateSampleFindingsCommandOutput | CreateThreatIntelSetCommandOutput | DeclineInvitationsCommandOutput | DeleteDetectorCommandOutput | DeleteFilterCommandOutput | DeleteIPSetCommandOutput | DeleteInvitationsCommandOutput | DeleteMembersCommandOutput | DeletePublishingDestinationCommandOutput | DeleteThreatIntelSetCommandOutput | DescribeMalwareScansCommandOutput | DescribeOrganizationConfigurationCommandOutput | DescribePublishingDestinationCommandOutput | DisableOrganizationAdminAccountCommandOutput | DisassociateFromAdministratorAccountCommandOutput | DisassociateFromMasterAccountCommandOutput | DisassociateMembersCommandOutput | EnableOrganizationAdminAccountCommandOutput | GetAdministratorAccountCommandOutput | GetCoverageStatisticsCommandOutput | GetDetectorCommandOutput | GetFilterCommandOutput | GetFindingsCommandOutput | GetFindingsStatisticsCommandOutput | GetIPSetCommandOutput | GetInvitationsCountCommandOutput | GetMalwareScanSettingsCommandOutput | GetMasterAccountCommandOutput | GetMemberDetectorsCommandOutput | GetMembersCommandOutput | GetOrganizationStatisticsCommandOutput | GetRemainingFreeTrialDaysCommandOutput | GetThreatIntelSetCommandOutput | GetUsageStatisticsCommandOutput | InviteMembersCommandOutput | ListCoverageCommandOutput | ListDetectorsCommandOutput | ListFiltersCommandOutput | ListFindingsCommandOutput | ListIPSetsCommandOutput | ListInvitationsCommandOutput | ListMembersCommandOutput | ListOrganizationAdminAccountsCommandOutput | ListPublishingDestinationsCommandOutput | ListTagsForResourceCommandOutput | ListThreatIntelSetsCommandOutput | StartMalwareScanCommandOutput | StartMonitoringMembersCommandOutput | StopMonitoringMembersCommandOutput | TagResourceCommandOutput | UnarchiveFindingsCommandOutput | UntagResourceCommandOutput | UpdateDetectorCommandOutput | UpdateFilterCommandOutput | UpdateFindingsFeedbackCommandOutput | UpdateIPSetCommandOutput | UpdateMalwareScanSettingsCommandOutput | UpdateMemberDetectorsCommandOutput | UpdateOrganizationConfigurationCommandOutput | UpdatePublishingDestinationCommandOutput | UpdateThreatIntelSetCommandOutput;
90
91
  /**
91
92
  * @public
92
93
  */
@@ -30,6 +30,11 @@ export interface CreateMembersCommandOutput extends CreateMembersResponse, __Met
30
30
  * the added member accounts, with the exception of the
31
31
  * organization delegated administrator account. A delegated administrator must enable GuardDuty
32
32
  * prior to being added as a member.</p>
33
+ * <p>When you use CreateMembers as an Organizations delegated
34
+ * administrator, GuardDuty applies your organization's auto-enable settings to the member
35
+ * accounts in this request, irrespective of the accounts being new or existing members. For
36
+ * more information about the existing auto-enable settings for your organization, see
37
+ * <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DescribeOrganizationConfiguration.html">DescribeOrganizationConfiguration</a>.</p>
33
38
  * <p>If you are adding accounts by invitation, before using <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_InviteMembers.html">InviteMembers</a>, use
34
39
  * <code>CreateMembers</code> after GuardDuty has been enabled in potential member accounts.</p>
35
40
  * <p>If you disassociate a member from a GuardDuty
@@ -25,8 +25,8 @@ export interface GetCoverageStatisticsCommandOutput extends GetCoverageStatistic
25
25
  * @public
26
26
  * <p>Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you
27
27
  * can retrieve the statistics for all the resources associated with the active member accounts
28
- * in your organization who have enabled EKS Runtime Monitoring and have the GuardDuty agent running
29
- * on their EKS nodes.</p>
28
+ * in your organization who have enabled Runtime Monitoring and have the GuardDuty security agent running
29
+ * on their resources.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -0,0 +1,101 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
5
+ import { GetOrganizationStatisticsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOrganizationStatisticsCommand}.
14
+ */
15
+ export interface GetOrganizationStatisticsCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOrganizationStatisticsCommand}.
21
+ */
22
+ export interface GetOrganizationStatisticsCommandOutput extends GetOrganizationStatisticsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves how many active member accounts
27
+ * in your Amazon Web Services organization have
28
+ * each feature enabled within GuardDuty. Only a delegated GuardDuty administrator of an organization can run this API.</p>
29
+ * <p>When you create a new Amazon Web Services organization, it might take up to 24
30
+ * hours to generate the statistics for the entire organization.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { GuardDutyClient, GetOrganizationStatisticsCommand } from "@aws-sdk/client-guardduty"; // ES Modules import
35
+ * // const { GuardDutyClient, GetOrganizationStatisticsCommand } = require("@aws-sdk/client-guardduty"); // CommonJS import
36
+ * const client = new GuardDutyClient(config);
37
+ * const input = {};
38
+ * const command = new GetOrganizationStatisticsCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // GetOrganizationStatisticsResponse
41
+ * // OrganizationDetails: { // OrganizationDetails
42
+ * // UpdatedAt: new Date("TIMESTAMP"),
43
+ * // OrganizationStatistics: { // OrganizationStatistics
44
+ * // TotalAccountsCount: Number("int"),
45
+ * // MemberAccountsCount: Number("int"),
46
+ * // ActiveAccountsCount: Number("int"),
47
+ * // EnabledAccountsCount: Number("int"),
48
+ * // CountByFeature: [ // OrganizationFeatureStatisticsResults
49
+ * // { // OrganizationFeatureStatistics
50
+ * // Name: "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "EKS_RUNTIME_MONITORING" || "LAMBDA_NETWORK_LOGS" || "RUNTIME_MONITORING",
51
+ * // EnabledAccountsCount: Number("int"),
52
+ * // AdditionalConfiguration: [ // OrganizationFeatureStatisticsAdditionalConfigurations
53
+ * // { // OrganizationFeatureStatisticsAdditionalConfiguration
54
+ * // Name: "EKS_ADDON_MANAGEMENT" || "ECS_FARGATE_AGENT_MANAGEMENT",
55
+ * // EnabledAccountsCount: Number("int"),
56
+ * // },
57
+ * // ],
58
+ * // },
59
+ * // ],
60
+ * // },
61
+ * // },
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param GetOrganizationStatisticsCommandInput - {@link GetOrganizationStatisticsCommandInput}
67
+ * @returns {@link GetOrganizationStatisticsCommandOutput}
68
+ * @see {@link GetOrganizationStatisticsCommandInput} for command's `input` shape.
69
+ * @see {@link GetOrganizationStatisticsCommandOutput} for command's `response` shape.
70
+ * @see {@link GuardDutyClientResolvedConfig | config} for GuardDutyClient's `config` shape.
71
+ *
72
+ * @throws {@link BadRequestException} (client fault)
73
+ * <p>A bad request exception object.</p>
74
+ *
75
+ * @throws {@link InternalServerErrorException} (server fault)
76
+ * <p>An internal server error exception object.</p>
77
+ *
78
+ * @throws {@link GuardDutyServiceException}
79
+ * <p>Base exception class for all service exceptions from GuardDuty service.</p>
80
+ *
81
+ */
82
+ export declare class GetOrganizationStatisticsCommand extends $Command<GetOrganizationStatisticsCommandInput, GetOrganizationStatisticsCommandOutput, GuardDutyClientResolvedConfig> {
83
+ readonly input: GetOrganizationStatisticsCommandInput;
84
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
+ /**
86
+ * @public
87
+ */
88
+ constructor(input: GetOrganizationStatisticsCommandInput);
89
+ /**
90
+ * @internal
91
+ */
92
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GuardDutyClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetOrganizationStatisticsCommandInput, GetOrganizationStatisticsCommandOutput>;
93
+ /**
94
+ * @internal
95
+ */
96
+ private serialize;
97
+ /**
98
+ * @internal
99
+ */
100
+ private deserialize;
101
+ }
@@ -35,7 +35,7 @@ export interface GetUsageStatisticsCommandOutput extends GetUsageStatisticsRespo
35
35
  * const client = new GuardDutyClient(config);
36
36
  * const input = { // GetUsageStatisticsRequest
37
37
  * DetectorId: "STRING_VALUE", // required
38
- * UsageStatisticType: "SUM_BY_ACCOUNT" || "SUM_BY_DATA_SOURCE" || "SUM_BY_RESOURCE" || "TOP_RESOURCES" || "SUM_BY_FEATURES", // required
38
+ * UsageStatisticType: "SUM_BY_ACCOUNT" || "SUM_BY_DATA_SOURCE" || "SUM_BY_RESOURCE" || "TOP_RESOURCES" || "SUM_BY_FEATURES" || "TOP_ACCOUNTS_BY_FEATURE", // required
39
39
  * UsageCriteria: { // UsageCriteria
40
40
  * AccountIds: [ // AccountIds
41
41
  * "STRING_VALUE",
@@ -67,6 +67,20 @@ export interface GetUsageStatisticsCommandOutput extends GetUsageStatisticsRespo
67
67
  * // },
68
68
  * // },
69
69
  * // ],
70
+ * // TopAccountsByFeature: [ // UsageTopAccountsResultList
71
+ * // { // UsageTopAccountsResult
72
+ * // Feature: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING",
73
+ * // Accounts: [ // UsageTopAccountsByFeatureList
74
+ * // { // UsageTopAccountResult
75
+ * // AccountId: "STRING_VALUE",
76
+ * // Total: {
77
+ * // Amount: "STRING_VALUE",
78
+ * // Unit: "STRING_VALUE",
79
+ * // },
80
+ * // },
81
+ * // ],
82
+ * // },
83
+ * // ],
70
84
  * // SumByDataSource: [ // UsageDataSourceResultList
71
85
  * // { // UsageDataSourceResult
72
86
  * // DataSource: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_LOGS" || "KUBERNETES_AUDIT_LOGS" || "EC2_MALWARE_SCAN",
@@ -97,10 +111,7 @@ export interface GetUsageStatisticsCommandOutput extends GetUsageStatisticsRespo
97
111
  * // SumByFeature: [ // UsageFeatureResultList
98
112
  * // { // UsageFeatureResult
99
113
  * // Feature: "FLOW_LOGS" || "CLOUD_TRAIL" || "DNS_LOGS" || "S3_DATA_EVENTS" || "EKS_AUDIT_LOGS" || "EBS_MALWARE_PROTECTION" || "RDS_LOGIN_EVENTS" || "LAMBDA_NETWORK_LOGS" || "EKS_RUNTIME_MONITORING" || "FARGATE_RUNTIME_MONITORING" || "EC2_RUNTIME_MONITORING",
100
- * // Total: {
101
- * // Amount: "STRING_VALUE",
102
- * // Unit: "STRING_VALUE",
103
- * // },
114
+ * // Total: "<Total>",
104
115
  * // },
105
116
  * // ],
106
117
  * // },
@@ -25,8 +25,8 @@ export interface ListCoverageCommandOutput extends ListCoverageResponse, __Metad
25
25
  * @public
26
26
  * <p>Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can
27
27
  * retrieve all resources associated with the active member accounts in your organization.</p>
28
- * <p>Make sure the accounts have EKS Runtime Monitoring enabled and GuardDuty agent running on
29
- * their EKS nodes.</p>
28
+ * <p>Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on
29
+ * their resources.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
5
- import { ListDetectorsRequest, ListDetectorsResponse } from "../models/models_0";
5
+ import { ListDetectorsRequest, ListDetectorsResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
5
- import { ListFiltersRequest, ListFiltersResponse } from "../models/models_0";
5
+ import { ListFiltersRequest, ListFiltersResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,7 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
5
- import { ListFindingsRequest, ListFindingsResponse } from "../models/models_0";
5
+ import { ListFindingsRequest, ListFindingsResponse } from "../models/models_1";
6
6
  /**
7
7
  * @public
8
8
  */
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
4
  import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
5
- import { ListInvitationsRequest } from "../models/models_0";
6
- import { ListInvitationsResponse } from "../models/models_1";
5
+ import { ListInvitationsRequest, ListInvitationsResponse } from "../models/models_1";
7
6
  /**
8
7
  * @public
9
8
  */
@@ -36,6 +36,7 @@ export * from "./GetMalwareScanSettingsCommand";
36
36
  export * from "./GetMasterAccountCommand";
37
37
  export * from "./GetMemberDetectorsCommand";
38
38
  export * from "./GetMembersCommand";
39
+ export * from "./GetOrganizationStatisticsCommand";
39
40
  export * from "./GetRemainingFreeTrialDaysCommand";
40
41
  export * from "./GetThreatIntelSetCommand";
41
42
  export * from "./GetUsageStatisticsCommand";