aws-sdk-cloudtrail 1.47.0 → 1.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbcb8829b7f62ec563c39d048e6cc41280bc6da20d8b6767c0fa2452b138eb7c
4
- data.tar.gz: bf8c8cdf82589369124555546003c065a240447daef6d7cb5e7a685f30eb11b0
3
+ metadata.gz: 92437a7a7cb64e0c36d4094799380ba953562fec2d133de0271299cfd9733f1b
4
+ data.tar.gz: a64de41244574754915618a7a79fc003a0c98ba7672fbff44ccdeebeab7a2895
5
5
  SHA512:
6
- metadata.gz: 9b8eb4ed5328581d3158efa597e10d5ee9742c9ca7f2848d9d5ba217b20373d89ad7c6d583a03c3037afe08e3227b17ca2b55f3602d21e4f181a7908dba0b398
7
- data.tar.gz: cf1ab13ca158bd6c5273973298008c1dda4578723126b252a4dd1065de2383f109aeff173446cd7f1bc4fc1abc925c60f9f597c564ea8ce70e852fdea6f2fc83
6
+ metadata.gz: 3abd5b513985fe3c06e1497f965fbaa318686a627f5870f742204378909b24361c4a465308770a61530b10eebd6334b2238748ae3e5c606a3edc1d70651bff41
7
+ data.tar.gz: 0e89f2c4758a430eb4bdca0bc7d1a855bef3da80911cdb36f43686ebe570d2264d03da11d9f286f4cfeb88bcb629ff9199a5ce713b09ebf58e9ff1df5ee47578
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.50.0 (2022-09-09)
5
+ ------------------
6
+
7
+ * Feature - This release adds CloudTrail getChannel and listChannels APIs to allow customer to view the ServiceLinkedChannel configurations.
8
+
9
+ 1.49.0 (2022-04-27)
10
+ ------------------
11
+
12
+ * Feature - Increases the retention period maximum to 2557 days. Deprecates unused fields of the ListEventDataStores API response. Updates documentation.
13
+
14
+ 1.48.0 (2022-03-02)
15
+ ------------------
16
+
17
+ * Feature - Add bytesScanned field into responses of DescribeQuery and GetQueryResults.
18
+
4
19
  1.47.0 (2022-02-24)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.47.0
1
+ 1.50.0
@@ -361,18 +361,19 @@ module Aws::CloudTrail
361
361
 
362
362
  # @!group API Operations
363
363
 
364
- # Adds one or more tags to a trail, up to a limit of 50. Overwrites an
365
- # existing tag's value when a new value is specified for an existing
366
- # tag key. Tag key names must be unique for a trail; you cannot have two
367
- # keys with the same name but different values. If you specify a key
368
- # without a value, the tag will be created with the specified key and a
369
- # value of null. You can tag a trail that applies to all Amazon Web
370
- # Services Regions only from the Region in which the trail was created
371
- # (also known as its home region).
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).
372
373
  #
373
374
  # @option params [required, String] :resource_id
374
- # Specifies the ARN of the trail to which one or more tags will be
375
- # 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:
376
377
  #
377
378
  # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
378
379
  #
@@ -403,10 +404,10 @@ module Aws::CloudTrail
403
404
  end
404
405
 
405
406
  # Cancels a query if the query is not in a terminated state, such as
406
- # `CANCELLED`, `FAILED` or `FINISHED`. You must specify an ARN value for
407
- # `EventDataStore`. The ID of the query that you want to cancel is also
408
- # required. When you run `CancelQuery`, the query status might show as
409
- # `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.
410
411
  #
411
412
  # @option params [required, String] :event_data_store
412
413
  # The ARN (or the ID suffix of the ARN) of an event data store on which
@@ -431,7 +432,7 @@ module Aws::CloudTrail
431
432
  # @example Response structure
432
433
  #
433
434
  # resp.query_id #=> String
434
- # 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"
435
436
  #
436
437
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CancelQuery AWS API Documentation
437
438
  #
@@ -468,7 +469,7 @@ module Aws::CloudTrail
468
469
  #
469
470
  # @option params [Integer] :retention_period
470
471
  # The retention period of the event data store, in days. You can set a
471
- # retention period of up to 2555 days, the equivalent of seven years.
472
+ # retention period of up to 2557 days, the equivalent of seven years.
472
473
  #
473
474
  # @option params [Boolean] :termination_protection_enabled
474
475
  # Specifies whether termination protection is enabled for the event data
@@ -831,9 +832,10 @@ module Aws::CloudTrail
831
832
  #
832
833
  # resp.query_id #=> String
833
834
  # resp.query_string #=> String
834
- # 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"
835
836
  # resp.query_statistics.events_matched #=> Integer
836
837
  # resp.query_statistics.events_scanned #=> Integer
838
+ # resp.query_statistics.bytes_scanned #=> Integer
837
839
  # resp.query_statistics.execution_time_in_millis #=> Integer
838
840
  # resp.query_statistics.creation_time #=> Time
839
841
  # resp.error_message #=> String
@@ -921,6 +923,63 @@ module Aws::CloudTrail
921
923
  req.send_request(options)
922
924
  end
923
925
 
926
+ # Returns the specified CloudTrail service-linked channel. Amazon Web
927
+ # Services services create service-linked channels to view CloudTrail
928
+ # events.
929
+ #
930
+ # @option params [required, String] :channel
931
+ # The Amazon Resource Name (ARN) of the CloudTrail service-linked
932
+ # channel.
933
+ #
934
+ # @return [Types::GetChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
935
+ #
936
+ # * {Types::GetChannelResponse#channel_arn #channel_arn} => String
937
+ # * {Types::GetChannelResponse#name #name} => String
938
+ # * {Types::GetChannelResponse#source #source} => String
939
+ # * {Types::GetChannelResponse#source_config #source_config} => Types::SourceConfig
940
+ # * {Types::GetChannelResponse#destinations #destinations} => Array<Types::Destination>
941
+ #
942
+ # @example Request syntax with placeholder values
943
+ #
944
+ # resp = client.get_channel({
945
+ # channel: "ChannelArn", # required
946
+ # })
947
+ #
948
+ # @example Response structure
949
+ #
950
+ # resp.channel_arn #=> String
951
+ # resp.name #=> String
952
+ # resp.source #=> String
953
+ # resp.source_config.apply_to_all_regions #=> Boolean
954
+ # resp.source_config.advanced_event_selectors #=> Array
955
+ # resp.source_config.advanced_event_selectors[0].name #=> String
956
+ # resp.source_config.advanced_event_selectors[0].field_selectors #=> Array
957
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].field #=> String
958
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].equals #=> Array
959
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].equals[0] #=> String
960
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].starts_with #=> Array
961
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].starts_with[0] #=> String
962
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].ends_with #=> Array
963
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].ends_with[0] #=> String
964
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].not_equals #=> Array
965
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].not_equals[0] #=> String
966
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].not_starts_with #=> Array
967
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].not_starts_with[0] #=> String
968
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].not_ends_with #=> Array
969
+ # resp.source_config.advanced_event_selectors[0].field_selectors[0].not_ends_with[0] #=> String
970
+ # resp.destinations #=> Array
971
+ # resp.destinations[0].type #=> String, one of "EVENT_DATA_STORE", "AWS_SERVICE"
972
+ # resp.destinations[0].location #=> String
973
+ #
974
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetChannel AWS API Documentation
975
+ #
976
+ # @overload get_channel(params = {})
977
+ # @param [Hash] params ({})
978
+ def get_channel(params = {}, options = {})
979
+ req = build_request(:get_channel, params)
980
+ req.send_request(options)
981
+ end
982
+
924
983
  # Returns information about an event data store specified as either an
925
984
  # ARN or the ID portion of the ARN.
926
985
  #
@@ -1172,9 +1231,10 @@ module Aws::CloudTrail
1172
1231
  #
1173
1232
  # @example Response structure
1174
1233
  #
1175
- # resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED"
1234
+ # resp.query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT"
1176
1235
  # resp.query_statistics.results_count #=> Integer
1177
1236
  # resp.query_statistics.total_results_count #=> Integer
1237
+ # resp.query_statistics.bytes_scanned #=> Integer
1178
1238
  # resp.query_result_rows #=> Array
1179
1239
  # resp.query_result_rows[0] #=> Array
1180
1240
  # resp.query_result_rows[0][0] #=> Hash
@@ -1305,6 +1365,44 @@ module Aws::CloudTrail
1305
1365
  req.send_request(options)
1306
1366
  end
1307
1367
 
1368
+ # Returns all CloudTrail channels.
1369
+ #
1370
+ # @option params [Integer] :max_results
1371
+ # The maximum number of CloudTrail channels to display on a single page.
1372
+ #
1373
+ # @option params [String] :next_token
1374
+ # A token you can use to get the next page of results.
1375
+ #
1376
+ # @return [Types::ListChannelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1377
+ #
1378
+ # * {Types::ListChannelsResponse#channels #channels} => Array<Types::Channel>
1379
+ # * {Types::ListChannelsResponse#next_token #next_token} => String
1380
+ #
1381
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1382
+ #
1383
+ # @example Request syntax with placeholder values
1384
+ #
1385
+ # resp = client.list_channels({
1386
+ # max_results: 1,
1387
+ # next_token: "PaginationToken",
1388
+ # })
1389
+ #
1390
+ # @example Response structure
1391
+ #
1392
+ # resp.channels #=> Array
1393
+ # resp.channels[0].channel_arn #=> String
1394
+ # resp.channels[0].name #=> String
1395
+ # resp.next_token #=> String
1396
+ #
1397
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListChannels AWS API Documentation
1398
+ #
1399
+ # @overload list_channels(params = {})
1400
+ # @param [Hash] params ({})
1401
+ def list_channels(params = {}, options = {})
1402
+ req = build_request(:list_channels, params)
1403
+ req.send_request(options)
1404
+ end
1405
+
1308
1406
  # Returns information about all event data stores in the account, in the
1309
1407
  # current region.
1310
1408
  #
@@ -1430,7 +1528,7 @@ module Aws::CloudTrail
1430
1528
  # shorten the list of results, you can specify a time range, formatted
1431
1529
  # as timestamps, by adding `StartTime` and `EndTime` parameters, and a
1432
1530
  # `QueryStatus` value. Valid values for `QueryStatus` include `QUEUED`,
1433
- # `RUNNING`, `FINISHED`, `FAILED`, or `CANCELLED`.
1531
+ # `RUNNING`, `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`.
1434
1532
  #
1435
1533
  # @option params [required, String] :event_data_store
1436
1534
  # The ARN (or the ID suffix of the ARN) of an event data store on which
@@ -1453,7 +1551,7 @@ module Aws::CloudTrail
1453
1551
  # @option params [String] :query_status
1454
1552
  # The status of queries that you want to return in results. Valid values
1455
1553
  # for `QueryStatus` include `QUEUED`, `RUNNING`, `FINISHED`, `FAILED`,
1456
- # or `CANCELLED`.
1554
+ # `TIMED_OUT`, or `CANCELLED`.
1457
1555
  #
1458
1556
  # @return [Types::ListQueriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1459
1557
  #
@@ -1470,14 +1568,14 @@ module Aws::CloudTrail
1470
1568
  # max_results: 1,
1471
1569
  # start_time: Time.now,
1472
1570
  # end_time: Time.now,
1473
- # query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED
1571
+ # query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED, TIMED_OUT
1474
1572
  # })
1475
1573
  #
1476
1574
  # @example Response structure
1477
1575
  #
1478
1576
  # resp.queries #=> Array
1479
1577
  # resp.queries[0].query_id #=> String
1480
- # resp.queries[0].query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED"
1578
+ # resp.queries[0].query_status #=> String, one of "QUEUED", "RUNNING", "FINISHED", "FAILED", "CANCELLED", "TIMED_OUT"
1481
1579
  # resp.queries[0].creation_time #=> Time
1482
1580
  # resp.next_token #=> String
1483
1581
  #
@@ -1490,13 +1588,12 @@ module Aws::CloudTrail
1490
1588
  req.send_request(options)
1491
1589
  end
1492
1590
 
1493
- # Lists the tags for the trail in the current region.
1591
+ # Lists the tags for the trail or event data store in the current
1592
+ # region.
1494
1593
  #
1495
1594
  # @option params [required, Array<String>] :resource_id_list
1496
- # Specifies a list of trail ARNs whose tags will be listed. The list has
1497
- # a limit of 20 ARNs. The following is the format of a trail ARN.
1498
- #
1499
- # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
1595
+ # Specifies a list of trail and event data store ARNs whose tags will be
1596
+ # listed. The list has a limit of 20 ARNs.
1500
1597
  #
1501
1598
  # @option params [String] :next_token
1502
1599
  # Reserved for future use.
@@ -1538,7 +1635,7 @@ module Aws::CloudTrail
1538
1635
  # @option params [String] :next_token
1539
1636
  # The token to use to get the next page of results after a previous API
1540
1637
  # call. This token must be passed in with the same parameters that were
1541
- # specified in the the original call. For example, if the original call
1638
+ # specified in the original call. For example, if the original call
1542
1639
  # specified an AttributeKey of 'Username' with a value of 'root',
1543
1640
  # the call with NextToken should include those same parameters.
1544
1641
  #
@@ -1640,7 +1737,7 @@ module Aws::CloudTrail
1640
1737
  # @option params [String] :next_token
1641
1738
  # The token to use to get the next page of results after a previous API
1642
1739
  # call. This token must be passed in with the same parameters that were
1643
- # specified in the the original call. For example, if the original call
1740
+ # specified in the original call. For example, if the original call
1644
1741
  # specified an AttributeKey of 'Username' with a value of 'root',
1645
1742
  # the call with NextToken should include those same parameters.
1646
1743
  #
@@ -1909,14 +2006,18 @@ module Aws::CloudTrail
1909
2006
  req.send_request(options)
1910
2007
  end
1911
2008
 
1912
- # Removes the specified tags from a trail.
2009
+ # Removes the specified tags from a trail or event data store.
1913
2010
  #
1914
2011
  # @option params [required, String] :resource_id
1915
- # Specifies the ARN of the trail from which tags should be removed. The
1916
- # format of a trail ARN is:
2012
+ # Specifies the ARN of the trail or event data store from which tags
2013
+ # should be removed.
1917
2014
  #
2015
+ # Example trail ARN format:
1918
2016
  # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
1919
2017
  #
2018
+ # Example event data store ARN format:
2019
+ # `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
2020
+ #
1920
2021
  # @option params [required, Array<Types::Tag>] :tags_list
1921
2022
  # Specifies a list of tags to be removed.
1922
2023
  #
@@ -2107,7 +2208,7 @@ module Aws::CloudTrail
2107
2208
  # ARN or the ID portion of the ARN. Other parameters are optional, but
2108
2209
  # at least one optional parameter must be specified, or CloudTrail
2109
2210
  # throws an error. `RetentionPeriod` is in days, and valid values are
2110
- # integers between 90 and 2555. By default, `TerminationProtection` is
2211
+ # integers between 90 and 2557. By default, `TerminationProtection` is
2111
2212
  # enabled. `AdvancedEventSelectors` includes or excludes management and
2112
2213
  # data events in your event data store; for more information about
2113
2214
  # `AdvancedEventSelectors`, see
@@ -2412,7 +2513,7 @@ module Aws::CloudTrail
2412
2513
  params: params,
2413
2514
  config: config)
2414
2515
  context[:gem_name] = 'aws-sdk-cloudtrail'
2415
- context[:gem_version] = '1.47.0'
2516
+ context[:gem_version] = '1.50.0'
2416
2517
  Seahorse::Client::Request.new(handlers, context)
2417
2518
  end
2418
2519
 
@@ -23,6 +23,12 @@ module Aws::CloudTrail
23
23
  ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
24
24
  CancelQueryRequest = Shapes::StructureShape.new(name: 'CancelQueryRequest')
25
25
  CancelQueryResponse = Shapes::StructureShape.new(name: 'CancelQueryResponse')
26
+ Channel = Shapes::StructureShape.new(name: 'Channel')
27
+ ChannelARNInvalidException = Shapes::StructureShape.new(name: 'ChannelARNInvalidException')
28
+ ChannelArn = Shapes::StringShape.new(name: 'ChannelArn')
29
+ ChannelName = Shapes::StringShape.new(name: 'ChannelName')
30
+ ChannelNotFoundException = Shapes::StructureShape.new(name: 'ChannelNotFoundException')
31
+ Channels = Shapes::ListShape.new(name: 'Channels')
26
32
  CloudTrailARNInvalidException = Shapes::StructureShape.new(name: 'CloudTrailARNInvalidException')
27
33
  CloudTrailAccessNotEnabledException = Shapes::StructureShape.new(name: 'CloudTrailAccessNotEnabledException')
28
34
  CloudTrailInvalidClientTokenIdException = Shapes::StructureShape.new(name: 'CloudTrailInvalidClientTokenIdException')
@@ -44,6 +50,9 @@ module Aws::CloudTrail
44
50
  DescribeQueryResponse = Shapes::StructureShape.new(name: 'DescribeQueryResponse')
45
51
  DescribeTrailsRequest = Shapes::StructureShape.new(name: 'DescribeTrailsRequest')
46
52
  DescribeTrailsResponse = Shapes::StructureShape.new(name: 'DescribeTrailsResponse')
53
+ Destination = Shapes::StructureShape.new(name: 'Destination')
54
+ DestinationType = Shapes::StringShape.new(name: 'DestinationType')
55
+ Destinations = Shapes::ListShape.new(name: 'Destinations')
47
56
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
48
57
  Event = Shapes::StructureShape.new(name: 'Event')
49
58
  EventCategory = Shapes::StringShape.new(name: 'EventCategory')
@@ -61,6 +70,8 @@ module Aws::CloudTrail
61
70
  EventSelectors = Shapes::ListShape.new(name: 'EventSelectors')
62
71
  EventsList = Shapes::ListShape.new(name: 'EventsList')
63
72
  ExcludeManagementEventSources = Shapes::ListShape.new(name: 'ExcludeManagementEventSources')
73
+ GetChannelRequest = Shapes::StructureShape.new(name: 'GetChannelRequest')
74
+ GetChannelResponse = Shapes::StructureShape.new(name: 'GetChannelResponse')
64
75
  GetEventDataStoreRequest = Shapes::StructureShape.new(name: 'GetEventDataStoreRequest')
65
76
  GetEventDataStoreResponse = Shapes::StructureShape.new(name: 'GetEventDataStoreResponse')
66
77
  GetEventSelectorsRequest = Shapes::StructureShape.new(name: 'GetEventSelectorsRequest')
@@ -110,6 +121,9 @@ module Aws::CloudTrail
110
121
  KmsException = Shapes::StructureShape.new(name: 'KmsException')
111
122
  KmsKeyDisabledException = Shapes::StructureShape.new(name: 'KmsKeyDisabledException')
112
123
  KmsKeyNotFoundException = Shapes::StructureShape.new(name: 'KmsKeyNotFoundException')
124
+ ListChannelsMaxResultsCount = Shapes::IntegerShape.new(name: 'ListChannelsMaxResultsCount')
125
+ ListChannelsRequest = Shapes::StructureShape.new(name: 'ListChannelsRequest')
126
+ ListChannelsResponse = Shapes::StructureShape.new(name: 'ListChannelsResponse')
113
127
  ListEventDataStoresMaxResultsCount = Shapes::IntegerShape.new(name: 'ListEventDataStoresMaxResultsCount')
114
128
  ListEventDataStoresRequest = Shapes::StructureShape.new(name: 'ListEventDataStoresRequest')
115
129
  ListEventDataStoresResponse = Shapes::StructureShape.new(name: 'ListEventDataStoresResponse')
@@ -122,6 +136,7 @@ module Aws::CloudTrail
122
136
  ListTagsResponse = Shapes::StructureShape.new(name: 'ListTagsResponse')
123
137
  ListTrailsRequest = Shapes::StructureShape.new(name: 'ListTrailsRequest')
124
138
  ListTrailsResponse = Shapes::StructureShape.new(name: 'ListTrailsResponse')
139
+ Location = Shapes::StringShape.new(name: 'Location')
125
140
  Long = Shapes::IntegerShape.new(name: 'Long')
126
141
  LookupAttribute = Shapes::StructureShape.new(name: 'LookupAttribute')
127
142
  LookupAttributeKey = Shapes::StringShape.new(name: 'LookupAttributeKey')
@@ -174,6 +189,8 @@ module Aws::CloudTrail
174
189
  S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
175
190
  SelectorField = Shapes::StringShape.new(name: 'SelectorField')
176
191
  SelectorName = Shapes::StringShape.new(name: 'SelectorName')
192
+ Source = Shapes::StringShape.new(name: 'Source')
193
+ SourceConfig = Shapes::StructureShape.new(name: 'SourceConfig')
177
194
  StartLoggingRequest = Shapes::StructureShape.new(name: 'StartLoggingRequest')
178
195
  StartLoggingResponse = Shapes::StructureShape.new(name: 'StartLoggingResponse')
179
196
  StartQueryRequest = Shapes::StructureShape.new(name: 'StartQueryRequest')
@@ -233,6 +250,16 @@ module Aws::CloudTrail
233
250
  CancelQueryResponse.add_member(:query_status, Shapes::ShapeRef.new(shape: QueryStatus, required: true, location_name: "QueryStatus"))
234
251
  CancelQueryResponse.struct_class = Types::CancelQueryResponse
235
252
 
253
+ Channel.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChannelArn, location_name: "ChannelArn"))
254
+ Channel.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, location_name: "Name"))
255
+ Channel.struct_class = Types::Channel
256
+
257
+ ChannelARNInvalidException.struct_class = Types::ChannelARNInvalidException
258
+
259
+ ChannelNotFoundException.struct_class = Types::ChannelNotFoundException
260
+
261
+ Channels.member = Shapes::ShapeRef.new(shape: Channel)
262
+
236
263
  CloudTrailARNInvalidException.struct_class = Types::CloudTrailARNInvalidException
237
264
 
238
265
  CloudTrailAccessNotEnabledException.struct_class = Types::CloudTrailAccessNotEnabledException
@@ -330,6 +357,12 @@ module Aws::CloudTrail
330
357
  DescribeTrailsResponse.add_member(:trail_list, Shapes::ShapeRef.new(shape: TrailList, location_name: "trailList"))
331
358
  DescribeTrailsResponse.struct_class = Types::DescribeTrailsResponse
332
359
 
360
+ Destination.add_member(:type, Shapes::ShapeRef.new(shape: DestinationType, required: true, location_name: "Type"))
361
+ Destination.add_member(:location, Shapes::ShapeRef.new(shape: Location, required: true, location_name: "Location"))
362
+ Destination.struct_class = Types::Destination
363
+
364
+ Destinations.member = Shapes::ShapeRef.new(shape: Destination)
365
+
333
366
  Event.add_member(:event_id, Shapes::ShapeRef.new(shape: String, location_name: "EventId"))
334
367
  Event.add_member(:event_name, Shapes::ShapeRef.new(shape: String, location_name: "EventName"))
335
368
  Event.add_member(:read_only, Shapes::ShapeRef.new(shape: String, location_name: "ReadOnly"))
@@ -343,14 +376,14 @@ module Aws::CloudTrail
343
376
 
344
377
  EventDataStore.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
345
378
  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"))
379
+ 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"}))
380
+ EventDataStore.add_member(:status, Shapes::ShapeRef.new(shape: EventDataStoreStatus, deprecated: true, location_name: "Status", metadata: {"deprecatedMessage"=>"Status is no longer returned by ListEventDataStores"}))
381
+ 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"}))
382
+ 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"}))
383
+ EventDataStore.add_member(:organization_enabled, Shapes::ShapeRef.new(shape: Boolean, deprecated: true, location_name: "OrganizationEnabled", metadata: {"deprecatedMessage"=>"OrganizationEnabled is no longer returned by ListEventDataStores"}))
384
+ EventDataStore.add_member(:retention_period, Shapes::ShapeRef.new(shape: RetentionPeriod, deprecated: true, location_name: "RetentionPeriod", metadata: {"deprecatedMessage"=>"RetentionPeriod is no longer returned by ListEventDataStores"}))
385
+ EventDataStore.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, deprecated: true, location_name: "CreatedTimestamp", metadata: {"deprecatedMessage"=>"CreatedTimestamp is no longer returned by ListEventDataStores"}))
386
+ 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
387
  EventDataStore.struct_class = Types::EventDataStore
355
388
 
356
389
  EventDataStoreARNInvalidException.struct_class = Types::EventDataStoreARNInvalidException
@@ -377,6 +410,16 @@ module Aws::CloudTrail
377
410
 
378
411
  ExcludeManagementEventSources.member = Shapes::ShapeRef.new(shape: String)
379
412
 
413
+ GetChannelRequest.add_member(:channel, Shapes::ShapeRef.new(shape: ChannelArn, required: true, location_name: "Channel"))
414
+ GetChannelRequest.struct_class = Types::GetChannelRequest
415
+
416
+ GetChannelResponse.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChannelArn, location_name: "ChannelArn"))
417
+ GetChannelResponse.add_member(:name, Shapes::ShapeRef.new(shape: ChannelName, location_name: "Name"))
418
+ GetChannelResponse.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "Source"))
419
+ GetChannelResponse.add_member(:source_config, Shapes::ShapeRef.new(shape: SourceConfig, location_name: "SourceConfig"))
420
+ GetChannelResponse.add_member(:destinations, Shapes::ShapeRef.new(shape: Destinations, location_name: "Destinations"))
421
+ GetChannelResponse.struct_class = Types::GetChannelResponse
422
+
380
423
  GetEventDataStoreRequest.add_member(:event_data_store, Shapes::ShapeRef.new(shape: EventDataStoreArn, required: true, location_name: "EventDataStore"))
381
424
  GetEventDataStoreRequest.struct_class = Types::GetEventDataStoreRequest
382
425
 
@@ -519,6 +562,14 @@ module Aws::CloudTrail
519
562
 
520
563
  KmsKeyNotFoundException.struct_class = Types::KmsKeyNotFoundException
521
564
 
565
+ ListChannelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListChannelsMaxResultsCount, location_name: "MaxResults"))
566
+ ListChannelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
567
+ ListChannelsRequest.struct_class = Types::ListChannelsRequest
568
+
569
+ ListChannelsResponse.add_member(:channels, Shapes::ShapeRef.new(shape: Channels, location_name: "Channels"))
570
+ ListChannelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
571
+ ListChannelsResponse.struct_class = Types::ListChannelsResponse
572
+
522
573
  ListEventDataStoresRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
523
574
  ListEventDataStoresRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListEventDataStoresMaxResultsCount, location_name: "MaxResults"))
524
575
  ListEventDataStoresRequest.struct_class = Types::ListEventDataStoresRequest
@@ -639,10 +690,12 @@ module Aws::CloudTrail
639
690
 
640
691
  QueryStatistics.add_member(:results_count, Shapes::ShapeRef.new(shape: Integer, location_name: "ResultsCount"))
641
692
  QueryStatistics.add_member(:total_results_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TotalResultsCount"))
693
+ QueryStatistics.add_member(:bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "BytesScanned"))
642
694
  QueryStatistics.struct_class = Types::QueryStatistics
643
695
 
644
696
  QueryStatisticsForDescribeQuery.add_member(:events_matched, Shapes::ShapeRef.new(shape: Long, location_name: "EventsMatched"))
645
697
  QueryStatisticsForDescribeQuery.add_member(:events_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "EventsScanned"))
698
+ QueryStatisticsForDescribeQuery.add_member(:bytes_scanned, Shapes::ShapeRef.new(shape: Long, location_name: "BytesScanned"))
646
699
  QueryStatisticsForDescribeQuery.add_member(:execution_time_in_millis, Shapes::ShapeRef.new(shape: Integer, location_name: "ExecutionTimeInMillis"))
647
700
  QueryStatisticsForDescribeQuery.add_member(:creation_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationTime"))
648
701
  QueryStatisticsForDescribeQuery.struct_class = Types::QueryStatisticsForDescribeQuery
@@ -688,6 +741,10 @@ module Aws::CloudTrail
688
741
 
689
742
  S3BucketDoesNotExistException.struct_class = Types::S3BucketDoesNotExistException
690
743
 
744
+ SourceConfig.add_member(:apply_to_all_regions, Shapes::ShapeRef.new(shape: Boolean, location_name: "ApplyToAllRegions"))
745
+ SourceConfig.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
746
+ SourceConfig.struct_class = Types::SourceConfig
747
+
691
748
  StartLoggingRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
692
749
  StartLoggingRequest.struct_class = Types::StartLoggingRequest
693
750
 
@@ -969,6 +1026,18 @@ module Aws::CloudTrail
969
1026
  o.errors << Shapes::ShapeRef.new(shape: InvalidTrailNameException)
970
1027
  end)
971
1028
 
1029
+ api.add_operation(:get_channel, Seahorse::Model::Operation.new.tap do |o|
1030
+ o.name = "GetChannel"
1031
+ o.http_method = "POST"
1032
+ o.http_request_uri = "/"
1033
+ o.input = Shapes::ShapeRef.new(shape: GetChannelRequest)
1034
+ o.output = Shapes::ShapeRef.new(shape: GetChannelResponse)
1035
+ o.errors << Shapes::ShapeRef.new(shape: ChannelARNInvalidException)
1036
+ o.errors << Shapes::ShapeRef.new(shape: ChannelNotFoundException)
1037
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1038
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1039
+ end)
1040
+
972
1041
  api.add_operation(:get_event_data_store, Seahorse::Model::Operation.new.tap do |o|
973
1042
  o.name = "GetEventDataStore"
974
1043
  o.http_method = "POST"
@@ -1053,6 +1122,23 @@ module Aws::CloudTrail
1053
1122
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1054
1123
  end)
1055
1124
 
1125
+ api.add_operation(:list_channels, Seahorse::Model::Operation.new.tap do |o|
1126
+ o.name = "ListChannels"
1127
+ o.http_method = "POST"
1128
+ o.http_request_uri = "/"
1129
+ o.input = Shapes::ShapeRef.new(shape: ListChannelsRequest)
1130
+ o.output = Shapes::ShapeRef.new(shape: ListChannelsResponse)
1131
+ o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
1132
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1133
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1134
+ o[:pager] = Aws::Pager.new(
1135
+ limit_key: "max_results",
1136
+ tokens: {
1137
+ "next_token" => "next_token"
1138
+ }
1139
+ )
1140
+ end)
1141
+
1056
1142
  api.add_operation(:list_event_data_stores, Seahorse::Model::Operation.new.tap do |o|
1057
1143
  o.name = "ListEventDataStores"
1058
1144
  o.http_method = "POST"
@@ -27,6 +27,8 @@ module Aws::CloudTrail
27
27
  # See {Seahorse::Client::RequestContext} for more information.
28
28
  #
29
29
  # ## Error Classes
30
+ # * {ChannelARNInvalidException}
31
+ # * {ChannelNotFoundException}
30
32
  # * {CloudTrailARNInvalidException}
31
33
  # * {CloudTrailAccessNotEnabledException}
32
34
  # * {CloudTrailInvalidClientTokenIdException}
@@ -92,6 +94,26 @@ module Aws::CloudTrail
92
94
 
93
95
  extend Aws::Errors::DynamicErrors
94
96
 
97
+ class ChannelARNInvalidException < ServiceError
98
+
99
+ # @param [Seahorse::Client::RequestContext] context
100
+ # @param [String] message
101
+ # @param [Aws::CloudTrail::Types::ChannelARNInvalidException] data
102
+ def initialize(context, message, data = Aws::EmptyStructure.new)
103
+ super(context, message, data)
104
+ end
105
+ end
106
+
107
+ class ChannelNotFoundException < ServiceError
108
+
109
+ # @param [Seahorse::Client::RequestContext] context
110
+ # @param [String] message
111
+ # @param [Aws::CloudTrail::Types::ChannelNotFoundException] data
112
+ def initialize(context, message, data = Aws::EmptyStructure.new)
113
+ super(context, message, data)
114
+ end
115
+ end
116
+
95
117
  class CloudTrailARNInvalidException < ServiceError
96
118
 
97
119
  # @param [Seahorse::Client::RequestContext] context
@@ -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 more tags will be
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]
@@ -136,9 +136,9 @@ module Aws::CloudTrail
136
136
  #
137
137
  # * <b> <code>readOnly</code> </b> - Optional. Can be set to `Equals`
138
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.
139
+ # CloudTrail logs both `read` and `write` events. A value of `true`
140
+ # logs only `read` events. A value of `false` logs only `write`
141
+ # events.
142
142
  #
143
143
  # * <b> <code>eventSource</code> </b> - For filtering management
144
144
  # events only. This can be set only to `NotEquals`
@@ -363,6 +363,42 @@ module Aws::CloudTrail
363
363
  include Aws::Structure
364
364
  end
365
365
 
366
+ # Contains information about a returned CloudTrail channel.
367
+ #
368
+ # @!attribute [rw] channel_arn
369
+ # The Amazon Resource Name (ARN) of the channel.
370
+ # @return [String]
371
+ #
372
+ # @!attribute [rw] name
373
+ # The name of the CloudTrail channel. For service-linked channels, the
374
+ # name is `aws-service-channel/service-name/custom-suffix` where
375
+ # `service-name` represents the name of the Amazon Web Services
376
+ # service that created the channel and `custom-suffix` represents the
377
+ # suffix created by the Amazon Web Services service.
378
+ # @return [String]
379
+ #
380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Channel AWS API Documentation
381
+ #
382
+ class Channel < Struct.new(
383
+ :channel_arn,
384
+ :name)
385
+ SENSITIVE = []
386
+ include Aws::Structure
387
+ end
388
+
389
+ # The specified channel ARN is not valid or does not map to a channel in
390
+ # your account.
391
+ #
392
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ChannelARNInvalidException AWS API Documentation
393
+ #
394
+ class ChannelARNInvalidException < Aws::EmptyStructure; end
395
+
396
+ # The specified channel was not found.
397
+ #
398
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ChannelNotFoundException AWS API Documentation
399
+ #
400
+ class ChannelNotFoundException < Aws::EmptyStructure; end
401
+
366
402
  # This exception is thrown when an operation is called with a trail ARN
367
403
  # that is not valid. The following is the format of a trail ARN.
368
404
  #
@@ -403,8 +439,8 @@ module Aws::CloudTrail
403
439
 
404
440
  # This exception is thrown when the specified resource is not ready for
405
441
  # an operation. This can occur when you try to run an operation on a
406
- # trail before CloudTrail has time to fully load the trail. If this
407
- # exception occurs, wait a few minutes, and then try the operation
442
+ # resource before CloudTrail has time to fully load the resource. If
443
+ # this exception occurs, wait a few minutes, and then try the operation
408
444
  # again.
409
445
  #
410
446
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ConflictException AWS API Documentation
@@ -472,7 +508,7 @@ module Aws::CloudTrail
472
508
  #
473
509
  # @!attribute [rw] retention_period
474
510
  # 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.
511
+ # retention period of up to 2557 days, the equivalent of seven years.
476
512
  # @return [Integer]
477
513
  #
478
514
  # @!attribute [rw] termination_protection_enabled
@@ -1074,7 +1110,7 @@ module Aws::CloudTrail
1074
1110
  #
1075
1111
  # @!attribute [rw] query_status
1076
1112
  # The status of a query. Values for `QueryStatus` include `QUEUED`,
1077
- # `RUNNING`, `FINISHED`, `FAILED`, or `CANCELLED`
1113
+ # `RUNNING`, `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`
1078
1114
  # @return [String]
1079
1115
  #
1080
1116
  # @!attribute [rw] query_statistics
@@ -1172,6 +1208,28 @@ module Aws::CloudTrail
1172
1208
  include Aws::Structure
1173
1209
  end
1174
1210
 
1211
+ # Contains information about the service where CloudTrail delivers
1212
+ # events.
1213
+ #
1214
+ # @!attribute [rw] type
1215
+ # The type of service. For service-linked channels, the value is
1216
+ # `AWS_SERVICE`.
1217
+ # @return [String]
1218
+ #
1219
+ # @!attribute [rw] location
1220
+ # The location of the service. For service-linked channels, this is
1221
+ # the name of the Amazon Web Services service.
1222
+ # @return [String]
1223
+ #
1224
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/Destination AWS API Documentation
1225
+ #
1226
+ class Destination < Struct.new(
1227
+ :type,
1228
+ :location)
1229
+ SENSITIVE = []
1230
+ include Aws::Structure
1231
+ end
1232
+
1175
1233
  # Contains information about an event that was returned by a lookup
1176
1234
  # request. The result includes a representation of a CloudTrail event.
1177
1235
  #
@@ -1233,7 +1291,7 @@ module Aws::CloudTrail
1233
1291
 
1234
1292
  # A storage lake of event data against which you can run complex
1235
1293
  # 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
1294
+ # have logged on your account from the last 90 to 2557 days (about three
1237
1295
  # months to up to seven years). To select events for an event data
1238
1296
  # store, use [advanced event selectors][1].
1239
1297
  #
@@ -1250,42 +1308,44 @@ module Aws::CloudTrail
1250
1308
  # @return [String]
1251
1309
  #
1252
1310
  # @!attribute [rw] termination_protection_enabled
1253
- # Indicates whether the event data store is protected from
1254
- # termination.
1311
+ # This field is being deprecated. Indicates whether the event data
1312
+ # store is protected from termination.
1255
1313
  # @return [Boolean]
1256
1314
  #
1257
1315
  # @!attribute [rw] status
1258
- # The status of an event data store. Values are `ENABLED` and
1259
- # `PENDING_DELETION`.
1316
+ # This field is being deprecated. The status of an event data store.
1317
+ # Values are `ENABLED` and `PENDING_DELETION`.
1260
1318
  # @return [String]
1261
1319
  #
1262
1320
  # @!attribute [rw] advanced_event_selectors
1263
- # The advanced event selectors that were used to select events for the
1264
- # data store.
1321
+ # This field is being deprecated. The advanced event selectors that
1322
+ # were used to select events for the data store.
1265
1323
  # @return [Array<Types::AdvancedEventSelector>]
1266
1324
  #
1267
1325
  # @!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.
1326
+ # This field is being deprecated. Indicates whether the event data
1327
+ # store includes events from all regions, or only from the region in
1328
+ # which it was created.
1270
1329
  # @return [Boolean]
1271
1330
  #
1272
1331
  # @!attribute [rw] organization_enabled
1273
- # Indicates that an event data store is collecting logged events for
1274
- # an organization.
1332
+ # This field is being deprecated. Indicates that an event data store
1333
+ # is collecting logged events for an organization.
1275
1334
  # @return [Boolean]
1276
1335
  #
1277
1336
  # @!attribute [rw] retention_period
1278
- # The retention period, in days.
1337
+ # This field is being deprecated. The retention period, in days.
1279
1338
  # @return [Integer]
1280
1339
  #
1281
1340
  # @!attribute [rw] created_timestamp
1282
- # The timestamp of the event data store's creation.
1341
+ # This field is being deprecated. The timestamp of the event data
1342
+ # store's creation.
1283
1343
  # @return [Time]
1284
1344
  #
1285
1345
  # @!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`.
1346
+ # This field is being deprecated. The timestamp showing when an event
1347
+ # data store was updated, if applicable. `UpdatedTimestamp` is always
1348
+ # either the same or newer than the time shown in `CreatedTimestamp`.
1289
1349
  # @return [Time]
1290
1350
  #
1291
1351
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStore AWS API Documentation
@@ -1434,6 +1494,67 @@ module Aws::CloudTrail
1434
1494
  include Aws::Structure
1435
1495
  end
1436
1496
 
1497
+ # @note When making an API call, you may pass GetChannelRequest
1498
+ # data as a hash:
1499
+ #
1500
+ # {
1501
+ # channel: "ChannelArn", # required
1502
+ # }
1503
+ #
1504
+ # @!attribute [rw] channel
1505
+ # The Amazon Resource Name (ARN) of the CloudTrail service-linked
1506
+ # channel.
1507
+ # @return [String]
1508
+ #
1509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetChannelRequest AWS API Documentation
1510
+ #
1511
+ class GetChannelRequest < Struct.new(
1512
+ :channel)
1513
+ SENSITIVE = []
1514
+ include Aws::Structure
1515
+ end
1516
+
1517
+ # @!attribute [rw] channel_arn
1518
+ # The ARN of the CloudTrail service-linked channel.
1519
+ # @return [String]
1520
+ #
1521
+ # @!attribute [rw] name
1522
+ # The name of the CloudTrail service-linked channel. For
1523
+ # service-linked channels, the value is
1524
+ # `aws-service-channel/service-name/custom-suffix` where
1525
+ # `service-name` represents the name of the Amazon Web Services
1526
+ # service that created the channel and `custom-suffix` represents the
1527
+ # suffix generated by the Amazon Web Services service.
1528
+ # @return [String]
1529
+ #
1530
+ # @!attribute [rw] source
1531
+ # The trail or event data store for the CloudTrail service-linked
1532
+ # channel.
1533
+ # @return [String]
1534
+ #
1535
+ # @!attribute [rw] source_config
1536
+ # Provides information about the advanced event selectors configured
1537
+ # for the service-linked channel, and whether the service-linked
1538
+ # channel applies to all regions or one region.
1539
+ # @return [Types::SourceConfig]
1540
+ #
1541
+ # @!attribute [rw] destinations
1542
+ # The Amazon Web Services service that created the CloudTrail
1543
+ # service-linked channel.
1544
+ # @return [Array<Types::Destination>]
1545
+ #
1546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetChannelResponse AWS API Documentation
1547
+ #
1548
+ class GetChannelResponse < Struct.new(
1549
+ :channel_arn,
1550
+ :name,
1551
+ :source,
1552
+ :source_config,
1553
+ :destinations)
1554
+ SENSITIVE = []
1555
+ include Aws::Structure
1556
+ end
1557
+
1437
1558
  # @note When making an API call, you may pass GetEventDataStoreRequest
1438
1559
  # data as a hash:
1439
1560
  #
@@ -1671,7 +1792,7 @@ module Aws::CloudTrail
1671
1792
 
1672
1793
  # @!attribute [rw] query_status
1673
1794
  # The status of the query. Values include `QUEUED`, `RUNNING`,
1674
- # `FINISHED`, `FAILED`, or `CANCELLED`.
1795
+ # `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`.
1675
1796
  # @return [String]
1676
1797
  #
1677
1798
  # @!attribute [rw] query_statistics
@@ -1900,14 +2021,14 @@ module Aws::CloudTrail
1900
2021
  include Aws::Structure
1901
2022
  end
1902
2023
 
1903
- # The event data store against which you ran your query is inactive.
2024
+ # The event data store is inactive.
1904
2025
  #
1905
2026
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveEventDataStoreException AWS API Documentation
1906
2027
  #
1907
2028
  class InactiveEventDataStoreException < Aws::EmptyStructure; end
1908
2029
 
1909
2030
  # The specified query cannot be canceled because it is in the
1910
- # `FINISHED`, `FAILED`, or `CANCELLED` state.
2031
+ # `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED` state.
1911
2032
  #
1912
2033
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveQueryException AWS API Documentation
1913
2034
  #
@@ -1945,14 +2066,9 @@ module Aws::CloudTrail
1945
2066
  end
1946
2067
 
1947
2068
  # This exception is thrown when the IAM user or role that is used to
1948
- # create the organization trail is lacking one or more required
1949
- # permissions for creating an organization trail in a required service.
1950
- # For more information, see [Prepare For Creating a Trail For Your
1951
- # Organization][1].
1952
- #
1953
- #
1954
- #
1955
- # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
2069
+ # create the organization resource lacks one or more required
2070
+ # permissions for creating an organization resource in a required
2071
+ # service.
1956
2072
  #
1957
2073
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientDependencyServiceAccessPermissionException AWS API Documentation
1958
2074
  #
@@ -1992,7 +2108,8 @@ module Aws::CloudTrail
1992
2108
  #
1993
2109
  class InvalidCloudWatchLogsRoleArnException < Aws::EmptyStructure; end
1994
2110
 
1995
- # A date range for the query was specified that is not valid. For more
2111
+ # A date range for the query was specified that is not valid. Be sure
2112
+ # that the start time is chronologically before the end time. For more
1996
2113
  # information about writing a query, see [Create or edit a query][1] in
1997
2114
  # the *CloudTrail User Guide*.
1998
2115
  #
@@ -2203,6 +2320,49 @@ module Aws::CloudTrail
2203
2320
  #
2204
2321
  class KmsKeyNotFoundException < Aws::EmptyStructure; end
2205
2322
 
2323
+ # @note When making an API call, you may pass ListChannelsRequest
2324
+ # data as a hash:
2325
+ #
2326
+ # {
2327
+ # max_results: 1,
2328
+ # next_token: "PaginationToken",
2329
+ # }
2330
+ #
2331
+ # @!attribute [rw] max_results
2332
+ # The maximum number of CloudTrail channels to display on a single
2333
+ # page.
2334
+ # @return [Integer]
2335
+ #
2336
+ # @!attribute [rw] next_token
2337
+ # A token you can use to get the next page of results.
2338
+ # @return [String]
2339
+ #
2340
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListChannelsRequest AWS API Documentation
2341
+ #
2342
+ class ListChannelsRequest < Struct.new(
2343
+ :max_results,
2344
+ :next_token)
2345
+ SENSITIVE = []
2346
+ include Aws::Structure
2347
+ end
2348
+
2349
+ # @!attribute [rw] channels
2350
+ # The list of CloudTrail channels.
2351
+ # @return [Array<Types::Channel>]
2352
+ #
2353
+ # @!attribute [rw] next_token
2354
+ # A token used to get the next page of results.
2355
+ # @return [String]
2356
+ #
2357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListChannelsResponse AWS API Documentation
2358
+ #
2359
+ class ListChannelsResponse < Struct.new(
2360
+ :channels,
2361
+ :next_token)
2362
+ SENSITIVE = []
2363
+ include Aws::Structure
2364
+ end
2365
+
2206
2366
  # @note When making an API call, you may pass ListEventDataStoresRequest
2207
2367
  # data as a hash:
2208
2368
  #
@@ -2317,7 +2477,7 @@ module Aws::CloudTrail
2317
2477
  # max_results: 1,
2318
2478
  # start_time: Time.now,
2319
2479
  # end_time: Time.now,
2320
- # query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED
2480
+ # query_status: "QUEUED", # accepts QUEUED, RUNNING, FINISHED, FAILED, CANCELLED, TIMED_OUT
2321
2481
  # }
2322
2482
  #
2323
2483
  # @!attribute [rw] event_data_store
@@ -2346,7 +2506,7 @@ module Aws::CloudTrail
2346
2506
  # @!attribute [rw] query_status
2347
2507
  # The status of queries that you want to return in results. Valid
2348
2508
  # values for `QueryStatus` include `QUEUED`, `RUNNING`, `FINISHED`,
2349
- # `FAILED`, or `CANCELLED`.
2509
+ # `FAILED`, `TIMED_OUT`, or `CANCELLED`.
2350
2510
  # @return [String]
2351
2511
  #
2352
2512
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListQueriesRequest AWS API Documentation
@@ -2380,7 +2540,7 @@ module Aws::CloudTrail
2380
2540
  include Aws::Structure
2381
2541
  end
2382
2542
 
2383
- # Specifies a list of trail tags to return.
2543
+ # Specifies a list of tags to return.
2384
2544
  #
2385
2545
  # @note When making an API call, you may pass ListTagsRequest
2386
2546
  # data as a hash:
@@ -2391,10 +2551,8 @@ module Aws::CloudTrail
2391
2551
  # }
2392
2552
  #
2393
2553
  # @!attribute [rw] resource_id_list
2394
- # Specifies a list of trail ARNs whose tags will be listed. The list
2395
- # has a limit of 20 ARNs. The following is the format of a trail ARN.
2396
- #
2397
- # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
2554
+ # Specifies a list of trail and event data store ARNs whose tags will
2555
+ # be listed. The list has a limit of 20 ARNs.
2398
2556
  # @return [Array<String>]
2399
2557
  #
2400
2558
  # @!attribute [rw] next_token
@@ -2440,9 +2598,9 @@ module Aws::CloudTrail
2440
2598
  # @!attribute [rw] next_token
2441
2599
  # The token to use to get the next page of results after a previous
2442
2600
  # API call. This token must be passed in with the same parameters that
2443
- # were specified in the the original call. For example, if the
2444
- # original call specified an AttributeKey of 'Username' with a value
2445
- # of 'root', the call with NextToken should include those same
2601
+ # were specified in the original call. For example, if the original
2602
+ # call specified an AttributeKey of 'Username' with a value of
2603
+ # 'root', the call with NextToken should include those same
2446
2604
  # parameters.
2447
2605
  # @return [String]
2448
2606
  #
@@ -2555,9 +2713,9 @@ module Aws::CloudTrail
2555
2713
  # @!attribute [rw] next_token
2556
2714
  # The token to use to get the next page of results after a previous
2557
2715
  # API call. This token must be passed in with the same parameters that
2558
- # were specified in the the original call. For example, if the
2559
- # original call specified an AttributeKey of 'Username' with a value
2560
- # of 'root', the call with NextToken should include those same
2716
+ # were specified in the original call. For example, if the original
2717
+ # call specified an AttributeKey of 'Username' with a value of
2718
+ # 'root', the call with NextToken should include those same
2561
2719
  # parameters.
2562
2720
  # @return [String]
2563
2721
  #
@@ -2614,14 +2772,15 @@ module Aws::CloudTrail
2614
2772
  class MaximumNumberOfTrailsExceededException < Aws::EmptyStructure; end
2615
2773
 
2616
2774
  # This exception is thrown when the Amazon Web Services account making
2617
- # the request to create or update an organization trail is not the
2618
- # management account for an organization in Organizations. For more
2619
- # information, see [Prepare For Creating a Trail For Your
2620
- # Organization][1].
2775
+ # the request to create or update an organization trail or event data
2776
+ # store is not the management account for an organization in
2777
+ # Organizations. For more information, see [Prepare For Creating a Trail
2778
+ # For Your Organization][1] or [Create an event data store][2].
2621
2779
  #
2622
2780
  #
2623
2781
  #
2624
2782
  # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
2783
+ # [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html
2625
2784
  #
2626
2785
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/NotOrganizationMasterAccountException AWS API Documentation
2627
2786
  #
@@ -2636,12 +2795,7 @@ module Aws::CloudTrail
2636
2795
 
2637
2796
  # This exception is thrown when Organizations is not configured to
2638
2797
  # support all features. All features must be enabled in Organizations to
2639
- # support creating an organization trail. For more information, see
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
2798
+ # support creating an organization trail or event data store.
2645
2799
  #
2646
2800
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/OrganizationNotInAllFeaturesModeException AWS API Documentation
2647
2801
  #
@@ -2863,7 +3017,7 @@ module Aws::CloudTrail
2863
3017
  #
2864
3018
  # @!attribute [rw] query_status
2865
3019
  # The status of the query. This can be `QUEUED`, `RUNNING`,
2866
- # `FINISHED`, `FAILED`, or `CANCELLED`.
3020
+ # `FINISHED`, `FAILED`, `TIMED_OUT`, or `CANCELLED`.
2867
3021
  # @return [String]
2868
3022
  #
2869
3023
  # @!attribute [rw] creation_time
@@ -2896,11 +3050,18 @@ module Aws::CloudTrail
2896
3050
  # The total number of results returned by a query.
2897
3051
  # @return [Integer]
2898
3052
  #
3053
+ # @!attribute [rw] bytes_scanned
3054
+ # The total bytes that the query scanned in the event data store. This
3055
+ # value matches the number of bytes for which your account is billed
3056
+ # for the query, unless the query is still running.
3057
+ # @return [Integer]
3058
+ #
2899
3059
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/QueryStatistics AWS API Documentation
2900
3060
  #
2901
3061
  class QueryStatistics < Struct.new(
2902
3062
  :results_count,
2903
- :total_results_count)
3063
+ :total_results_count,
3064
+ :bytes_scanned)
2904
3065
  SENSITIVE = []
2905
3066
  include Aws::Structure
2906
3067
  end
@@ -2917,6 +3078,12 @@ module Aws::CloudTrail
2917
3078
  # The number of events that the query scanned in the event data store.
2918
3079
  # @return [Integer]
2919
3080
  #
3081
+ # @!attribute [rw] bytes_scanned
3082
+ # The total bytes that the query scanned in the event data store. This
3083
+ # value matches the number of bytes for which your account is billed
3084
+ # for the query, unless the query is still running.
3085
+ # @return [Integer]
3086
+ #
2920
3087
  # @!attribute [rw] execution_time_in_millis
2921
3088
  # The query's run time, in milliseconds.
2922
3089
  # @return [Integer]
@@ -2930,13 +3097,14 @@ module Aws::CloudTrail
2930
3097
  class QueryStatisticsForDescribeQuery < Struct.new(
2931
3098
  :events_matched,
2932
3099
  :events_scanned,
3100
+ :bytes_scanned,
2933
3101
  :execution_time_in_millis,
2934
3102
  :creation_time)
2935
3103
  SENSITIVE = []
2936
3104
  include Aws::Structure
2937
3105
  end
2938
3106
 
2939
- # Specifies the tags to remove from a trail.
3107
+ # Specifies the tags to remove from a trail or event data store.
2940
3108
  #
2941
3109
  # @note When making an API call, you may pass RemoveTagsRequest
2942
3110
  # data as a hash:
@@ -2952,10 +3120,14 @@ module Aws::CloudTrail
2952
3120
  # }
2953
3121
  #
2954
3122
  # @!attribute [rw] resource_id
2955
- # Specifies the ARN of the trail from which tags should be removed.
2956
- # The format of a trail ARN is:
3123
+ # Specifies the ARN of the trail or event data store from which tags
3124
+ # should be removed.
2957
3125
  #
3126
+ # Example trail ARN format:
2958
3127
  # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
3128
+ #
3129
+ # Example event data store ARN format:
3130
+ # `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
2959
3131
  # @return [String]
2960
3132
  #
2961
3133
  # @!attribute [rw] tags_list
@@ -3131,6 +3303,27 @@ module Aws::CloudTrail
3131
3303
  #
3132
3304
  class S3BucketDoesNotExistException < Aws::EmptyStructure; end
3133
3305
 
3306
+ # Contains configuration information about the service-linked channel.
3307
+ #
3308
+ # @!attribute [rw] apply_to_all_regions
3309
+ # Specifies whether the service-linked channel applies to one region
3310
+ # or all regions.
3311
+ # @return [Boolean]
3312
+ #
3313
+ # @!attribute [rw] advanced_event_selectors
3314
+ # The advanced event selectors configured for the service-linked
3315
+ # channel.
3316
+ # @return [Array<Types::AdvancedEventSelector>]
3317
+ #
3318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/SourceConfig AWS API Documentation
3319
+ #
3320
+ class SourceConfig < Struct.new(
3321
+ :apply_to_all_regions,
3322
+ :advanced_event_selectors)
3323
+ SENSITIVE = []
3324
+ include Aws::Structure
3325
+ end
3326
+
3134
3327
  # The request to CloudTrail to start logging Amazon Web Services API
3135
3328
  # calls for an account.
3136
3329
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudtrail/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudTrail
50
50
 
51
- GEM_VERSION = '1.47.0'
51
+ GEM_VERSION = '1.50.0'
52
52
 
53
53
  end
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.47.0
4
+ version: 1.50.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-02-24 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core