@aws-sdk/client-cloudtrail 3.933.0 → 3.935.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 (44) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +183 -127
  3. package/dist-es/CloudTrail.js +2 -0
  4. package/dist-es/commands/ListInsightsDataCommand.js +16 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/index.js +2 -1
  7. package/dist-es/models/enums.js +118 -0
  8. package/dist-es/models/errors.js +1205 -0
  9. package/dist-es/models/models_0.js +1 -1311
  10. package/dist-es/pagination/ListInsightsDataPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +33 -8
  13. package/dist-types/CloudTrail.d.ts +7 -0
  14. package/dist-types/CloudTrailClient.d.ts +3 -2
  15. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +5 -0
  16. package/dist-types/commands/DeleteTrailCommand.d.ts +12 -0
  17. package/dist-types/commands/GetInsightSelectorsCommand.d.ts +5 -2
  18. package/dist-types/commands/ListInsightsDataCommand.d.ts +126 -0
  19. package/dist-types/commands/ListInsightsMetricDataCommand.d.ts +35 -1
  20. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +26 -2
  21. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +11 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/index.d.ts +3 -1
  24. package/dist-types/models/enums.d.ts +294 -0
  25. package/dist-types/models/errors.d.ts +1615 -0
  26. package/dist-types/models/models_0.d.ts +239 -2023
  27. package/dist-types/pagination/ListInsightsDataPaginator.d.ts +7 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/schemas/schemas_0.d.ts +5 -0
  30. package/dist-types/ts3.4/CloudTrail.d.ts +17 -0
  31. package/dist-types/ts3.4/CloudTrailClient.d.ts +6 -0
  32. package/dist-types/ts3.4/commands/ListInsightsDataCommand.d.ts +50 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/index.d.ts +3 -1
  35. package/dist-types/ts3.4/models/enums.d.ts +153 -0
  36. package/dist-types/ts3.4/models/errors.d.ts +794 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +57 -944
  38. package/dist-types/ts3.4/pagination/ListInsightsDataPaginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  40. package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
  41. package/package.json +12 -12
  42. package/dist-es/models/index.js +0 -1
  43. package/dist-types/models/index.d.ts +0 -1
  44. package/dist-types/ts3.4/models/index.d.ts +0 -1
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { CloudTrailClient } from "../CloudTrailClient";
3
+ import { ListInsightsDataCommand, } from "../commands/ListInsightsDataCommand";
4
+ export const paginateListInsightsData = createPaginator(CloudTrailClient, ListInsightsDataCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,6 +4,7 @@ export * from "./ListChannelsPaginator";
4
4
  export * from "./ListEventDataStoresPaginator";
5
5
  export * from "./ListImportFailuresPaginator";
6
6
  export * from "./ListImportsPaginator";
7
+ export * from "./ListInsightsDataPaginator";
7
8
  export * from "./ListInsightsMetricDataPaginator";
8
9
  export * from "./ListPublicKeysPaginator";
9
10
  export * from "./ListQueriesPaginator";
@@ -95,10 +95,12 @@ const _DTes = "DescribeTrails";
95
95
  const _Da = "Dashboards";
96
96
  const _De = "Destination";
97
97
  const _Des = "Description";
98
+ const _Di = "Dimensions";
98
99
  const _E = "Equals";
99
100
  const _EC = "EventsCompleted";
100
101
  const _ECr = "ErrorCode";
101
- const _ECv = "EventCategory";
102
+ const _ECv = "EventCategories";
103
+ const _ECve = "EventCategory";
102
104
  const _EDS = "EventDataStore";
103
105
  const _EDSA = "EventDataStoreArn";
104
106
  const _EDSAEE = "EventDataStoreAlreadyExistsException";
@@ -230,6 +232,7 @@ const _ISmp = "ImportStatus";
230
232
  const _ISmpo = "ImportStatistics";
231
233
  const _ISn = "InsightSelectors";
232
234
  const _ISns = "InsightSelector";
235
+ const _ISnsi = "InsightSource";
233
236
  const _IT = "InsightType";
234
237
  const _ITE = "InvalidTokenException";
235
238
  const _ITNE = "InvalidTrailNameException";
@@ -268,6 +271,9 @@ const _LFVE = "LogFileValidationEnabled";
268
271
  const _LI = "ListImports";
269
272
  const _LIAEID = "LatestIngestionAttemptEventID";
270
273
  const _LIAT = "LatestIngestionAttemptTime";
274
+ const _LID = "ListInsightsData";
275
+ const _LIDR = "ListInsightsDataRequest";
276
+ const _LIDRi = "ListInsightsDataResponse";
271
277
  const _LIEC = "LatestIngestionErrorCode";
272
278
  const _LIF = "ListImportFailures";
273
279
  const _LIFR = "ListImportFailuresRequest";
@@ -497,7 +503,7 @@ const _tNL = "trailNameList";
497
503
  const n0 = "com.amazonaws.cloudtrail";
498
504
  import { TypeRegistry } from "@smithy/core/schema";
499
505
  import { CloudTrailServiceException as __CloudTrailServiceException } from "../models/CloudTrailServiceException";
500
- import { AccessDeniedException as __AccessDeniedException, AccountHasOngoingImportException as __AccountHasOngoingImportException, AccountNotFoundException as __AccountNotFoundException, AccountNotRegisteredException as __AccountNotRegisteredException, AccountRegisteredException as __AccountRegisteredException, CannotDelegateManagementAccountException as __CannotDelegateManagementAccountException, ChannelAlreadyExistsException as __ChannelAlreadyExistsException, ChannelARNInvalidException as __ChannelARNInvalidException, ChannelExistsForEDSException as __ChannelExistsForEDSException, ChannelMaxLimitExceededException as __ChannelMaxLimitExceededException, ChannelNotFoundException as __ChannelNotFoundException, CloudTrailAccessNotEnabledException as __CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException as __CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException as __CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException as __CloudWatchLogsDeliveryUnavailableException, ConcurrentModificationException as __ConcurrentModificationException, ConflictException as __ConflictException, DelegatedAdminAccountLimitExceededException as __DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException as __EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException as __EventDataStoreARNInvalidException, EventDataStoreFederationEnabledException as __EventDataStoreFederationEnabledException, EventDataStoreHasOngoingImportException as __EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException as __EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException as __EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException as __EventDataStoreTerminationProtectedException, GenerateResponseException as __GenerateResponseException, ImportNotFoundException as __ImportNotFoundException, InactiveEventDataStoreException as __InactiveEventDataStoreException, InactiveQueryException as __InactiveQueryException, InsightNotEnabledException as __InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException as __InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException as __InsufficientEncryptionPolicyException, InsufficientIAMAccessPermissionException as __InsufficientIAMAccessPermissionException, InsufficientS3BucketPolicyException as __InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException as __InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException as __InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException as __InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException as __InvalidDateRangeException, InvalidEventCategoryException as __InvalidEventCategoryException, InvalidEventDataStoreCategoryException as __InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException as __InvalidEventDataStoreStatusException, InvalidEventSelectorsException as __InvalidEventSelectorsException, InvalidHomeRegionException as __InvalidHomeRegionException, InvalidImportSourceException as __InvalidImportSourceException, InvalidInsightSelectorsException as __InvalidInsightSelectorsException, InvalidKmsKeyIdException as __InvalidKmsKeyIdException, InvalidLookupAttributesException as __InvalidLookupAttributesException, InvalidMaxResultsException as __InvalidMaxResultsException, InvalidNextTokenException as __InvalidNextTokenException, InvalidParameterCombinationException as __InvalidParameterCombinationException, InvalidParameterException as __InvalidParameterException, InvalidQueryStatementException as __InvalidQueryStatementException, InvalidQueryStatusException as __InvalidQueryStatusException, InvalidS3BucketNameException as __InvalidS3BucketNameException, InvalidS3PrefixException as __InvalidS3PrefixException, InvalidSnsTopicNameException as __InvalidSnsTopicNameException, InvalidSourceException as __InvalidSourceException, InvalidTagParameterException as __InvalidTagParameterException, InvalidTimeRangeException as __InvalidTimeRangeException, InvalidTokenException as __InvalidTokenException, InvalidTrailNameException as __InvalidTrailNameException, KmsException as __KmsException, KmsKeyDisabledException as __KmsKeyDisabledException, KmsKeyNotFoundException as __KmsKeyNotFoundException, MaxConcurrentQueriesException as __MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException as __MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException as __NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException as __NotOrganizationManagementAccountException, NotOrganizationMasterAccountException as __NotOrganizationMasterAccountException, OperationNotPermittedException as __OperationNotPermittedException, OrganizationNotInAllFeaturesModeException as __OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException as __OrganizationsNotInUseException, QueryIdNotFoundException as __QueryIdNotFoundException, ResourceARNNotValidException as __ResourceARNNotValidException, ResourceNotFoundException as __ResourceNotFoundException, ResourcePolicyNotFoundException as __ResourcePolicyNotFoundException, ResourcePolicyNotValidException as __ResourcePolicyNotValidException, ResourceTypeNotSupportedException as __ResourceTypeNotSupportedException, S3BucketDoesNotExistException as __S3BucketDoesNotExistException, ServiceQuotaExceededException as __ServiceQuotaExceededException, TagsLimitExceededException as __TagsLimitExceededException, ThrottlingException as __ThrottlingException, TrailAlreadyExistsException as __TrailAlreadyExistsException, TrailNotFoundException as __TrailNotFoundException, TrailNotProvidedException as __TrailNotProvidedException, UnsupportedOperationException as __UnsupportedOperationException, } from "../models/index";
506
+ import { AccessDeniedException as __AccessDeniedException, AccountHasOngoingImportException as __AccountHasOngoingImportException, AccountNotFoundException as __AccountNotFoundException, AccountNotRegisteredException as __AccountNotRegisteredException, AccountRegisteredException as __AccountRegisteredException, CannotDelegateManagementAccountException as __CannotDelegateManagementAccountException, ChannelAlreadyExistsException as __ChannelAlreadyExistsException, ChannelARNInvalidException as __ChannelARNInvalidException, ChannelExistsForEDSException as __ChannelExistsForEDSException, ChannelMaxLimitExceededException as __ChannelMaxLimitExceededException, ChannelNotFoundException as __ChannelNotFoundException, CloudTrailAccessNotEnabledException as __CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException as __CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException as __CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException as __CloudWatchLogsDeliveryUnavailableException, ConcurrentModificationException as __ConcurrentModificationException, ConflictException as __ConflictException, DelegatedAdminAccountLimitExceededException as __DelegatedAdminAccountLimitExceededException, EventDataStoreAlreadyExistsException as __EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException as __EventDataStoreARNInvalidException, EventDataStoreFederationEnabledException as __EventDataStoreFederationEnabledException, EventDataStoreHasOngoingImportException as __EventDataStoreHasOngoingImportException, EventDataStoreMaxLimitExceededException as __EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException as __EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException as __EventDataStoreTerminationProtectedException, GenerateResponseException as __GenerateResponseException, ImportNotFoundException as __ImportNotFoundException, InactiveEventDataStoreException as __InactiveEventDataStoreException, InactiveQueryException as __InactiveQueryException, InsightNotEnabledException as __InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException as __InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException as __InsufficientEncryptionPolicyException, InsufficientIAMAccessPermissionException as __InsufficientIAMAccessPermissionException, InsufficientS3BucketPolicyException as __InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException as __InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException as __InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException as __InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException as __InvalidDateRangeException, InvalidEventCategoryException as __InvalidEventCategoryException, InvalidEventDataStoreCategoryException as __InvalidEventDataStoreCategoryException, InvalidEventDataStoreStatusException as __InvalidEventDataStoreStatusException, InvalidEventSelectorsException as __InvalidEventSelectorsException, InvalidHomeRegionException as __InvalidHomeRegionException, InvalidImportSourceException as __InvalidImportSourceException, InvalidInsightSelectorsException as __InvalidInsightSelectorsException, InvalidKmsKeyIdException as __InvalidKmsKeyIdException, InvalidLookupAttributesException as __InvalidLookupAttributesException, InvalidMaxResultsException as __InvalidMaxResultsException, InvalidNextTokenException as __InvalidNextTokenException, InvalidParameterCombinationException as __InvalidParameterCombinationException, InvalidParameterException as __InvalidParameterException, InvalidQueryStatementException as __InvalidQueryStatementException, InvalidQueryStatusException as __InvalidQueryStatusException, InvalidS3BucketNameException as __InvalidS3BucketNameException, InvalidS3PrefixException as __InvalidS3PrefixException, InvalidSnsTopicNameException as __InvalidSnsTopicNameException, InvalidSourceException as __InvalidSourceException, InvalidTagParameterException as __InvalidTagParameterException, InvalidTimeRangeException as __InvalidTimeRangeException, InvalidTokenException as __InvalidTokenException, InvalidTrailNameException as __InvalidTrailNameException, KmsException as __KmsException, KmsKeyDisabledException as __KmsKeyDisabledException, KmsKeyNotFoundException as __KmsKeyNotFoundException, MaxConcurrentQueriesException as __MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException as __MaximumNumberOfTrailsExceededException, NoManagementAccountSLRExistsException as __NoManagementAccountSLRExistsException, NotOrganizationManagementAccountException as __NotOrganizationManagementAccountException, NotOrganizationMasterAccountException as __NotOrganizationMasterAccountException, OperationNotPermittedException as __OperationNotPermittedException, OrganizationNotInAllFeaturesModeException as __OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException as __OrganizationsNotInUseException, QueryIdNotFoundException as __QueryIdNotFoundException, ResourceARNNotValidException as __ResourceARNNotValidException, ResourceNotFoundException as __ResourceNotFoundException, ResourcePolicyNotFoundException as __ResourcePolicyNotFoundException, ResourcePolicyNotValidException as __ResourcePolicyNotValidException, ResourceTypeNotSupportedException as __ResourceTypeNotSupportedException, S3BucketDoesNotExistException as __S3BucketDoesNotExistException, ServiceQuotaExceededException as __ServiceQuotaExceededException, TagsLimitExceededException as __TagsLimitExceededException, ThrottlingException as __ThrottlingException, TrailAlreadyExistsException as __TrailAlreadyExistsException, TrailNotFoundException as __TrailNotFoundException, TrailNotProvidedException as __TrailNotProvidedException, UnsupportedOperationException as __UnsupportedOperationException, } from "../models/errors";
501
507
  export var AccessDeniedException = [
502
508
  -3,
503
509
  n0,
@@ -1148,7 +1154,7 @@ export var InsightNotEnabledException = [
1148
1154
  [0],
1149
1155
  ];
1150
1156
  TypeRegistry.for(n0).registerError(InsightNotEnabledException, __InsightNotEnabledException);
1151
- export var InsightSelector = [3, n0, _ISns, 0, [_IT], [0]];
1157
+ export var InsightSelector = [3, n0, _ISns, 0, [_IT, _ECv], [0, 64 | 0]];
1152
1158
  export var InsufficientDependencyServiceAccessPermissionException = [
1153
1159
  -3,
1154
1160
  n0,
@@ -1615,21 +1621,30 @@ export var ListImportFailuresResponse = [
1615
1621
  ];
1616
1622
  export var ListImportsRequest = [3, n0, _LIR, 0, [_MR, _De, _ISmp, _NT], [1, 0, 0, 0]];
1617
1623
  export var ListImportsResponse = [3, n0, _LIRi, 0, [_I, _NT], [() => ImportsList, 0]];
1624
+ export var ListInsightsDataRequest = [
1625
+ 3,
1626
+ n0,
1627
+ _LIDR,
1628
+ 0,
1629
+ [_ISnsi, _DT, _Di, _ST, _ETn, _MR, _NT],
1630
+ [0, 0, 128 | 0, 4, 4, 1, 0],
1631
+ ];
1632
+ export var ListInsightsDataResponse = [3, n0, _LIDRi, 0, [_Eve, _NT], [() => EventsList, 0]];
1618
1633
  export var ListInsightsMetricDataRequest = [
1619
1634
  3,
1620
1635
  n0,
1621
1636
  _LIMDR,
1622
1637
  0,
1623
- [_ES, _EN, _IT, _ECr, _ST, _ETn, _Pe, _DT, _MR, _NT],
1624
- [0, 0, 0, 0, 4, 4, 1, 0, 1, 0],
1638
+ [_TN, _ES, _EN, _IT, _ECr, _ST, _ETn, _Pe, _DT, _MR, _NT],
1639
+ [0, 0, 0, 0, 0, 4, 4, 1, 0, 1, 0],
1625
1640
  ];
1626
1641
  export var ListInsightsMetricDataResponse = [
1627
1642
  3,
1628
1643
  n0,
1629
1644
  _LIMDRi,
1630
1645
  0,
1631
- [_ES, _EN, _IT, _ECr, _Ti, _V, _NT],
1632
- [0, 0, 0, 0, 64 | 4, 64 | 1, 0],
1646
+ [_TARN, _ES, _EN, _IT, _ECr, _Ti, _V, _NT],
1647
+ [0, 0, 0, 0, 0, 64 | 4, 64 | 1, 0],
1633
1648
  ];
1634
1649
  export var ListPublicKeysRequest = [3, n0, _LPKR, 0, [_ST, _ETn, _NT], [4, 4, 0]];
1635
1650
  export var ListPublicKeysResponse = [3, n0, _LPKRi, 0, [_PKL, _NT], [() => PublicKeyList, 0]];
@@ -1652,7 +1667,7 @@ export var LookupEventsRequest = [
1652
1667
  n0,
1653
1668
  _LER,
1654
1669
  0,
1655
- [_LAo, _ST, _ETn, _ECv, _MR, _NT],
1670
+ [_LAo, _ST, _ETn, _ECve, _MR, _NT],
1656
1671
  [() => LookupAttributesList, 4, 4, 0, 1, 0],
1657
1672
  ];
1658
1673
  export var LookupEventsResponse = [3, n0, _LERo, 0, [_Eve, _NT], [() => EventsList, 0]];
@@ -2201,12 +2216,14 @@ export var SearchSampleQueriesSearchResults = [
2201
2216
  0,
2202
2217
  () => SearchSampleQueriesSearchResult,
2203
2218
  ];
2219
+ export var SourceEventCategories = 64 | 0;
2204
2220
  export var TagsList = [1, n0, _TL, 0, () => Tag];
2205
2221
  export var Timestamps = 64 | 4;
2206
2222
  export var TrailList = [1, n0, _TLr, 0, () => Trail];
2207
2223
  export var TrailNameList = 64 | 0;
2208
2224
  export var Trails = [1, n0, _Tra, 0, () => TrailInfo];
2209
2225
  export var WidgetList = [1, n0, _WL, 0, () => Widget];
2226
+ export var ListInsightsDataDimensions = 128 | 0;
2210
2227
  export var QueryParameterValues = 128 | 0;
2211
2228
  export var QueryResultColumn = 128 | 0;
2212
2229
  export var ViewPropertiesMap = 128 | 0;
@@ -2404,6 +2421,14 @@ export var ListImportFailures = [
2404
2421
  () => ListImportFailuresResponse,
2405
2422
  ];
2406
2423
  export var ListImports = [9, n0, _LI, 2, () => ListImportsRequest, () => ListImportsResponse];
2424
+ export var ListInsightsData = [
2425
+ 9,
2426
+ n0,
2427
+ _LID,
2428
+ 2,
2429
+ () => ListInsightsDataRequest,
2430
+ () => ListInsightsDataResponse,
2431
+ ];
2407
2432
  export var ListInsightsMetricData = [
2408
2433
  9,
2409
2434
  n0,
@@ -33,6 +33,7 @@ import { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./comma
33
33
  import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
34
34
  import { ListImportFailuresCommandInput, ListImportFailuresCommandOutput } from "./commands/ListImportFailuresCommand";
35
35
  import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
36
+ import { ListInsightsDataCommandInput, ListInsightsDataCommandOutput } from "./commands/ListInsightsDataCommand";
36
37
  import { ListInsightsMetricDataCommandInput, ListInsightsMetricDataCommandOutput } from "./commands/ListInsightsMetricDataCommand";
37
38
  import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
38
39
  import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
@@ -266,6 +267,12 @@ export interface CloudTrail {
266
267
  listImports(args: ListImportsCommandInput, options?: __HttpHandlerOptions): Promise<ListImportsCommandOutput>;
267
268
  listImports(args: ListImportsCommandInput, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
268
269
  listImports(args: ListImportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
270
+ /**
271
+ * @see {@link ListInsightsDataCommand}
272
+ */
273
+ listInsightsData(args: ListInsightsDataCommandInput, options?: __HttpHandlerOptions): Promise<ListInsightsDataCommandOutput>;
274
+ listInsightsData(args: ListInsightsDataCommandInput, cb: (err: any, data?: ListInsightsDataCommandOutput) => void): void;
275
+ listInsightsData(args: ListInsightsDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInsightsDataCommandOutput) => void): void;
269
276
  /**
270
277
  * @see {@link ListInsightsMetricDataCommand}
271
278
  */
@@ -40,6 +40,7 @@ import { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./comma
40
40
  import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
41
41
  import { ListImportFailuresCommandInput, ListImportFailuresCommandOutput } from "./commands/ListImportFailuresCommand";
42
42
  import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
43
+ import { ListInsightsDataCommandInput, ListInsightsDataCommandOutput } from "./commands/ListInsightsDataCommand";
43
44
  import { ListInsightsMetricDataCommandInput, ListInsightsMetricDataCommandOutput } from "./commands/ListInsightsMetricDataCommand";
44
45
  import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
45
46
  import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
@@ -72,11 +73,11 @@ export { __Client };
72
73
  /**
73
74
  * @public
74
75
  */
75
- export type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateChannelCommandInput | CreateDashboardCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteChannelCommandInput | DeleteDashboardCommandInput | DeleteEventDataStoreCommandInput | DeleteResourcePolicyCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | DisableFederationCommandInput | EnableFederationCommandInput | GenerateQueryCommandInput | GetChannelCommandInput | GetDashboardCommandInput | GetEventConfigurationCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetResourcePolicyCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListDashboardsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListInsightsMetricDataCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventConfigurationCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | PutResourcePolicyCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | SearchSampleQueriesCommandInput | StartDashboardRefreshCommandInput | StartEventDataStoreIngestionCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopEventDataStoreIngestionCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateChannelCommandInput | UpdateDashboardCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
76
+ export type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateChannelCommandInput | CreateDashboardCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteChannelCommandInput | DeleteDashboardCommandInput | DeleteEventDataStoreCommandInput | DeleteResourcePolicyCommandInput | DeleteTrailCommandInput | DeregisterOrganizationDelegatedAdminCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | DisableFederationCommandInput | EnableFederationCommandInput | GenerateQueryCommandInput | GetChannelCommandInput | GetDashboardCommandInput | GetEventConfigurationCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetResourcePolicyCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListDashboardsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListInsightsDataCommandInput | ListInsightsMetricDataCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventConfigurationCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | PutResourcePolicyCommandInput | RegisterOrganizationDelegatedAdminCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | SearchSampleQueriesCommandInput | StartDashboardRefreshCommandInput | StartEventDataStoreIngestionCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopEventDataStoreIngestionCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateChannelCommandInput | UpdateDashboardCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
76
77
  /**
77
78
  * @public
78
79
  */
79
- export type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateChannelCommandOutput | CreateDashboardCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteChannelCommandOutput | DeleteDashboardCommandOutput | DeleteEventDataStoreCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | DisableFederationCommandOutput | EnableFederationCommandOutput | GenerateQueryCommandOutput | GetChannelCommandOutput | GetDashboardCommandOutput | GetEventConfigurationCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetResourcePolicyCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListDashboardsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListInsightsMetricDataCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventConfigurationCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | PutResourcePolicyCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | SearchSampleQueriesCommandOutput | StartDashboardRefreshCommandOutput | StartEventDataStoreIngestionCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopEventDataStoreIngestionCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateChannelCommandOutput | UpdateDashboardCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
80
+ export type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateChannelCommandOutput | CreateDashboardCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteChannelCommandOutput | DeleteDashboardCommandOutput | DeleteEventDataStoreCommandOutput | DeleteResourcePolicyCommandOutput | DeleteTrailCommandOutput | DeregisterOrganizationDelegatedAdminCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | DisableFederationCommandOutput | EnableFederationCommandOutput | GenerateQueryCommandOutput | GetChannelCommandOutput | GetDashboardCommandOutput | GetEventConfigurationCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetResourcePolicyCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListDashboardsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListInsightsDataCommandOutput | ListInsightsMetricDataCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventConfigurationCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | PutResourcePolicyCommandOutput | RegisterOrganizationDelegatedAdminCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | SearchSampleQueriesCommandOutput | StartDashboardRefreshCommandOutput | StartEventDataStoreIngestionCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopEventDataStoreIngestionCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateChannelCommandOutput | UpdateDashboardCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
80
81
  /**
81
82
  * @public
82
83
  */
@@ -233,6 +233,11 @@ declare const CreateEventDataStoreCommand_base: {
233
233
  * that is not a member of an organization. To make this request, sign in using the
234
234
  * credentials of an account that belongs to an organization.</p>
235
235
  *
236
+ * @throws {@link ThrottlingException} (client fault)
237
+ * <p>
238
+ * This exception is thrown when the request rate exceeds the limit.
239
+ * </p>
240
+ *
236
241
  * @throws {@link UnsupportedOperationException} (client fault)
237
242
  * <p>This exception is thrown when the requested operation is not supported.</p>
238
243
  *
@@ -30,6 +30,18 @@ declare const DeleteTrailCommand_base: {
30
30
  * <p>Deletes a trail. This operation must be called from the Region in which the trail was
31
31
  * created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
32
32
  * in other Regions) of a trail that is enabled in all Regions.</p>
33
+ * <important>
34
+ * <p>
35
+ * While deleting a CloudTrail trail is an irreversible action, CloudTrail does not
36
+ * delete log files in the Amazon S3 bucket for that trail, the Amazon S3 bucket itself, or the
37
+ * CloudWatchlog group to which the trail delivers events. Deleting a multi-Region trail
38
+ * will stop logging of events in all Amazon Web Services Regions enabled in your Amazon Web Services account. Deleting a
39
+ * single-Region trail will stop logging of events in that Region only. It will not stop
40
+ * logging of events in other Regions even if the trails in those other Regions have
41
+ * identical names to the deleted trail.
42
+ * </p>
43
+ * <p>For information about account closure and deletion of CloudTrail trails, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-account-closure.html">https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-account-closure.html</a>.</p>
44
+ * </important>
33
45
  * @example
34
46
  * Use a bare-bones client and the command you need to make an API call.
35
47
  * ```javascript
@@ -28,8 +28,8 @@ declare const GetInsightSelectorsCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Describes the settings for the Insights event selectors that you configured for your
31
- * trail or event data store. <code>GetInsightSelectors</code> shows if CloudTrail Insights event logging
32
- * is enabled on the trail or event data store, and if it is, which Insights types are enabled. If you run
31
+ * trail or event data store. <code>GetInsightSelectors</code> shows if CloudTrail Insights logging is enabled
32
+ * and which Insights types are configured with corresponding event categories. If you run
33
33
  * <code>GetInsightSelectors</code> on a trail or event data store that does not have Insights events enabled,
34
34
  * the operation throws the exception <code>InsightNotEnabledException</code>
35
35
  * </p>
@@ -55,6 +55,9 @@ declare const GetInsightSelectorsCommand_base: {
55
55
  * // InsightSelectors: [ // InsightSelectors
56
56
  * // { // InsightSelector
57
57
  * // InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight",
58
+ * // EventCategories: [ // SourceEventCategories
59
+ * // "Management" || "Data",
60
+ * // ],
58
61
  * // },
59
62
  * // ],
60
63
  * // EventDataStoreArn: "STRING_VALUE",
@@ -0,0 +1,126 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
4
+ import { ListInsightsDataRequest, ListInsightsDataResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListInsightsDataCommand}.
14
+ */
15
+ export interface ListInsightsDataCommandInput extends ListInsightsDataRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListInsightsDataCommand}.
21
+ */
22
+ export interface ListInsightsDataCommandOutput extends ListInsightsDataResponse, __MetadataBearer {
23
+ }
24
+ declare const ListInsightsDataCommand_base: {
25
+ new (input: ListInsightsDataCommandInput): import("@smithy/smithy-client").CommandImpl<ListInsightsDataCommandInput, ListInsightsDataCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListInsightsDataCommandInput): import("@smithy/smithy-client").CommandImpl<ListInsightsDataCommandInput, ListInsightsDataCommandOutput, CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns Insights events generated on a trail that logs data events. You can list Insights events that occurred in a Region within the last 90 days.</p>
31
+ * <p>ListInsightsData supports the following Dimensions for Insights events:</p>
32
+ * <ul>
33
+ * <li>
34
+ * <p>Event ID</p>
35
+ * </li>
36
+ * <li>
37
+ * <p>Event name</p>
38
+ * </li>
39
+ * <li>
40
+ * <p>Event source</p>
41
+ * </li>
42
+ * </ul>
43
+ * <p>All dimensions are optional. The default number of results returned is 50, with a
44
+ * maximum of 50 possible. The response includes a token that you can use to get the next page
45
+ * of results.</p>
46
+ * <p>The rate of ListInsightsData requests is limited to two per second, per account, per Region. If
47
+ * this limit is exceeded, a throttling error occurs.</p>
48
+ * @example
49
+ * Use a bare-bones client and the command you need to make an API call.
50
+ * ```javascript
51
+ * import { CloudTrailClient, ListInsightsDataCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
52
+ * // const { CloudTrailClient, ListInsightsDataCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
53
+ * // import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail";
54
+ * const config = {}; // type is CloudTrailClientConfig
55
+ * const client = new CloudTrailClient(config);
56
+ * const input = { // ListInsightsDataRequest
57
+ * InsightSource: "STRING_VALUE", // required
58
+ * DataType: "InsightsEvents", // required
59
+ * Dimensions: { // ListInsightsDataDimensions
60
+ * "<keys>": "STRING_VALUE",
61
+ * },
62
+ * StartTime: new Date("TIMESTAMP"),
63
+ * EndTime: new Date("TIMESTAMP"),
64
+ * MaxResults: Number("int"),
65
+ * NextToken: "STRING_VALUE",
66
+ * };
67
+ * const command = new ListInsightsDataCommand(input);
68
+ * const response = await client.send(command);
69
+ * // { // ListInsightsDataResponse
70
+ * // Events: [ // EventsList
71
+ * // { // Event
72
+ * // EventId: "STRING_VALUE",
73
+ * // EventName: "STRING_VALUE",
74
+ * // ReadOnly: "STRING_VALUE",
75
+ * // AccessKeyId: "STRING_VALUE",
76
+ * // EventTime: new Date("TIMESTAMP"),
77
+ * // EventSource: "STRING_VALUE",
78
+ * // Username: "STRING_VALUE",
79
+ * // Resources: [ // ResourceList
80
+ * // { // Resource
81
+ * // ResourceType: "STRING_VALUE",
82
+ * // ResourceName: "STRING_VALUE",
83
+ * // },
84
+ * // ],
85
+ * // CloudTrailEvent: "STRING_VALUE",
86
+ * // },
87
+ * // ],
88
+ * // NextToken: "STRING_VALUE",
89
+ * // };
90
+ *
91
+ * ```
92
+ *
93
+ * @param ListInsightsDataCommandInput - {@link ListInsightsDataCommandInput}
94
+ * @returns {@link ListInsightsDataCommandOutput}
95
+ * @see {@link ListInsightsDataCommandInput} for command's `input` shape.
96
+ * @see {@link ListInsightsDataCommandOutput} for command's `response` shape.
97
+ * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
98
+ *
99
+ * @throws {@link InvalidParameterException} (client fault)
100
+ * <p>The request includes a parameter that is not valid.</p>
101
+ *
102
+ * @throws {@link OperationNotPermittedException} (client fault)
103
+ * <p>This exception is thrown when the requested operation is not permitted.</p>
104
+ *
105
+ * @throws {@link UnsupportedOperationException} (client fault)
106
+ * <p>This exception is thrown when the requested operation is not supported.</p>
107
+ *
108
+ * @throws {@link CloudTrailServiceException}
109
+ * <p>Base exception class for all service exceptions from CloudTrail service.</p>
110
+ *
111
+ *
112
+ * @public
113
+ */
114
+ export declare class ListInsightsDataCommand extends ListInsightsDataCommand_base {
115
+ /** @internal type navigation helper, not in runtime. */
116
+ protected static __types: {
117
+ api: {
118
+ input: ListInsightsDataRequest;
119
+ output: ListInsightsDataResponse;
120
+ };
121
+ sdk: {
122
+ input: ListInsightsDataCommandInput;
123
+ output: ListInsightsDataCommandOutput;
124
+ };
125
+ };
126
+ }
@@ -42,8 +42,17 @@ declare const ListInsightsMetricDataCommand_base: {
42
42
  * <p>Data points with a period of 3600 seconds (1 hour) are available for 90 days.</p>
43
43
  * </li>
44
44
  * </ul>
45
- * <p>Access to the <code>ListInsightsMetricData</code> API operation is linked to the <code>cloudtrail:LookupEvents</code> action. To use this operation,
45
+ * <p>To use <code>ListInsightsMetricData</code> operation, you must have the following permissions:</p>
46
+ * <ul>
47
+ * <li>
48
+ * <p>If <code>ListInsightsMetricData</code> is invoked with <code>TrailName</code> parameter, access to the <code>ListInsightsMetricData</code> API operation is linked to the <code>cloudtrail:LookupEvents</code> action and <code>cloudtrail:ListInsightsData</code>. To use this operation,
49
+ * you must have permissions to perform the <code>cloudtrail:LookupEvents</code> and <code>cloudtrail:ListInsightsData</code> action on the specific trail.</p>
50
+ * </li>
51
+ * <li>
52
+ * <p>If <code>ListInsightsMetricData</code> is invoked without <code>TrailName</code> parameter, access to the <code>ListInsightsMetricData</code> API operation is linked to the <code>cloudtrail:LookupEvents</code> action only. To use this operation,
46
53
  * you must have permissions to perform the <code>cloudtrail:LookupEvents</code> action.</p>
54
+ * </li>
55
+ * </ul>
47
56
  * @example
48
57
  * Use a bare-bones client and the command you need to make an API call.
49
58
  * ```javascript
@@ -53,6 +62,7 @@ declare const ListInsightsMetricDataCommand_base: {
53
62
  * const config = {}; // type is CloudTrailClientConfig
54
63
  * const client = new CloudTrailClient(config);
55
64
  * const input = { // ListInsightsMetricDataRequest
65
+ * TrailName: "STRING_VALUE",
56
66
  * EventSource: "STRING_VALUE", // required
57
67
  * EventName: "STRING_VALUE", // required
58
68
  * InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight", // required
@@ -67,6 +77,7 @@ declare const ListInsightsMetricDataCommand_base: {
67
77
  * const command = new ListInsightsMetricDataCommand(input);
68
78
  * const response = await client.send(command);
69
79
  * // { // ListInsightsMetricDataResponse
80
+ * // TrailARN: "STRING_VALUE",
70
81
  * // EventSource: "STRING_VALUE",
71
82
  * // EventName: "STRING_VALUE",
72
83
  * // InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight",
@@ -91,6 +102,29 @@ declare const ListInsightsMetricDataCommand_base: {
91
102
  * @throws {@link InvalidParameterException} (client fault)
92
103
  * <p>The request includes a parameter that is not valid.</p>
93
104
  *
105
+ * @throws {@link InvalidTrailNameException} (client fault)
106
+ * <p>This exception is thrown when the provided trail name is not valid. Trail names must
107
+ * meet the following requirements:</p>
108
+ * <ul>
109
+ * <li>
110
+ * <p>Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores
111
+ * (_), or dashes (-)</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>Start with a letter or number, and end with a letter or number</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>Be between 3 and 128 characters</p>
118
+ * </li>
119
+ * <li>
120
+ * <p>Have no adjacent periods, underscores or dashes. Names like
121
+ * <code>my-_namespace</code> and <code>my--namespace</code> are not valid.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>Not be in IP address format (for example, 192.168.5.4)</p>
125
+ * </li>
126
+ * </ul>
127
+ *
94
128
  * @throws {@link OperationNotPermittedException} (client fault)
95
129
  * <p>This exception is thrown when the requested operation is not permitted.</p>
96
130
  *
@@ -27,15 +27,33 @@ declare const PutInsightSelectorsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Lets you enable Insights event logging by specifying the Insights selectors that you
30
+ * <p>Lets you enable Insights event logging on specific event categories by specifying the Insights selectors that you
31
31
  * want to enable on an existing trail or event data store. You also use <code>PutInsightSelectors</code> to turn
32
32
  * off Insights event logging, by passing an empty list of Insights types. The valid Insights
33
33
  * event types are <code>ApiErrorRateInsight</code> and
34
- * <code>ApiCallRateInsight</code>.</p>
34
+ * <code>ApiCallRateInsight</code>, and valid EventCategories are <code>Management</code> and <code>Data</code>.</p>
35
+ * <note>
36
+ * <p>
37
+ * Insights on data events are not supported on event data stores. For event data stores, you can only enable Insights on management events.
38
+ * </p>
39
+ * </note>
35
40
  * <p>To enable Insights on an event data store, you must specify the ARNs (or ID suffix of the ARNs) for the source event data store (<code>EventDataStore</code>) and the destination event data store (<code>InsightsDestination</code>). The source event data store logs management events and enables Insights.
36
41
  * The destination event data store logs Insights events based upon the management event activity of the source event data store. The source and destination event data stores must belong to the same Amazon Web Services account.</p>
37
42
  * <p>To log Insights events for a trail, you must specify the name (<code>TrailName</code>) of the CloudTrail trail for which you want to change or add Insights
38
43
  * selectors.</p>
44
+ * <ul>
45
+ * <li>
46
+ * <p>
47
+ * For Management events Insights: To log CloudTrail Insights on the API call rate, the trail or event data store must log <code>write</code> management events.
48
+ * To log CloudTrail Insights on the API error rate, the trail or event data store must log <code>read</code> or <code>write</code> management events.
49
+ * </p>
50
+ * </li>
51
+ * <li>
52
+ * <p>
53
+ * For Data events Insights: To log CloudTrail Insights on the API call rate or API error rate, the trail must log <code>read</code> or <code>write</code> data events. Data events Insights are not supported on event data store.
54
+ * </p>
55
+ * </li>
56
+ * </ul>
39
57
  * <p>To log CloudTrail Insights events on API call volume, the trail or event data store
40
58
  * must log <code>write</code> management events. To log CloudTrail
41
59
  * Insights events on API error rate, the trail or event data store must log <code>read</code> or
@@ -56,6 +74,9 @@ declare const PutInsightSelectorsCommand_base: {
56
74
  * InsightSelectors: [ // InsightSelectors // required
57
75
  * { // InsightSelector
58
76
  * InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight",
77
+ * EventCategories: [ // SourceEventCategories
78
+ * "Management" || "Data",
79
+ * ],
59
80
  * },
60
81
  * ],
61
82
  * EventDataStore: "STRING_VALUE",
@@ -68,6 +89,9 @@ declare const PutInsightSelectorsCommand_base: {
68
89
  * // InsightSelectors: [ // InsightSelectors
69
90
  * // { // InsightSelector
70
91
  * // InsightType: "ApiCallRateInsight" || "ApiErrorRateInsight",
92
+ * // EventCategories: [ // SourceEventCategories
93
+ * // "Management" || "Data",
94
+ * // ],
71
95
  * // },
72
96
  * // ],
73
97
  * // EventDataStoreArn: "STRING_VALUE",
@@ -136,6 +136,12 @@ declare const UpdateEventDataStoreCommand_base: {
136
136
  * @throws {@link CloudTrailAccessNotEnabledException} (client fault)
137
137
  * <p>This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html#orgs_how-to-enable-disable-trusted-access">How to enable or disable trusted access</a> in the <i>Organizations User Guide</i> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html">Prepare For Creating a Trail For Your Organization</a> in the <i>CloudTrail User Guide</i>.</p>
138
138
  *
139
+ * @throws {@link ConflictException} (client fault)
140
+ * <p>This exception is thrown when the specified resource is not ready for an operation. This
141
+ * can occur when you try to run an operation on a resource before CloudTrail has time
142
+ * to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the
143
+ * operation again.</p>
144
+ *
139
145
  * @throws {@link EventDataStoreAlreadyExistsException} (client fault)
140
146
  * <p>An event data store with that name already exists.</p>
141
147
  *
@@ -244,6 +250,11 @@ declare const UpdateEventDataStoreCommand_base: {
244
250
  * that is not a member of an organization. To make this request, sign in using the
245
251
  * credentials of an account that belongs to an organization.</p>
246
252
  *
253
+ * @throws {@link ThrottlingException} (client fault)
254
+ * <p>
255
+ * This exception is thrown when the request rate exceeds the limit.
256
+ * </p>
257
+ *
247
258
  * @throws {@link UnsupportedOperationException} (client fault)
248
259
  * <p>This exception is thrown when the requested operation is not supported.</p>
249
260
  *
@@ -31,6 +31,7 @@ export * from "./ListDashboardsCommand";
31
31
  export * from "./ListEventDataStoresCommand";
32
32
  export * from "./ListImportFailuresCommand";
33
33
  export * from "./ListImportsCommand";
34
+ export * from "./ListInsightsDataCommand";
34
35
  export * from "./ListInsightsMetricDataCommand";
35
36
  export * from "./ListPublicKeysCommand";
36
37
  export * from "./ListQueriesCommand";
@@ -25,5 +25,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
25
25
  export type { CloudTrailExtensionConfiguration } from "./extensionConfiguration";
26
26
  export * from "./commands";
27
27
  export * from "./pagination";
28
- export * from "./models";
28
+ export * from "./models/enums";
29
+ export * from "./models/errors";
30
+ export type * from "./models/models_0";
29
31
  export { CloudTrailServiceException } from "./models/CloudTrailServiceException";