aws-sdk-cloudtrail 1.113.0 → 1.115.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fde2ce5f7584992769508427c9ce13d46f9b6e22287798721a43f2a03173fa1
4
- data.tar.gz: f5099dd33319dcf3bfb8f880401addb95beb1f1b14c96c5578e9157362190d34
3
+ metadata.gz: 89587cf6142148093974c4ed16491af17de7e6b720c17cecd9d375c83f84d41c
4
+ data.tar.gz: f52ddc4faafd160daabc16bd7e3e03b279fbc579c5c1430f2e707d6d81609f72
5
5
  SHA512:
6
- metadata.gz: 77f5c0395476dcc053ec67192a0c2f7bb4661e37444dbebd3561c3684cc947cc14c85ea76e86ce04134df5420d9c70108fa5620a20ba2786548e2261993c4a03
7
- data.tar.gz: 10245274f396f48e61e1ee3e8f2eb011a0513cd9d5e656b1a84df68051be795005073f57d6fbf0da41d053d9a0f3efc1372ca6711165883a7c188cb5e6f50c74
6
+ metadata.gz: 301da4148807c8c274631294e16d81a4c6cf46e006158f1ed8aa3a6f3bca02c1fbc00662beb4e9589d95dbd807b79de5b796f12974e0db196423d75ad889f560
7
+ data.tar.gz: 95fd50e1b78fc9d02af982cac2d9e0fa7c25711239b817f0435c9d57b981a7cd2f1d5b40ff066f45e8c2561786b4f306cc3913e24355c14fb84865bc825469c9
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.115.0 (2025-11-20)
5
+ ------------------
6
+
7
+ * Feature - AWS launches CloudTrail aggregated events to simplify monitoring of data events at scale. This feature delivers both granular and summarized data events for resources like S3/Lambda, helping security teams identify patterns without custom aggregation logic.
8
+
9
+ 1.114.0 (2025-11-19)
10
+ ------------------
11
+
12
+ * Feature - AWS CloudTrail now supports Insights for data events, expanding beyond management events to automatically detect unusual activity on data plane operations.
13
+
4
14
  1.113.0 (2025-10-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.113.0
1
+ 1.115.0
@@ -1098,10 +1098,10 @@ module Aws::CloudTrail
1098
1098
  # account.
1099
1099
  #
1100
1100
  # @option params [String] :kms_key_id
1101
- # Specifies the KMS key ID to use to encrypt the logs delivered by
1102
- # CloudTrail. The value can be an alias name prefixed by `alias/`, a
1103
- # fully specified ARN to an alias, a fully specified ARN to a key, or a
1104
- # globally unique identifier.
1101
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
1102
+ # delivered by CloudTrail. The value can be an alias name prefixed by
1103
+ # `alias/`, a fully specified ARN to an alias, a fully specified ARN to
1104
+ # a key, or a globally unique identifier.
1105
1105
  #
1106
1106
  # CloudTrail also supports KMS multi-Region keys. For more information
1107
1107
  # about multi-Region keys, see [Using multi-Region keys][1] in the *Key
@@ -1314,6 +1314,24 @@ module Aws::CloudTrail
1314
1314
  # shadow trails (replicated trails in other Regions) of a trail that is
1315
1315
  # enabled in all Regions.
1316
1316
  #
1317
+ # While deleting a CloudTrail trail is an irreversible action,
1318
+ # CloudTrail does not delete log files in the Amazon S3 bucket for that
1319
+ # trail, the Amazon S3 bucket itself, or the CloudWatchlog group to
1320
+ # which the trail delivers events. Deleting a multi-Region trail will
1321
+ # stop logging of events in all Amazon Web Services Regions enabled in
1322
+ # your Amazon Web Services account. Deleting a single-Region trail will
1323
+ # stop logging of events in that Region only. It will not stop logging
1324
+ # of events in other Regions even if the trails in those other Regions
1325
+ # have identical names to the deleted trail.
1326
+ #
1327
+ # For information about account closure and deletion of CloudTrail
1328
+ # trails, see
1329
+ # [https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-account-closure.html][1].
1330
+ #
1331
+ #
1332
+ #
1333
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-account-closure.html
1334
+ #
1317
1335
  # @option params [required, String] :name
1318
1336
  # Specifies the name or the CloudTrail ARN of the trail to be deleted.
1319
1337
  # The following is the format of a trail ARN.
@@ -1796,8 +1814,13 @@ module Aws::CloudTrail
1796
1814
  end
1797
1815
 
1798
1816
  # Retrieves the current event configuration settings for the specified
1799
- # event data store, including details about maximum event size and
1800
- # context key selectors configured for the event data store.
1817
+ # event data store or trail. The response includes maximum event size
1818
+ # configuration, the context key selectors configured for the event data
1819
+ # store, and any aggregation settings configured for the trail.
1820
+ #
1821
+ # @option params [String] :trail_name
1822
+ # The name of the trail for which you want to retrieve event
1823
+ # configuration settings.
1801
1824
  #
1802
1825
  # @option params [String] :event_data_store
1803
1826
  # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
@@ -1806,24 +1829,32 @@ module Aws::CloudTrail
1806
1829
  #
1807
1830
  # @return [Types::GetEventConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1808
1831
  #
1832
+ # * {Types::GetEventConfigurationResponse#trail_arn #trail_arn} => String
1809
1833
  # * {Types::GetEventConfigurationResponse#event_data_store_arn #event_data_store_arn} => String
1810
1834
  # * {Types::GetEventConfigurationResponse#max_event_size #max_event_size} => String
1811
1835
  # * {Types::GetEventConfigurationResponse#context_key_selectors #context_key_selectors} => Array<Types::ContextKeySelector>
1836
+ # * {Types::GetEventConfigurationResponse#aggregation_configurations #aggregation_configurations} => Array<Types::AggregationConfiguration>
1812
1837
  #
1813
1838
  # @example Request syntax with placeholder values
1814
1839
  #
1815
1840
  # resp = client.get_event_configuration({
1841
+ # trail_name: "String",
1816
1842
  # event_data_store: "String",
1817
1843
  # })
1818
1844
  #
1819
1845
  # @example Response structure
1820
1846
  #
1847
+ # resp.trail_arn #=> String
1821
1848
  # resp.event_data_store_arn #=> String
1822
1849
  # resp.max_event_size #=> String, one of "Standard", "Large"
1823
1850
  # resp.context_key_selectors #=> Array
1824
1851
  # resp.context_key_selectors[0].type #=> String, one of "TagContext", "RequestContext"
1825
1852
  # resp.context_key_selectors[0].equals #=> Array
1826
1853
  # resp.context_key_selectors[0].equals[0] #=> String
1854
+ # resp.aggregation_configurations #=> Array
1855
+ # resp.aggregation_configurations[0].templates #=> Array
1856
+ # resp.aggregation_configurations[0].templates[0] #=> String, one of "API_ACTIVITY", "RESOURCE_ACCESS", "USER_ACTIONS"
1857
+ # resp.aggregation_configurations[0].event_category #=> String, one of "Data"
1827
1858
  #
1828
1859
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventConfiguration AWS API Documentation
1829
1860
  #
@@ -2064,10 +2095,10 @@ module Aws::CloudTrail
2064
2095
 
2065
2096
  # Describes the settings for the Insights event selectors that you
2066
2097
  # configured for your trail or event data store. `GetInsightSelectors`
2067
- # shows if CloudTrail Insights event logging is enabled on the trail or
2068
- # event data store, and if it is, which Insights types are enabled. If
2069
- # you run `GetInsightSelectors` on a trail or event data store that does
2070
- # not have Insights events enabled, the operation throws the exception
2098
+ # shows if CloudTrail Insights logging is enabled and which Insights
2099
+ # types are configured with corresponding event categories. If you run
2100
+ # `GetInsightSelectors` on a trail or event data store that does not
2101
+ # have Insights events enabled, the operation throws the exception
2071
2102
  # `InsightNotEnabledException`
2072
2103
  #
2073
2104
  # Specify either the `EventDataStore` parameter to get Insights event
@@ -2129,6 +2160,8 @@ module Aws::CloudTrail
2129
2160
  # resp.trail_arn #=> String
2130
2161
  # resp.insight_selectors #=> Array
2131
2162
  # resp.insight_selectors[0].insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
2163
+ # resp.insight_selectors[0].event_categories #=> Array
2164
+ # resp.insight_selectors[0].event_categories[0] #=> String, one of "Management", "Data"
2132
2165
  # resp.event_data_store_arn #=> String
2133
2166
  # resp.insights_destination #=> String
2134
2167
  #
@@ -2610,6 +2643,106 @@ module Aws::CloudTrail
2610
2643
  req.send_request(options)
2611
2644
  end
2612
2645
 
2646
+ # Returns Insights events generated on a trail that logs data events.
2647
+ # You can list Insights events that occurred in a Region within the last
2648
+ # 90 days.
2649
+ #
2650
+ # ListInsightsData supports the following Dimensions for Insights
2651
+ # events:
2652
+ #
2653
+ # * Event ID
2654
+ #
2655
+ # * Event name
2656
+ #
2657
+ # * Event source
2658
+ #
2659
+ # All dimensions are optional. The default number of results returned is
2660
+ # 50, with a maximum of 50 possible. The response includes a token that
2661
+ # you can use to get the next page of results.
2662
+ #
2663
+ # The rate of ListInsightsData requests is limited to two per second,
2664
+ # per account, per Region. If this limit is exceeded, a throttling error
2665
+ # occurs.
2666
+ #
2667
+ # @option params [required, String] :insight_source
2668
+ # The Amazon Resource Name(ARN) of the trail for which you want to
2669
+ # retrieve Insights events.
2670
+ #
2671
+ # @option params [required, String] :data_type
2672
+ # Specifies the category of events returned. To fetch Insights events,
2673
+ # specify `InsightsEvents` as the value of `DataType`
2674
+ #
2675
+ # @option params [Hash<String,String>] :dimensions
2676
+ # Contains a map of dimensions. Currently the map can contain only one
2677
+ # item.
2678
+ #
2679
+ # @option params [Time,DateTime,Date,Integer,String] :start_time
2680
+ # Specifies that only events that occur after or at the specified time
2681
+ # are returned. If the specified start time is after the specified end
2682
+ # time, an error is returned.
2683
+ #
2684
+ # @option params [Time,DateTime,Date,Integer,String] :end_time
2685
+ # Specifies that only events that occur before or at the specified time
2686
+ # are returned. If the specified end time is before the specified start
2687
+ # time, an error is returned.
2688
+ #
2689
+ # @option params [Integer] :max_results
2690
+ # The number of events to return. Possible values are 1 through 50. The
2691
+ # default is 50.
2692
+ #
2693
+ # @option params [String] :next_token
2694
+ # The token to use to get the next page of results after a previous API
2695
+ # call. This token must be passed in with the same parameters that were
2696
+ # specified in the original call. For example, if the original call
2697
+ # specified a EventName as a dimension with `PutObject` as a value, the
2698
+ # call with NextToken should include those same parameters.
2699
+ #
2700
+ # @return [Types::ListInsightsDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2701
+ #
2702
+ # * {Types::ListInsightsDataResponse#events #events} => Array&lt;Types::Event&gt;
2703
+ # * {Types::ListInsightsDataResponse#next_token #next_token} => String
2704
+ #
2705
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2706
+ #
2707
+ # @example Request syntax with placeholder values
2708
+ #
2709
+ # resp = client.list_insights_data({
2710
+ # insight_source: "ResourceArn", # required
2711
+ # data_type: "InsightsEvents", # required, accepts InsightsEvents
2712
+ # dimensions: {
2713
+ # "EventId" => "ListInsightsDataDimensionValue",
2714
+ # },
2715
+ # start_time: Time.now,
2716
+ # end_time: Time.now,
2717
+ # max_results: 1,
2718
+ # next_token: "PaginationToken",
2719
+ # })
2720
+ #
2721
+ # @example Response structure
2722
+ #
2723
+ # resp.events #=> Array
2724
+ # resp.events[0].event_id #=> String
2725
+ # resp.events[0].event_name #=> String
2726
+ # resp.events[0].read_only #=> String
2727
+ # resp.events[0].access_key_id #=> String
2728
+ # resp.events[0].event_time #=> Time
2729
+ # resp.events[0].event_source #=> String
2730
+ # resp.events[0].username #=> String
2731
+ # resp.events[0].resources #=> Array
2732
+ # resp.events[0].resources[0].resource_type #=> String
2733
+ # resp.events[0].resources[0].resource_name #=> String
2734
+ # resp.events[0].cloud_trail_event #=> String
2735
+ # resp.next_token #=> String
2736
+ #
2737
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsData AWS API Documentation
2738
+ #
2739
+ # @overload list_insights_data(params = {})
2740
+ # @param [Hash] params ({})
2741
+ def list_insights_data(params = {}, options = {})
2742
+ req = build_request(:list_insights_data, params)
2743
+ req.send_request(options)
2744
+ end
2745
+
2613
2746
  # Returns Insights metrics data for trails that have enabled Insights.
2614
2747
  # The request must include the `EventSource`, `EventName`, and
2615
2748
  # `InsightType` parameters.
@@ -2629,9 +2762,28 @@ module Aws::CloudTrail
2629
2762
  # * Data points with a period of 3600 seconds (1 hour) are available for
2630
2763
  # 90 days.
2631
2764
  #
2632
- # Access to the `ListInsightsMetricData` API operation is linked to the
2633
- # `cloudtrail:LookupEvents` action. To use this operation, you must have
2634
- # permissions to perform the `cloudtrail:LookupEvents` action.
2765
+ # To use `ListInsightsMetricData` operation, you must have the following
2766
+ # permissions:
2767
+ #
2768
+ # * If `ListInsightsMetricData` is invoked with `TrailName` parameter,
2769
+ # access to the `ListInsightsMetricData` API operation is linked to
2770
+ # the `cloudtrail:LookupEvents` action and
2771
+ # `cloudtrail:ListInsightsData`. To use this operation, you must have
2772
+ # permissions to perform the `cloudtrail:LookupEvents` and
2773
+ # `cloudtrail:ListInsightsData` action on the specific trail.
2774
+ #
2775
+ # * If `ListInsightsMetricData` is invoked without `TrailName`
2776
+ # parameter, access to the `ListInsightsMetricData` API operation is
2777
+ # linked to the `cloudtrail:LookupEvents` action only. To use this
2778
+ # operation, you must have permissions to perform the
2779
+ # `cloudtrail:LookupEvents` action.
2780
+ #
2781
+ # @option params [String] :trail_name
2782
+ # The Amazon Resource Name(ARN) or name of the trail for which you want
2783
+ # to retrieve Insights metrics data. This parameter should only be
2784
+ # provided to fetch Insights metrics data generated on trails logging
2785
+ # data events. This parameter is not required for Insights metric data
2786
+ # generated on trails logging management events.
2635
2787
  #
2636
2788
  # @option params [required, String] :event_source
2637
2789
  # The Amazon Web Services service to which the request was made, such as
@@ -2692,6 +2844,7 @@ module Aws::CloudTrail
2692
2844
  #
2693
2845
  # @return [Types::ListInsightsMetricDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2694
2846
  #
2847
+ # * {Types::ListInsightsMetricDataResponse#trail_arn #trail_arn} => String
2695
2848
  # * {Types::ListInsightsMetricDataResponse#event_source #event_source} => String
2696
2849
  # * {Types::ListInsightsMetricDataResponse#event_name #event_name} => String
2697
2850
  # * {Types::ListInsightsMetricDataResponse#insight_type #insight_type} => String
@@ -2705,6 +2858,7 @@ module Aws::CloudTrail
2705
2858
  # @example Request syntax with placeholder values
2706
2859
  #
2707
2860
  # resp = client.list_insights_metric_data({
2861
+ # trail_name: "String",
2708
2862
  # event_source: "EventSource", # required
2709
2863
  # event_name: "EventName", # required
2710
2864
  # insight_type: "ApiCallRateInsight", # required, accepts ApiCallRateInsight, ApiErrorRateInsight
@@ -2719,6 +2873,7 @@ module Aws::CloudTrail
2719
2873
  #
2720
2874
  # @example Response structure
2721
2875
  #
2876
+ # resp.trail_arn #=> String
2722
2877
  # resp.event_source #=> String
2723
2878
  # resp.event_name #=> String
2724
2879
  # resp.insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
@@ -3083,49 +3238,72 @@ module Aws::CloudTrail
3083
3238
  end
3084
3239
 
3085
3240
  # Updates the event configuration settings for the specified event data
3086
- # store. You can update the maximum event size and context key
3087
- # selectors.
3241
+ # store or trail. This operation supports updating the maximum event
3242
+ # size, adding or modifying context key selectors for event data store,
3243
+ # and configuring aggregation settings for the trail.
3244
+ #
3245
+ # @option params [String] :trail_name
3246
+ # The name of the trail for which you want to update event configuration
3247
+ # settings.
3088
3248
  #
3089
3249
  # @option params [String] :event_data_store
3090
3250
  # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
3091
- # data store for which you want to update event configuration settings.
3251
+ # data store for which event configuration settings are updated.
3092
3252
  #
3093
- # @option params [required, String] :max_event_size
3253
+ # @option params [String] :max_event_size
3094
3254
  # The maximum allowed size for events to be stored in the specified
3095
3255
  # event data store. If you are using context key selectors, MaxEventSize
3096
3256
  # must be set to Large.
3097
3257
  #
3098
- # @option params [required, Array<Types::ContextKeySelector>] :context_key_selectors
3258
+ # @option params [Array<Types::ContextKeySelector>] :context_key_selectors
3099
3259
  # A list of context key selectors that will be included to provide
3100
3260
  # enriched event data.
3101
3261
  #
3262
+ # @option params [Array<Types::AggregationConfiguration>] :aggregation_configurations
3263
+ # The list of aggregation configurations that you want to configure for
3264
+ # the trail.
3265
+ #
3102
3266
  # @return [Types::PutEventConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3103
3267
  #
3268
+ # * {Types::PutEventConfigurationResponse#trail_arn #trail_arn} => String
3104
3269
  # * {Types::PutEventConfigurationResponse#event_data_store_arn #event_data_store_arn} => String
3105
3270
  # * {Types::PutEventConfigurationResponse#max_event_size #max_event_size} => String
3106
3271
  # * {Types::PutEventConfigurationResponse#context_key_selectors #context_key_selectors} => Array&lt;Types::ContextKeySelector&gt;
3272
+ # * {Types::PutEventConfigurationResponse#aggregation_configurations #aggregation_configurations} => Array&lt;Types::AggregationConfiguration&gt;
3107
3273
  #
3108
3274
  # @example Request syntax with placeholder values
3109
3275
  #
3110
3276
  # resp = client.put_event_configuration({
3277
+ # trail_name: "String",
3111
3278
  # event_data_store: "String",
3112
- # max_event_size: "Standard", # required, accepts Standard, Large
3113
- # context_key_selectors: [ # required
3279
+ # max_event_size: "Standard", # accepts Standard, Large
3280
+ # context_key_selectors: [
3114
3281
  # {
3115
3282
  # type: "TagContext", # required, accepts TagContext, RequestContext
3116
3283
  # equals: ["OperatorTargetListMember"], # required
3117
3284
  # },
3118
3285
  # ],
3286
+ # aggregation_configurations: [
3287
+ # {
3288
+ # templates: ["API_ACTIVITY"], # required, accepts API_ACTIVITY, RESOURCE_ACCESS, USER_ACTIONS
3289
+ # event_category: "Data", # required, accepts Data
3290
+ # },
3291
+ # ],
3119
3292
  # })
3120
3293
  #
3121
3294
  # @example Response structure
3122
3295
  #
3296
+ # resp.trail_arn #=> String
3123
3297
  # resp.event_data_store_arn #=> String
3124
3298
  # resp.max_event_size #=> String, one of "Standard", "Large"
3125
3299
  # resp.context_key_selectors #=> Array
3126
3300
  # resp.context_key_selectors[0].type #=> String, one of "TagContext", "RequestContext"
3127
3301
  # resp.context_key_selectors[0].equals #=> Array
3128
3302
  # resp.context_key_selectors[0].equals[0] #=> String
3303
+ # resp.aggregation_configurations #=> Array
3304
+ # resp.aggregation_configurations[0].templates #=> Array
3305
+ # resp.aggregation_configurations[0].templates[0] #=> String, one of "API_ACTIVITY", "RESOURCE_ACCESS", "USER_ACTIONS"
3306
+ # resp.aggregation_configurations[0].event_category #=> String, one of "Data"
3129
3307
  #
3130
3308
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventConfiguration AWS API Documentation
3131
3309
  #
@@ -3346,12 +3524,18 @@ module Aws::CloudTrail
3346
3524
  req.send_request(options)
3347
3525
  end
3348
3526
 
3349
- # Lets you enable Insights event logging by specifying the Insights
3350
- # selectors that you want to enable on an existing trail or event data
3351
- # store. You also use `PutInsightSelectors` to turn off Insights event
3352
- # logging, by passing an empty list of Insights types. The valid
3353
- # Insights event types are `ApiErrorRateInsight` and
3354
- # `ApiCallRateInsight`.
3527
+ # Lets you enable Insights event logging on specific event categories by
3528
+ # specifying the Insights selectors that you want to enable on an
3529
+ # existing trail or event data store. You also use `PutInsightSelectors`
3530
+ # to turn off Insights event logging, by passing an empty list of
3531
+ # Insights types. The valid Insights event types are
3532
+ # `ApiErrorRateInsight` and `ApiCallRateInsight`, and valid
3533
+ # EventCategories are `Management` and `Data`.
3534
+ #
3535
+ # <note markdown="1"> Insights on data events are not supported on event data stores. For
3536
+ # event data stores, you can only enable Insights on management events.
3537
+ #
3538
+ # </note>
3355
3539
  #
3356
3540
  # To enable Insights on an event data store, you must specify the ARNs
3357
3541
  # (or ID suffix of the ARNs) for the source event data store
@@ -3366,6 +3550,16 @@ module Aws::CloudTrail
3366
3550
  # (`TrailName`) of the CloudTrail trail for which you want to change or
3367
3551
  # add Insights selectors.
3368
3552
  #
3553
+ # * For Management events Insights: To log CloudTrail Insights on the
3554
+ # API call rate, the trail or event data store must log `write`
3555
+ # management events. To log CloudTrail Insights on the API error rate,
3556
+ # the trail or event data store must log `read` or `write` management
3557
+ # events.
3558
+ #
3559
+ # * For Data events Insights: To log CloudTrail Insights on the API call
3560
+ # rate or API error rate, the trail must log `read` or `write` data
3561
+ # events. Data events Insights are not supported on event data store.
3562
+ #
3369
3563
  # To log CloudTrail Insights events on API call volume, the trail or
3370
3564
  # event data store must log `write` management events. To log CloudTrail
3371
3565
  # Insights events on API error rate, the trail or event data store must
@@ -3389,17 +3583,19 @@ module Aws::CloudTrail
3389
3583
  # `InsightsDestination` parameters.
3390
3584
  #
3391
3585
  # @option params [required, Array<Types::InsightSelector>] :insight_selectors
3392
- # A JSON string that contains the Insights types you want to log on a
3393
- # trail or event data store. `ApiCallRateInsight` and
3394
- # `ApiErrorRateInsight` are valid Insight types.
3586
+ # Contains the Insights types you want to log on a specific category of
3587
+ # events on a trail or event data store. `ApiCallRateInsight` and
3588
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory field
3589
+ # can specify `Management` or `Data` events or both. For event data
3590
+ # store, you can log Insights for management events only.
3395
3591
  #
3396
3592
  # The `ApiCallRateInsight` Insights type analyzes write-only management
3397
- # API calls that are aggregated per minute against a baseline API call
3398
- # volume.
3593
+ # API calls or read and write data API calls that are aggregated per
3594
+ # minute against a baseline API call volume.
3399
3595
  #
3400
- # The `ApiErrorRateInsight` Insights type analyzes management API calls
3401
- # that result in error codes. The error is shown if the API call is
3402
- # unsuccessful.
3596
+ # The `ApiErrorRateInsight` Insights type analyzes management and data
3597
+ # API calls that result in error codes. The error is shown if the API
3598
+ # call is unsuccessful.
3403
3599
  #
3404
3600
  # @option params [String] :event_data_store
3405
3601
  # The ARN (or ID suffix of the ARN) of the source event data store for
@@ -3431,6 +3627,7 @@ module Aws::CloudTrail
3431
3627
  # insight_selectors: [ # required
3432
3628
  # {
3433
3629
  # insight_type: "ApiCallRateInsight", # accepts ApiCallRateInsight, ApiErrorRateInsight
3630
+ # event_categories: ["Management"], # accepts Management, Data
3434
3631
  # },
3435
3632
  # ],
3436
3633
  # event_data_store: "EventDataStoreArn",
@@ -3442,6 +3639,8 @@ module Aws::CloudTrail
3442
3639
  # resp.trail_arn #=> String
3443
3640
  # resp.insight_selectors #=> Array
3444
3641
  # resp.insight_selectors[0].insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
3642
+ # resp.insight_selectors[0].event_categories #=> Array
3643
+ # resp.insight_selectors[0].event_categories[0] #=> String, one of "Management", "Data"
3445
3644
  # resp.event_data_store_arn #=> String
3446
3645
  # resp.insights_destination #=> String
3447
3646
  #
@@ -4569,10 +4768,10 @@ module Aws::CloudTrail
4569
4768
  # account.
4570
4769
  #
4571
4770
  # @option params [String] :kms_key_id
4572
- # Specifies the KMS key ID to use to encrypt the logs delivered by
4573
- # CloudTrail. The value can be an alias name prefixed by "alias/", a
4574
- # fully specified ARN to an alias, a fully specified ARN to a key, or a
4575
- # globally unique identifier.
4771
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
4772
+ # delivered by CloudTrail. The value can be an alias name prefixed by
4773
+ # "alias/", a fully specified ARN to an alias, a fully specified ARN
4774
+ # to a key, or a globally unique identifier.
4576
4775
  #
4577
4776
  # CloudTrail also supports KMS multi-Region keys. For more information
4578
4777
  # about multi-Region keys, see [Using multi-Region keys][1] in the *Key
@@ -4685,7 +4884,7 @@ module Aws::CloudTrail
4685
4884
  tracer: tracer
4686
4885
  )
4687
4886
  context[:gem_name] = 'aws-sdk-cloudtrail'
4688
- context[:gem_version] = '1.113.0'
4887
+ context[:gem_version] = '1.115.0'
4689
4888
  Seahorse::Client::Request.new(handlers, context)
4690
4889
  end
4691
4890