aws-sdk-cloudtrail 1.113.0 → 1.114.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: 71a61e3c0704861fffcc08f729a200ebe801162783fe49524d501ff4635e6119
4
+ data.tar.gz: 8a0a3bd92ab177c5e5e0ecce47031a5189408939381c0d3f3aa420142b551630
5
5
  SHA512:
6
- metadata.gz: 77f5c0395476dcc053ec67192a0c2f7bb4661e37444dbebd3561c3684cc947cc14c85ea76e86ce04134df5420d9c70108fa5620a20ba2786548e2261993c4a03
7
- data.tar.gz: 10245274f396f48e61e1ee3e8f2eb011a0513cd9d5e656b1a84df68051be795005073f57d6fbf0da41d053d9a0f3efc1372ca6711165883a7c188cb5e6f50c74
6
+ metadata.gz: 875af53c2791f73e33ee181087b2f32abea6679c59bf2a673f793339b154a72c39e137cf224b7d9195bd4d3838f7d7c826014708d58320bb90efa4ed5572bbde
7
+ data.tar.gz: b0a458c66be02376025bcf6ae8d5934353edd17dcd51c9f78d44134e971d142afca6abdd0b9aaf876f9cbf824b3dc3bcb3d1696e63d159816be135c57ddd20f6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.114.0 (2025-11-19)
5
+ ------------------
6
+
7
+ * Feature - AWS CloudTrail now supports Insights for data events, expanding beyond management events to automatically detect unusual activity on data plane operations.
8
+
4
9
  1.113.0 (2025-10-24)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.113.0
1
+ 1.114.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.
@@ -2064,10 +2082,10 @@ module Aws::CloudTrail
2064
2082
 
2065
2083
  # Describes the settings for the Insights event selectors that you
2066
2084
  # 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
2085
+ # shows if CloudTrail Insights logging is enabled and which Insights
2086
+ # types are configured with corresponding event categories. If you run
2087
+ # `GetInsightSelectors` on a trail or event data store that does not
2088
+ # have Insights events enabled, the operation throws the exception
2071
2089
  # `InsightNotEnabledException`
2072
2090
  #
2073
2091
  # Specify either the `EventDataStore` parameter to get Insights event
@@ -2129,6 +2147,8 @@ module Aws::CloudTrail
2129
2147
  # resp.trail_arn #=> String
2130
2148
  # resp.insight_selectors #=> Array
2131
2149
  # resp.insight_selectors[0].insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
2150
+ # resp.insight_selectors[0].event_categories #=> Array
2151
+ # resp.insight_selectors[0].event_categories[0] #=> String, one of "Management", "Data"
2132
2152
  # resp.event_data_store_arn #=> String
2133
2153
  # resp.insights_destination #=> String
2134
2154
  #
@@ -2610,6 +2630,106 @@ module Aws::CloudTrail
2610
2630
  req.send_request(options)
2611
2631
  end
2612
2632
 
2633
+ # Returns Insights events generated on a trail that logs data events.
2634
+ # You can list Insights events that occurred in a Region within the last
2635
+ # 90 days.
2636
+ #
2637
+ # ListInsightsData supports the following Dimensions for Insights
2638
+ # events:
2639
+ #
2640
+ # * Event ID
2641
+ #
2642
+ # * Event name
2643
+ #
2644
+ # * Event source
2645
+ #
2646
+ # All dimensions are optional. The default number of results returned is
2647
+ # 50, with a maximum of 50 possible. The response includes a token that
2648
+ # you can use to get the next page of results.
2649
+ #
2650
+ # The rate of ListInsightsData requests is limited to two per second,
2651
+ # per account, per Region. If this limit is exceeded, a throttling error
2652
+ # occurs.
2653
+ #
2654
+ # @option params [required, String] :insight_source
2655
+ # The Amazon Resource Name(ARN) of the trail for which you want to
2656
+ # retrieve Insights events.
2657
+ #
2658
+ # @option params [required, String] :data_type
2659
+ # Specifies the category of events returned. To fetch Insights events,
2660
+ # specify `InsightsEvents` as the value of `DataType`
2661
+ #
2662
+ # @option params [Hash<String,String>] :dimensions
2663
+ # Contains a map of dimensions. Currently the map can contain only one
2664
+ # item.
2665
+ #
2666
+ # @option params [Time,DateTime,Date,Integer,String] :start_time
2667
+ # Specifies that only events that occur after or at the specified time
2668
+ # are returned. If the specified start time is after the specified end
2669
+ # time, an error is returned.
2670
+ #
2671
+ # @option params [Time,DateTime,Date,Integer,String] :end_time
2672
+ # Specifies that only events that occur before or at the specified time
2673
+ # are returned. If the specified end time is before the specified start
2674
+ # time, an error is returned.
2675
+ #
2676
+ # @option params [Integer] :max_results
2677
+ # The number of events to return. Possible values are 1 through 50. The
2678
+ # default is 50.
2679
+ #
2680
+ # @option params [String] :next_token
2681
+ # The token to use to get the next page of results after a previous API
2682
+ # call. This token must be passed in with the same parameters that were
2683
+ # specified in the original call. For example, if the original call
2684
+ # specified a EventName as a dimension with `PutObject` as a value, the
2685
+ # call with NextToken should include those same parameters.
2686
+ #
2687
+ # @return [Types::ListInsightsDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2688
+ #
2689
+ # * {Types::ListInsightsDataResponse#events #events} => Array&lt;Types::Event&gt;
2690
+ # * {Types::ListInsightsDataResponse#next_token #next_token} => String
2691
+ #
2692
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2693
+ #
2694
+ # @example Request syntax with placeholder values
2695
+ #
2696
+ # resp = client.list_insights_data({
2697
+ # insight_source: "ResourceArn", # required
2698
+ # data_type: "InsightsEvents", # required, accepts InsightsEvents
2699
+ # dimensions: {
2700
+ # "EventId" => "ListInsightsDataDimensionValue",
2701
+ # },
2702
+ # start_time: Time.now,
2703
+ # end_time: Time.now,
2704
+ # max_results: 1,
2705
+ # next_token: "PaginationToken",
2706
+ # })
2707
+ #
2708
+ # @example Response structure
2709
+ #
2710
+ # resp.events #=> Array
2711
+ # resp.events[0].event_id #=> String
2712
+ # resp.events[0].event_name #=> String
2713
+ # resp.events[0].read_only #=> String
2714
+ # resp.events[0].access_key_id #=> String
2715
+ # resp.events[0].event_time #=> Time
2716
+ # resp.events[0].event_source #=> String
2717
+ # resp.events[0].username #=> String
2718
+ # resp.events[0].resources #=> Array
2719
+ # resp.events[0].resources[0].resource_type #=> String
2720
+ # resp.events[0].resources[0].resource_name #=> String
2721
+ # resp.events[0].cloud_trail_event #=> String
2722
+ # resp.next_token #=> String
2723
+ #
2724
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsData AWS API Documentation
2725
+ #
2726
+ # @overload list_insights_data(params = {})
2727
+ # @param [Hash] params ({})
2728
+ def list_insights_data(params = {}, options = {})
2729
+ req = build_request(:list_insights_data, params)
2730
+ req.send_request(options)
2731
+ end
2732
+
2613
2733
  # Returns Insights metrics data for trails that have enabled Insights.
2614
2734
  # The request must include the `EventSource`, `EventName`, and
2615
2735
  # `InsightType` parameters.
@@ -2629,9 +2749,28 @@ module Aws::CloudTrail
2629
2749
  # * Data points with a period of 3600 seconds (1 hour) are available for
2630
2750
  # 90 days.
2631
2751
  #
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.
2752
+ # To use `ListInsightsMetricData` operation, you must have the following
2753
+ # permissions:
2754
+ #
2755
+ # * If `ListInsightsMetricData` is invoked with `TrailName` parameter,
2756
+ # access to the `ListInsightsMetricData` API operation is linked to
2757
+ # the `cloudtrail:LookupEvents` action and
2758
+ # `cloudtrail:ListInsightsData`. To use this operation, you must have
2759
+ # permissions to perform the `cloudtrail:LookupEvents` and
2760
+ # `cloudtrail:ListInsightsData` action on the specific trail.
2761
+ #
2762
+ # * If `ListInsightsMetricData` is invoked without `TrailName`
2763
+ # parameter, access to the `ListInsightsMetricData` API operation is
2764
+ # linked to the `cloudtrail:LookupEvents` action only. To use this
2765
+ # operation, you must have permissions to perform the
2766
+ # `cloudtrail:LookupEvents` action.
2767
+ #
2768
+ # @option params [String] :trail_name
2769
+ # The Amazon Resource Name(ARN) or name of the trail for which you want
2770
+ # to retrieve Insights metrics data. This parameter should only be
2771
+ # provided to fetch Insights metrics data generated on trails logging
2772
+ # data events. This parameter is not required for Insights metric data
2773
+ # generated on trails logging management events.
2635
2774
  #
2636
2775
  # @option params [required, String] :event_source
2637
2776
  # The Amazon Web Services service to which the request was made, such as
@@ -2692,6 +2831,7 @@ module Aws::CloudTrail
2692
2831
  #
2693
2832
  # @return [Types::ListInsightsMetricDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2694
2833
  #
2834
+ # * {Types::ListInsightsMetricDataResponse#trail_arn #trail_arn} => String
2695
2835
  # * {Types::ListInsightsMetricDataResponse#event_source #event_source} => String
2696
2836
  # * {Types::ListInsightsMetricDataResponse#event_name #event_name} => String
2697
2837
  # * {Types::ListInsightsMetricDataResponse#insight_type #insight_type} => String
@@ -2705,6 +2845,7 @@ module Aws::CloudTrail
2705
2845
  # @example Request syntax with placeholder values
2706
2846
  #
2707
2847
  # resp = client.list_insights_metric_data({
2848
+ # trail_name: "String",
2708
2849
  # event_source: "EventSource", # required
2709
2850
  # event_name: "EventName", # required
2710
2851
  # insight_type: "ApiCallRateInsight", # required, accepts ApiCallRateInsight, ApiErrorRateInsight
@@ -2719,6 +2860,7 @@ module Aws::CloudTrail
2719
2860
  #
2720
2861
  # @example Response structure
2721
2862
  #
2863
+ # resp.trail_arn #=> String
2722
2864
  # resp.event_source #=> String
2723
2865
  # resp.event_name #=> String
2724
2866
  # resp.insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
@@ -3346,12 +3488,18 @@ module Aws::CloudTrail
3346
3488
  req.send_request(options)
3347
3489
  end
3348
3490
 
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`.
3491
+ # Lets you enable Insights event logging on specific event categories by
3492
+ # specifying the Insights selectors that you want to enable on an
3493
+ # existing trail or event data store. You also use `PutInsightSelectors`
3494
+ # to turn off Insights event logging, by passing an empty list of
3495
+ # Insights types. The valid Insights event types are
3496
+ # `ApiErrorRateInsight` and `ApiCallRateInsight`, and valid
3497
+ # EventCategories are `Management` and `Data`.
3498
+ #
3499
+ # <note markdown="1"> Insights on data events are not supported on event data stores. For
3500
+ # event data stores, you can only enable Insights on management events.
3501
+ #
3502
+ # </note>
3355
3503
  #
3356
3504
  # To enable Insights on an event data store, you must specify the ARNs
3357
3505
  # (or ID suffix of the ARNs) for the source event data store
@@ -3366,6 +3514,16 @@ module Aws::CloudTrail
3366
3514
  # (`TrailName`) of the CloudTrail trail for which you want to change or
3367
3515
  # add Insights selectors.
3368
3516
  #
3517
+ # * For Management events Insights: To log CloudTrail Insights on the
3518
+ # API call rate, the trail or event data store must log `write`
3519
+ # management events. To log CloudTrail Insights on the API error rate,
3520
+ # the trail or event data store must log `read` or `write` management
3521
+ # events.
3522
+ #
3523
+ # * For Data events Insights: To log CloudTrail Insights on the API call
3524
+ # rate or API error rate, the trail must log `read` or `write` data
3525
+ # events. Data events Insights are not supported on event data store.
3526
+ #
3369
3527
  # To log CloudTrail Insights events on API call volume, the trail or
3370
3528
  # event data store must log `write` management events. To log CloudTrail
3371
3529
  # Insights events on API error rate, the trail or event data store must
@@ -3389,17 +3547,19 @@ module Aws::CloudTrail
3389
3547
  # `InsightsDestination` parameters.
3390
3548
  #
3391
3549
  # @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.
3550
+ # Contains the Insights types you want to log on a specific category of
3551
+ # events on a trail or event data store. `ApiCallRateInsight` and
3552
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory field
3553
+ # can specify `Management` or `Data` events or both. For event data
3554
+ # store, you can log Insights for management events only.
3395
3555
  #
3396
3556
  # The `ApiCallRateInsight` Insights type analyzes write-only management
3397
- # API calls that are aggregated per minute against a baseline API call
3398
- # volume.
3557
+ # API calls or read and write data API calls that are aggregated per
3558
+ # minute against a baseline API call volume.
3399
3559
  #
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.
3560
+ # The `ApiErrorRateInsight` Insights type analyzes management and data
3561
+ # API calls that result in error codes. The error is shown if the API
3562
+ # call is unsuccessful.
3403
3563
  #
3404
3564
  # @option params [String] :event_data_store
3405
3565
  # The ARN (or ID suffix of the ARN) of the source event data store for
@@ -3431,6 +3591,7 @@ module Aws::CloudTrail
3431
3591
  # insight_selectors: [ # required
3432
3592
  # {
3433
3593
  # insight_type: "ApiCallRateInsight", # accepts ApiCallRateInsight, ApiErrorRateInsight
3594
+ # event_categories: ["Management"], # accepts Management, Data
3434
3595
  # },
3435
3596
  # ],
3436
3597
  # event_data_store: "EventDataStoreArn",
@@ -3442,6 +3603,8 @@ module Aws::CloudTrail
3442
3603
  # resp.trail_arn #=> String
3443
3604
  # resp.insight_selectors #=> Array
3444
3605
  # resp.insight_selectors[0].insight_type #=> String, one of "ApiCallRateInsight", "ApiErrorRateInsight"
3606
+ # resp.insight_selectors[0].event_categories #=> Array
3607
+ # resp.insight_selectors[0].event_categories[0] #=> String, one of "Management", "Data"
3445
3608
  # resp.event_data_store_arn #=> String
3446
3609
  # resp.insights_destination #=> String
3447
3610
  #
@@ -4569,10 +4732,10 @@ module Aws::CloudTrail
4569
4732
  # account.
4570
4733
  #
4571
4734
  # @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.
4735
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
4736
+ # delivered by CloudTrail. The value can be an alias name prefixed by
4737
+ # "alias/", a fully specified ARN to an alias, a fully specified ARN
4738
+ # to a key, or a globally unique identifier.
4576
4739
  #
4577
4740
  # CloudTrail also supports KMS multi-Region keys. For more information
4578
4741
  # about multi-Region keys, see [Using multi-Region keys][1] in the *Key
@@ -4685,7 +4848,7 @@ module Aws::CloudTrail
4685
4848
  tracer: tracer
4686
4849
  )
4687
4850
  context[:gem_name] = 'aws-sdk-cloudtrail'
4688
- context[:gem_version] = '1.113.0'
4851
+ context[:gem_version] = '1.114.0'
4689
4852
  Seahorse::Client::Request.new(handlers, context)
4690
4853
  end
4691
4854
 
@@ -217,6 +217,13 @@ module Aws::CloudTrail
217
217
  ListImportsMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportsMaxResultsCount')
218
218
  ListImportsRequest = Shapes::StructureShape.new(name: 'ListImportsRequest')
219
219
  ListImportsResponse = Shapes::StructureShape.new(name: 'ListImportsResponse')
220
+ ListInsightsDataDimensionKey = Shapes::StringShape.new(name: 'ListInsightsDataDimensionKey')
221
+ ListInsightsDataDimensionValue = Shapes::StringShape.new(name: 'ListInsightsDataDimensionValue')
222
+ ListInsightsDataDimensions = Shapes::MapShape.new(name: 'ListInsightsDataDimensions')
223
+ ListInsightsDataMaxResultsCount = Shapes::IntegerShape.new(name: 'ListInsightsDataMaxResultsCount')
224
+ ListInsightsDataRequest = Shapes::StructureShape.new(name: 'ListInsightsDataRequest')
225
+ ListInsightsDataResponse = Shapes::StructureShape.new(name: 'ListInsightsDataResponse')
226
+ ListInsightsDataType = Shapes::StringShape.new(name: 'ListInsightsDataType')
220
227
  ListInsightsMetricDataRequest = Shapes::StructureShape.new(name: 'ListInsightsMetricDataRequest')
221
228
  ListInsightsMetricDataResponse = Shapes::StructureShape.new(name: 'ListInsightsMetricDataResponse')
222
229
  ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
@@ -331,6 +338,8 @@ module Aws::CloudTrail
331
338
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
332
339
  Source = Shapes::StringShape.new(name: 'Source')
333
340
  SourceConfig = Shapes::StructureShape.new(name: 'SourceConfig')
341
+ SourceEventCategories = Shapes::ListShape.new(name: 'SourceEventCategories')
342
+ SourceEventCategory = Shapes::StringShape.new(name: 'SourceEventCategory')
334
343
  StartDashboardRefreshRequest = Shapes::StructureShape.new(name: 'StartDashboardRefreshRequest')
335
344
  StartDashboardRefreshResponse = Shapes::StructureShape.new(name: 'StartDashboardRefreshResponse')
336
345
  StartEventDataStoreIngestionRequest = Shapes::StructureShape.new(name: 'StartEventDataStoreIngestionRequest')
@@ -885,6 +894,7 @@ module Aws::CloudTrail
885
894
  InsightNotEnabledException.struct_class = Types::InsightNotEnabledException
886
895
 
887
896
  InsightSelector.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, location_name: "InsightType"))
897
+ InsightSelector.add_member(:event_categories, Shapes::ShapeRef.new(shape: SourceEventCategories, location_name: "EventCategories"))
888
898
  InsightSelector.struct_class = Types::InsightSelector
889
899
 
890
900
  InsightSelectors.member = Shapes::ShapeRef.new(shape: InsightSelector)
@@ -1004,6 +1014,23 @@ module Aws::CloudTrail
1004
1014
  ListImportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
1005
1015
  ListImportsResponse.struct_class = Types::ListImportsResponse
1006
1016
 
1017
+ ListInsightsDataDimensions.key = Shapes::ShapeRef.new(shape: ListInsightsDataDimensionKey)
1018
+ ListInsightsDataDimensions.value = Shapes::ShapeRef.new(shape: ListInsightsDataDimensionValue)
1019
+
1020
+ ListInsightsDataRequest.add_member(:insight_source, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "InsightSource"))
1021
+ ListInsightsDataRequest.add_member(:data_type, Shapes::ShapeRef.new(shape: ListInsightsDataType, required: true, location_name: "DataType"))
1022
+ ListInsightsDataRequest.add_member(:dimensions, Shapes::ShapeRef.new(shape: ListInsightsDataDimensions, location_name: "Dimensions"))
1023
+ ListInsightsDataRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
1024
+ ListInsightsDataRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
1025
+ ListInsightsDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListInsightsDataMaxResultsCount, location_name: "MaxResults"))
1026
+ ListInsightsDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
1027
+ ListInsightsDataRequest.struct_class = Types::ListInsightsDataRequest
1028
+
1029
+ ListInsightsDataResponse.add_member(:events, Shapes::ShapeRef.new(shape: EventsList, location_name: "Events"))
1030
+ ListInsightsDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
1031
+ ListInsightsDataResponse.struct_class = Types::ListInsightsDataResponse
1032
+
1033
+ ListInsightsMetricDataRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
1007
1034
  ListInsightsMetricDataRequest.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, required: true, location_name: "EventSource"))
1008
1035
  ListInsightsMetricDataRequest.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, required: true, location_name: "EventName"))
1009
1036
  ListInsightsMetricDataRequest.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, required: true, location_name: "InsightType"))
@@ -1016,6 +1043,7 @@ module Aws::CloudTrail
1016
1043
  ListInsightsMetricDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: InsightsMetricNextToken, location_name: "NextToken"))
1017
1044
  ListInsightsMetricDataRequest.struct_class = Types::ListInsightsMetricDataRequest
1018
1045
 
1046
+ ListInsightsMetricDataResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
1019
1047
  ListInsightsMetricDataResponse.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, location_name: "EventSource"))
1020
1048
  ListInsightsMetricDataResponse.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, location_name: "EventName"))
1021
1049
  ListInsightsMetricDataResponse.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, location_name: "InsightType"))
@@ -1285,6 +1313,8 @@ module Aws::CloudTrail
1285
1313
  SourceConfig.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
1286
1314
  SourceConfig.struct_class = Types::SourceConfig
1287
1315
 
1316
+ SourceEventCategories.member = Shapes::ShapeRef.new(shape: SourceEventCategory)
1317
+
1288
1318
  StartDashboardRefreshRequest.add_member(:dashboard_id, Shapes::ShapeRef.new(shape: DashboardArn, required: true, location_name: "DashboardId"))
1289
1319
  StartDashboardRefreshRequest.add_member(:query_parameter_values, Shapes::ShapeRef.new(shape: QueryParameterValues, location_name: "QueryParameterValues"))
1290
1320
  StartDashboardRefreshRequest.struct_class = Types::StartDashboardRefreshRequest
@@ -1619,6 +1649,7 @@ module Aws::CloudTrail
1619
1649
  o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
1620
1650
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
1621
1651
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1652
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1622
1653
  end)
1623
1654
 
1624
1655
  api.add_operation(:create_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -2094,6 +2125,23 @@ module Aws::CloudTrail
2094
2125
  )
2095
2126
  end)
2096
2127
 
2128
+ api.add_operation(:list_insights_data, Seahorse::Model::Operation.new.tap do |o|
2129
+ o.name = "ListInsightsData"
2130
+ o.http_method = "POST"
2131
+ o.http_request_uri = "/"
2132
+ o.input = Shapes::ShapeRef.new(shape: ListInsightsDataRequest)
2133
+ o.output = Shapes::ShapeRef.new(shape: ListInsightsDataResponse)
2134
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2135
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2136
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
2137
+ o[:pager] = Aws::Pager.new(
2138
+ limit_key: "max_results",
2139
+ tokens: {
2140
+ "next_token" => "next_token"
2141
+ }
2142
+ )
2143
+ end)
2144
+
2097
2145
  api.add_operation(:list_insights_metric_data, Seahorse::Model::Operation.new.tap do |o|
2098
2146
  o.name = "ListInsightsMetricData"
2099
2147
  o.http_method = "POST"
@@ -2101,6 +2149,7 @@ module Aws::CloudTrail
2101
2149
  o.input = Shapes::ShapeRef.new(shape: ListInsightsMetricDataRequest)
2102
2150
  o.output = Shapes::ShapeRef.new(shape: ListInsightsMetricDataResponse)
2103
2151
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2152
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
2104
2153
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2105
2154
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
2106
2155
  o[:pager] = Aws::Pager.new(
@@ -2579,6 +2628,8 @@ module Aws::CloudTrail
2579
2628
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
2580
2629
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
2581
2630
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
2631
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2632
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2582
2633
  end)
2583
2634
 
2584
2635
  api.add_operation(:update_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -884,10 +884,10 @@ module Aws::CloudTrail
884
884
  # @return [String]
885
885
  #
886
886
  # @!attribute [rw] kms_key_id
887
- # Specifies the KMS key ID to use to encrypt the logs delivered by
888
- # CloudTrail. The value can be an alias name prefixed by `alias/`, a
889
- # fully specified ARN to an alias, a fully specified ARN to a key, or
890
- # a globally unique identifier.
887
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
888
+ # delivered by CloudTrail. The value can be an alias name prefixed by
889
+ # `alias/`, a fully specified ARN to an alias, a fully specified ARN
890
+ # to a key, or a globally unique identifier.
891
891
  #
892
892
  # CloudTrail also supports KMS multi-Region keys. For more information
893
893
  # about multi-Region keys, see [Using multi-Region keys][1] in the
@@ -2378,9 +2378,12 @@ module Aws::CloudTrail
2378
2378
  # @return [String]
2379
2379
  #
2380
2380
  # @!attribute [rw] insight_selectors
2381
- # A JSON string that contains the Insight types you want to log on a
2382
- # trail or event data store. `ApiErrorRateInsight` and
2383
- # `ApiCallRateInsight` are supported as Insights types.
2381
+ # Contains the Insights types that are enabled on a trail or event
2382
+ # data store. It also specifies the event categories on which a
2383
+ # particular Insight type is enabled. `ApiCallRateInsight` and
2384
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory
2385
+ # field can specify `Management` or `Data` events or both. For event
2386
+ # data store, you can log Insights for management events only.
2384
2387
  # @return [Array<Types::InsightSelector>]
2385
2388
  #
2386
2389
  # @!attribute [rw] event_data_store_arn
@@ -2919,18 +2922,33 @@ module Aws::CloudTrail
2919
2922
  # types.
2920
2923
  #
2921
2924
  # The `ApiCallRateInsight` Insights type analyzes write-only
2922
- # management API calls that are aggregated per minute against a
2923
- # baseline API call volume.
2925
+ # management API calls or read and write data API calls that are
2926
+ # aggregated per minute against a baseline API call volume.
2924
2927
  #
2925
- # The `ApiErrorRateInsight` Insights type analyzes management API
2926
- # calls that result in error codes. The error is shown if the API call
2927
- # is unsuccessful.
2928
+ # The `ApiErrorRateInsight` Insights type analyzes management and data
2929
+ # API calls that result in error codes. The error is shown if the API
2930
+ # call is unsuccessful.
2928
2931
  # @return [String]
2929
2932
  #
2933
+ # @!attribute [rw] event_categories
2934
+ # Select the event category on which Insights should be enabled.
2935
+ #
2936
+ # * If EventCategories is not provided, the specified Insights types
2937
+ # are enabled on management API calls by default.
2938
+ #
2939
+ # * If EventCategories is provided, the given event categories will
2940
+ # overwrite the existing ones. For example, if a trail already has
2941
+ # Insights enabled on management events, and then a
2942
+ # PutInsightSelectors request is made with only data events
2943
+ # specified in EventCategories, Insights on management events will
2944
+ # be disabled.
2945
+ # @return [Array<String>]
2946
+ #
2930
2947
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsightSelector AWS API Documentation
2931
2948
  #
2932
2949
  class InsightSelector < Struct.new(
2933
- :insight_type)
2950
+ :insight_type,
2951
+ :event_categories)
2934
2952
  SENSITIVE = []
2935
2953
  include Aws::Structure
2936
2954
  end
@@ -3443,6 +3461,92 @@ module Aws::CloudTrail
3443
3461
  include Aws::Structure
3444
3462
  end
3445
3463
 
3464
+ # @!attribute [rw] insight_source
3465
+ # The Amazon Resource Name(ARN) of the trail for which you want to
3466
+ # retrieve Insights events.
3467
+ # @return [String]
3468
+ #
3469
+ # @!attribute [rw] data_type
3470
+ # Specifies the category of events returned. To fetch Insights events,
3471
+ # specify `InsightsEvents` as the value of `DataType`
3472
+ # @return [String]
3473
+ #
3474
+ # @!attribute [rw] dimensions
3475
+ # Contains a map of dimensions. Currently the map can contain only one
3476
+ # item.
3477
+ # @return [Hash<String,String>]
3478
+ #
3479
+ # @!attribute [rw] start_time
3480
+ # Specifies that only events that occur after or at the specified time
3481
+ # are returned. If the specified start time is after the specified end
3482
+ # time, an error is returned.
3483
+ # @return [Time]
3484
+ #
3485
+ # @!attribute [rw] end_time
3486
+ # Specifies that only events that occur before or at the specified
3487
+ # time are returned. If the specified end time is before the specified
3488
+ # start time, an error is returned.
3489
+ # @return [Time]
3490
+ #
3491
+ # @!attribute [rw] max_results
3492
+ # The number of events to return. Possible values are 1 through 50.
3493
+ # The default is 50.
3494
+ # @return [Integer]
3495
+ #
3496
+ # @!attribute [rw] next_token
3497
+ # The token to use to get the next page of results after a previous
3498
+ # API call. This token must be passed in with the same parameters that
3499
+ # were specified in the original call. For example, if the original
3500
+ # call specified a EventName as a dimension with `PutObject` as a
3501
+ # value, the call with NextToken should include those same parameters.
3502
+ # @return [String]
3503
+ #
3504
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsDataRequest AWS API Documentation
3505
+ #
3506
+ class ListInsightsDataRequest < Struct.new(
3507
+ :insight_source,
3508
+ :data_type,
3509
+ :dimensions,
3510
+ :start_time,
3511
+ :end_time,
3512
+ :max_results,
3513
+ :next_token)
3514
+ SENSITIVE = []
3515
+ include Aws::Structure
3516
+ end
3517
+
3518
+ # @!attribute [rw] events
3519
+ # A list of events returned based on the InsightSource, DataType or
3520
+ # Dimensions specified. The events list is sorted by time. The most
3521
+ # recent event is listed first.
3522
+ # @return [Array<Types::Event>]
3523
+ #
3524
+ # @!attribute [rw] next_token
3525
+ # The token to use to get the next page of results after a previous
3526
+ # API call. If the token does not appear, there are no more results to
3527
+ # return. The token must be passed in with the same parameters as the
3528
+ # previous call. For example, if the original call specified a
3529
+ # EventName as a dimension with `PutObject` as a value, the call with
3530
+ # NextToken should include those same parameters.
3531
+ # @return [String]
3532
+ #
3533
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsDataResponse AWS API Documentation
3534
+ #
3535
+ class ListInsightsDataResponse < Struct.new(
3536
+ :events,
3537
+ :next_token)
3538
+ SENSITIVE = []
3539
+ include Aws::Structure
3540
+ end
3541
+
3542
+ # @!attribute [rw] trail_name
3543
+ # The Amazon Resource Name(ARN) or name of the trail for which you
3544
+ # want to retrieve Insights metrics data. This parameter should only
3545
+ # be provided to fetch Insights metrics data generated on trails
3546
+ # logging data events. This parameter is not required for Insights
3547
+ # metric data generated on trails logging management events.
3548
+ # @return [String]
3549
+ #
3446
3550
  # @!attribute [rw] event_source
3447
3551
  # The Amazon Web Services service to which the request was made, such
3448
3552
  # as `iam.amazonaws.com` or `s3.amazonaws.com`.
@@ -3513,6 +3617,7 @@ module Aws::CloudTrail
3513
3617
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricDataRequest AWS API Documentation
3514
3618
  #
3515
3619
  class ListInsightsMetricDataRequest < Struct.new(
3620
+ :trail_name,
3516
3621
  :event_source,
3517
3622
  :event_name,
3518
3623
  :insight_type,
@@ -3527,6 +3632,11 @@ module Aws::CloudTrail
3527
3632
  include Aws::Structure
3528
3633
  end
3529
3634
 
3635
+ # @!attribute [rw] trail_arn
3636
+ # Specifies the ARN of the trail. This is only returned when Insights
3637
+ # is enabled on a trail logging data events.
3638
+ # @return [String]
3639
+ #
3530
3640
  # @!attribute [rw] event_source
3531
3641
  # The Amazon Web Services service to which the request was made, such
3532
3642
  # as `iam.amazonaws.com` or `s3.amazonaws.com`.
@@ -3574,6 +3684,7 @@ module Aws::CloudTrail
3574
3684
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricDataResponse AWS API Documentation
3575
3685
  #
3576
3686
  class ListInsightsMetricDataResponse < Struct.new(
3687
+ :trail_arn,
3577
3688
  :event_source,
3578
3689
  :event_name,
3579
3690
  :insight_type,
@@ -4164,17 +4275,19 @@ module Aws::CloudTrail
4164
4275
  # @return [String]
4165
4276
  #
4166
4277
  # @!attribute [rw] insight_selectors
4167
- # A JSON string that contains the Insights types you want to log on a
4168
- # trail or event data store. `ApiCallRateInsight` and
4169
- # `ApiErrorRateInsight` are valid Insight types.
4278
+ # Contains the Insights types you want to log on a specific category
4279
+ # of events on a trail or event data store. `ApiCallRateInsight` and
4280
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory
4281
+ # field can specify `Management` or `Data` events or both. For event
4282
+ # data store, you can log Insights for management events only.
4170
4283
  #
4171
4284
  # The `ApiCallRateInsight` Insights type analyzes write-only
4172
- # management API calls that are aggregated per minute against a
4173
- # baseline API call volume.
4285
+ # management API calls or read and write data API calls that are
4286
+ # aggregated per minute against a baseline API call volume.
4174
4287
  #
4175
- # The `ApiErrorRateInsight` Insights type analyzes management API
4176
- # calls that result in error codes. The error is shown if the API call
4177
- # is unsuccessful.
4288
+ # The `ApiErrorRateInsight` Insights type analyzes management and data
4289
+ # API calls that result in error codes. The error is shown if the API
4290
+ # call is unsuccessful.
4178
4291
  # @return [Array<Types::InsightSelector>]
4179
4292
  #
4180
4293
  # @!attribute [rw] event_data_store
@@ -4212,9 +4325,11 @@ module Aws::CloudTrail
4212
4325
  # @return [String]
4213
4326
  #
4214
4327
  # @!attribute [rw] insight_selectors
4215
- # A JSON string that contains the Insights event types that you want
4216
- # to log on a trail or event data store. The valid Insights types are
4217
- # `ApiErrorRateInsight` and `ApiCallRateInsight`.
4328
+ # Contains the Insights types you want to log on a specific category
4329
+ # of events in a trail or event data store. `ApiCallRateInsight` and
4330
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory
4331
+ # field can specify `Management` or `Data` events or both. For event
4332
+ # data store, you can only log Insights for management events only.
4218
4333
  # @return [Array<Types::InsightSelector>]
4219
4334
  #
4220
4335
  # @!attribute [rw] event_data_store_arn
@@ -5342,9 +5457,9 @@ module Aws::CloudTrail
5342
5457
  # @return [String]
5343
5458
  #
5344
5459
  # @!attribute [rw] kms_key_id
5345
- # Specifies the KMS key ID that encrypts the logs delivered by
5346
- # CloudTrail. The value is a fully specified ARN to a KMS key in the
5347
- # following format.
5460
+ # Specifies the KMS key ID that encrypts the logs and digest files
5461
+ # delivered by CloudTrail. The value is a fully specified ARN to a KMS
5462
+ # key in the following format.
5348
5463
  #
5349
5464
  # `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
5350
5465
  # @return [String]
@@ -5910,10 +6025,10 @@ module Aws::CloudTrail
5910
6025
  # @return [String]
5911
6026
  #
5912
6027
  # @!attribute [rw] kms_key_id
5913
- # Specifies the KMS key ID to use to encrypt the logs delivered by
5914
- # CloudTrail. The value can be an alias name prefixed by "alias/", a
5915
- # fully specified ARN to an alias, a fully specified ARN to a key, or
5916
- # a globally unique identifier.
6028
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
6029
+ # delivered by CloudTrail. The value can be an alias name prefixed by
6030
+ # "alias/", a fully specified ARN to an alias, a fully specified ARN
6031
+ # to a key, or a globally unique identifier.
5917
6032
  #
5918
6033
  # CloudTrail also supports KMS multi-Region keys. For more information
5919
6034
  # about multi-Region keys, see [Using multi-Region keys][1] in the
@@ -6037,9 +6152,9 @@ module Aws::CloudTrail
6037
6152
  # @return [String]
6038
6153
  #
6039
6154
  # @!attribute [rw] kms_key_id
6040
- # Specifies the KMS key ID that encrypts the logs delivered by
6041
- # CloudTrail. The value is a fully specified ARN to a KMS key in the
6042
- # following format.
6155
+ # Specifies the KMS key ID that encrypts the logs and digest files
6156
+ # delivered by CloudTrail. The value is a fully specified ARN to a KMS
6157
+ # key in the following format.
6043
6158
  #
6044
6159
  # `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
6045
6160
  # @return [String]
@@ -54,7 +54,7 @@ module Aws::CloudTrail
54
54
  autoload :EndpointProvider, 'aws-sdk-cloudtrail/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-cloudtrail/endpoints'
56
56
 
57
- GEM_VERSION = '1.113.0'
57
+ GEM_VERSION = '1.114.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -631,8 +631,26 @@ module Aws
631
631
  ) -> _ListImportsResponseSuccess
632
632
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListImportsResponseSuccess
633
633
 
634
+ interface _ListInsightsDataResponseSuccess
635
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListInsightsDataResponse]
636
+ def events: () -> ::Array[Types::Event]
637
+ def next_token: () -> ::String
638
+ end
639
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#list_insights_data-instance_method
640
+ def list_insights_data: (
641
+ insight_source: ::String,
642
+ data_type: ("InsightsEvents"),
643
+ ?dimensions: Hash[("EventId" | "EventName" | "EventSource"), ::String],
644
+ ?start_time: ::Time,
645
+ ?end_time: ::Time,
646
+ ?max_results: ::Integer,
647
+ ?next_token: ::String
648
+ ) -> _ListInsightsDataResponseSuccess
649
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListInsightsDataResponseSuccess
650
+
634
651
  interface _ListInsightsMetricDataResponseSuccess
635
652
  include ::Seahorse::Client::_ResponseSuccess[Types::ListInsightsMetricDataResponse]
653
+ def trail_arn: () -> ::String
636
654
  def event_source: () -> ::String
637
655
  def event_name: () -> ::String
638
656
  def insight_type: () -> ("ApiCallRateInsight" | "ApiErrorRateInsight")
@@ -643,6 +661,7 @@ module Aws
643
661
  end
644
662
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#list_insights_metric_data-instance_method
645
663
  def list_insights_metric_data: (
664
+ ?trail_name: ::String,
646
665
  event_source: ::String,
647
666
  event_name: ::String,
648
667
  insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight"),
@@ -801,7 +820,8 @@ module Aws
801
820
  ?trail_name: ::String,
802
821
  insight_selectors: Array[
803
822
  {
804
- insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")?
823
+ insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")?,
824
+ event_categories: Array[("Management" | "Data")]?
805
825
  },
806
826
  ],
807
827
  ?event_data_store: ::String,
data/sig/types.rbs CHANGED
@@ -645,6 +645,7 @@ module Aws::CloudTrail
645
645
 
646
646
  class InsightSelector
647
647
  attr_accessor insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")
648
+ attr_accessor event_categories: ::Array[("Management" | "Data")]
648
649
  SENSITIVE: []
649
650
  end
650
651
 
@@ -815,7 +816,25 @@ module Aws::CloudTrail
815
816
  SENSITIVE: []
816
817
  end
817
818
 
819
+ class ListInsightsDataRequest
820
+ attr_accessor insight_source: ::String
821
+ attr_accessor data_type: ("InsightsEvents")
822
+ attr_accessor dimensions: ::Hash[("EventId" | "EventName" | "EventSource"), ::String]
823
+ attr_accessor start_time: ::Time
824
+ attr_accessor end_time: ::Time
825
+ attr_accessor max_results: ::Integer
826
+ attr_accessor next_token: ::String
827
+ SENSITIVE: []
828
+ end
829
+
830
+ class ListInsightsDataResponse
831
+ attr_accessor events: ::Array[Types::Event]
832
+ attr_accessor next_token: ::String
833
+ SENSITIVE: []
834
+ end
835
+
818
836
  class ListInsightsMetricDataRequest
837
+ attr_accessor trail_name: ::String
819
838
  attr_accessor event_source: ::String
820
839
  attr_accessor event_name: ::String
821
840
  attr_accessor insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")
@@ -830,6 +849,7 @@ module Aws::CloudTrail
830
849
  end
831
850
 
832
851
  class ListInsightsMetricDataResponse
852
+ attr_accessor trail_arn: ::String
833
853
  attr_accessor event_source: ::String
834
854
  attr_accessor event_name: ::String
835
855
  attr_accessor insight_type: ("ApiCallRateInsight" | "ApiErrorRateInsight")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudtrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.113.0
4
+ version: 1.114.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services