aws-sdk-cloudtrail 1.69.0 → 1.71.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +224 -42
- data/lib/aws-sdk-cloudtrail/client_api.rb +21 -2
- data/lib/aws-sdk-cloudtrail/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-cloudtrail/types.rb +329 -47
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +2 -2
@@ -140,8 +140,8 @@ module Aws::CloudTrail
|
|
140
140
|
# events.
|
141
141
|
#
|
142
142
|
# * <b> <code>eventSource</code> </b> - For filtering management
|
143
|
-
# events only. This can be set
|
144
|
-
# `
|
143
|
+
# events only. This can be set to `NotEquals` `kms.amazonaws.com` or
|
144
|
+
# `NotEquals` `rdsdata.amazonaws.com`.
|
145
145
|
#
|
146
146
|
# * <b> <code>eventName</code> </b> - Can use any operator. You can
|
147
147
|
# use it to filter in or filter out any data event logged to
|
@@ -154,6 +154,9 @@ module Aws::CloudTrail
|
|
154
154
|
# * For CloudTrail event records, the value must be `Management` or
|
155
155
|
# `Data`.
|
156
156
|
#
|
157
|
+
# * For CloudTrail Insights event records, the value must be
|
158
|
+
# `Insight`.
|
159
|
+
#
|
157
160
|
# * For Config configuration items, the value must be
|
158
161
|
# `ConfigurationItem`.
|
159
162
|
#
|
@@ -174,6 +177,8 @@ module Aws::CloudTrail
|
|
174
177
|
#
|
175
178
|
# * `AWS::CloudTrail::Channel`
|
176
179
|
#
|
180
|
+
# * `AWS::CodeWhisperer::Customization`
|
181
|
+
#
|
177
182
|
# * `AWS::CodeWhisperer::Profile`
|
178
183
|
#
|
179
184
|
# * `AWS::Cognito::IdentityPool`
|
@@ -192,16 +197,26 @@ module Aws::CloudTrail
|
|
192
197
|
#
|
193
198
|
# * `AWS::KendraRanking::ExecutionPlan`
|
194
199
|
#
|
200
|
+
# * `AWS::KinesisVideo::Stream`
|
201
|
+
#
|
195
202
|
# * `AWS::ManagedBlockchain::Network`
|
196
203
|
#
|
197
204
|
# * `AWS::ManagedBlockchain::Node`
|
198
205
|
#
|
199
206
|
# * `AWS::MedicalImaging::Datastore`
|
200
207
|
#
|
208
|
+
# * `AWS::PCAConnectorAD::Connector`
|
209
|
+
#
|
210
|
+
# * `AWS::SageMaker::Endpoint`
|
211
|
+
#
|
201
212
|
# * `AWS::SageMaker::ExperimentTrialComponent`
|
202
213
|
#
|
203
214
|
# * `AWS::SageMaker::FeatureGroup`
|
204
215
|
#
|
216
|
+
# * `AWS::SNS::PlatformEndpoint`
|
217
|
+
#
|
218
|
+
# * `AWS::SNS::Topic`
|
219
|
+
#
|
205
220
|
# * `AWS::S3::AccessPoint`
|
206
221
|
#
|
207
222
|
# * `AWS::S3ObjectLambda::AccessPoint`
|
@@ -210,6 +225,10 @@ module Aws::CloudTrail
|
|
210
225
|
#
|
211
226
|
# * `AWS::SSMMessages::ControlChannel`
|
212
227
|
#
|
228
|
+
# * `AWS::Timestream::Database`
|
229
|
+
#
|
230
|
+
# * `AWS::Timestream::Table`
|
231
|
+
#
|
213
232
|
# * `AWS::VerifiedPermissions::PolicyStore`
|
214
233
|
#
|
215
234
|
# You can have only one `resources.type` field per selector. To log
|
@@ -256,6 +275,14 @@ module Aws::CloudTrail
|
|
256
275
|
#
|
257
276
|
# ^
|
258
277
|
#
|
278
|
+
# When resources.type equals `AWS::CodeWhisperer::Customization`,
|
279
|
+
# and the operator is set to `Equals` or `NotEquals`, the ARN must
|
280
|
+
# be in the following format:
|
281
|
+
#
|
282
|
+
# * `arn:<partition>:codewhisperer:<region>:<account_ID>:customization/<customization_ID>`
|
283
|
+
#
|
284
|
+
# ^
|
285
|
+
#
|
259
286
|
# When resources.type equals `AWS::CodeWhisperer::Profile`, and the
|
260
287
|
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
261
288
|
# following format:
|
@@ -328,6 +355,14 @@ module Aws::CloudTrail
|
|
328
355
|
#
|
329
356
|
# ^
|
330
357
|
#
|
358
|
+
# When `resources.type` equals `AWS::KinesisVideo::Stream`, and the
|
359
|
+
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
360
|
+
# following format:
|
361
|
+
#
|
362
|
+
# * `arn:<partition>:kinesisvideo:<region>:<account_ID>:stream/<stream_name/<creation_time>`
|
363
|
+
#
|
364
|
+
# ^
|
365
|
+
#
|
331
366
|
# When `resources.type` equals `AWS::ManagedBlockchain::Network`,
|
332
367
|
# and the operator is set to `Equals` or `NotEquals`, the ARN must
|
333
368
|
# be in the following format:
|
@@ -352,6 +387,22 @@ module Aws::CloudTrail
|
|
352
387
|
#
|
353
388
|
# ^
|
354
389
|
#
|
390
|
+
# When `resources.type` equals `AWS::PCAConnectorAD::Connector`, and
|
391
|
+
# the operator is set to `Equals` or `NotEquals`, the ARN must be in
|
392
|
+
# the following format:
|
393
|
+
#
|
394
|
+
# * `arn:<partition>:pca-connector-ad:<region>:<account_ID>:connector/<connector_ID>`
|
395
|
+
#
|
396
|
+
# ^
|
397
|
+
#
|
398
|
+
# When `resources.type` equals `AWS::SageMaker::Endpoint`, and the
|
399
|
+
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
400
|
+
# following format:
|
401
|
+
#
|
402
|
+
# * `arn:<partition>:sagemaker:<region>:<account_ID>:endpoint/<endpoint_name>`
|
403
|
+
#
|
404
|
+
# ^
|
405
|
+
#
|
355
406
|
# When `resources.type` equals
|
356
407
|
# `AWS::SageMaker::ExperimentTrialComponent`, and the operator is
|
357
408
|
# set to `Equals` or `NotEquals`, the ARN must be in the following
|
@@ -369,6 +420,22 @@ module Aws::CloudTrail
|
|
369
420
|
#
|
370
421
|
# ^
|
371
422
|
#
|
423
|
+
# When `resources.type` equals `AWS::SNS::PlatformEndpoint`, and the
|
424
|
+
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
425
|
+
# following format:
|
426
|
+
#
|
427
|
+
# * `arn:<partition>:sns:<region>:<account_ID>:endpoint/<endpoint_type>/<endpoint_name>/<endpoint_ID>`
|
428
|
+
#
|
429
|
+
# ^
|
430
|
+
#
|
431
|
+
# When `resources.type` equals `AWS::SNS::Topic`, and the operator
|
432
|
+
# is set to `Equals` or `NotEquals`, the ARN must be in the
|
433
|
+
# following format:
|
434
|
+
#
|
435
|
+
# * `arn:<partition>:sns:<region>:<account_ID>:<topic_name>`
|
436
|
+
#
|
437
|
+
# ^
|
438
|
+
#
|
372
439
|
# When `resources.type` equals `AWS::S3::AccessPoint`, and the
|
373
440
|
# operator is set to `Equals` or `NotEquals`, the ARN must be in one
|
374
441
|
# of the following formats. To log events on all objects in an S3
|
@@ -404,6 +471,22 @@ module Aws::CloudTrail
|
|
404
471
|
#
|
405
472
|
# ^
|
406
473
|
#
|
474
|
+
# When `resources.type` equals `AWS::Timestream::Database`, and the
|
475
|
+
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
476
|
+
# following format:
|
477
|
+
#
|
478
|
+
# * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>`
|
479
|
+
#
|
480
|
+
# ^
|
481
|
+
#
|
482
|
+
# When `resources.type` equals `AWS::Timestream::Table`, and the
|
483
|
+
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
484
|
+
# following format:
|
485
|
+
#
|
486
|
+
# * `arn:<partition>:timestream:<region>:<account_ID>:database/<database_name>/table/<table_name>`
|
487
|
+
#
|
488
|
+
# ^
|
489
|
+
#
|
407
490
|
# When resources.type equals
|
408
491
|
# `AWS::VerifiedPermissions::PolicyStore`, and the operator is set
|
409
492
|
# to `Equals` or `NotEquals`, the ARN must be in the following
|
@@ -561,15 +644,12 @@ module Aws::CloudTrail
|
|
561
644
|
#
|
562
645
|
class ChannelNotFoundException < Aws::EmptyStructure; end
|
563
646
|
|
564
|
-
# This exception is thrown when an operation is called with
|
565
|
-
#
|
647
|
+
# This exception is thrown when an operation is called with an ARN that
|
648
|
+
# is not valid.
|
566
649
|
#
|
650
|
+
# The following is the format of a trail ARN:
|
567
651
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
568
652
|
#
|
569
|
-
# This exception is also thrown when you call `AddTags` or `RemoveTags`
|
570
|
-
# on a trail, event data store, or channel with a resource ARN that is
|
571
|
-
# not valid.
|
572
|
-
#
|
573
653
|
# The following is the format of an event data store ARN:
|
574
654
|
# `arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
|
575
655
|
#
|
@@ -734,8 +814,12 @@ module Aws::CloudTrail
|
|
734
814
|
# @return [Boolean]
|
735
815
|
#
|
736
816
|
# @!attribute [rw] retention_period
|
737
|
-
# The retention period of the event data store, in days.
|
817
|
+
# The retention period of the event data store, in days. If
|
818
|
+
# `BillingMode` is set to `EXTENDABLE_RETENTION_PRICING`, you can set
|
819
|
+
# a retention period of up to 3653 days, the equivalent of 10 years.
|
820
|
+
# If `BillingMode` is set to `FIXED_RETENTION_PRICING`, you can set a
|
738
821
|
# retention period of up to 2557 days, the equivalent of seven years.
|
822
|
+
#
|
739
823
|
# CloudTrail Lake determines whether to retain an event by checking if
|
740
824
|
# the `eventTime` of the event is within the specified retention
|
741
825
|
# period. For example, if you set a retention period of 90 days,
|
@@ -801,6 +885,34 @@ module Aws::CloudTrail
|
|
801
885
|
# events. The default is true.
|
802
886
|
# @return [Boolean]
|
803
887
|
#
|
888
|
+
# @!attribute [rw] billing_mode
|
889
|
+
# The billing mode for the event data store determines the cost for
|
890
|
+
# ingesting events and the default and maximum retention period for
|
891
|
+
# the event data store.
|
892
|
+
#
|
893
|
+
# The following are the possible values:
|
894
|
+
#
|
895
|
+
# * `EXTENDABLE_RETENTION_PRICING` - This billing mode is generally
|
896
|
+
# recommended if you want a flexible retention period of up to 3653
|
897
|
+
# days (about 10 years). The default retention period for this
|
898
|
+
# billing mode is 366 days.
|
899
|
+
#
|
900
|
+
# * `FIXED_RETENTION_PRICING` - This billing mode is recommended if
|
901
|
+
# you expect to ingest more than 25 TB of event data per month and
|
902
|
+
# need a retention period of up to 2557 days (about 7 years). The
|
903
|
+
# default retention period for this billing mode is 2557 days.
|
904
|
+
#
|
905
|
+
# The default value is `EXTENDABLE_RETENTION_PRICING`.
|
906
|
+
#
|
907
|
+
# For more information about CloudTrail pricing, see [CloudTrail
|
908
|
+
# Pricing][1] and [Managing CloudTrail Lake costs][2].
|
909
|
+
#
|
910
|
+
#
|
911
|
+
#
|
912
|
+
# [1]: http://aws.amazon.com/cloudtrail/pricing/
|
913
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html
|
914
|
+
# @return [String]
|
915
|
+
#
|
804
916
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStoreRequest AWS API Documentation
|
805
917
|
#
|
806
918
|
class CreateEventDataStoreRequest < Struct.new(
|
@@ -812,7 +924,8 @@ module Aws::CloudTrail
|
|
812
924
|
:termination_protection_enabled,
|
813
925
|
:tags_list,
|
814
926
|
:kms_key_id,
|
815
|
-
:start_ingestion
|
927
|
+
:start_ingestion,
|
928
|
+
:billing_mode)
|
816
929
|
SENSITIVE = []
|
817
930
|
include Aws::Structure
|
818
931
|
end
|
@@ -875,6 +988,10 @@ module Aws::CloudTrail
|
|
875
988
|
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
876
989
|
# @return [String]
|
877
990
|
#
|
991
|
+
# @!attribute [rw] billing_mode
|
992
|
+
# The billing mode for the event data store.
|
993
|
+
# @return [String]
|
994
|
+
#
|
878
995
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStoreResponse AWS API Documentation
|
879
996
|
#
|
880
997
|
class CreateEventDataStoreResponse < Struct.new(
|
@@ -889,7 +1006,8 @@ module Aws::CloudTrail
|
|
889
1006
|
:tags_list,
|
890
1007
|
:created_timestamp,
|
891
1008
|
:updated_timestamp,
|
892
|
-
:kms_key_id
|
1009
|
+
:kms_key_id,
|
1010
|
+
:billing_mode)
|
893
1011
|
SENSITIVE = []
|
894
1012
|
include Aws::Structure
|
895
1013
|
end
|
@@ -974,6 +1092,11 @@ module Aws::CloudTrail
|
|
974
1092
|
# account.
|
975
1093
|
#
|
976
1094
|
# Not required unless you specify `CloudWatchLogsRoleArn`.
|
1095
|
+
#
|
1096
|
+
# <note markdown="1"> Only the management account can configure a CloudWatch Logs log
|
1097
|
+
# group for an organization trail.
|
1098
|
+
#
|
1099
|
+
# </note>
|
977
1100
|
# @return [String]
|
978
1101
|
#
|
979
1102
|
# @!attribute [rw] cloud_watch_logs_role_arn
|
@@ -1210,6 +1333,8 @@ module Aws::CloudTrail
|
|
1210
1333
|
#
|
1211
1334
|
# * `AWS::CloudTrail::Channel`
|
1212
1335
|
#
|
1336
|
+
# * `AWS::CodeWhisperer::Customization`
|
1337
|
+
#
|
1213
1338
|
# * `AWS::CodeWhisperer::Profile`
|
1214
1339
|
#
|
1215
1340
|
# * `AWS::Cognito::IdentityPool`
|
@@ -1228,16 +1353,26 @@ module Aws::CloudTrail
|
|
1228
1353
|
#
|
1229
1354
|
# * `AWS::KendraRanking::ExecutionPlan`
|
1230
1355
|
#
|
1356
|
+
# * `AWS::KinesisVideo::Stream`
|
1357
|
+
#
|
1231
1358
|
# * `AWS::ManagedBlockchain::Network`
|
1232
1359
|
#
|
1233
1360
|
# * `AWS::ManagedBlockchain::Node`
|
1234
1361
|
#
|
1235
1362
|
# * `AWS::MedicalImaging::Datastore`
|
1236
1363
|
#
|
1364
|
+
# * `AWS::PCAConnectorAD::Connector`
|
1365
|
+
#
|
1366
|
+
# * `AWS::SageMaker::Endpoint`
|
1367
|
+
#
|
1237
1368
|
# * `AWS::SageMaker::ExperimentTrialComponent`
|
1238
1369
|
#
|
1239
1370
|
# * `AWS::SageMaker::FeatureGroup`
|
1240
1371
|
#
|
1372
|
+
# * `AWS::SNS::PlatformEndpoint`
|
1373
|
+
#
|
1374
|
+
# * `AWS::SNS::Topic`
|
1375
|
+
#
|
1241
1376
|
# * `AWS::S3::AccessPoint`
|
1242
1377
|
#
|
1243
1378
|
# * `AWS::S3ObjectLambda::AccessPoint`
|
@@ -1246,6 +1381,10 @@ module Aws::CloudTrail
|
|
1246
1381
|
#
|
1247
1382
|
# * `AWS::SSMMessages::ControlChannel`
|
1248
1383
|
#
|
1384
|
+
# * `AWS::Timestream::Database`
|
1385
|
+
#
|
1386
|
+
# * `AWS::Timestream::Table`
|
1387
|
+
#
|
1249
1388
|
# * `AWS::VerifiedPermissions::PolicyStore`
|
1250
1389
|
#
|
1251
1390
|
#
|
@@ -1640,9 +1779,8 @@ module Aws::CloudTrail
|
|
1640
1779
|
|
1641
1780
|
# A storage lake of event data against which you can run complex
|
1642
1781
|
# SQL-based queries. An event data store can include events that you
|
1643
|
-
# have logged on your account
|
1644
|
-
#
|
1645
|
-
# store, use [advanced event selectors][1].
|
1782
|
+
# have logged on your account. To select events for an event data store,
|
1783
|
+
# use [advanced event selectors][1].
|
1646
1784
|
#
|
1647
1785
|
#
|
1648
1786
|
#
|
@@ -1958,6 +2096,10 @@ module Aws::CloudTrail
|
|
1958
2096
|
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
1959
2097
|
# @return [String]
|
1960
2098
|
#
|
2099
|
+
# @!attribute [rw] billing_mode
|
2100
|
+
# The billing mode for the event data store.
|
2101
|
+
# @return [String]
|
2102
|
+
#
|
1961
2103
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventDataStoreResponse AWS API Documentation
|
1962
2104
|
#
|
1963
2105
|
class GetEventDataStoreResponse < Struct.new(
|
@@ -1971,7 +2113,8 @@ module Aws::CloudTrail
|
|
1971
2113
|
:termination_protection_enabled,
|
1972
2114
|
:created_timestamp,
|
1973
2115
|
:updated_timestamp,
|
1974
|
-
:kms_key_id
|
2116
|
+
:kms_key_id,
|
2117
|
+
:billing_mode)
|
1975
2118
|
SENSITIVE = []
|
1976
2119
|
include Aws::Structure
|
1977
2120
|
end
|
@@ -2118,12 +2261,22 @@ module Aws::CloudTrail
|
|
2118
2261
|
# If you specify a trail ARN, it must be in the format:
|
2119
2262
|
#
|
2120
2263
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
2264
|
+
#
|
2265
|
+
# You cannot use this parameter with the `EventDataStore` parameter.
|
2266
|
+
# @return [String]
|
2267
|
+
#
|
2268
|
+
# @!attribute [rw] event_data_store
|
2269
|
+
# Specifies the ARN (or ID suffix of the ARN) of the event data store
|
2270
|
+
# for which you want to get Insights selectors.
|
2271
|
+
#
|
2272
|
+
# You cannot use this parameter with the `TrailName` parameter.
|
2121
2273
|
# @return [String]
|
2122
2274
|
#
|
2123
2275
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectorsRequest AWS API Documentation
|
2124
2276
|
#
|
2125
2277
|
class GetInsightSelectorsRequest < Struct.new(
|
2126
|
-
:trail_name
|
2278
|
+
:trail_name,
|
2279
|
+
:event_data_store)
|
2127
2280
|
SENSITIVE = []
|
2128
2281
|
include Aws::Structure
|
2129
2282
|
end
|
@@ -2134,16 +2287,27 @@ module Aws::CloudTrail
|
|
2134
2287
|
# @return [String]
|
2135
2288
|
#
|
2136
2289
|
# @!attribute [rw] insight_selectors
|
2137
|
-
# A JSON string that contains the
|
2138
|
-
# trail
|
2139
|
-
# `ApiCallRateInsight` are supported as
|
2290
|
+
# A JSON string that contains the Insight types you want to log on a
|
2291
|
+
# trail or event data store. `ApiErrorRateInsight` and
|
2292
|
+
# `ApiCallRateInsight` are supported as Insights types.
|
2140
2293
|
# @return [Array<Types::InsightSelector>]
|
2141
2294
|
#
|
2295
|
+
# @!attribute [rw] event_data_store_arn
|
2296
|
+
# The ARN of the source event data store that enabled Insights events.
|
2297
|
+
# @return [String]
|
2298
|
+
#
|
2299
|
+
# @!attribute [rw] insights_destination
|
2300
|
+
# The ARN of the destination event data store that logs Insights
|
2301
|
+
# events.
|
2302
|
+
# @return [String]
|
2303
|
+
#
|
2142
2304
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectorsResponse AWS API Documentation
|
2143
2305
|
#
|
2144
2306
|
class GetInsightSelectorsResponse < Struct.new(
|
2145
2307
|
:trail_arn,
|
2146
|
-
:insight_selectors
|
2308
|
+
:insight_selectors,
|
2309
|
+
:event_data_store_arn,
|
2310
|
+
:insights_destination)
|
2147
2311
|
SENSITIVE = []
|
2148
2312
|
include Aws::Structure
|
2149
2313
|
end
|
@@ -2603,20 +2767,21 @@ module Aws::CloudTrail
|
|
2603
2767
|
include Aws::Structure
|
2604
2768
|
end
|
2605
2769
|
|
2606
|
-
# If you run `GetInsightSelectors` on a trail
|
2607
|
-
# Insights events enabled, the operation throws the
|
2608
|
-
# `InsightNotEnabledException`.
|
2770
|
+
# If you run `GetInsightSelectors` on a trail or event data store that
|
2771
|
+
# does not have Insights events enabled, the operation throws the
|
2772
|
+
# exception `InsightNotEnabledException`.
|
2609
2773
|
#
|
2610
2774
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsightNotEnabledException AWS API Documentation
|
2611
2775
|
#
|
2612
2776
|
class InsightNotEnabledException < Aws::EmptyStructure; end
|
2613
2777
|
|
2614
2778
|
# A JSON string that contains a list of Insights types that are logged
|
2615
|
-
# on a trail.
|
2779
|
+
# on a trail or event data store.
|
2616
2780
|
#
|
2617
2781
|
# @!attribute [rw] insight_type
|
2618
|
-
# The type of Insights events to log on a trail.
|
2619
|
-
# and `ApiErrorRateInsight` are valid Insight
|
2782
|
+
# The type of Insights events to log on a trail or event data store.
|
2783
|
+
# `ApiCallRateInsight` and `ApiErrorRateInsight` are valid Insight
|
2784
|
+
# types.
|
2620
2785
|
#
|
2621
2786
|
# The `ApiCallRateInsight` Insights type analyzes write-only
|
2622
2787
|
# management API calls that are aggregated per minute against a
|
@@ -2754,10 +2919,24 @@ module Aws::CloudTrail
|
|
2754
2919
|
#
|
2755
2920
|
class InvalidImportSourceException < Aws::EmptyStructure; end
|
2756
2921
|
|
2757
|
-
#
|
2758
|
-
#
|
2759
|
-
# valid, or the specified
|
2760
|
-
# statement is not
|
2922
|
+
# For `PutInsightSelectors`, this exception is thrown when the
|
2923
|
+
# formatting or syntax of the `InsightSelectors` JSON statement is not
|
2924
|
+
# valid, or the specified `InsightType` in the `InsightSelectors`
|
2925
|
+
# statement is not valid. Valid values for `InsightType` are
|
2926
|
+
# `ApiCallRateInsight` and `ApiErrorRateInsight`. To enable Insights on
|
2927
|
+
# an event data store, the destination event data store specified by the
|
2928
|
+
# `InsightsDestination` parameter must log Insights events and the
|
2929
|
+
# source event data store specified by the `EventDataStore` parameter
|
2930
|
+
# must log management events.
|
2931
|
+
#
|
2932
|
+
# For `UpdateEventDataStore`, this exception is thrown if Insights are
|
2933
|
+
# enabled on the event data store and the updated advanced event
|
2934
|
+
# selectors are not compatible with the configured `InsightSelectors`.
|
2935
|
+
# If the `InsightSelectors` includes an `InsightType` of
|
2936
|
+
# `ApiCallRateInsight`, the source event data store must log `write`
|
2937
|
+
# management events. If the `InsightSelectors` includes an `InsightType`
|
2938
|
+
# of `ApiErrorRateInsight`, the source event data store must log
|
2939
|
+
# management events.
|
2761
2940
|
#
|
2762
2941
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidInsightSelectorsException AWS API Documentation
|
2763
2942
|
#
|
@@ -3549,12 +3728,15 @@ module Aws::CloudTrail
|
|
3549
3728
|
# @!attribute [rw] trail_name
|
3550
3729
|
# The name of the CloudTrail trail for which you want to change or add
|
3551
3730
|
# Insights selectors.
|
3731
|
+
#
|
3732
|
+
# You cannot use this parameter with the `EventDataStore` and
|
3733
|
+
# `InsightsDestination` parameters.
|
3552
3734
|
# @return [String]
|
3553
3735
|
#
|
3554
3736
|
# @!attribute [rw] insight_selectors
|
3555
|
-
# A JSON string that contains the
|
3556
|
-
# trail. `ApiCallRateInsight` and
|
3557
|
-
# Insight types.
|
3737
|
+
# A JSON string that contains the Insights types you want to log on a
|
3738
|
+
# trail or event data store. `ApiCallRateInsight` and
|
3739
|
+
# `ApiErrorRateInsight` are valid Insight types.
|
3558
3740
|
#
|
3559
3741
|
# The `ApiCallRateInsight` Insights type analyzes write-only
|
3560
3742
|
# management API calls that are aggregated per minute against a
|
@@ -3565,11 +3747,31 @@ module Aws::CloudTrail
|
|
3565
3747
|
# is unsuccessful.
|
3566
3748
|
# @return [Array<Types::InsightSelector>]
|
3567
3749
|
#
|
3750
|
+
# @!attribute [rw] event_data_store
|
3751
|
+
# The ARN (or ID suffix of the ARN) of the source event data store for
|
3752
|
+
# which you want to change or add Insights selectors. To enable
|
3753
|
+
# Insights on an event data store, you must provide both the
|
3754
|
+
# `EventDataStore` and `InsightsDestination` parameters.
|
3755
|
+
#
|
3756
|
+
# You cannot use this parameter with the `TrailName` parameter.
|
3757
|
+
# @return [String]
|
3758
|
+
#
|
3759
|
+
# @!attribute [rw] insights_destination
|
3760
|
+
# The ARN (or ID suffix of the ARN) of the destination event data
|
3761
|
+
# store that logs Insights events. To enable Insights on an event data
|
3762
|
+
# store, you must provide both the `EventDataStore` and
|
3763
|
+
# `InsightsDestination` parameters.
|
3764
|
+
#
|
3765
|
+
# You cannot use this parameter with the `TrailName` parameter.
|
3766
|
+
# @return [String]
|
3767
|
+
#
|
3568
3768
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectorsRequest AWS API Documentation
|
3569
3769
|
#
|
3570
3770
|
class PutInsightSelectorsRequest < Struct.new(
|
3571
3771
|
:trail_name,
|
3572
|
-
:insight_selectors
|
3772
|
+
:insight_selectors,
|
3773
|
+
:event_data_store,
|
3774
|
+
:insights_destination)
|
3573
3775
|
SENSITIVE = []
|
3574
3776
|
include Aws::Structure
|
3575
3777
|
end
|
@@ -3581,15 +3783,27 @@ module Aws::CloudTrail
|
|
3581
3783
|
#
|
3582
3784
|
# @!attribute [rw] insight_selectors
|
3583
3785
|
# A JSON string that contains the Insights event types that you want
|
3584
|
-
# to log on a trail. The valid Insights types
|
3786
|
+
# to log on a trail or event data store. The valid Insights types are
|
3585
3787
|
# `ApiErrorRateInsight` and `ApiCallRateInsight`.
|
3586
3788
|
# @return [Array<Types::InsightSelector>]
|
3587
3789
|
#
|
3790
|
+
# @!attribute [rw] event_data_store_arn
|
3791
|
+
# The Amazon Resource Name (ARN) of the source event data store for
|
3792
|
+
# which you want to change or add Insights selectors.
|
3793
|
+
# @return [String]
|
3794
|
+
#
|
3795
|
+
# @!attribute [rw] insights_destination
|
3796
|
+
# The ARN of the destination event data store that logs Insights
|
3797
|
+
# events.
|
3798
|
+
# @return [String]
|
3799
|
+
#
|
3588
3800
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectorsResponse AWS API Documentation
|
3589
3801
|
#
|
3590
3802
|
class PutInsightSelectorsResponse < Struct.new(
|
3591
3803
|
:trail_arn,
|
3592
|
-
:insight_selectors
|
3804
|
+
:insight_selectors,
|
3805
|
+
:event_data_store_arn,
|
3806
|
+
:insights_destination)
|
3593
3807
|
SENSITIVE = []
|
3594
3808
|
include Aws::Structure
|
3595
3809
|
end
|
@@ -3963,6 +4177,10 @@ module Aws::CloudTrail
|
|
3963
4177
|
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
3964
4178
|
# @return [String]
|
3965
4179
|
#
|
4180
|
+
# @!attribute [rw] billing_mode
|
4181
|
+
# The billing mode for the event data store.
|
4182
|
+
# @return [String]
|
4183
|
+
#
|
3966
4184
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RestoreEventDataStoreResponse AWS API Documentation
|
3967
4185
|
#
|
3968
4186
|
class RestoreEventDataStoreResponse < Struct.new(
|
@@ -3976,7 +4194,8 @@ module Aws::CloudTrail
|
|
3976
4194
|
:termination_protection_enabled,
|
3977
4195
|
:created_timestamp,
|
3978
4196
|
:updated_timestamp,
|
3979
|
-
:kms_key_id
|
4197
|
+
:kms_key_id,
|
4198
|
+
:billing_mode)
|
3980
4199
|
SENSITIVE = []
|
3981
4200
|
include Aws::Structure
|
3982
4201
|
end
|
@@ -4602,11 +4821,22 @@ module Aws::CloudTrail
|
|
4602
4821
|
# @!attribute [rw] organization_enabled
|
4603
4822
|
# Specifies whether an event data store collects events logged for an
|
4604
4823
|
# organization in Organizations.
|
4824
|
+
#
|
4825
|
+
# <note markdown="1"> Only the management account for the organization can convert an
|
4826
|
+
# organization event data store to a non-organization event data
|
4827
|
+
# store, or convert a non-organization event data store to an
|
4828
|
+
# organization event data store.
|
4829
|
+
#
|
4830
|
+
# </note>
|
4605
4831
|
# @return [Boolean]
|
4606
4832
|
#
|
4607
4833
|
# @!attribute [rw] retention_period
|
4608
|
-
# The retention period of the event data store, in days.
|
4834
|
+
# The retention period of the event data store, in days. If
|
4835
|
+
# `BillingMode` is set to `EXTENDABLE_RETENTION_PRICING`, you can set
|
4836
|
+
# a retention period of up to 3653 days, the equivalent of 10 years.
|
4837
|
+
# If `BillingMode` is set to `FIXED_RETENTION_PRICING`, you can set a
|
4609
4838
|
# retention period of up to 2557 days, the equivalent of seven years.
|
4839
|
+
#
|
4610
4840
|
# CloudTrail Lake determines whether to retain an event by checking if
|
4611
4841
|
# the `eventTime` of the event is within the specified retention
|
4612
4842
|
# period. For example, if you set a retention period of 90 days,
|
@@ -4661,6 +4891,41 @@ module Aws::CloudTrail
|
|
4661
4891
|
# [1]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html
|
4662
4892
|
# @return [String]
|
4663
4893
|
#
|
4894
|
+
# @!attribute [rw] billing_mode
|
4895
|
+
# <note markdown="1"> You can't change the billing mode from
|
4896
|
+
# `EXTENDABLE_RETENTION_PRICING` to `FIXED_RETENTION_PRICING`. If
|
4897
|
+
# `BillingMode` is set to `EXTENDABLE_RETENTION_PRICING` and you want
|
4898
|
+
# to use `FIXED_RETENTION_PRICING` instead, you'll need to stop
|
4899
|
+
# ingestion on the event data store and create a new event data store
|
4900
|
+
# that uses `FIXED_RETENTION_PRICING`.
|
4901
|
+
#
|
4902
|
+
# </note>
|
4903
|
+
#
|
4904
|
+
# The billing mode for the event data store determines the cost for
|
4905
|
+
# ingesting events and the default and maximum retention period for
|
4906
|
+
# the event data store.
|
4907
|
+
#
|
4908
|
+
# The following are the possible values:
|
4909
|
+
#
|
4910
|
+
# * `EXTENDABLE_RETENTION_PRICING` - This billing mode is generally
|
4911
|
+
# recommended if you want a flexible retention period of up to 3653
|
4912
|
+
# days (about 10 years). The default retention period for this
|
4913
|
+
# billing mode is 366 days.
|
4914
|
+
#
|
4915
|
+
# * `FIXED_RETENTION_PRICING` - This billing mode is recommended if
|
4916
|
+
# you expect to ingest more than 25 TB of event data per month and
|
4917
|
+
# need a retention period of up to 2557 days (about 7 years). The
|
4918
|
+
# default retention period for this billing mode is 2557 days.
|
4919
|
+
#
|
4920
|
+
# For more information about CloudTrail pricing, see [CloudTrail
|
4921
|
+
# Pricing][1] and [Managing CloudTrail Lake costs][2].
|
4922
|
+
#
|
4923
|
+
#
|
4924
|
+
#
|
4925
|
+
# [1]: http://aws.amazon.com/cloudtrail/pricing/
|
4926
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html
|
4927
|
+
# @return [String]
|
4928
|
+
#
|
4664
4929
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStoreRequest AWS API Documentation
|
4665
4930
|
#
|
4666
4931
|
class UpdateEventDataStoreRequest < Struct.new(
|
@@ -4671,7 +4936,8 @@ module Aws::CloudTrail
|
|
4671
4936
|
:organization_enabled,
|
4672
4937
|
:retention_period,
|
4673
4938
|
:termination_protection_enabled,
|
4674
|
-
:kms_key_id
|
4939
|
+
:kms_key_id,
|
4940
|
+
:billing_mode)
|
4675
4941
|
SENSITIVE = []
|
4676
4942
|
include Aws::Structure
|
4677
4943
|
end
|
@@ -4730,6 +4996,10 @@ module Aws::CloudTrail
|
|
4730
4996
|
# `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
|
4731
4997
|
# @return [String]
|
4732
4998
|
#
|
4999
|
+
# @!attribute [rw] billing_mode
|
5000
|
+
# The billing mode for the event data store.
|
5001
|
+
# @return [String]
|
5002
|
+
#
|
4733
5003
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStoreResponse AWS API Documentation
|
4734
5004
|
#
|
4735
5005
|
class UpdateEventDataStoreResponse < Struct.new(
|
@@ -4743,7 +5013,8 @@ module Aws::CloudTrail
|
|
4743
5013
|
:termination_protection_enabled,
|
4744
5014
|
:created_timestamp,
|
4745
5015
|
:updated_timestamp,
|
4746
|
-
:kms_key_id
|
5016
|
+
:kms_key_id,
|
5017
|
+
:billing_mode)
|
4747
5018
|
SENSITIVE = []
|
4748
5019
|
include Aws::Structure
|
4749
5020
|
end
|
@@ -4836,6 +5107,11 @@ module Aws::CloudTrail
|
|
4836
5107
|
# account.
|
4837
5108
|
#
|
4838
5109
|
# Not required unless you specify `CloudWatchLogsRoleArn`.
|
5110
|
+
#
|
5111
|
+
# <note markdown="1"> Only the management account can configure a CloudWatch Logs log
|
5112
|
+
# group for an organization trail.
|
5113
|
+
#
|
5114
|
+
# </note>
|
4839
5115
|
# @return [String]
|
4840
5116
|
#
|
4841
5117
|
# @!attribute [rw] cloud_watch_logs_role_arn
|
@@ -4874,13 +5150,19 @@ module Aws::CloudTrail
|
|
4874
5150
|
# organization in Organizations, or only for the current Amazon Web
|
4875
5151
|
# Services account. The default is false, and cannot be true unless
|
4876
5152
|
# the call is made on behalf of an Amazon Web Services account that is
|
4877
|
-
# the management account
|
4878
|
-
#
|
4879
|
-
# trail
|
4880
|
-
#
|
4881
|
-
#
|
4882
|
-
#
|
4883
|
-
#
|
5153
|
+
# the management account for an organization in Organizations. If the
|
5154
|
+
# trail is not an organization trail and this is set to `true`, the
|
5155
|
+
# trail will be created in all Amazon Web Services accounts that
|
5156
|
+
# belong to the organization. If the trail is an organization trail
|
5157
|
+
# and this is set to `false`, the trail will remain in the current
|
5158
|
+
# Amazon Web Services account but be deleted from all member accounts
|
5159
|
+
# in the organization.
|
5160
|
+
#
|
5161
|
+
# <note markdown="1"> Only the management account for the organization can convert an
|
5162
|
+
# organization trail to a non-organization trail, or convert a
|
5163
|
+
# non-organization trail to an organization trail.
|
5164
|
+
#
|
5165
|
+
# </note>
|
4884
5166
|
# @return [Boolean]
|
4885
5167
|
#
|
4886
5168
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateTrailRequest AWS API Documentation
|