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.
@@ -26,6 +26,8 @@ module Aws::CloudTrail
26
26
  AdvancedEventSelectors = Shapes::ListShape.new(name: 'AdvancedEventSelectors')
27
27
  AdvancedFieldSelector = Shapes::StructureShape.new(name: 'AdvancedFieldSelector')
28
28
  AdvancedFieldSelectors = Shapes::ListShape.new(name: 'AdvancedFieldSelectors')
29
+ AggregationConfiguration = Shapes::StructureShape.new(name: 'AggregationConfiguration')
30
+ AggregationConfigurations = Shapes::ListShape.new(name: 'AggregationConfigurations')
29
31
  BillingMode = Shapes::StringShape.new(name: 'BillingMode')
30
32
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
31
33
  ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
@@ -98,6 +100,7 @@ module Aws::CloudTrail
98
100
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
99
101
  Event = Shapes::StructureShape.new(name: 'Event')
100
102
  EventCategory = Shapes::StringShape.new(name: 'EventCategory')
103
+ EventCategoryAggregation = Shapes::StringShape.new(name: 'EventCategoryAggregation')
101
104
  EventDataStore = Shapes::StructureShape.new(name: 'EventDataStore')
102
105
  EventDataStoreARNInvalidException = Shapes::StructureShape.new(name: 'EventDataStoreARNInvalidException')
103
106
  EventDataStoreAlreadyExistsException = Shapes::StructureShape.new(name: 'EventDataStoreAlreadyExistsException')
@@ -217,6 +220,13 @@ module Aws::CloudTrail
217
220
  ListImportsMaxResultsCount = Shapes::IntegerShape.new(name: 'ListImportsMaxResultsCount')
218
221
  ListImportsRequest = Shapes::StructureShape.new(name: 'ListImportsRequest')
219
222
  ListImportsResponse = Shapes::StructureShape.new(name: 'ListImportsResponse')
223
+ ListInsightsDataDimensionKey = Shapes::StringShape.new(name: 'ListInsightsDataDimensionKey')
224
+ ListInsightsDataDimensionValue = Shapes::StringShape.new(name: 'ListInsightsDataDimensionValue')
225
+ ListInsightsDataDimensions = Shapes::MapShape.new(name: 'ListInsightsDataDimensions')
226
+ ListInsightsDataMaxResultsCount = Shapes::IntegerShape.new(name: 'ListInsightsDataMaxResultsCount')
227
+ ListInsightsDataRequest = Shapes::StructureShape.new(name: 'ListInsightsDataRequest')
228
+ ListInsightsDataResponse = Shapes::StructureShape.new(name: 'ListInsightsDataResponse')
229
+ ListInsightsDataType = Shapes::StringShape.new(name: 'ListInsightsDataType')
220
230
  ListInsightsMetricDataRequest = Shapes::StructureShape.new(name: 'ListInsightsMetricDataRequest')
221
231
  ListInsightsMetricDataResponse = Shapes::StructureShape.new(name: 'ListInsightsMetricDataResponse')
222
232
  ListPublicKeysRequest = Shapes::StructureShape.new(name: 'ListPublicKeysRequest')
@@ -331,6 +341,8 @@ module Aws::CloudTrail
331
341
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
332
342
  Source = Shapes::StringShape.new(name: 'Source')
333
343
  SourceConfig = Shapes::StructureShape.new(name: 'SourceConfig')
344
+ SourceEventCategories = Shapes::ListShape.new(name: 'SourceEventCategories')
345
+ SourceEventCategory = Shapes::StringShape.new(name: 'SourceEventCategory')
334
346
  StartDashboardRefreshRequest = Shapes::StructureShape.new(name: 'StartDashboardRefreshRequest')
335
347
  StartDashboardRefreshResponse = Shapes::StructureShape.new(name: 'StartDashboardRefreshResponse')
336
348
  StartEventDataStoreIngestionRequest = Shapes::StructureShape.new(name: 'StartEventDataStoreIngestionRequest')
@@ -353,6 +365,8 @@ module Aws::CloudTrail
353
365
  TagValue = Shapes::StringShape.new(name: 'TagValue')
354
366
  TagsLimitExceededException = Shapes::StructureShape.new(name: 'TagsLimitExceededException')
355
367
  TagsList = Shapes::ListShape.new(name: 'TagsList')
368
+ Template = Shapes::StringShape.new(name: 'Template')
369
+ Templates = Shapes::ListShape.new(name: 'Templates')
356
370
  TerminationProtectionEnabled = Shapes::BooleanShape.new(name: 'TerminationProtectionEnabled')
357
371
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
358
372
  TimeOfDay = Shapes::StringShape.new(name: 'TimeOfDay')
@@ -415,6 +429,12 @@ module Aws::CloudTrail
415
429
 
416
430
  AdvancedFieldSelectors.member = Shapes::ShapeRef.new(shape: AdvancedFieldSelector)
417
431
 
432
+ AggregationConfiguration.add_member(:templates, Shapes::ShapeRef.new(shape: Templates, required: true, location_name: "Templates"))
433
+ AggregationConfiguration.add_member(:event_category, Shapes::ShapeRef.new(shape: EventCategoryAggregation, required: true, location_name: "EventCategory"))
434
+ AggregationConfiguration.struct_class = Types::AggregationConfiguration
435
+
436
+ AggregationConfigurations.member = Shapes::ShapeRef.new(shape: AggregationConfiguration)
437
+
418
438
  CancelQueryRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, deprecated: true, location_name: "EventDataStore", metadata: {"deprecatedMessage" => "EventDataStore is no longer required by CancelQueryRequest"}))
419
439
  CancelQueryRequest.add_member(:query_id, Shapes::ShapeRef.new(shape: UUID, required: true, location_name: "QueryId"))
420
440
  CancelQueryRequest.add_member(:event_data_store_owner_account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "EventDataStoreOwnerAccountId"))
@@ -729,12 +749,15 @@ module Aws::CloudTrail
729
749
  GetDashboardResponse.add_member(:termination_protection_enabled, Shapes::ShapeRef.new(shape: TerminationProtectionEnabled, location_name: "TerminationProtectionEnabled"))
730
750
  GetDashboardResponse.struct_class = Types::GetDashboardResponse
731
751
 
752
+ GetEventConfigurationRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
732
753
  GetEventConfigurationRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: String, location_name: "EventDataStore"))
733
754
  GetEventConfigurationRequest.struct_class = Types::GetEventConfigurationRequest
734
755
 
756
+ GetEventConfigurationResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
735
757
  GetEventConfigurationResponse.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
736
758
  GetEventConfigurationResponse.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, location_name: "MaxEventSize"))
737
759
  GetEventConfigurationResponse.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, location_name: "ContextKeySelectors"))
760
+ GetEventConfigurationResponse.add_member(:aggregation_configurations, Shapes::ShapeRef.new(shape: AggregationConfigurations, location_name: "AggregationConfigurations"))
738
761
  GetEventConfigurationResponse.struct_class = Types::GetEventConfigurationResponse
739
762
 
740
763
  GetEventDataStoreRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, required: true, location_name: "EventDataStore"))
@@ -885,6 +908,7 @@ module Aws::CloudTrail
885
908
  InsightNotEnabledException.struct_class = Types::InsightNotEnabledException
886
909
 
887
910
  InsightSelector.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, location_name: "InsightType"))
911
+ InsightSelector.add_member(:event_categories, Shapes::ShapeRef.new(shape: SourceEventCategories, location_name: "EventCategories"))
888
912
  InsightSelector.struct_class = Types::InsightSelector
889
913
 
890
914
  InsightSelectors.member = Shapes::ShapeRef.new(shape: InsightSelector)
@@ -1004,6 +1028,23 @@ module Aws::CloudTrail
1004
1028
  ListImportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
1005
1029
  ListImportsResponse.struct_class = Types::ListImportsResponse
1006
1030
 
1031
+ ListInsightsDataDimensions.key = Shapes::ShapeRef.new(shape: ListInsightsDataDimensionKey)
1032
+ ListInsightsDataDimensions.value = Shapes::ShapeRef.new(shape: ListInsightsDataDimensionValue)
1033
+
1034
+ ListInsightsDataRequest.add_member(:insight_source, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "InsightSource"))
1035
+ ListInsightsDataRequest.add_member(:data_type, Shapes::ShapeRef.new(shape: ListInsightsDataType, required: true, location_name: "DataType"))
1036
+ ListInsightsDataRequest.add_member(:dimensions, Shapes::ShapeRef.new(shape: ListInsightsDataDimensions, location_name: "Dimensions"))
1037
+ ListInsightsDataRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Date, location_name: "StartTime"))
1038
+ ListInsightsDataRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Date, location_name: "EndTime"))
1039
+ ListInsightsDataRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListInsightsDataMaxResultsCount, location_name: "MaxResults"))
1040
+ ListInsightsDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
1041
+ ListInsightsDataRequest.struct_class = Types::ListInsightsDataRequest
1042
+
1043
+ ListInsightsDataResponse.add_member(:events, Shapes::ShapeRef.new(shape: EventsList, location_name: "Events"))
1044
+ ListInsightsDataResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
1045
+ ListInsightsDataResponse.struct_class = Types::ListInsightsDataResponse
1046
+
1047
+ ListInsightsMetricDataRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
1007
1048
  ListInsightsMetricDataRequest.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, required: true, location_name: "EventSource"))
1008
1049
  ListInsightsMetricDataRequest.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, required: true, location_name: "EventName"))
1009
1050
  ListInsightsMetricDataRequest.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, required: true, location_name: "InsightType"))
@@ -1016,6 +1057,7 @@ module Aws::CloudTrail
1016
1057
  ListInsightsMetricDataRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: InsightsMetricNextToken, location_name: "NextToken"))
1017
1058
  ListInsightsMetricDataRequest.struct_class = Types::ListInsightsMetricDataRequest
1018
1059
 
1060
+ ListInsightsMetricDataResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
1019
1061
  ListInsightsMetricDataResponse.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, location_name: "EventSource"))
1020
1062
  ListInsightsMetricDataResponse.add_member(:event_name, Shapes::ShapeRef.new(shape: EventName, location_name: "EventName"))
1021
1063
  ListInsightsMetricDataResponse.add_member(:insight_type, Shapes::ShapeRef.new(shape: InsightType, location_name: "InsightType"))
@@ -1113,14 +1155,18 @@ module Aws::CloudTrail
1113
1155
 
1114
1156
  PublicKeyList.member = Shapes::ShapeRef.new(shape: PublicKey)
1115
1157
 
1158
+ PutEventConfigurationRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, location_name: "TrailName"))
1116
1159
  PutEventConfigurationRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: String, location_name: "EventDataStore"))
1117
- PutEventConfigurationRequest.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, required: true, location_name: "MaxEventSize"))
1118
- PutEventConfigurationRequest.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, required: true, location_name: "ContextKeySelectors"))
1160
+ PutEventConfigurationRequest.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, location_name: "MaxEventSize"))
1161
+ PutEventConfigurationRequest.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, location_name: "ContextKeySelectors"))
1162
+ PutEventConfigurationRequest.add_member(:aggregation_configurations, Shapes::ShapeRef.new(shape: AggregationConfigurations, location_name: "AggregationConfigurations"))
1119
1163
  PutEventConfigurationRequest.struct_class = Types::PutEventConfigurationRequest
1120
1164
 
1165
+ PutEventConfigurationResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
1121
1166
  PutEventConfigurationResponse.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
1122
1167
  PutEventConfigurationResponse.add_member(:max_event_size, Shapes::ShapeRef.new(shape: MaxEventSize, location_name: "MaxEventSize"))
1123
1168
  PutEventConfigurationResponse.add_member(:context_key_selectors, Shapes::ShapeRef.new(shape: ContextKeySelectors, location_name: "ContextKeySelectors"))
1169
+ PutEventConfigurationResponse.add_member(:aggregation_configurations, Shapes::ShapeRef.new(shape: AggregationConfigurations, location_name: "AggregationConfigurations"))
1124
1170
  PutEventConfigurationResponse.struct_class = Types::PutEventConfigurationResponse
1125
1171
 
1126
1172
  PutEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
@@ -1285,6 +1331,8 @@ module Aws::CloudTrail
1285
1331
  SourceConfig.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
1286
1332
  SourceConfig.struct_class = Types::SourceConfig
1287
1333
 
1334
+ SourceEventCategories.member = Shapes::ShapeRef.new(shape: SourceEventCategory)
1335
+
1288
1336
  StartDashboardRefreshRequest.add_member(:dashboard_id, Shapes::ShapeRef.new(shape: DashboardArn, required: true, location_name: "DashboardId"))
1289
1337
  StartDashboardRefreshRequest.add_member(:query_parameter_values, Shapes::ShapeRef.new(shape: QueryParameterValues, location_name: "QueryParameterValues"))
1290
1338
  StartDashboardRefreshRequest.struct_class = Types::StartDashboardRefreshRequest
@@ -1362,6 +1410,8 @@ module Aws::CloudTrail
1362
1410
 
1363
1411
  TagsList.member = Shapes::ShapeRef.new(shape: Tag)
1364
1412
 
1413
+ Templates.member = Shapes::ShapeRef.new(shape: Template)
1414
+
1365
1415
  ThrottlingException.struct_class = Types::ThrottlingException
1366
1416
 
1367
1417
  Timestamps.member = Shapes::ShapeRef.new(shape: Date)
@@ -1619,6 +1669,7 @@ module Aws::CloudTrail
1619
1669
  o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
1620
1670
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
1621
1671
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1672
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1622
1673
  end)
1623
1674
 
1624
1675
  api.add_operation(:create_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -1878,6 +1929,8 @@ module Aws::CloudTrail
1878
1929
  o.http_request_uri = "/"
1879
1930
  o.input = Shapes::ShapeRef.new(shape: GetEventConfigurationRequest)
1880
1931
  o.output = Shapes::ShapeRef.new(shape: GetEventConfigurationResponse)
1932
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
1933
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
1881
1934
  o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
1882
1935
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1883
1936
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
@@ -2094,6 +2147,23 @@ module Aws::CloudTrail
2094
2147
  )
2095
2148
  end)
2096
2149
 
2150
+ api.add_operation(:list_insights_data, Seahorse::Model::Operation.new.tap do |o|
2151
+ o.name = "ListInsightsData"
2152
+ o.http_method = "POST"
2153
+ o.http_request_uri = "/"
2154
+ o.input = Shapes::ShapeRef.new(shape: ListInsightsDataRequest)
2155
+ o.output = Shapes::ShapeRef.new(shape: ListInsightsDataResponse)
2156
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2157
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2158
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
2159
+ o[:pager] = Aws::Pager.new(
2160
+ limit_key: "max_results",
2161
+ tokens: {
2162
+ "next_token" => "next_token"
2163
+ }
2164
+ )
2165
+ end)
2166
+
2097
2167
  api.add_operation(:list_insights_metric_data, Seahorse::Model::Operation.new.tap do |o|
2098
2168
  o.name = "ListInsightsMetricData"
2099
2169
  o.http_method = "POST"
@@ -2101,6 +2171,7 @@ module Aws::CloudTrail
2101
2171
  o.input = Shapes::ShapeRef.new(shape: ListInsightsMetricDataRequest)
2102
2172
  o.output = Shapes::ShapeRef.new(shape: ListInsightsMetricDataResponse)
2103
2173
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2174
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
2104
2175
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2105
2176
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
2106
2177
  o[:pager] = Aws::Pager.new(
@@ -2220,6 +2291,11 @@ module Aws::CloudTrail
2220
2291
  o.http_request_uri = "/"
2221
2292
  o.input = Shapes::ShapeRef.new(shape: PutEventConfigurationRequest)
2222
2293
  o.output = Shapes::ShapeRef.new(shape: PutEventConfigurationResponse)
2294
+ o.errors << Shapes::ShapeRef.new(shape: TrailNotFoundException)
2295
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
2296
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
2297
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
2298
+ o.errors << Shapes::ShapeRef.new(shape: InvalidHomeRegionException)
2223
2299
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
2224
2300
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
2225
2301
  o.errors << Shapes::ShapeRef.new(shape: InvalidEventDataStoreStatusException)
@@ -2229,8 +2305,6 @@ module Aws::CloudTrail
2229
2305
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
2230
2306
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2231
2307
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2232
- o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
2233
- o.errors << Shapes::ShapeRef.new(shape: CloudTrailARNInvalidException)
2234
2308
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2235
2309
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
2236
2310
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
@@ -2579,6 +2653,8 @@ module Aws::CloudTrail
2579
2653
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
2580
2654
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
2581
2655
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
2656
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2657
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2582
2658
  end)
2583
2659
 
2584
2660
  api.add_operation(:update_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -193,6 +193,27 @@ module Aws::CloudTrail
193
193
  include Aws::Structure
194
194
  end
195
195
 
196
+ # An object that contains configuration settings for aggregating events.
197
+ #
198
+ # @!attribute [rw] templates
199
+ # A list of aggregation templates that can be used to configure event
200
+ # aggregation.
201
+ # @return [Array<String>]
202
+ #
203
+ # @!attribute [rw] event_category
204
+ # Specifies the event category for which aggregation should be
205
+ # performed.
206
+ # @return [String]
207
+ #
208
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AggregationConfiguration AWS API Documentation
209
+ #
210
+ class AggregationConfiguration < Struct.new(
211
+ :templates,
212
+ :event_category)
213
+ SENSITIVE = []
214
+ include Aws::Structure
215
+ end
216
+
196
217
  # @!attribute [rw] event_data_store
197
218
  # The ARN (or the ID suffix of the ARN) of an event data store on
198
219
  # which the specified query is running.
@@ -884,10 +905,10 @@ module Aws::CloudTrail
884
905
  # @return [String]
885
906
  #
886
907
  # @!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.
908
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
909
+ # delivered by CloudTrail. The value can be an alias name prefixed by
910
+ # `alias/`, a fully specified ARN to an alias, a fully specified ARN
911
+ # to a key, or a globally unique identifier.
891
912
  #
892
913
  # CloudTrail also supports KMS multi-Region keys. For more information
893
914
  # about multi-Region keys, see [Using multi-Region keys][1] in the
@@ -2056,6 +2077,11 @@ module Aws::CloudTrail
2056
2077
  include Aws::Structure
2057
2078
  end
2058
2079
 
2080
+ # @!attribute [rw] trail_name
2081
+ # The name of the trail for which you want to retrieve event
2082
+ # configuration settings.
2083
+ # @return [String]
2084
+ #
2059
2085
  # @!attribute [rw] event_data_store
2060
2086
  # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
2061
2087
  # data store for which you want to retrieve event configuration
@@ -2065,11 +2091,17 @@ module Aws::CloudTrail
2065
2091
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventConfigurationRequest AWS API Documentation
2066
2092
  #
2067
2093
  class GetEventConfigurationRequest < Struct.new(
2094
+ :trail_name,
2068
2095
  :event_data_store)
2069
2096
  SENSITIVE = []
2070
2097
  include Aws::Structure
2071
2098
  end
2072
2099
 
2100
+ # @!attribute [rw] trail_arn
2101
+ # The Amazon Resource Name (ARN) of the trail for which the event
2102
+ # configuration settings are returned.
2103
+ # @return [String]
2104
+ #
2073
2105
  # @!attribute [rw] event_data_store_arn
2074
2106
  # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
2075
2107
  # data store for which the event configuration settings are returned.
@@ -2085,12 +2117,19 @@ module Aws::CloudTrail
2085
2117
  # data store.
2086
2118
  # @return [Array<Types::ContextKeySelector>]
2087
2119
  #
2120
+ # @!attribute [rw] aggregation_configurations
2121
+ # The list of aggregation configurations that are configured for the
2122
+ # trail.
2123
+ # @return [Array<Types::AggregationConfiguration>]
2124
+ #
2088
2125
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventConfigurationResponse AWS API Documentation
2089
2126
  #
2090
2127
  class GetEventConfigurationResponse < Struct.new(
2128
+ :trail_arn,
2091
2129
  :event_data_store_arn,
2092
2130
  :max_event_size,
2093
- :context_key_selectors)
2131
+ :context_key_selectors,
2132
+ :aggregation_configurations)
2094
2133
  SENSITIVE = []
2095
2134
  include Aws::Structure
2096
2135
  end
@@ -2378,9 +2417,12 @@ module Aws::CloudTrail
2378
2417
  # @return [String]
2379
2418
  #
2380
2419
  # @!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.
2420
+ # Contains the Insights types that are enabled on a trail or event
2421
+ # data store. It also specifies the event categories on which a
2422
+ # particular Insight type is enabled. `ApiCallRateInsight` and
2423
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory
2424
+ # field can specify `Management` or `Data` events or both. For event
2425
+ # data store, you can log Insights for management events only.
2384
2426
  # @return [Array<Types::InsightSelector>]
2385
2427
  #
2386
2428
  # @!attribute [rw] event_data_store_arn
@@ -2919,18 +2961,33 @@ module Aws::CloudTrail
2919
2961
  # types.
2920
2962
  #
2921
2963
  # The `ApiCallRateInsight` Insights type analyzes write-only
2922
- # management API calls that are aggregated per minute against a
2923
- # baseline API call volume.
2964
+ # management API calls or read and write data API calls that are
2965
+ # aggregated per minute against a baseline API call volume.
2924
2966
  #
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.
2967
+ # The `ApiErrorRateInsight` Insights type analyzes management and data
2968
+ # API calls that result in error codes. The error is shown if the API
2969
+ # call is unsuccessful.
2928
2970
  # @return [String]
2929
2971
  #
2972
+ # @!attribute [rw] event_categories
2973
+ # Select the event category on which Insights should be enabled.
2974
+ #
2975
+ # * If EventCategories is not provided, the specified Insights types
2976
+ # are enabled on management API calls by default.
2977
+ #
2978
+ # * If EventCategories is provided, the given event categories will
2979
+ # overwrite the existing ones. For example, if a trail already has
2980
+ # Insights enabled on management events, and then a
2981
+ # PutInsightSelectors request is made with only data events
2982
+ # specified in EventCategories, Insights on management events will
2983
+ # be disabled.
2984
+ # @return [Array<String>]
2985
+ #
2930
2986
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsightSelector AWS API Documentation
2931
2987
  #
2932
2988
  class InsightSelector < Struct.new(
2933
- :insight_type)
2989
+ :insight_type,
2990
+ :event_categories)
2934
2991
  SENSITIVE = []
2935
2992
  include Aws::Structure
2936
2993
  end
@@ -3443,6 +3500,92 @@ module Aws::CloudTrail
3443
3500
  include Aws::Structure
3444
3501
  end
3445
3502
 
3503
+ # @!attribute [rw] insight_source
3504
+ # The Amazon Resource Name(ARN) of the trail for which you want to
3505
+ # retrieve Insights events.
3506
+ # @return [String]
3507
+ #
3508
+ # @!attribute [rw] data_type
3509
+ # Specifies the category of events returned. To fetch Insights events,
3510
+ # specify `InsightsEvents` as the value of `DataType`
3511
+ # @return [String]
3512
+ #
3513
+ # @!attribute [rw] dimensions
3514
+ # Contains a map of dimensions. Currently the map can contain only one
3515
+ # item.
3516
+ # @return [Hash<String,String>]
3517
+ #
3518
+ # @!attribute [rw] start_time
3519
+ # Specifies that only events that occur after or at the specified time
3520
+ # are returned. If the specified start time is after the specified end
3521
+ # time, an error is returned.
3522
+ # @return [Time]
3523
+ #
3524
+ # @!attribute [rw] end_time
3525
+ # Specifies that only events that occur before or at the specified
3526
+ # time are returned. If the specified end time is before the specified
3527
+ # start time, an error is returned.
3528
+ # @return [Time]
3529
+ #
3530
+ # @!attribute [rw] max_results
3531
+ # The number of events to return. Possible values are 1 through 50.
3532
+ # The default is 50.
3533
+ # @return [Integer]
3534
+ #
3535
+ # @!attribute [rw] next_token
3536
+ # The token to use to get the next page of results after a previous
3537
+ # API call. This token must be passed in with the same parameters that
3538
+ # were specified in the original call. For example, if the original
3539
+ # call specified a EventName as a dimension with `PutObject` as a
3540
+ # value, the call with NextToken should include those same parameters.
3541
+ # @return [String]
3542
+ #
3543
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsDataRequest AWS API Documentation
3544
+ #
3545
+ class ListInsightsDataRequest < Struct.new(
3546
+ :insight_source,
3547
+ :data_type,
3548
+ :dimensions,
3549
+ :start_time,
3550
+ :end_time,
3551
+ :max_results,
3552
+ :next_token)
3553
+ SENSITIVE = []
3554
+ include Aws::Structure
3555
+ end
3556
+
3557
+ # @!attribute [rw] events
3558
+ # A list of events returned based on the InsightSource, DataType or
3559
+ # Dimensions specified. The events list is sorted by time. The most
3560
+ # recent event is listed first.
3561
+ # @return [Array<Types::Event>]
3562
+ #
3563
+ # @!attribute [rw] next_token
3564
+ # The token to use to get the next page of results after a previous
3565
+ # API call. If the token does not appear, there are no more results to
3566
+ # return. The token must be passed in with the same parameters as the
3567
+ # previous call. For example, if the original call specified a
3568
+ # EventName as a dimension with `PutObject` as a value, the call with
3569
+ # NextToken should include those same parameters.
3570
+ # @return [String]
3571
+ #
3572
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsDataResponse AWS API Documentation
3573
+ #
3574
+ class ListInsightsDataResponse < Struct.new(
3575
+ :events,
3576
+ :next_token)
3577
+ SENSITIVE = []
3578
+ include Aws::Structure
3579
+ end
3580
+
3581
+ # @!attribute [rw] trail_name
3582
+ # The Amazon Resource Name(ARN) or name of the trail for which you
3583
+ # want to retrieve Insights metrics data. This parameter should only
3584
+ # be provided to fetch Insights metrics data generated on trails
3585
+ # logging data events. This parameter is not required for Insights
3586
+ # metric data generated on trails logging management events.
3587
+ # @return [String]
3588
+ #
3446
3589
  # @!attribute [rw] event_source
3447
3590
  # The Amazon Web Services service to which the request was made, such
3448
3591
  # as `iam.amazonaws.com` or `s3.amazonaws.com`.
@@ -3513,6 +3656,7 @@ module Aws::CloudTrail
3513
3656
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricDataRequest AWS API Documentation
3514
3657
  #
3515
3658
  class ListInsightsMetricDataRequest < Struct.new(
3659
+ :trail_name,
3516
3660
  :event_source,
3517
3661
  :event_name,
3518
3662
  :insight_type,
@@ -3527,6 +3671,11 @@ module Aws::CloudTrail
3527
3671
  include Aws::Structure
3528
3672
  end
3529
3673
 
3674
+ # @!attribute [rw] trail_arn
3675
+ # Specifies the ARN of the trail. This is only returned when Insights
3676
+ # is enabled on a trail logging data events.
3677
+ # @return [String]
3678
+ #
3530
3679
  # @!attribute [rw] event_source
3531
3680
  # The Amazon Web Services service to which the request was made, such
3532
3681
  # as `iam.amazonaws.com` or `s3.amazonaws.com`.
@@ -3574,6 +3723,7 @@ module Aws::CloudTrail
3574
3723
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListInsightsMetricDataResponse AWS API Documentation
3575
3724
  #
3576
3725
  class ListInsightsMetricDataResponse < Struct.new(
3726
+ :trail_arn,
3577
3727
  :event_source,
3578
3728
  :event_name,
3579
3729
  :insight_type,
@@ -4007,10 +4157,14 @@ module Aws::CloudTrail
4007
4157
  include Aws::Structure
4008
4158
  end
4009
4159
 
4160
+ # @!attribute [rw] trail_name
4161
+ # The name of the trail for which you want to update event
4162
+ # configuration settings.
4163
+ # @return [String]
4164
+ #
4010
4165
  # @!attribute [rw] event_data_store
4011
4166
  # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
4012
- # data store for which you want to update event configuration
4013
- # settings.
4167
+ # data store for which event configuration settings are updated.
4014
4168
  # @return [String]
4015
4169
  #
4016
4170
  # @!attribute [rw] max_event_size
@@ -4024,16 +4178,28 @@ module Aws::CloudTrail
4024
4178
  # enriched event data.
4025
4179
  # @return [Array<Types::ContextKeySelector>]
4026
4180
  #
4181
+ # @!attribute [rw] aggregation_configurations
4182
+ # The list of aggregation configurations that you want to configure
4183
+ # for the trail.
4184
+ # @return [Array<Types::AggregationConfiguration>]
4185
+ #
4027
4186
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventConfigurationRequest AWS API Documentation
4028
4187
  #
4029
4188
  class PutEventConfigurationRequest < Struct.new(
4189
+ :trail_name,
4030
4190
  :event_data_store,
4031
4191
  :max_event_size,
4032
- :context_key_selectors)
4192
+ :context_key_selectors,
4193
+ :aggregation_configurations)
4033
4194
  SENSITIVE = []
4034
4195
  include Aws::Structure
4035
4196
  end
4036
4197
 
4198
+ # @!attribute [rw] trail_arn
4199
+ # The Amazon Resource Name (ARN) of the trail that has aggregation
4200
+ # enabled.
4201
+ # @return [String]
4202
+ #
4037
4203
  # @!attribute [rw] event_data_store_arn
4038
4204
  # The Amazon Resource Name (ARN) or ID suffix of the ARN of the event
4039
4205
  # data store for which the event configuration settings were updated.
@@ -4049,12 +4215,19 @@ module Aws::CloudTrail
4049
4215
  # data store.
4050
4216
  # @return [Array<Types::ContextKeySelector>]
4051
4217
  #
4218
+ # @!attribute [rw] aggregation_configurations
4219
+ # A list of aggregation configurations that are configured for the
4220
+ # trail.
4221
+ # @return [Array<Types::AggregationConfiguration>]
4222
+ #
4052
4223
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventConfigurationResponse AWS API Documentation
4053
4224
  #
4054
4225
  class PutEventConfigurationResponse < Struct.new(
4226
+ :trail_arn,
4055
4227
  :event_data_store_arn,
4056
4228
  :max_event_size,
4057
- :context_key_selectors)
4229
+ :context_key_selectors,
4230
+ :aggregation_configurations)
4058
4231
  SENSITIVE = []
4059
4232
  include Aws::Structure
4060
4233
  end
@@ -4164,17 +4337,19 @@ module Aws::CloudTrail
4164
4337
  # @return [String]
4165
4338
  #
4166
4339
  # @!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.
4340
+ # Contains the Insights types you want to log on a specific category
4341
+ # of events on a trail or event data store. `ApiCallRateInsight` and
4342
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory
4343
+ # field can specify `Management` or `Data` events or both. For event
4344
+ # data store, you can log Insights for management events only.
4170
4345
  #
4171
4346
  # The `ApiCallRateInsight` Insights type analyzes write-only
4172
- # management API calls that are aggregated per minute against a
4173
- # baseline API call volume.
4347
+ # management API calls or read and write data API calls that are
4348
+ # aggregated per minute against a baseline API call volume.
4174
4349
  #
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.
4350
+ # The `ApiErrorRateInsight` Insights type analyzes management and data
4351
+ # API calls that result in error codes. The error is shown if the API
4352
+ # call is unsuccessful.
4178
4353
  # @return [Array<Types::InsightSelector>]
4179
4354
  #
4180
4355
  # @!attribute [rw] event_data_store
@@ -4212,9 +4387,11 @@ module Aws::CloudTrail
4212
4387
  # @return [String]
4213
4388
  #
4214
4389
  # @!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`.
4390
+ # Contains the Insights types you want to log on a specific category
4391
+ # of events in a trail or event data store. `ApiCallRateInsight` and
4392
+ # `ApiErrorRateInsight` are valid Insight types.The EventCategory
4393
+ # field can specify `Management` or `Data` events or both. For event
4394
+ # data store, you can only log Insights for management events only.
4218
4395
  # @return [Array<Types::InsightSelector>]
4219
4396
  #
4220
4397
  # @!attribute [rw] event_data_store_arn
@@ -5342,9 +5519,9 @@ module Aws::CloudTrail
5342
5519
  # @return [String]
5343
5520
  #
5344
5521
  # @!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.
5522
+ # Specifies the KMS key ID that encrypts the logs and digest files
5523
+ # delivered by CloudTrail. The value is a fully specified ARN to a KMS
5524
+ # key in the following format.
5348
5525
  #
5349
5526
  # `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
5350
5527
  # @return [String]
@@ -5910,10 +6087,10 @@ module Aws::CloudTrail
5910
6087
  # @return [String]
5911
6088
  #
5912
6089
  # @!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.
6090
+ # Specifies the KMS key ID to use to encrypt the logs and digest files
6091
+ # delivered by CloudTrail. The value can be an alias name prefixed by
6092
+ # "alias/", a fully specified ARN to an alias, a fully specified ARN
6093
+ # to a key, or a globally unique identifier.
5917
6094
  #
5918
6095
  # CloudTrail also supports KMS multi-Region keys. For more information
5919
6096
  # about multi-Region keys, see [Using multi-Region keys][1] in the
@@ -6037,9 +6214,9 @@ module Aws::CloudTrail
6037
6214
  # @return [String]
6038
6215
  #
6039
6216
  # @!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.
6217
+ # Specifies the KMS key ID that encrypts the logs and digest files
6218
+ # delivered by CloudTrail. The value is a fully specified ARN to a KMS
6219
+ # key in the following format.
6043
6220
  #
6044
6221
  # `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
6045
6222
  # @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.115.0'
58
58
 
59
59
  end
60
60