aws-sdk-cloudtrail 1.41.0 → 1.45.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +728 -18
- data/lib/aws-sdk-cloudtrail/client_api.rb +478 -4
- data/lib/aws-sdk-cloudtrail/errors.rb +154 -0
- data/lib/aws-sdk-cloudtrail/types.rb +1106 -32
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +4 -4
@@ -17,10 +17,10 @@ module Aws::CloudTrail
|
|
17
17
|
#
|
18
18
|
# {
|
19
19
|
# resource_id: "String", # required
|
20
|
-
# tags_list: [
|
20
|
+
# tags_list: [ # required
|
21
21
|
# {
|
22
|
-
# key: "
|
23
|
-
# value: "
|
22
|
+
# key: "TagKey", # required
|
23
|
+
# value: "TagValue",
|
24
24
|
# },
|
25
25
|
# ],
|
26
26
|
# }
|
@@ -135,8 +135,10 @@ module Aws::CloudTrail
|
|
135
135
|
# `resources.ARN`.
|
136
136
|
#
|
137
137
|
# * <b> <code>readOnly</code> </b> - Optional. Can be set to `Equals`
|
138
|
-
# a value of `true` or `false`.
|
139
|
-
# and `write` events.
|
138
|
+
# a value of `true` or `false`. If you do not add this field,
|
139
|
+
# CloudTrail logs both both `read` and `write` events. A value of
|
140
|
+
# `true` logs only `read` events. A value of `false` logs only
|
141
|
+
# `write` events.
|
140
142
|
#
|
141
143
|
# * <b> <code>eventSource</code> </b> - For filtering management
|
142
144
|
# events only. This can be set only to `NotEquals`
|
@@ -172,6 +174,8 @@ module Aws::CloudTrail
|
|
172
174
|
#
|
173
175
|
# * `AWS::DynamoDB::Stream`
|
174
176
|
#
|
177
|
+
# * `AWS::Glue::Table`
|
178
|
+
#
|
175
179
|
# You can have only one `resources.type` field per selector. To log
|
176
180
|
# data events on more than one resource type, add another selector.
|
177
181
|
#
|
@@ -258,6 +262,14 @@ module Aws::CloudTrail
|
|
258
262
|
# * `arn:<partition>:dynamodb:<region>:<account_ID>:table/<table_name>/stream/<date_time>`
|
259
263
|
#
|
260
264
|
# ^
|
265
|
+
#
|
266
|
+
# When `resources.type` equals `AWS::Glue::Table`, and the operator
|
267
|
+
# is set to `Equals` or `NotEquals`, the ARN must be in the
|
268
|
+
# following format:
|
269
|
+
#
|
270
|
+
# * `arn:<partition>:glue:<region>:<account_ID>:table/<database_name>/<table_name>`
|
271
|
+
#
|
272
|
+
# ^
|
261
273
|
# @return [String]
|
262
274
|
#
|
263
275
|
# @!attribute [rw] equals
|
@@ -306,6 +318,51 @@ module Aws::CloudTrail
|
|
306
318
|
include Aws::Structure
|
307
319
|
end
|
308
320
|
|
321
|
+
# @note When making an API call, you may pass CancelQueryRequest
|
322
|
+
# data as a hash:
|
323
|
+
#
|
324
|
+
# {
|
325
|
+
# event_data_store: "EventDataStoreArn", # required
|
326
|
+
# query_id: "UUID", # required
|
327
|
+
# }
|
328
|
+
#
|
329
|
+
# @!attribute [rw] event_data_store
|
330
|
+
# The ARN (or the ID suffix of the ARN) of an event data store on
|
331
|
+
# which the specified query is running.
|
332
|
+
# @return [String]
|
333
|
+
#
|
334
|
+
# @!attribute [rw] query_id
|
335
|
+
# The ID of the query that you want to cancel. The `QueryId` comes
|
336
|
+
# from the response of a `StartQuery` operation.
|
337
|
+
# @return [String]
|
338
|
+
#
|
339
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CancelQueryRequest AWS API Documentation
|
340
|
+
#
|
341
|
+
class CancelQueryRequest < Struct.new(
|
342
|
+
:event_data_store,
|
343
|
+
:query_id)
|
344
|
+
SENSITIVE = []
|
345
|
+
include Aws::Structure
|
346
|
+
end
|
347
|
+
|
348
|
+
# @!attribute [rw] query_id
|
349
|
+
# The ID of the canceled query.
|
350
|
+
# @return [String]
|
351
|
+
#
|
352
|
+
# @!attribute [rw] query_status
|
353
|
+
# Shows the status of a query after a `CancelQuery` request.
|
354
|
+
# Typically, the values shown are either `RUNNING` or `CANCELLED`.
|
355
|
+
# @return [String]
|
356
|
+
#
|
357
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CancelQueryResponse AWS API Documentation
|
358
|
+
#
|
359
|
+
class CancelQueryResponse < Struct.new(
|
360
|
+
:query_id,
|
361
|
+
:query_status)
|
362
|
+
SENSITIVE = []
|
363
|
+
include Aws::Structure
|
364
|
+
end
|
365
|
+
|
309
366
|
# This exception is thrown when an operation is called with a trail ARN
|
310
367
|
# that is not valid. The following is the format of a trail ARN.
|
311
368
|
#
|
@@ -354,6 +411,162 @@ module Aws::CloudTrail
|
|
354
411
|
#
|
355
412
|
class ConflictException < Aws::EmptyStructure; end
|
356
413
|
|
414
|
+
# @note When making an API call, you may pass CreateEventDataStoreRequest
|
415
|
+
# data as a hash:
|
416
|
+
#
|
417
|
+
# {
|
418
|
+
# name: "EventDataStoreName", # required
|
419
|
+
# advanced_event_selectors: [
|
420
|
+
# {
|
421
|
+
# name: "SelectorName",
|
422
|
+
# field_selectors: [ # required
|
423
|
+
# {
|
424
|
+
# field: "SelectorField", # required
|
425
|
+
# equals: ["OperatorValue"],
|
426
|
+
# starts_with: ["OperatorValue"],
|
427
|
+
# ends_with: ["OperatorValue"],
|
428
|
+
# not_equals: ["OperatorValue"],
|
429
|
+
# not_starts_with: ["OperatorValue"],
|
430
|
+
# not_ends_with: ["OperatorValue"],
|
431
|
+
# },
|
432
|
+
# ],
|
433
|
+
# },
|
434
|
+
# ],
|
435
|
+
# multi_region_enabled: false,
|
436
|
+
# organization_enabled: false,
|
437
|
+
# retention_period: 1,
|
438
|
+
# termination_protection_enabled: false,
|
439
|
+
# tags_list: [
|
440
|
+
# {
|
441
|
+
# key: "TagKey", # required
|
442
|
+
# value: "TagValue",
|
443
|
+
# },
|
444
|
+
# ],
|
445
|
+
# }
|
446
|
+
#
|
447
|
+
# @!attribute [rw] name
|
448
|
+
# The name of the event data store.
|
449
|
+
# @return [String]
|
450
|
+
#
|
451
|
+
# @!attribute [rw] advanced_event_selectors
|
452
|
+
# The advanced event selectors to use to select the events for the
|
453
|
+
# data store. For more information about how to use advanced event
|
454
|
+
# selectors, see [Log events by using advanced event selectors][1] in
|
455
|
+
# the CloudTrail User Guide.
|
456
|
+
#
|
457
|
+
#
|
458
|
+
#
|
459
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced
|
460
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
461
|
+
#
|
462
|
+
# @!attribute [rw] multi_region_enabled
|
463
|
+
# Specifies whether the event data store includes events from all
|
464
|
+
# regions, or only from the region in which the event data store is
|
465
|
+
# created.
|
466
|
+
# @return [Boolean]
|
467
|
+
#
|
468
|
+
# @!attribute [rw] organization_enabled
|
469
|
+
# Specifies whether an event data store collects events logged for an
|
470
|
+
# organization in Organizations.
|
471
|
+
# @return [Boolean]
|
472
|
+
#
|
473
|
+
# @!attribute [rw] retention_period
|
474
|
+
# The retention period of the event data store, in days. You can set a
|
475
|
+
# retention period of up to 2555 days, the equivalent of seven years.
|
476
|
+
# @return [Integer]
|
477
|
+
#
|
478
|
+
# @!attribute [rw] termination_protection_enabled
|
479
|
+
# Specifies whether termination protection is enabled for the event
|
480
|
+
# data store. If termination protection is enabled, you cannot delete
|
481
|
+
# the event data store until termination protection is disabled.
|
482
|
+
# @return [Boolean]
|
483
|
+
#
|
484
|
+
# @!attribute [rw] tags_list
|
485
|
+
# A list of tags.
|
486
|
+
# @return [Array<Types::Tag>]
|
487
|
+
#
|
488
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStoreRequest AWS API Documentation
|
489
|
+
#
|
490
|
+
class CreateEventDataStoreRequest < Struct.new(
|
491
|
+
:name,
|
492
|
+
:advanced_event_selectors,
|
493
|
+
:multi_region_enabled,
|
494
|
+
:organization_enabled,
|
495
|
+
:retention_period,
|
496
|
+
:termination_protection_enabled,
|
497
|
+
:tags_list)
|
498
|
+
SENSITIVE = []
|
499
|
+
include Aws::Structure
|
500
|
+
end
|
501
|
+
|
502
|
+
# @!attribute [rw] event_data_store_arn
|
503
|
+
# The ARN of the event data store.
|
504
|
+
# @return [String]
|
505
|
+
#
|
506
|
+
# @!attribute [rw] name
|
507
|
+
# The name of the event data store.
|
508
|
+
# @return [String]
|
509
|
+
#
|
510
|
+
# @!attribute [rw] status
|
511
|
+
# The status of event data store creation.
|
512
|
+
# @return [String]
|
513
|
+
#
|
514
|
+
# @!attribute [rw] advanced_event_selectors
|
515
|
+
# The advanced event selectors that were used to select the events for
|
516
|
+
# the data store.
|
517
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
518
|
+
#
|
519
|
+
# @!attribute [rw] multi_region_enabled
|
520
|
+
# Indicates whether the event data store collects events from all
|
521
|
+
# regions, or only from the region in which it was created.
|
522
|
+
# @return [Boolean]
|
523
|
+
#
|
524
|
+
# @!attribute [rw] organization_enabled
|
525
|
+
# Indicates whether an event data store is collecting logged events
|
526
|
+
# for an organization in Organizations.
|
527
|
+
# @return [Boolean]
|
528
|
+
#
|
529
|
+
# @!attribute [rw] retention_period
|
530
|
+
# The retention period of an event data store, in days.
|
531
|
+
# @return [Integer]
|
532
|
+
#
|
533
|
+
# @!attribute [rw] termination_protection_enabled
|
534
|
+
# Indicates whether termination protection is enabled for the event
|
535
|
+
# data store.
|
536
|
+
# @return [Boolean]
|
537
|
+
#
|
538
|
+
# @!attribute [rw] tags_list
|
539
|
+
# A list of tags.
|
540
|
+
# @return [Array<Types::Tag>]
|
541
|
+
#
|
542
|
+
# @!attribute [rw] created_timestamp
|
543
|
+
# The timestamp that shows when the event data store was created.
|
544
|
+
# @return [Time]
|
545
|
+
#
|
546
|
+
# @!attribute [rw] updated_timestamp
|
547
|
+
# The timestamp that shows when an event data store was updated, if
|
548
|
+
# applicable. `UpdatedTimestamp` is always either the same or newer
|
549
|
+
# than the time shown in `CreatedTimestamp`.
|
550
|
+
# @return [Time]
|
551
|
+
#
|
552
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStoreResponse AWS API Documentation
|
553
|
+
#
|
554
|
+
class CreateEventDataStoreResponse < Struct.new(
|
555
|
+
:event_data_store_arn,
|
556
|
+
:name,
|
557
|
+
:status,
|
558
|
+
:advanced_event_selectors,
|
559
|
+
:multi_region_enabled,
|
560
|
+
:organization_enabled,
|
561
|
+
:retention_period,
|
562
|
+
:termination_protection_enabled,
|
563
|
+
:tags_list,
|
564
|
+
:created_timestamp,
|
565
|
+
:updated_timestamp)
|
566
|
+
SENSITIVE = []
|
567
|
+
include Aws::Structure
|
568
|
+
end
|
569
|
+
|
357
570
|
# Specifies the settings for each trail.
|
358
571
|
#
|
359
572
|
# @note When making an API call, you may pass CreateTrailRequest
|
@@ -373,8 +586,8 @@ module Aws::CloudTrail
|
|
373
586
|
# is_organization_trail: false,
|
374
587
|
# tags_list: [
|
375
588
|
# {
|
376
|
-
# key: "
|
377
|
-
# value: "
|
589
|
+
# key: "TagKey", # required
|
590
|
+
# value: "TagValue",
|
378
591
|
# },
|
379
592
|
# ],
|
380
593
|
# }
|
@@ -706,6 +919,8 @@ module Aws::CloudTrail
|
|
706
919
|
# * `AWS::S3::AccessPoint`
|
707
920
|
#
|
708
921
|
# * `AWS::DynamoDB::Stream`
|
922
|
+
#
|
923
|
+
# * `AWS::Glue::Table`
|
709
924
|
# @return [String]
|
710
925
|
#
|
711
926
|
# @!attribute [rw] values
|
@@ -769,6 +984,30 @@ module Aws::CloudTrail
|
|
769
984
|
include Aws::Structure
|
770
985
|
end
|
771
986
|
|
987
|
+
# @note When making an API call, you may pass DeleteEventDataStoreRequest
|
988
|
+
# data as a hash:
|
989
|
+
#
|
990
|
+
# {
|
991
|
+
# event_data_store: "EventDataStoreArn", # required
|
992
|
+
# }
|
993
|
+
#
|
994
|
+
# @!attribute [rw] event_data_store
|
995
|
+
# The ARN (or the ID suffix of the ARN) of the event data store to
|
996
|
+
# delete.
|
997
|
+
# @return [String]
|
998
|
+
#
|
999
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteEventDataStoreRequest AWS API Documentation
|
1000
|
+
#
|
1001
|
+
class DeleteEventDataStoreRequest < Struct.new(
|
1002
|
+
:event_data_store)
|
1003
|
+
SENSITIVE = []
|
1004
|
+
include Aws::Structure
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteEventDataStoreResponse AWS API Documentation
|
1008
|
+
#
|
1009
|
+
class DeleteEventDataStoreResponse < Aws::EmptyStructure; end
|
1010
|
+
|
772
1011
|
# The request that specifies the name of a trail to delete.
|
773
1012
|
#
|
774
1013
|
# @note When making an API call, you may pass DeleteTrailRequest
|
@@ -799,6 +1038,67 @@ module Aws::CloudTrail
|
|
799
1038
|
#
|
800
1039
|
class DeleteTrailResponse < Aws::EmptyStructure; end
|
801
1040
|
|
1041
|
+
# @note When making an API call, you may pass DescribeQueryRequest
|
1042
|
+
# data as a hash:
|
1043
|
+
#
|
1044
|
+
# {
|
1045
|
+
# event_data_store: "EventDataStoreArn", # required
|
1046
|
+
# query_id: "UUID", # required
|
1047
|
+
# }
|
1048
|
+
#
|
1049
|
+
# @!attribute [rw] event_data_store
|
1050
|
+
# The ARN (or the ID suffix of the ARN) of an event data store on
|
1051
|
+
# which the specified query was run.
|
1052
|
+
# @return [String]
|
1053
|
+
#
|
1054
|
+
# @!attribute [rw] query_id
|
1055
|
+
# The query ID.
|
1056
|
+
# @return [String]
|
1057
|
+
#
|
1058
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeQueryRequest AWS API Documentation
|
1059
|
+
#
|
1060
|
+
class DescribeQueryRequest < Struct.new(
|
1061
|
+
:event_data_store,
|
1062
|
+
:query_id)
|
1063
|
+
SENSITIVE = []
|
1064
|
+
include Aws::Structure
|
1065
|
+
end
|
1066
|
+
|
1067
|
+
# @!attribute [rw] query_id
|
1068
|
+
# The ID of the query.
|
1069
|
+
# @return [String]
|
1070
|
+
#
|
1071
|
+
# @!attribute [rw] query_string
|
1072
|
+
# The SQL code of a query.
|
1073
|
+
# @return [String]
|
1074
|
+
#
|
1075
|
+
# @!attribute [rw] query_status
|
1076
|
+
# The status of a query. Values for `QueryStatus` include `QUEUED`,
|
1077
|
+
# `RUNNING`, `FINISHED`, `FAILED`, or `CANCELLED`
|
1078
|
+
# @return [String]
|
1079
|
+
#
|
1080
|
+
# @!attribute [rw] query_statistics
|
1081
|
+
# Metadata about a query, including the number of events that were
|
1082
|
+
# matched, the total number of events scanned, the query run time in
|
1083
|
+
# milliseconds, and the query's creation time.
|
1084
|
+
# @return [Types::QueryStatisticsForDescribeQuery]
|
1085
|
+
#
|
1086
|
+
# @!attribute [rw] error_message
|
1087
|
+
# The error message returned if a query failed.
|
1088
|
+
# @return [String]
|
1089
|
+
#
|
1090
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeQueryResponse AWS API Documentation
|
1091
|
+
#
|
1092
|
+
class DescribeQueryResponse < Struct.new(
|
1093
|
+
:query_id,
|
1094
|
+
:query_string,
|
1095
|
+
:query_status,
|
1096
|
+
:query_statistics,
|
1097
|
+
:error_message)
|
1098
|
+
SENSITIVE = []
|
1099
|
+
include Aws::Structure
|
1100
|
+
end
|
1101
|
+
|
802
1102
|
# Returns information about the trail.
|
803
1103
|
#
|
804
1104
|
# @note When making an API call, you may pass DescribeTrailsRequest
|
@@ -931,6 +1231,112 @@ module Aws::CloudTrail
|
|
931
1231
|
include Aws::Structure
|
932
1232
|
end
|
933
1233
|
|
1234
|
+
# A storage lake of event data against which you can run complex
|
1235
|
+
# SQL-based queries. An event data store can include events that you
|
1236
|
+
# have logged on your account from the last 90 to 2555 days (about three
|
1237
|
+
# months to up to seven years). To select events for an event data
|
1238
|
+
# store, use [advanced event selectors][1].
|
1239
|
+
#
|
1240
|
+
#
|
1241
|
+
#
|
1242
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced
|
1243
|
+
#
|
1244
|
+
# @!attribute [rw] event_data_store_arn
|
1245
|
+
# The ARN of the event data store.
|
1246
|
+
# @return [String]
|
1247
|
+
#
|
1248
|
+
# @!attribute [rw] name
|
1249
|
+
# The name of the event data store.
|
1250
|
+
# @return [String]
|
1251
|
+
#
|
1252
|
+
# @!attribute [rw] termination_protection_enabled
|
1253
|
+
# Indicates whether the event data store is protected from
|
1254
|
+
# termination.
|
1255
|
+
# @return [Boolean]
|
1256
|
+
#
|
1257
|
+
# @!attribute [rw] status
|
1258
|
+
# The status of an event data store. Values are `ENABLED` and
|
1259
|
+
# `PENDING_DELETION`.
|
1260
|
+
# @return [String]
|
1261
|
+
#
|
1262
|
+
# @!attribute [rw] advanced_event_selectors
|
1263
|
+
# The advanced event selectors that were used to select events for the
|
1264
|
+
# data store.
|
1265
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
1266
|
+
#
|
1267
|
+
# @!attribute [rw] multi_region_enabled
|
1268
|
+
# Indicates whether the event data store includes events from all
|
1269
|
+
# regions, or only from the region in which it was created.
|
1270
|
+
# @return [Boolean]
|
1271
|
+
#
|
1272
|
+
# @!attribute [rw] organization_enabled
|
1273
|
+
# Indicates that an event data store is collecting logged events for
|
1274
|
+
# an organization.
|
1275
|
+
# @return [Boolean]
|
1276
|
+
#
|
1277
|
+
# @!attribute [rw] retention_period
|
1278
|
+
# The retention period, in days.
|
1279
|
+
# @return [Integer]
|
1280
|
+
#
|
1281
|
+
# @!attribute [rw] created_timestamp
|
1282
|
+
# The timestamp of the event data store's creation.
|
1283
|
+
# @return [Time]
|
1284
|
+
#
|
1285
|
+
# @!attribute [rw] updated_timestamp
|
1286
|
+
# The timestamp showing when an event data store was updated, if
|
1287
|
+
# applicable. `UpdatedTimestamp` is always either the same or newer
|
1288
|
+
# than the time shown in `CreatedTimestamp`.
|
1289
|
+
# @return [Time]
|
1290
|
+
#
|
1291
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStore AWS API Documentation
|
1292
|
+
#
|
1293
|
+
class EventDataStore < Struct.new(
|
1294
|
+
:event_data_store_arn,
|
1295
|
+
:name,
|
1296
|
+
:termination_protection_enabled,
|
1297
|
+
:status,
|
1298
|
+
:advanced_event_selectors,
|
1299
|
+
:multi_region_enabled,
|
1300
|
+
:organization_enabled,
|
1301
|
+
:retention_period,
|
1302
|
+
:created_timestamp,
|
1303
|
+
:updated_timestamp)
|
1304
|
+
SENSITIVE = []
|
1305
|
+
include Aws::Structure
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
# The specified event data store ARN is not valid or does not map to an
|
1309
|
+
# event data store in your account.
|
1310
|
+
#
|
1311
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStoreARNInvalidException AWS API Documentation
|
1312
|
+
#
|
1313
|
+
class EventDataStoreARNInvalidException < Aws::EmptyStructure; end
|
1314
|
+
|
1315
|
+
# An event data store with that name already exists.
|
1316
|
+
#
|
1317
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStoreAlreadyExistsException AWS API Documentation
|
1318
|
+
#
|
1319
|
+
class EventDataStoreAlreadyExistsException < Aws::EmptyStructure; end
|
1320
|
+
|
1321
|
+
# Your account has used the maximum number of event data stores.
|
1322
|
+
#
|
1323
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStoreMaxLimitExceededException AWS API Documentation
|
1324
|
+
#
|
1325
|
+
class EventDataStoreMaxLimitExceededException < Aws::EmptyStructure; end
|
1326
|
+
|
1327
|
+
# The specified event data store was not found.
|
1328
|
+
#
|
1329
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStoreNotFoundException AWS API Documentation
|
1330
|
+
#
|
1331
|
+
class EventDataStoreNotFoundException < Aws::EmptyStructure; end
|
1332
|
+
|
1333
|
+
# The event data store cannot be deleted because termination protection
|
1334
|
+
# is enabled for it.
|
1335
|
+
#
|
1336
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStoreTerminationProtectedException AWS API Documentation
|
1337
|
+
#
|
1338
|
+
class EventDataStoreTerminationProtectedException < Aws::EmptyStructure; end
|
1339
|
+
|
934
1340
|
# Use event selectors to further specify the management and data event
|
935
1341
|
# settings for your trail. By default, trails created without specific
|
936
1342
|
# event selectors will be configured to log all read and write
|
@@ -1013,7 +1419,8 @@ module Aws::CloudTrail
|
|
1013
1419
|
# Management Service or Amazon RDS Data API events by containing
|
1014
1420
|
# `kms.amazonaws.com` or `rdsdata.amazonaws.com`. By default,
|
1015
1421
|
# `ExcludeManagementEventSources` is empty, and KMS and Amazon RDS
|
1016
|
-
# Data API events are logged to your trail.
|
1422
|
+
# Data API events are logged to your trail. You can exclude management
|
1423
|
+
# event sources only in regions that support the event source.
|
1017
1424
|
# @return [Array<String>]
|
1018
1425
|
#
|
1019
1426
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventSelector AWS API Documentation
|
@@ -1027,6 +1434,89 @@ module Aws::CloudTrail
|
|
1027
1434
|
include Aws::Structure
|
1028
1435
|
end
|
1029
1436
|
|
1437
|
+
# @note When making an API call, you may pass GetEventDataStoreRequest
|
1438
|
+
# data as a hash:
|
1439
|
+
#
|
1440
|
+
# {
|
1441
|
+
# event_data_store: "EventDataStoreArn", # required
|
1442
|
+
# }
|
1443
|
+
#
|
1444
|
+
# @!attribute [rw] event_data_store
|
1445
|
+
# The ARN (or ID suffix of the ARN) of the event data store about
|
1446
|
+
# which you want information.
|
1447
|
+
# @return [String]
|
1448
|
+
#
|
1449
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventDataStoreRequest AWS API Documentation
|
1450
|
+
#
|
1451
|
+
class GetEventDataStoreRequest < Struct.new(
|
1452
|
+
:event_data_store)
|
1453
|
+
SENSITIVE = []
|
1454
|
+
include Aws::Structure
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
# @!attribute [rw] event_data_store_arn
|
1458
|
+
# The event data store Amazon Resource Number (ARN).
|
1459
|
+
# @return [String]
|
1460
|
+
#
|
1461
|
+
# @!attribute [rw] name
|
1462
|
+
# The name of the event data store.
|
1463
|
+
# @return [String]
|
1464
|
+
#
|
1465
|
+
# @!attribute [rw] status
|
1466
|
+
# The status of an event data store. Values can be `ENABLED` and
|
1467
|
+
# `PENDING_DELETION`.
|
1468
|
+
# @return [String]
|
1469
|
+
#
|
1470
|
+
# @!attribute [rw] advanced_event_selectors
|
1471
|
+
# The advanced event selectors used to select events for the data
|
1472
|
+
# store.
|
1473
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
1474
|
+
#
|
1475
|
+
# @!attribute [rw] multi_region_enabled
|
1476
|
+
# Indicates whether the event data store includes events from all
|
1477
|
+
# regions, or only from the region in which it was created.
|
1478
|
+
# @return [Boolean]
|
1479
|
+
#
|
1480
|
+
# @!attribute [rw] organization_enabled
|
1481
|
+
# Indicates whether an event data store is collecting logged events
|
1482
|
+
# for an organization in Organizations.
|
1483
|
+
# @return [Boolean]
|
1484
|
+
#
|
1485
|
+
# @!attribute [rw] retention_period
|
1486
|
+
# The retention period of the event data store, in days.
|
1487
|
+
# @return [Integer]
|
1488
|
+
#
|
1489
|
+
# @!attribute [rw] termination_protection_enabled
|
1490
|
+
# Indicates that termination protection is enabled.
|
1491
|
+
# @return [Boolean]
|
1492
|
+
#
|
1493
|
+
# @!attribute [rw] created_timestamp
|
1494
|
+
# The timestamp of the event data store's creation.
|
1495
|
+
# @return [Time]
|
1496
|
+
#
|
1497
|
+
# @!attribute [rw] updated_timestamp
|
1498
|
+
# Shows the time that an event data store was updated, if applicable.
|
1499
|
+
# `UpdatedTimestamp` is always either the same or newer than the time
|
1500
|
+
# shown in `CreatedTimestamp`.
|
1501
|
+
# @return [Time]
|
1502
|
+
#
|
1503
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventDataStoreResponse AWS API Documentation
|
1504
|
+
#
|
1505
|
+
class GetEventDataStoreResponse < Struct.new(
|
1506
|
+
:event_data_store_arn,
|
1507
|
+
:name,
|
1508
|
+
:status,
|
1509
|
+
:advanced_event_selectors,
|
1510
|
+
:multi_region_enabled,
|
1511
|
+
:organization_enabled,
|
1512
|
+
:retention_period,
|
1513
|
+
:termination_protection_enabled,
|
1514
|
+
:created_timestamp,
|
1515
|
+
:updated_timestamp)
|
1516
|
+
SENSITIVE = []
|
1517
|
+
include Aws::Structure
|
1518
|
+
end
|
1519
|
+
|
1030
1520
|
# @note When making an API call, you may pass GetEventSelectorsRequest
|
1031
1521
|
# data as a hash:
|
1032
1522
|
#
|
@@ -1128,8 +1618,8 @@ module Aws::CloudTrail
|
|
1128
1618
|
#
|
1129
1619
|
# @!attribute [rw] insight_selectors
|
1130
1620
|
# A JSON string that contains the insight types you want to log on a
|
1131
|
-
# trail. In this release,
|
1132
|
-
# insight
|
1621
|
+
# trail. In this release, `ApiErrorRateInsight` and
|
1622
|
+
# `ApiCallRateInsight` are supported as insight types.
|
1133
1623
|
# @return [Array<Types::InsightSelector>]
|
1134
1624
|
#
|
1135
1625
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetInsightSelectorsResponse AWS API Documentation
|
@@ -1141,24 +1631,95 @@ module Aws::CloudTrail
|
|
1141
1631
|
include Aws::Structure
|
1142
1632
|
end
|
1143
1633
|
|
1144
|
-
# @note When making an API call, you may pass
|
1634
|
+
# @note When making an API call, you may pass GetQueryResultsRequest
|
1145
1635
|
# data as a hash:
|
1146
1636
|
#
|
1147
1637
|
# {
|
1148
|
-
#
|
1638
|
+
# event_data_store: "EventDataStoreArn", # required
|
1639
|
+
# query_id: "UUID", # required
|
1640
|
+
# next_token: "PaginationToken",
|
1641
|
+
# max_query_results: 1,
|
1149
1642
|
# }
|
1150
1643
|
#
|
1151
|
-
# @!attribute [rw]
|
1152
|
-
# The
|
1153
|
-
#
|
1644
|
+
# @!attribute [rw] event_data_store
|
1645
|
+
# The ARN (or ID suffix of the ARN) of the event data store against
|
1646
|
+
# which the query was run.
|
1154
1647
|
# @return [String]
|
1155
1648
|
#
|
1156
|
-
#
|
1649
|
+
# @!attribute [rw] query_id
|
1650
|
+
# The ID of the query for which you want to get results.
|
1651
|
+
# @return [String]
|
1157
1652
|
#
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1653
|
+
# @!attribute [rw] next_token
|
1654
|
+
# A token you can use to get the next page of query results.
|
1655
|
+
# @return [String]
|
1656
|
+
#
|
1657
|
+
# @!attribute [rw] max_query_results
|
1658
|
+
# The maximum number of query results to display on a single page.
|
1659
|
+
# @return [Integer]
|
1660
|
+
#
|
1661
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetQueryResultsRequest AWS API Documentation
|
1662
|
+
#
|
1663
|
+
class GetQueryResultsRequest < Struct.new(
|
1664
|
+
:event_data_store,
|
1665
|
+
:query_id,
|
1666
|
+
:next_token,
|
1667
|
+
:max_query_results)
|
1668
|
+
SENSITIVE = []
|
1669
|
+
include Aws::Structure
|
1670
|
+
end
|
1671
|
+
|
1672
|
+
# @!attribute [rw] query_status
|
1673
|
+
# The status of the query. Values include `QUEUED`, `RUNNING`,
|
1674
|
+
# `FINISHED`, `FAILED`, or `CANCELLED`.
|
1675
|
+
# @return [String]
|
1676
|
+
#
|
1677
|
+
# @!attribute [rw] query_statistics
|
1678
|
+
# Shows the count of query results.
|
1679
|
+
# @return [Types::QueryStatistics]
|
1680
|
+
#
|
1681
|
+
# @!attribute [rw] query_result_rows
|
1682
|
+
# Contains the individual event results of the query.
|
1683
|
+
# @return [Array<Array<Hash<String,String>>>]
|
1684
|
+
#
|
1685
|
+
# @!attribute [rw] next_token
|
1686
|
+
# A token you can use to get the next page of query results.
|
1687
|
+
# @return [String]
|
1688
|
+
#
|
1689
|
+
# @!attribute [rw] error_message
|
1690
|
+
# The error message returned if a query failed.
|
1691
|
+
# @return [String]
|
1692
|
+
#
|
1693
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetQueryResultsResponse AWS API Documentation
|
1694
|
+
#
|
1695
|
+
class GetQueryResultsResponse < Struct.new(
|
1696
|
+
:query_status,
|
1697
|
+
:query_statistics,
|
1698
|
+
:query_result_rows,
|
1699
|
+
:next_token,
|
1700
|
+
:error_message)
|
1701
|
+
SENSITIVE = []
|
1702
|
+
include Aws::Structure
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
# @note When making an API call, you may pass GetTrailRequest
|
1706
|
+
# data as a hash:
|
1707
|
+
#
|
1708
|
+
# {
|
1709
|
+
# name: "String", # required
|
1710
|
+
# }
|
1711
|
+
#
|
1712
|
+
# @!attribute [rw] name
|
1713
|
+
# The name or the Amazon Resource Name (ARN) of the trail for which
|
1714
|
+
# you want to retrieve settings information.
|
1715
|
+
# @return [String]
|
1716
|
+
#
|
1717
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailRequest AWS API Documentation
|
1718
|
+
#
|
1719
|
+
class GetTrailRequest < Struct.new(
|
1720
|
+
:name)
|
1721
|
+
SENSITIVE = []
|
1722
|
+
include Aws::Structure
|
1162
1723
|
end
|
1163
1724
|
|
1164
1725
|
# @!attribute [rw] trail
|
@@ -1339,6 +1900,19 @@ module Aws::CloudTrail
|
|
1339
1900
|
include Aws::Structure
|
1340
1901
|
end
|
1341
1902
|
|
1903
|
+
# The event data store against which you ran your query is inactive.
|
1904
|
+
#
|
1905
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveEventDataStoreException AWS API Documentation
|
1906
|
+
#
|
1907
|
+
class InactiveEventDataStoreException < Aws::EmptyStructure; end
|
1908
|
+
|
1909
|
+
# The specified query cannot be canceled because it is in the
|
1910
|
+
# `FINISHED`, `FAILED`, or `CANCELLED` state.
|
1911
|
+
#
|
1912
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveQueryException AWS API Documentation
|
1913
|
+
#
|
1914
|
+
class InactiveQueryException < Aws::EmptyStructure; end
|
1915
|
+
|
1342
1916
|
# If you run `GetInsightSelectors` on a trail that does not have
|
1343
1917
|
# Insights events enabled, the operation throws the exception
|
1344
1918
|
# `InsightNotEnabledException`.
|
@@ -1358,8 +1932,8 @@ module Aws::CloudTrail
|
|
1358
1932
|
# }
|
1359
1933
|
#
|
1360
1934
|
# @!attribute [rw] insight_type
|
1361
|
-
# The type of
|
1362
|
-
#
|
1935
|
+
# The type of insights to log on a trail. `ApiCallRateInsight` and
|
1936
|
+
# `ApiErrorRateInsight` are valid insight types.
|
1363
1937
|
# @return [String]
|
1364
1938
|
#
|
1365
1939
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsightSelector AWS API Documentation
|
@@ -1418,6 +1992,18 @@ module Aws::CloudTrail
|
|
1418
1992
|
#
|
1419
1993
|
class InvalidCloudWatchLogsRoleArnException < Aws::EmptyStructure; end
|
1420
1994
|
|
1995
|
+
# A date range for the query was specified that is not valid. For more
|
1996
|
+
# information about writing a query, see [Create or edit a query][1] in
|
1997
|
+
# the *CloudTrail User Guide*.
|
1998
|
+
#
|
1999
|
+
#
|
2000
|
+
#
|
2001
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html
|
2002
|
+
#
|
2003
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidDateRangeException AWS API Documentation
|
2004
|
+
#
|
2005
|
+
class InvalidDateRangeException < Aws::EmptyStructure; end
|
2006
|
+
|
1421
2007
|
# Occurs if an event category that is not valid is specified as a value
|
1422
2008
|
# of `EventCategory`.
|
1423
2009
|
#
|
@@ -1425,6 +2011,12 @@ module Aws::CloudTrail
|
|
1425
2011
|
#
|
1426
2012
|
class InvalidEventCategoryException < Aws::EmptyStructure; end
|
1427
2013
|
|
2014
|
+
# The event data store is not in a status that supports the operation.
|
2015
|
+
#
|
2016
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidEventDataStoreStatusException AWS API Documentation
|
2017
|
+
#
|
2018
|
+
class InvalidEventDataStoreStatusException < Aws::EmptyStructure; end
|
2019
|
+
|
1428
2020
|
# This exception is thrown when the `PutEventSelectors` operation is
|
1429
2021
|
# called with a number of event selectors, advanced event selectors, or
|
1430
2022
|
# data resources that is not valid. The combination of event selectors
|
@@ -1504,6 +2096,30 @@ module Aws::CloudTrail
|
|
1504
2096
|
#
|
1505
2097
|
class InvalidParameterCombinationException < Aws::EmptyStructure; end
|
1506
2098
|
|
2099
|
+
# The request includes a parameter that is not valid.
|
2100
|
+
#
|
2101
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidParameterException AWS API Documentation
|
2102
|
+
#
|
2103
|
+
class InvalidParameterException < Aws::EmptyStructure; end
|
2104
|
+
|
2105
|
+
# The query that was submitted has validation errors, or uses incorrect
|
2106
|
+
# syntax or unsupported keywords. For more information about writing a
|
2107
|
+
# query, see [Create or edit a query][1] in the *CloudTrail User Guide*.
|
2108
|
+
#
|
2109
|
+
#
|
2110
|
+
#
|
2111
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-create-edit-query.html
|
2112
|
+
#
|
2113
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidQueryStatementException AWS API Documentation
|
2114
|
+
#
|
2115
|
+
class InvalidQueryStatementException < Aws::EmptyStructure; end
|
2116
|
+
|
2117
|
+
# The query status is not valid for the operation.
|
2118
|
+
#
|
2119
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InvalidQueryStatusException AWS API Documentation
|
2120
|
+
#
|
2121
|
+
class InvalidQueryStatusException < Aws::EmptyStructure; end
|
2122
|
+
|
1507
2123
|
# This exception is thrown when the provided S3 bucket name is not
|
1508
2124
|
# valid.
|
1509
2125
|
#
|
@@ -1587,6 +2203,50 @@ module Aws::CloudTrail
|
|
1587
2203
|
#
|
1588
2204
|
class KmsKeyNotFoundException < Aws::EmptyStructure; end
|
1589
2205
|
|
2206
|
+
# @note When making an API call, you may pass ListEventDataStoresRequest
|
2207
|
+
# data as a hash:
|
2208
|
+
#
|
2209
|
+
# {
|
2210
|
+
# next_token: "PaginationToken",
|
2211
|
+
# max_results: 1,
|
2212
|
+
# }
|
2213
|
+
#
|
2214
|
+
# @!attribute [rw] next_token
|
2215
|
+
# A token you can use to get the next page of event data store
|
2216
|
+
# results.
|
2217
|
+
# @return [String]
|
2218
|
+
#
|
2219
|
+
# @!attribute [rw] max_results
|
2220
|
+
# The maximum number of event data stores to display on a single page.
|
2221
|
+
# @return [Integer]
|
2222
|
+
#
|
2223
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListEventDataStoresRequest AWS API Documentation
|
2224
|
+
#
|
2225
|
+
class ListEventDataStoresRequest < Struct.new(
|
2226
|
+
:next_token,
|
2227
|
+
:max_results)
|
2228
|
+
SENSITIVE = []
|
2229
|
+
include Aws::Structure
|
2230
|
+
end
|
2231
|
+
|
2232
|
+
# @!attribute [rw] event_data_stores
|
2233
|
+
# Contains information about event data stores in the account, in the
|
2234
|
+
# current region.
|
2235
|
+
# @return [Array<Types::EventDataStore>]
|
2236
|
+
#
|
2237
|
+
# @!attribute [rw] next_token
|
2238
|
+
# A token you can use to get the next page of results.
|
2239
|
+
# @return [String]
|
2240
|
+
#
|
2241
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListEventDataStoresResponse AWS API Documentation
|
2242
|
+
#
|
2243
|
+
class ListEventDataStoresResponse < Struct.new(
|
2244
|
+
:event_data_stores,
|
2245
|
+
:next_token)
|
2246
|
+
SENSITIVE = []
|
2247
|
+
include Aws::Structure
|
2248
|
+
end
|
2249
|
+
|
1590
2250
|
# Requests the public keys for a specified time range.
|
1591
2251
|
#
|
1592
2252
|
# @note When making an API call, you may pass ListPublicKeysRequest
|
@@ -1648,6 +2308,78 @@ module Aws::CloudTrail
|
|
1648
2308
|
include Aws::Structure
|
1649
2309
|
end
|
1650
2310
|
|
2311
|
+
# @note When making an API call, you may pass ListQueriesRequest
|
2312
|
+
# data as a hash:
|
2313
|
+
#
|
2314
|
+
# {
|
2315
|
+
# event_data_store: "EventDataStoreArn", # required
|
2316
|
+
# next_token: "PaginationToken",
|
2317
|
+
# max_results: 1,
|
2318
|
+
# start_time: Time.now,
|
2319
|
+
# end_time: Time.now,
|
2320
|
+
# query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED
|
2321
|
+
# }
|
2322
|
+
#
|
2323
|
+
# @!attribute [rw] event_data_store
|
2324
|
+
# The ARN (or the ID suffix of the ARN) of an event data store on
|
2325
|
+
# which queries were run.
|
2326
|
+
# @return [String]
|
2327
|
+
#
|
2328
|
+
# @!attribute [rw] next_token
|
2329
|
+
# A token you can use to get the next page of results.
|
2330
|
+
# @return [String]
|
2331
|
+
#
|
2332
|
+
# @!attribute [rw] max_results
|
2333
|
+
# The maximum number of queries to show on a page.
|
2334
|
+
# @return [Integer]
|
2335
|
+
#
|
2336
|
+
# @!attribute [rw] start_time
|
2337
|
+
# Use with `EndTime` to bound a `ListQueries` request, and limit its
|
2338
|
+
# results to only those queries run within a specified time period.
|
2339
|
+
# @return [Time]
|
2340
|
+
#
|
2341
|
+
# @!attribute [rw] end_time
|
2342
|
+
# Use with `StartTime` to bound a `ListQueries` request, and limit its
|
2343
|
+
# results to only those queries run within a specified time period.
|
2344
|
+
# @return [Time]
|
2345
|
+
#
|
2346
|
+
# @!attribute [rw] query_status
|
2347
|
+
# The status of queries that you want to return in results. Valid
|
2348
|
+
# values for `QueryStatus` include `QUEUED`, `RUNNING`, `FINISHED`,
|
2349
|
+
# `FAILED`, or `CANCELLED`.
|
2350
|
+
# @return [String]
|
2351
|
+
#
|
2352
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListQueriesRequest AWS API Documentation
|
2353
|
+
#
|
2354
|
+
class ListQueriesRequest < Struct.new(
|
2355
|
+
:event_data_store,
|
2356
|
+
:next_token,
|
2357
|
+
:max_results,
|
2358
|
+
:start_time,
|
2359
|
+
:end_time,
|
2360
|
+
:query_status)
|
2361
|
+
SENSITIVE = []
|
2362
|
+
include Aws::Structure
|
2363
|
+
end
|
2364
|
+
|
2365
|
+
# @!attribute [rw] queries
|
2366
|
+
# Lists matching query results, and shows query ID, status, and
|
2367
|
+
# creation time of each query.
|
2368
|
+
# @return [Array<Types::Query>]
|
2369
|
+
#
|
2370
|
+
# @!attribute [rw] next_token
|
2371
|
+
# A token you can use to get the next page of results.
|
2372
|
+
# @return [String]
|
2373
|
+
#
|
2374
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListQueriesResponse AWS API Documentation
|
2375
|
+
#
|
2376
|
+
class ListQueriesResponse < Struct.new(
|
2377
|
+
:queries,
|
2378
|
+
:next_token)
|
2379
|
+
SENSITIVE = []
|
2380
|
+
include Aws::Structure
|
2381
|
+
end
|
2382
|
+
|
1651
2383
|
# Specifies a list of trail tags to return.
|
1652
2384
|
#
|
1653
2385
|
# @note When making an API call, you may pass ListTagsRequest
|
@@ -1868,6 +2600,13 @@ module Aws::CloudTrail
|
|
1868
2600
|
include Aws::Structure
|
1869
2601
|
end
|
1870
2602
|
|
2603
|
+
# You are already running the maximum number of concurrent queries. Wait
|
2604
|
+
# a minute for some queries to finish, and then run the query again.
|
2605
|
+
#
|
2606
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/MaxConcurrentQueriesException AWS API Documentation
|
2607
|
+
#
|
2608
|
+
class MaxConcurrentQueriesException < Aws::EmptyStructure; end
|
2609
|
+
|
1871
2610
|
# This exception is thrown when the maximum number of trails is reached.
|
1872
2611
|
#
|
1873
2612
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/MaximumNumberOfTrailsExceededException AWS API Documentation
|
@@ -2081,9 +2820,9 @@ module Aws::CloudTrail
|
|
2081
2820
|
# @return [String]
|
2082
2821
|
#
|
2083
2822
|
# @!attribute [rw] insight_selectors
|
2084
|
-
# A JSON string that contains the
|
2085
|
-
#
|
2086
|
-
#
|
2823
|
+
# A JSON string that contains the insight types you want to log on a
|
2824
|
+
# trail. `ApiCallRateInsight` and `ApiErrorRateInsight` are valid
|
2825
|
+
# insight types.
|
2087
2826
|
# @return [Array<Types::InsightSelector>]
|
2088
2827
|
#
|
2089
2828
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectorsRequest AWS API Documentation
|
@@ -2102,8 +2841,8 @@ module Aws::CloudTrail
|
|
2102
2841
|
#
|
2103
2842
|
# @!attribute [rw] insight_selectors
|
2104
2843
|
# A JSON string that contains the Insights event types that you want
|
2105
|
-
# to log on a trail. The valid Insights
|
2106
|
-
# `ApiCallRateInsight`.
|
2844
|
+
# to log on a trail. The valid Insights types in this release are
|
2845
|
+
# `ApiErrorRateInsight` and `ApiCallRateInsight`.
|
2107
2846
|
# @return [Array<Types::InsightSelector>]
|
2108
2847
|
#
|
2109
2848
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutInsightSelectorsResponse AWS API Documentation
|
@@ -2115,6 +2854,88 @@ module Aws::CloudTrail
|
|
2115
2854
|
include Aws::Structure
|
2116
2855
|
end
|
2117
2856
|
|
2857
|
+
# A SQL string of criteria about events that you want to collect in an
|
2858
|
+
# event data store.
|
2859
|
+
#
|
2860
|
+
# @!attribute [rw] query_id
|
2861
|
+
# The ID of a query.
|
2862
|
+
# @return [String]
|
2863
|
+
#
|
2864
|
+
# @!attribute [rw] query_status
|
2865
|
+
# The status of the query. This can be `QUEUED`, `RUNNING`,
|
2866
|
+
# `FINISHED`, `FAILED`, or `CANCELLED`.
|
2867
|
+
# @return [String]
|
2868
|
+
#
|
2869
|
+
# @!attribute [rw] creation_time
|
2870
|
+
# The creation time of a query.
|
2871
|
+
# @return [Time]
|
2872
|
+
#
|
2873
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Query AWS API Documentation
|
2874
|
+
#
|
2875
|
+
class Query < Struct.new(
|
2876
|
+
:query_id,
|
2877
|
+
:query_status,
|
2878
|
+
:creation_time)
|
2879
|
+
SENSITIVE = []
|
2880
|
+
include Aws::Structure
|
2881
|
+
end
|
2882
|
+
|
2883
|
+
# The query ID does not exist or does not map to a query.
|
2884
|
+
#
|
2885
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/QueryIdNotFoundException AWS API Documentation
|
2886
|
+
#
|
2887
|
+
class QueryIdNotFoundException < Aws::EmptyStructure; end
|
2888
|
+
|
2889
|
+
# Metadata about a query, such as the number of results.
|
2890
|
+
#
|
2891
|
+
# @!attribute [rw] results_count
|
2892
|
+
# The number of results returned.
|
2893
|
+
# @return [Integer]
|
2894
|
+
#
|
2895
|
+
# @!attribute [rw] total_results_count
|
2896
|
+
# The total number of results returned by a query.
|
2897
|
+
# @return [Integer]
|
2898
|
+
#
|
2899
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/QueryStatistics AWS API Documentation
|
2900
|
+
#
|
2901
|
+
class QueryStatistics < Struct.new(
|
2902
|
+
:results_count,
|
2903
|
+
:total_results_count)
|
2904
|
+
SENSITIVE = []
|
2905
|
+
include Aws::Structure
|
2906
|
+
end
|
2907
|
+
|
2908
|
+
# Gets metadata about a query, including the number of events that were
|
2909
|
+
# matched, the total number of events scanned, the query run time in
|
2910
|
+
# milliseconds, and the query's creation time.
|
2911
|
+
#
|
2912
|
+
# @!attribute [rw] events_matched
|
2913
|
+
# The number of events that matched a query.
|
2914
|
+
# @return [Integer]
|
2915
|
+
#
|
2916
|
+
# @!attribute [rw] events_scanned
|
2917
|
+
# The number of events that the query scanned in the event data store.
|
2918
|
+
# @return [Integer]
|
2919
|
+
#
|
2920
|
+
# @!attribute [rw] execution_time_in_millis
|
2921
|
+
# The query's run time, in milliseconds.
|
2922
|
+
# @return [Integer]
|
2923
|
+
#
|
2924
|
+
# @!attribute [rw] creation_time
|
2925
|
+
# The creation time of the query.
|
2926
|
+
# @return [Time]
|
2927
|
+
#
|
2928
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/QueryStatisticsForDescribeQuery AWS API Documentation
|
2929
|
+
#
|
2930
|
+
class QueryStatisticsForDescribeQuery < Struct.new(
|
2931
|
+
:events_matched,
|
2932
|
+
:events_scanned,
|
2933
|
+
:execution_time_in_millis,
|
2934
|
+
:creation_time)
|
2935
|
+
SENSITIVE = []
|
2936
|
+
include Aws::Structure
|
2937
|
+
end
|
2938
|
+
|
2118
2939
|
# Specifies the tags to remove from a trail.
|
2119
2940
|
#
|
2120
2941
|
# @note When making an API call, you may pass RemoveTagsRequest
|
@@ -2122,10 +2943,10 @@ module Aws::CloudTrail
|
|
2122
2943
|
#
|
2123
2944
|
# {
|
2124
2945
|
# resource_id: "String", # required
|
2125
|
-
# tags_list: [
|
2946
|
+
# tags_list: [ # required
|
2126
2947
|
# {
|
2127
|
-
# key: "
|
2128
|
-
# value: "
|
2948
|
+
# key: "TagKey", # required
|
2949
|
+
# value: "TagValue",
|
2129
2950
|
# },
|
2130
2951
|
# ],
|
2131
2952
|
# }
|
@@ -2221,6 +3042,89 @@ module Aws::CloudTrail
|
|
2221
3042
|
#
|
2222
3043
|
class ResourceTypeNotSupportedException < Aws::EmptyStructure; end
|
2223
3044
|
|
3045
|
+
# @note When making an API call, you may pass RestoreEventDataStoreRequest
|
3046
|
+
# data as a hash:
|
3047
|
+
#
|
3048
|
+
# {
|
3049
|
+
# event_data_store: "EventDataStoreArn", # required
|
3050
|
+
# }
|
3051
|
+
#
|
3052
|
+
# @!attribute [rw] event_data_store
|
3053
|
+
# The ARN (or the ID suffix of the ARN) of the event data store that
|
3054
|
+
# you want to restore.
|
3055
|
+
# @return [String]
|
3056
|
+
#
|
3057
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RestoreEventDataStoreRequest AWS API Documentation
|
3058
|
+
#
|
3059
|
+
class RestoreEventDataStoreRequest < Struct.new(
|
3060
|
+
:event_data_store)
|
3061
|
+
SENSITIVE = []
|
3062
|
+
include Aws::Structure
|
3063
|
+
end
|
3064
|
+
|
3065
|
+
# @!attribute [rw] event_data_store_arn
|
3066
|
+
# The event data store ARN.
|
3067
|
+
# @return [String]
|
3068
|
+
#
|
3069
|
+
# @!attribute [rw] name
|
3070
|
+
# The name of the event data store.
|
3071
|
+
# @return [String]
|
3072
|
+
#
|
3073
|
+
# @!attribute [rw] status
|
3074
|
+
# The status of the event data store.
|
3075
|
+
# @return [String]
|
3076
|
+
#
|
3077
|
+
# @!attribute [rw] advanced_event_selectors
|
3078
|
+
# The advanced event selectors that were used to select events.
|
3079
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
3080
|
+
#
|
3081
|
+
# @!attribute [rw] multi_region_enabled
|
3082
|
+
# Indicates whether the event data store is collecting events from all
|
3083
|
+
# regions, or only from the region in which the event data store was
|
3084
|
+
# created.
|
3085
|
+
# @return [Boolean]
|
3086
|
+
#
|
3087
|
+
# @!attribute [rw] organization_enabled
|
3088
|
+
# Indicates whether an event data store is collecting logged events
|
3089
|
+
# for an organization in Organizations.
|
3090
|
+
# @return [Boolean]
|
3091
|
+
#
|
3092
|
+
# @!attribute [rw] retention_period
|
3093
|
+
# The retention period, in days.
|
3094
|
+
# @return [Integer]
|
3095
|
+
#
|
3096
|
+
# @!attribute [rw] termination_protection_enabled
|
3097
|
+
# Indicates that termination protection is enabled and the event data
|
3098
|
+
# store cannot be automatically deleted.
|
3099
|
+
# @return [Boolean]
|
3100
|
+
#
|
3101
|
+
# @!attribute [rw] created_timestamp
|
3102
|
+
# The timestamp of an event data store's creation.
|
3103
|
+
# @return [Time]
|
3104
|
+
#
|
3105
|
+
# @!attribute [rw] updated_timestamp
|
3106
|
+
# The timestamp that shows when an event data store was updated, if
|
3107
|
+
# applicable. `UpdatedTimestamp` is always either the same or newer
|
3108
|
+
# than the time shown in `CreatedTimestamp`.
|
3109
|
+
# @return [Time]
|
3110
|
+
#
|
3111
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RestoreEventDataStoreResponse AWS API Documentation
|
3112
|
+
#
|
3113
|
+
class RestoreEventDataStoreResponse < Struct.new(
|
3114
|
+
:event_data_store_arn,
|
3115
|
+
:name,
|
3116
|
+
:status,
|
3117
|
+
:advanced_event_selectors,
|
3118
|
+
:multi_region_enabled,
|
3119
|
+
:organization_enabled,
|
3120
|
+
:retention_period,
|
3121
|
+
:termination_protection_enabled,
|
3122
|
+
:created_timestamp,
|
3123
|
+
:updated_timestamp)
|
3124
|
+
SENSITIVE = []
|
3125
|
+
include Aws::Structure
|
3126
|
+
end
|
3127
|
+
|
2224
3128
|
# This exception is thrown when the specified S3 bucket does not exist.
|
2225
3129
|
#
|
2226
3130
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/S3BucketDoesNotExistException AWS API Documentation
|
@@ -2260,6 +3164,37 @@ module Aws::CloudTrail
|
|
2260
3164
|
#
|
2261
3165
|
class StartLoggingResponse < Aws::EmptyStructure; end
|
2262
3166
|
|
3167
|
+
# @note When making an API call, you may pass StartQueryRequest
|
3168
|
+
# data as a hash:
|
3169
|
+
#
|
3170
|
+
# {
|
3171
|
+
# query_statement: "QueryStatement", # required
|
3172
|
+
# }
|
3173
|
+
#
|
3174
|
+
# @!attribute [rw] query_statement
|
3175
|
+
# The SQL code of your query.
|
3176
|
+
# @return [String]
|
3177
|
+
#
|
3178
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartQueryRequest AWS API Documentation
|
3179
|
+
#
|
3180
|
+
class StartQueryRequest < Struct.new(
|
3181
|
+
:query_statement)
|
3182
|
+
SENSITIVE = []
|
3183
|
+
include Aws::Structure
|
3184
|
+
end
|
3185
|
+
|
3186
|
+
# @!attribute [rw] query_id
|
3187
|
+
# The ID of the started query.
|
3188
|
+
# @return [String]
|
3189
|
+
#
|
3190
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/StartQueryResponse AWS API Documentation
|
3191
|
+
#
|
3192
|
+
class StartQueryResponse < Struct.new(
|
3193
|
+
:query_id)
|
3194
|
+
SENSITIVE = []
|
3195
|
+
include Aws::Structure
|
3196
|
+
end
|
3197
|
+
|
2263
3198
|
# Passes the request to CloudTrail to stop logging Amazon Web Services
|
2264
3199
|
# API calls for the specified account.
|
2265
3200
|
#
|
@@ -2300,8 +3235,8 @@ module Aws::CloudTrail
|
|
2300
3235
|
# data as a hash:
|
2301
3236
|
#
|
2302
3237
|
# {
|
2303
|
-
# key: "
|
2304
|
-
# value: "
|
3238
|
+
# key: "TagKey", # required
|
3239
|
+
# value: "TagValue",
|
2305
3240
|
# }
|
2306
3241
|
#
|
2307
3242
|
# @!attribute [rw] key
|
@@ -2500,6 +3435,145 @@ module Aws::CloudTrail
|
|
2500
3435
|
#
|
2501
3436
|
class UnsupportedOperationException < Aws::EmptyStructure; end
|
2502
3437
|
|
3438
|
+
# @note When making an API call, you may pass UpdateEventDataStoreRequest
|
3439
|
+
# data as a hash:
|
3440
|
+
#
|
3441
|
+
# {
|
3442
|
+
# event_data_store: "EventDataStoreArn", # required
|
3443
|
+
# name: "EventDataStoreName",
|
3444
|
+
# advanced_event_selectors: [
|
3445
|
+
# {
|
3446
|
+
# name: "SelectorName",
|
3447
|
+
# field_selectors: [ # required
|
3448
|
+
# {
|
3449
|
+
# field: "SelectorField", # required
|
3450
|
+
# equals: ["OperatorValue"],
|
3451
|
+
# starts_with: ["OperatorValue"],
|
3452
|
+
# ends_with: ["OperatorValue"],
|
3453
|
+
# not_equals: ["OperatorValue"],
|
3454
|
+
# not_starts_with: ["OperatorValue"],
|
3455
|
+
# not_ends_with: ["OperatorValue"],
|
3456
|
+
# },
|
3457
|
+
# ],
|
3458
|
+
# },
|
3459
|
+
# ],
|
3460
|
+
# multi_region_enabled: false,
|
3461
|
+
# organization_enabled: false,
|
3462
|
+
# retention_period: 1,
|
3463
|
+
# termination_protection_enabled: false,
|
3464
|
+
# }
|
3465
|
+
#
|
3466
|
+
# @!attribute [rw] event_data_store
|
3467
|
+
# The ARN (or the ID suffix of the ARN) of the event data store that
|
3468
|
+
# you want to update.
|
3469
|
+
# @return [String]
|
3470
|
+
#
|
3471
|
+
# @!attribute [rw] name
|
3472
|
+
# The event data store name.
|
3473
|
+
# @return [String]
|
3474
|
+
#
|
3475
|
+
# @!attribute [rw] advanced_event_selectors
|
3476
|
+
# The advanced event selectors used to select events for the event
|
3477
|
+
# data store.
|
3478
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
3479
|
+
#
|
3480
|
+
# @!attribute [rw] multi_region_enabled
|
3481
|
+
# Specifies whether an event data store collects events from all
|
3482
|
+
# regions, or only from the region in which it was created.
|
3483
|
+
# @return [Boolean]
|
3484
|
+
#
|
3485
|
+
# @!attribute [rw] organization_enabled
|
3486
|
+
# Specifies whether an event data store collects events logged for an
|
3487
|
+
# organization in Organizations.
|
3488
|
+
# @return [Boolean]
|
3489
|
+
#
|
3490
|
+
# @!attribute [rw] retention_period
|
3491
|
+
# The retention period, in days.
|
3492
|
+
# @return [Integer]
|
3493
|
+
#
|
3494
|
+
# @!attribute [rw] termination_protection_enabled
|
3495
|
+
# Indicates that termination protection is enabled and the event data
|
3496
|
+
# store cannot be automatically deleted.
|
3497
|
+
# @return [Boolean]
|
3498
|
+
#
|
3499
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStoreRequest AWS API Documentation
|
3500
|
+
#
|
3501
|
+
class UpdateEventDataStoreRequest < Struct.new(
|
3502
|
+
:event_data_store,
|
3503
|
+
:name,
|
3504
|
+
:advanced_event_selectors,
|
3505
|
+
:multi_region_enabled,
|
3506
|
+
:organization_enabled,
|
3507
|
+
:retention_period,
|
3508
|
+
:termination_protection_enabled)
|
3509
|
+
SENSITIVE = []
|
3510
|
+
include Aws::Structure
|
3511
|
+
end
|
3512
|
+
|
3513
|
+
# @!attribute [rw] event_data_store_arn
|
3514
|
+
# The ARN of the event data store.
|
3515
|
+
# @return [String]
|
3516
|
+
#
|
3517
|
+
# @!attribute [rw] name
|
3518
|
+
# The name of the event data store.
|
3519
|
+
# @return [String]
|
3520
|
+
#
|
3521
|
+
# @!attribute [rw] status
|
3522
|
+
# The status of an event data store. Values can be `ENABLED` and
|
3523
|
+
# `PENDING_DELETION`.
|
3524
|
+
# @return [String]
|
3525
|
+
#
|
3526
|
+
# @!attribute [rw] advanced_event_selectors
|
3527
|
+
# The advanced event selectors that are applied to the event data
|
3528
|
+
# store.
|
3529
|
+
# @return [Array<Types::AdvancedEventSelector>]
|
3530
|
+
#
|
3531
|
+
# @!attribute [rw] multi_region_enabled
|
3532
|
+
# Indicates whether the event data store includes events from all
|
3533
|
+
# regions, or only from the region in which it was created.
|
3534
|
+
# @return [Boolean]
|
3535
|
+
#
|
3536
|
+
# @!attribute [rw] organization_enabled
|
3537
|
+
# Indicates whether an event data store is collecting logged events
|
3538
|
+
# for an organization in Organizations.
|
3539
|
+
# @return [Boolean]
|
3540
|
+
#
|
3541
|
+
# @!attribute [rw] retention_period
|
3542
|
+
# The retention period, in days.
|
3543
|
+
# @return [Integer]
|
3544
|
+
#
|
3545
|
+
# @!attribute [rw] termination_protection_enabled
|
3546
|
+
# Indicates whether termination protection is enabled for the event
|
3547
|
+
# data store.
|
3548
|
+
# @return [Boolean]
|
3549
|
+
#
|
3550
|
+
# @!attribute [rw] created_timestamp
|
3551
|
+
# The timestamp that shows when an event data store was first created.
|
3552
|
+
# @return [Time]
|
3553
|
+
#
|
3554
|
+
# @!attribute [rw] updated_timestamp
|
3555
|
+
# The timestamp that shows when the event data store was last updated.
|
3556
|
+
# `UpdatedTimestamp` is always either the same or newer than the time
|
3557
|
+
# shown in `CreatedTimestamp`.
|
3558
|
+
# @return [Time]
|
3559
|
+
#
|
3560
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStoreResponse AWS API Documentation
|
3561
|
+
#
|
3562
|
+
class UpdateEventDataStoreResponse < Struct.new(
|
3563
|
+
:event_data_store_arn,
|
3564
|
+
:name,
|
3565
|
+
:status,
|
3566
|
+
:advanced_event_selectors,
|
3567
|
+
:multi_region_enabled,
|
3568
|
+
:organization_enabled,
|
3569
|
+
:retention_period,
|
3570
|
+
:termination_protection_enabled,
|
3571
|
+
:created_timestamp,
|
3572
|
+
:updated_timestamp)
|
3573
|
+
SENSITIVE = []
|
3574
|
+
include Aws::Structure
|
3575
|
+
end
|
3576
|
+
|
2503
3577
|
# Specifies settings to update for the trail.
|
2504
3578
|
#
|
2505
3579
|
# @note When making an API call, you may pass UpdateTrailRequest
|