aws-sdk-cloudtrail 1.46.0 → 1.49.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +38 -30
- data/lib/aws-sdk-cloudtrail/client_api.rb +10 -8
- data/lib/aws-sdk-cloudtrail/types.rb +65 -55
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec5d187176c43abe1b0f9e22af755232ba56d77e6046d484a4941906e768822
|
4
|
+
data.tar.gz: 031acc2864f6fd5fc8a6378177056166b3d6a13bc591565c69ced8c63513e5c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55e951e6f59972a6cf10f73ceebc98d1764dfd9171d5dc84cee5b1b0f3618cb6d0ad6a2ae671357eca2cc30d43a6b282f19a2cef37667153033195a027b63c0e
|
7
|
+
data.tar.gz: '0853615833aa071d8fce2194c44c1ae0c19f3c7d2e7c92ff79345f66b1b65abc9121ea292eacdd452f555dd2e92084c70d09d75e696d221591d0e43f4e8459d7'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2022-04-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Increases the retention period maximum to 2557 days. Deprecates unused fields of the ListEventDataStores API response. Updates documentation.
|
8
|
+
|
9
|
+
1.48.0 (2022-03-02)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add bytesScanned field into responses of DescribeQuery and GetQueryResults.
|
13
|
+
|
14
|
+
1.47.0 (2022-02-24)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
4
19
|
1.46.0 (2022-02-03)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
30
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
31
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
32
33
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
@@ -75,6 +76,7 @@ module Aws::CloudTrail
|
|
75
76
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
76
77
|
add_plugin(Aws::Plugins::TransferEncoding)
|
77
78
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
|
+
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
78
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
79
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
80
82
|
add_plugin(Aws::Plugins::SignatureV4)
|
@@ -359,18 +361,19 @@ module Aws::CloudTrail
|
|
359
361
|
|
360
362
|
# @!group API Operations
|
361
363
|
|
362
|
-
# Adds one or more tags to a trail, up to a limit of
|
363
|
-
# existing tag's value when a new value is specified
|
364
|
-
# tag key. Tag key names must be unique for a trail; you
|
365
|
-
# keys with the same name but different values. If you
|
366
|
-
# without a value, the tag will be created with the
|
367
|
-
# value of null. You can tag a trail
|
368
|
-
#
|
369
|
-
#
|
364
|
+
# Adds one or more tags to a trail or event data store, up to a limit of
|
365
|
+
# 50. Overwrites an existing tag's value when a new value is specified
|
366
|
+
# for an existing tag key. Tag key names must be unique for a trail; you
|
367
|
+
# cannot have two keys with the same name but different values. If you
|
368
|
+
# specify a key without a value, the tag will be created with the
|
369
|
+
# specified key and a value of null. You can tag a trail or event data
|
370
|
+
# store that applies to all Amazon Web Services Regions only from the
|
371
|
+
# Region in which the trail or event data store was created (also known
|
372
|
+
# as its home region).
|
370
373
|
#
|
371
374
|
# @option params [required, String] :resource_id
|
372
|
-
# Specifies the ARN of the trail to which one or
|
373
|
-
# added. The format of a trail ARN is:
|
375
|
+
# Specifies the ARN of the trail or event data store to which one or
|
376
|
+
# more tags will be added. The format of a trail ARN is:
|
374
377
|
#
|
375
378
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
376
379
|
#
|
@@ -401,10 +404,10 @@ module Aws::CloudTrail
|
|
401
404
|
end
|
402
405
|
|
403
406
|
# Cancels a query if the query is not in a terminated state, such as
|
404
|
-
# `CANCELLED`, `FAILED` or `FINISHED`. You must specify an
|
405
|
-
# `EventDataStore`. The ID of the query that you want to
|
406
|
-
# required. When you run `CancelQuery`, the query status
|
407
|
-
# `CANCELLED` even if the operation is not yet finished.
|
407
|
+
# `CANCELLED`, `FAILED`, `TIMED_OUT`, or `FINISHED`. You must specify an
|
408
|
+
# ARN value for `EventDataStore`. The ID of the query that you want to
|
409
|
+
# cancel is also required. When you run `CancelQuery`, the query status
|
410
|
+
# might show as `CANCELLED` even if the operation is not yet finished.
|
408
411
|
#
|
409
412
|
# @option params [required, String] :event_data_store
|
410
413
|
# The ARN (or the ID suffix of the ARN) of an event data store on which
|
@@ -429,7 +432,7 @@ module Aws::CloudTrail
|
|
429
432
|
# @example Response structure
|
430
433
|
#
|
431
434
|
# resp.query_id #=> String
|
432
|
-
# resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED"
|
435
|
+
# resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT"
|
433
436
|
#
|
434
437
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CancelQuery AWS API Documentation
|
435
438
|
#
|
@@ -829,9 +832,10 @@ module Aws::CloudTrail
|
|
829
832
|
#
|
830
833
|
# resp.query_id #=> String
|
831
834
|
# resp.query_string #=> String
|
832
|
-
# resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED"
|
835
|
+
# resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT"
|
833
836
|
# resp.query_statistics.events_matched #=> Integer
|
834
837
|
# resp.query_statistics.events_scanned #=> Integer
|
838
|
+
# resp.query_statistics.bytes_scanned #=> Integer
|
835
839
|
# resp.query_statistics.execution_time_in_millis #=> Integer
|
836
840
|
# resp.query_statistics.creation_time #=> Time
|
837
841
|
# resp.error_message #=> String
|
@@ -1170,9 +1174,10 @@ module Aws::CloudTrail
|
|
1170
1174
|
#
|
1171
1175
|
# @example Response structure
|
1172
1176
|
#
|
1173
|
-
# resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED"
|
1177
|
+
# resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT"
|
1174
1178
|
# resp.query_statistics.results_count #=> Integer
|
1175
1179
|
# resp.query_statistics.total_results_count #=> Integer
|
1180
|
+
# resp.query_statistics.bytes_scanned #=> Integer
|
1176
1181
|
# resp.query_result_rows #=> Array
|
1177
1182
|
# resp.query_result_rows[0] #=> Array
|
1178
1183
|
# resp.query_result_rows[0][0] #=> Hash
|
@@ -1428,7 +1433,7 @@ module Aws::CloudTrail
|
|
1428
1433
|
# shorten the list of results, you can specify a time range, formatted
|
1429
1434
|
# as timestamps, by adding `StartTime` and `EndTime` parameters, and a
|
1430
1435
|
# `QueryStatus` value. Valid values for `QueryStatus` include `QUEUED`,
|
1431
|
-
# `RUNNING`, `FINISHED`, `FAILED`, or `CANCELLED`.
|
1436
|
+
# `RUNNING`, `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`.
|
1432
1437
|
#
|
1433
1438
|
# @option params [required, String] :event_data_store
|
1434
1439
|
# The ARN (or the ID suffix of the ARN) of an event data store on which
|
@@ -1451,7 +1456,7 @@ module Aws::CloudTrail
|
|
1451
1456
|
# @option params [String] :query_status
|
1452
1457
|
# The status of queries that you want to return in results. Valid values
|
1453
1458
|
# for `QueryStatus` include `QUEUED`, `RUNNING`, `FINISHED`, `FAILED`,
|
1454
|
-
# or `CANCELLED`.
|
1459
|
+
# `TIMED_OUT`, or `CANCELLED`.
|
1455
1460
|
#
|
1456
1461
|
# @return [Types::ListQueriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1457
1462
|
#
|
@@ -1468,14 +1473,14 @@ module Aws::CloudTrail
|
|
1468
1473
|
# max_results: 1,
|
1469
1474
|
# start_time: Time.now,
|
1470
1475
|
# end_time: Time.now,
|
1471
|
-
# query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED
|
1476
|
+
# query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED, TIMED_OUT
|
1472
1477
|
# })
|
1473
1478
|
#
|
1474
1479
|
# @example Response structure
|
1475
1480
|
#
|
1476
1481
|
# resp.queries #=> Array
|
1477
1482
|
# resp.queries[0].query_id #=> String
|
1478
|
-
# resp.queries[0].query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED"
|
1483
|
+
# resp.queries[0].query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT"
|
1479
1484
|
# resp.queries[0].creation_time #=> Time
|
1480
1485
|
# resp.next_token #=> String
|
1481
1486
|
#
|
@@ -1488,13 +1493,12 @@ module Aws::CloudTrail
|
|
1488
1493
|
req.send_request(options)
|
1489
1494
|
end
|
1490
1495
|
|
1491
|
-
# Lists the tags for the trail in the current
|
1496
|
+
# Lists the tags for the trail or event data store in the current
|
1497
|
+
# region.
|
1492
1498
|
#
|
1493
1499
|
# @option params [required, Array<String>] :resource_id_list
|
1494
|
-
# Specifies a list of trail ARNs whose tags will be
|
1495
|
-
#
|
1496
|
-
#
|
1497
|
-
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
1500
|
+
# Specifies a list of trail and event data store ARNs whose tags will be
|
1501
|
+
# listed. The list has a limit of 20 ARNs.
|
1498
1502
|
#
|
1499
1503
|
# @option params [String] :next_token
|
1500
1504
|
# Reserved for future use.
|
@@ -1907,14 +1911,18 @@ module Aws::CloudTrail
|
|
1907
1911
|
req.send_request(options)
|
1908
1912
|
end
|
1909
1913
|
|
1910
|
-
# Removes the specified tags from a trail.
|
1914
|
+
# Removes the specified tags from a trail or event data store.
|
1911
1915
|
#
|
1912
1916
|
# @option params [required, String] :resource_id
|
1913
|
-
# Specifies the ARN of the trail
|
1914
|
-
#
|
1917
|
+
# Specifies the ARN of the trail or event data store from which tags
|
1918
|
+
# should be removed.
|
1915
1919
|
#
|
1920
|
+
# Example trail ARN format:
|
1916
1921
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
1917
1922
|
#
|
1923
|
+
# Example event data store ARN format:
|
1924
|
+
# `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
|
1925
|
+
#
|
1918
1926
|
# @option params [required, Array<Types::Tag>] :tags_list
|
1919
1927
|
# Specifies a list of tags to be removed.
|
1920
1928
|
#
|
@@ -2410,7 +2418,7 @@ module Aws::CloudTrail
|
|
2410
2418
|
params: params,
|
2411
2419
|
config: config)
|
2412
2420
|
context[:gem_name] = 'aws-sdk-cloudtrail'
|
2413
|
-
context[:gem_version] = '1.
|
2421
|
+
context[:gem_version] = '1.49.0'
|
2414
2422
|
Seahorse::Client::Request.new(handlers, context)
|
2415
2423
|
end
|
2416
2424
|
|
@@ -343,14 +343,14 @@ module Aws::CloudTrail
|
|
343
343
|
|
344
344
|
EventDataStore.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
|
345
345
|
EventDataStore.add_member(:name, Shapes::ShapeRef.new(shape: EventDataStoreName, location_name: "Name"))
|
346
|
-
EventDataStore.add_member(:termination_protection_enabled, Shapes::ShapeRef.new(shape: TerminationProtectionEnabled, location_name: "TerminationProtectionEnabled"))
|
347
|
-
EventDataStore.add_member(:status, Shapes::ShapeRef.new(shape: EventDataStoreStatus, location_name: "Status"))
|
348
|
-
EventDataStore.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
|
349
|
-
EventDataStore.add_member(:multi_region_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "MultiRegionEnabled"))
|
350
|
-
EventDataStore.add_member(:organization_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "OrganizationEnabled"))
|
351
|
-
EventDataStore.add_member(:retention_period, Shapes::ShapeRef.new(shape: RetentionPeriod, location_name: "RetentionPeriod"))
|
352
|
-
EventDataStore.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
|
353
|
-
EventDataStore.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
|
346
|
+
EventDataStore.add_member(:termination_protection_enabled, Shapes::ShapeRef.new(shape: TerminationProtectionEnabled, deprecated: true, location_name: "TerminationProtectionEnabled", metadata: {"deprecatedMessage"=>"TerminationProtectionEnabled is no longer returned by ListEventDataStores"}))
|
347
|
+
EventDataStore.add_member(:status, Shapes::ShapeRef.new(shape: EventDataStoreStatus, deprecated: true, location_name: "Status", metadata: {"deprecatedMessage"=>"Status is no longer returned by ListEventDataStores"}))
|
348
|
+
EventDataStore.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, deprecated: true, location_name: "AdvancedEventSelectors", metadata: {"deprecatedMessage"=>"AdvancedEventSelectors is no longer returned by ListEventDataStores"}))
|
349
|
+
EventDataStore.add_member(:multi_region_enabled, Shapes::ShapeRef.new(shape: Boolean, deprecated: true, location_name: "MultiRegionEnabled", metadata: {"deprecatedMessage"=>"MultiRegionEnabled is no longer returned by ListEventDataStores"}))
|
350
|
+
EventDataStore.add_member(:organization_enabled, Shapes::ShapeRef.new(shape: Boolean, deprecated: true, location_name: "OrganizationEnabled", metadata: {"deprecatedMessage"=>"OrganizationEnabled is no longer returned by ListEventDataStores"}))
|
351
|
+
EventDataStore.add_member(:retention_period, Shapes::ShapeRef.new(shape: RetentionPeriod, deprecated: true, location_name: "RetentionPeriod", metadata: {"deprecatedMessage"=>"RetentionPeriod is no longer returned by ListEventDataStores"}))
|
352
|
+
EventDataStore.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, deprecated: true, location_name: "CreatedTimestamp", metadata: {"deprecatedMessage"=>"CreatedTimestamp is no longer returned by ListEventDataStores"}))
|
353
|
+
EventDataStore.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, deprecated: true, location_name: "UpdatedTimestamp", metadata: {"deprecatedMessage"=>"UpdatedTimestamp is no longer returned by ListEventDataStores"}))
|
354
354
|
EventDataStore.struct_class = Types::EventDataStore
|
355
355
|
|
356
356
|
EventDataStoreARNInvalidException.struct_class = Types::EventDataStoreARNInvalidException
|
@@ -639,10 +639,12 @@ module Aws::CloudTrail
|
|
639
639
|
|
640
640
|
QueryStatistics.add_member(:results_count, Shapes::ShapeRef.new(shape: Integer, location_name: "ResultsCount"))
|
641
641
|
QueryStatistics.add_member(:total_results_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TotalResultsCount"))
|
642
|
+
QueryStatistics.add_member(:bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "BytesScanned"))
|
642
643
|
QueryStatistics.struct_class = Types::QueryStatistics
|
643
644
|
|
644
645
|
QueryStatisticsForDescribeQuery.add_member(:events_matched, Shapes::ShapeRef.new(shape: Long, location_name: "EventsMatched"))
|
645
646
|
QueryStatisticsForDescribeQuery.add_member(:events_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "EventsScanned"))
|
647
|
+
QueryStatisticsForDescribeQuery.add_member(:bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "BytesScanned"))
|
646
648
|
QueryStatisticsForDescribeQuery.add_member(:execution_time_in_millis, Shapes::ShapeRef.new(shape: Integer, location_name: "ExecutionTimeInMillis"))
|
647
649
|
QueryStatisticsForDescribeQuery.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
|
648
650
|
QueryStatisticsForDescribeQuery.struct_class = Types::QueryStatisticsForDescribeQuery
|
@@ -10,7 +10,7 @@
|
|
10
10
|
module Aws::CloudTrail
|
11
11
|
module Types
|
12
12
|
|
13
|
-
# Specifies the tags to add to a trail.
|
13
|
+
# Specifies the tags to add to a trail or event data store.
|
14
14
|
#
|
15
15
|
# @note When making an API call, you may pass AddTagsRequest
|
16
16
|
# data as a hash:
|
@@ -26,8 +26,8 @@ module Aws::CloudTrail
|
|
26
26
|
# }
|
27
27
|
#
|
28
28
|
# @!attribute [rw] resource_id
|
29
|
-
# Specifies the ARN of the trail to which one or
|
30
|
-
# added. The format of a trail ARN is:
|
29
|
+
# Specifies the ARN of the trail or event data store to which one or
|
30
|
+
# more tags will be added. The format of a trail ARN is:
|
31
31
|
#
|
32
32
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
33
33
|
# @return [String]
|
@@ -403,8 +403,8 @@ module Aws::CloudTrail
|
|
403
403
|
|
404
404
|
# This exception is thrown when the specified resource is not ready for
|
405
405
|
# an operation. This can occur when you try to run an operation on a
|
406
|
-
#
|
407
|
-
# exception occurs, wait a few minutes, and then try the operation
|
406
|
+
# resource before CloudTrail has time to fully load the resource. If
|
407
|
+
# this exception occurs, wait a few minutes, and then try the operation
|
408
408
|
# again.
|
409
409
|
#
|
410
410
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ConflictException AWS API Documentation
|
@@ -1074,7 +1074,7 @@ module Aws::CloudTrail
|
|
1074
1074
|
#
|
1075
1075
|
# @!attribute [rw] query_status
|
1076
1076
|
# The status of a query. Values for `QueryStatus` include `QUEUED`,
|
1077
|
-
# `RUNNING`, `FINISHED`, `FAILED`, or `CANCELLED`
|
1077
|
+
# `RUNNING`, `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`
|
1078
1078
|
# @return [String]
|
1079
1079
|
#
|
1080
1080
|
# @!attribute [rw] query_statistics
|
@@ -1250,42 +1250,44 @@ module Aws::CloudTrail
|
|
1250
1250
|
# @return [String]
|
1251
1251
|
#
|
1252
1252
|
# @!attribute [rw] termination_protection_enabled
|
1253
|
-
# Indicates whether the event data
|
1254
|
-
# termination.
|
1253
|
+
# This field is being deprecated. Indicates whether the event data
|
1254
|
+
# store is protected from termination.
|
1255
1255
|
# @return [Boolean]
|
1256
1256
|
#
|
1257
1257
|
# @!attribute [rw] status
|
1258
|
-
# The status of an event data store.
|
1259
|
-
# `PENDING_DELETION`.
|
1258
|
+
# This field is being deprecated. The status of an event data store.
|
1259
|
+
# Values are `ENABLED` and `PENDING_DELETION`.
|
1260
1260
|
# @return [String]
|
1261
1261
|
#
|
1262
1262
|
# @!attribute [rw] advanced_event_selectors
|
1263
|
-
# The advanced event selectors that
|
1264
|
-
# data store.
|
1263
|
+
# This field is being deprecated. The advanced event selectors that
|
1264
|
+
# were used to select events for the data store.
|
1265
1265
|
# @return [Array<Types::AdvancedEventSelector>]
|
1266
1266
|
#
|
1267
1267
|
# @!attribute [rw] multi_region_enabled
|
1268
|
-
# Indicates whether the event data
|
1269
|
-
# regions, or only from the region in
|
1268
|
+
# This field is being deprecated. Indicates whether the event data
|
1269
|
+
# store includes events from all regions, or only from the region in
|
1270
|
+
# which it was created.
|
1270
1271
|
# @return [Boolean]
|
1271
1272
|
#
|
1272
1273
|
# @!attribute [rw] organization_enabled
|
1273
|
-
# Indicates that an event data store
|
1274
|
-
# an organization.
|
1274
|
+
# This field is being deprecated. Indicates that an event data store
|
1275
|
+
# is collecting logged events for an organization.
|
1275
1276
|
# @return [Boolean]
|
1276
1277
|
#
|
1277
1278
|
# @!attribute [rw] retention_period
|
1278
|
-
# The retention period, in days.
|
1279
|
+
# This field is being deprecated. The retention period, in days.
|
1279
1280
|
# @return [Integer]
|
1280
1281
|
#
|
1281
1282
|
# @!attribute [rw] created_timestamp
|
1282
|
-
# The timestamp of the event data
|
1283
|
+
# This field is being deprecated. The timestamp of the event data
|
1284
|
+
# store's creation.
|
1283
1285
|
# @return [Time]
|
1284
1286
|
#
|
1285
1287
|
# @!attribute [rw] updated_timestamp
|
1286
|
-
# The timestamp showing when an event
|
1287
|
-
# applicable. `UpdatedTimestamp` is always
|
1288
|
-
# than the time shown in `CreatedTimestamp`.
|
1288
|
+
# This field is being deprecated. The timestamp showing when an event
|
1289
|
+
# data store was updated, if applicable. `UpdatedTimestamp` is always
|
1290
|
+
# either the same or newer than the time shown in `CreatedTimestamp`.
|
1289
1291
|
# @return [Time]
|
1290
1292
|
#
|
1291
1293
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStore AWS API Documentation
|
@@ -1671,7 +1673,7 @@ module Aws::CloudTrail
|
|
1671
1673
|
|
1672
1674
|
# @!attribute [rw] query_status
|
1673
1675
|
# The status of the query. Values include `QUEUED`, `RUNNING`,
|
1674
|
-
# `FINISHED`, `FAILED`, or `CANCELLED`.
|
1676
|
+
# `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`.
|
1675
1677
|
# @return [String]
|
1676
1678
|
#
|
1677
1679
|
# @!attribute [rw] query_statistics
|
@@ -1900,14 +1902,14 @@ module Aws::CloudTrail
|
|
1900
1902
|
include Aws::Structure
|
1901
1903
|
end
|
1902
1904
|
|
1903
|
-
# The event data store
|
1905
|
+
# The event data store is inactive.
|
1904
1906
|
#
|
1905
1907
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveEventDataStoreException AWS API Documentation
|
1906
1908
|
#
|
1907
1909
|
class InactiveEventDataStoreException < Aws::EmptyStructure; end
|
1908
1910
|
|
1909
1911
|
# The specified query cannot be canceled because it is in the
|
1910
|
-
# `FINISHED`, `FAILED`, or `CANCELLED` state.
|
1912
|
+
# `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED` state.
|
1911
1913
|
#
|
1912
1914
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveQueryException AWS API Documentation
|
1913
1915
|
#
|
@@ -1945,14 +1947,9 @@ module Aws::CloudTrail
|
|
1945
1947
|
end
|
1946
1948
|
|
1947
1949
|
# This exception is thrown when the IAM user or role that is used to
|
1948
|
-
# create the organization
|
1949
|
-
# permissions for creating an organization
|
1950
|
-
#
|
1951
|
-
# Organization][1].
|
1952
|
-
#
|
1953
|
-
#
|
1954
|
-
#
|
1955
|
-
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
1950
|
+
# create the organization resource lacks one or more required
|
1951
|
+
# permissions for creating an organization resource in a required
|
1952
|
+
# service.
|
1956
1953
|
#
|
1957
1954
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientDependencyServiceAccessPermissionException AWS API Documentation
|
1958
1955
|
#
|
@@ -1992,7 +1989,8 @@ module Aws::CloudTrail
|
|
1992
1989
|
#
|
1993
1990
|
class InvalidCloudWatchLogsRoleArnException < Aws::EmptyStructure; end
|
1994
1991
|
|
1995
|
-
# A date range for the query was specified that is not valid.
|
1992
|
+
# A date range for the query was specified that is not valid. Be sure
|
1993
|
+
# that the start time is chronologically before the end time. For more
|
1996
1994
|
# information about writing a query, see [Create or edit a query][1] in
|
1997
1995
|
# the *CloudTrail User Guide*.
|
1998
1996
|
#
|
@@ -2317,7 +2315,7 @@ module Aws::CloudTrail
|
|
2317
2315
|
# max_results: 1,
|
2318
2316
|
# start_time: Time.now,
|
2319
2317
|
# end_time: Time.now,
|
2320
|
-
# query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED
|
2318
|
+
# query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED, TIMED_OUT
|
2321
2319
|
# }
|
2322
2320
|
#
|
2323
2321
|
# @!attribute [rw] event_data_store
|
@@ -2346,7 +2344,7 @@ module Aws::CloudTrail
|
|
2346
2344
|
# @!attribute [rw] query_status
|
2347
2345
|
# The status of queries that you want to return in results. Valid
|
2348
2346
|
# values for `QueryStatus` include `QUEUED`, `RUNNING`, `FINISHED`,
|
2349
|
-
# `FAILED`, or `CANCELLED`.
|
2347
|
+
# `FAILED`, `TIMED_OUT`, or `CANCELLED`.
|
2350
2348
|
# @return [String]
|
2351
2349
|
#
|
2352
2350
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListQueriesRequest AWS API Documentation
|
@@ -2380,7 +2378,7 @@ module Aws::CloudTrail
|
|
2380
2378
|
include Aws::Structure
|
2381
2379
|
end
|
2382
2380
|
|
2383
|
-
# Specifies a list of
|
2381
|
+
# Specifies a list of tags to return.
|
2384
2382
|
#
|
2385
2383
|
# @note When making an API call, you may pass ListTagsRequest
|
2386
2384
|
# data as a hash:
|
@@ -2391,10 +2389,8 @@ module Aws::CloudTrail
|
|
2391
2389
|
# }
|
2392
2390
|
#
|
2393
2391
|
# @!attribute [rw] resource_id_list
|
2394
|
-
# Specifies a list of trail ARNs whose tags will
|
2395
|
-
#
|
2396
|
-
#
|
2397
|
-
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
2392
|
+
# Specifies a list of trail and event data store ARNs whose tags will
|
2393
|
+
# be listed. The list has a limit of 20 ARNs.
|
2398
2394
|
# @return [Array<String>]
|
2399
2395
|
#
|
2400
2396
|
# @!attribute [rw] next_token
|
@@ -2614,14 +2610,15 @@ module Aws::CloudTrail
|
|
2614
2610
|
class MaximumNumberOfTrailsExceededException < Aws::EmptyStructure; end
|
2615
2611
|
|
2616
2612
|
# This exception is thrown when the Amazon Web Services account making
|
2617
|
-
# the request to create or update an organization trail
|
2618
|
-
# management account for an organization in
|
2619
|
-
# information, see [Prepare For Creating a Trail
|
2620
|
-
# Organization][1].
|
2613
|
+
# the request to create or update an organization trail or event data
|
2614
|
+
# store is not the management account for an organization in
|
2615
|
+
# Organizations. For more information, see [Prepare For Creating a Trail
|
2616
|
+
# For Your Organization][1] or [Create an event data store][2].
|
2621
2617
|
#
|
2622
2618
|
#
|
2623
2619
|
#
|
2624
2620
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
2621
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html
|
2625
2622
|
#
|
2626
2623
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/NotOrganizationMasterAccountException AWS API Documentation
|
2627
2624
|
#
|
@@ -2636,12 +2633,7 @@ module Aws::CloudTrail
|
|
2636
2633
|
|
2637
2634
|
# This exception is thrown when Organizations is not configured to
|
2638
2635
|
# support all features. All features must be enabled in Organizations to
|
2639
|
-
# support creating an organization trail
|
2640
|
-
# [Prepare For Creating a Trail For Your Organization][1].
|
2641
|
-
#
|
2642
|
-
#
|
2643
|
-
#
|
2644
|
-
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
2636
|
+
# support creating an organization trail or event data store.
|
2645
2637
|
#
|
2646
2638
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/OrganizationNotInAllFeaturesModeException AWS API Documentation
|
2647
2639
|
#
|
@@ -2863,7 +2855,7 @@ module Aws::CloudTrail
|
|
2863
2855
|
#
|
2864
2856
|
# @!attribute [rw] query_status
|
2865
2857
|
# The status of the query. This can be `QUEUED`, `RUNNING`,
|
2866
|
-
# `FINISHED`, `FAILED`, or `CANCELLED`.
|
2858
|
+
# `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`.
|
2867
2859
|
# @return [String]
|
2868
2860
|
#
|
2869
2861
|
# @!attribute [rw] creation_time
|
@@ -2896,11 +2888,18 @@ module Aws::CloudTrail
|
|
2896
2888
|
# The total number of results returned by a query.
|
2897
2889
|
# @return [Integer]
|
2898
2890
|
#
|
2891
|
+
# @!attribute [rw] bytes_scanned
|
2892
|
+
# The total bytes that the query scanned in the event data store. This
|
2893
|
+
# value matches the number of bytes for which your account is billed
|
2894
|
+
# for the query, unless the query is still running.
|
2895
|
+
# @return [Integer]
|
2896
|
+
#
|
2899
2897
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/QueryStatistics AWS API Documentation
|
2900
2898
|
#
|
2901
2899
|
class QueryStatistics < Struct.new(
|
2902
2900
|
:results_count,
|
2903
|
-
:total_results_count
|
2901
|
+
:total_results_count,
|
2902
|
+
:bytes_scanned)
|
2904
2903
|
SENSITIVE = []
|
2905
2904
|
include Aws::Structure
|
2906
2905
|
end
|
@@ -2917,6 +2916,12 @@ module Aws::CloudTrail
|
|
2917
2916
|
# The number of events that the query scanned in the event data store.
|
2918
2917
|
# @return [Integer]
|
2919
2918
|
#
|
2919
|
+
# @!attribute [rw] bytes_scanned
|
2920
|
+
# The total bytes that the query scanned in the event data store. This
|
2921
|
+
# value matches the number of bytes for which your account is billed
|
2922
|
+
# for the query, unless the query is still running.
|
2923
|
+
# @return [Integer]
|
2924
|
+
#
|
2920
2925
|
# @!attribute [rw] execution_time_in_millis
|
2921
2926
|
# The query's run time, in milliseconds.
|
2922
2927
|
# @return [Integer]
|
@@ -2930,13 +2935,14 @@ module Aws::CloudTrail
|
|
2930
2935
|
class QueryStatisticsForDescribeQuery < Struct.new(
|
2931
2936
|
:events_matched,
|
2932
2937
|
:events_scanned,
|
2938
|
+
:bytes_scanned,
|
2933
2939
|
:execution_time_in_millis,
|
2934
2940
|
:creation_time)
|
2935
2941
|
SENSITIVE = []
|
2936
2942
|
include Aws::Structure
|
2937
2943
|
end
|
2938
2944
|
|
2939
|
-
# Specifies the tags to remove from a trail.
|
2945
|
+
# Specifies the tags to remove from a trail or event data store.
|
2940
2946
|
#
|
2941
2947
|
# @note When making an API call, you may pass RemoveTagsRequest
|
2942
2948
|
# data as a hash:
|
@@ -2952,10 +2958,14 @@ module Aws::CloudTrail
|
|
2952
2958
|
# }
|
2953
2959
|
#
|
2954
2960
|
# @!attribute [rw] resource_id
|
2955
|
-
# Specifies the ARN of the trail from which tags
|
2956
|
-
#
|
2961
|
+
# Specifies the ARN of the trail or event data store from which tags
|
2962
|
+
# should be removed.
|
2957
2963
|
#
|
2964
|
+
# Example trail ARN format:
|
2958
2965
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
2966
|
+
#
|
2967
|
+
# Example event data store ARN format:
|
2968
|
+
# `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
|
2959
2969
|
# @return [String]
|
2960
2970
|
#
|
2961
2971
|
# @!attribute [rw] tags_list
|
data/lib/aws-sdk-cloudtrail.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudtrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.127.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.127.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|