aws-sdk-cloudtrail 1.55.0 → 1.57.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78a64182c4ef14800680f5e4cca90697097ac7d2ab4e13f783311981023a1b5e
4
- data.tar.gz: fadfd1ef403af2fec44d12998dde9dc75880a54a8305e3c5e96357db307cb9ac
3
+ metadata.gz: a22b3ee0c748589415556fe9ffd30a807f26d3700759c37c3177cb29e16d1f34
4
+ data.tar.gz: b14500389f2d7b9568725590bf931996e996b70ed693f88f66d86a14bc3b6764
5
5
  SHA512:
6
- metadata.gz: 252a37ad4109b0d4d7fcfb7f422f03cc0492e2d8834d12f9d24877326a15367836d240e25b5038835af5e96d0db2e83c297885597581e723187a387503f79fd0
7
- data.tar.gz: d2bbad97c0176b99e1f1e9a2ad7648984dec063bff143713ca41c078dfb01e98ec74165970ff4bbf0a5b448679a623e282cb364b25ebafd6794fd41fe4f3da2a
6
+ metadata.gz: 524fc6a37005374605a0b008bc4bce2b708eb69e4b2ab26b69ff73ed83c07b11f6fd367c8c8187688deaaf3792c5804fc63e689820410947506ac5959d06c1f6
7
+ data.tar.gz: c6c72ef05ce7780d1113bbce246438c1eb395218550ba320ec7c78ff69d5d348040bca4fedb36be6f6786d241c120767c2374ca6db70d288d38a246de9c8b214
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.57.0 (2023-01-31)
5
+ ------------------
6
+
7
+ * Feature - Add new "Channel" APIs to enable users to manage channels used for CloudTrail Lake integrations, and "Resource Policy" APIs to enable users to manage the resource-based permissions policy attached to a channel.
8
+
9
+ 1.56.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.55.0 (2022-12-13)
5
17
  ------------------
6
18
 
@@ -353,4 +365,4 @@ Unreleased Changes
353
365
  1.0.0.rc1 (2016-12-05)
354
366
  ------------------
355
367
 
356
- * Feature - Initial preview release of the `aws-sdk-cloudtrail` gem.
368
+ * Feature - Initial preview release of the `aws-sdk-cloudtrail` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.55.0
1
+ 1.57.0
@@ -378,9 +378,9 @@ module Aws::CloudTrail
378
378
 
379
379
  # @!group API Operations
380
380
 
381
- # Adds one or more tags to a trail or event data store, up to a limit of
382
- # 50. Overwrites an existing tag's value when a new value is specified
383
- # for an existing tag key. Tag key names must be unique for a trail; you
381
+ # Adds one or more tags to a trail, event data store, or channel, up to
382
+ # a limit of 50. Overwrites an existing tag's value when a new value is
383
+ # specified for an existing tag key. Tag key names must be unique; you
384
384
  # cannot have two keys with the same name but different values. If you
385
385
  # specify a key without a value, the tag will be created with the
386
386
  # specified key and a value of null. You can tag a trail or event data
@@ -389,11 +389,18 @@ module Aws::CloudTrail
389
389
  # as its home region).
390
390
  #
391
391
  # @option params [required, String] :resource_id
392
- # Specifies the ARN of the trail or event data store to which one or
393
- # more tags will be added. The format of a trail ARN is:
392
+ # Specifies the ARN of the trail, event data store, or channel to which
393
+ # one or more tags will be added.
394
394
  #
395
+ # The format of a trail ARN is:
395
396
  # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
396
397
  #
398
+ # The format of an event data store ARN is:
399
+ # `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
400
+ #
401
+ # The format of a channel ARN is:
402
+ # `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890`
403
+ #
397
404
  # @option params [required, Array<Types::Tag>] :tags_list
398
405
  # Contains a list of tags, up to a limit of 50
399
406
  #
@@ -460,6 +467,82 @@ module Aws::CloudTrail
460
467
  req.send_request(options)
461
468
  end
462
469
 
470
+ # Creates a channel for CloudTrail to ingest events from a partner or
471
+ # external source. After you create a channel, a CloudTrail Lake event
472
+ # data store can log events from the partner or source that you specify.
473
+ #
474
+ # @option params [required, String] :name
475
+ # The name of the channel.
476
+ #
477
+ # @option params [required, String] :source
478
+ # The name of the partner or external event source. You cannot change
479
+ # this name after you create the channel. A maximum of one channel is
480
+ # allowed per source.
481
+ #
482
+ # A source can be either `Custom` for all valid non-Amazon Web Services
483
+ # events, or the name of a partner event source. For information about
484
+ # the source names for available partners, see [Additional information
485
+ # about integration partners][1] in the CloudTrail User Guide.
486
+ #
487
+ #
488
+ #
489
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store-integration.html#cloudtrail-lake-partner-information
490
+ #
491
+ # @option params [required, Array<Types::Destination>] :destinations
492
+ # One or more event data stores to which events arriving through a
493
+ # channel will be logged.
494
+ #
495
+ # @option params [Array<Types::Tag>] :tags
496
+ # A list of tags.
497
+ #
498
+ # @return [Types::CreateChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
499
+ #
500
+ # * {Types::CreateChannelResponse#channel_arn #channel_arn} => String
501
+ # * {Types::CreateChannelResponse#name #name} => String
502
+ # * {Types::CreateChannelResponse#source #source} => String
503
+ # * {Types::CreateChannelResponse#destinations #destinations} => Array&lt;Types::Destination&gt;
504
+ # * {Types::CreateChannelResponse#tags #tags} => Array&lt;Types::Tag&gt;
505
+ #
506
+ # @example Request syntax with placeholder values
507
+ #
508
+ # resp = client.create_channel({
509
+ # name: "ChannelName", # required
510
+ # source: "Source", # required
511
+ # destinations: [ # required
512
+ # {
513
+ # type: "EVENT_DATA_STORE", # required, accepts EVENT_DATA_STORE, AWS_SERVICE
514
+ # location: "Location", # required
515
+ # },
516
+ # ],
517
+ # tags: [
518
+ # {
519
+ # key: "TagKey", # required
520
+ # value: "TagValue",
521
+ # },
522
+ # ],
523
+ # })
524
+ #
525
+ # @example Response structure
526
+ #
527
+ # resp.channel_arn #=> String
528
+ # resp.name #=> String
529
+ # resp.source #=> String
530
+ # resp.destinations #=> Array
531
+ # resp.destinations[0].type #=> String, one of "EVENT_DATA_STORE", "AWS_SERVICE"
532
+ # resp.destinations[0].location #=> String
533
+ # resp.tags #=> Array
534
+ # resp.tags[0].key #=> String
535
+ # resp.tags[0].value #=> String
536
+ #
537
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateChannel AWS API Documentation
538
+ #
539
+ # @overload create_channel(params = {})
540
+ # @param [Hash] params ({})
541
+ def create_channel(params = {}, options = {})
542
+ req = build_request(:create_channel, params)
543
+ req.send_request(options)
544
+ end
545
+
463
546
  # Creates a new event data store.
464
547
  #
465
548
  # @option params [required, String] :name
@@ -467,13 +550,28 @@ module Aws::CloudTrail
467
550
  #
468
551
  # @option params [Array<Types::AdvancedEventSelector>] :advanced_event_selectors
469
552
  # The advanced event selectors to use to select the events for the data
470
- # store. For more information about how to use advanced event selectors,
471
- # see [Log events by using advanced event selectors][1] in the
553
+ # store. You can configure up to five advanced event selectors for each
554
+ # event data store.
555
+ #
556
+ # For more information about how to use advanced event selectors to log
557
+ # CloudTrail events, see [Log events by using advanced event
558
+ # selectors][1] in the CloudTrail User Guide.
559
+ #
560
+ # For more information about how to use advanced event selectors to
561
+ # include Config configuration items in your event data store, see
562
+ # [Create an event data store for Config configuration items][2] in the
472
563
  # CloudTrail User Guide.
473
564
  #
565
+ # For more information about how to use advanced event selectors to
566
+ # include non-Amazon Web Services events in your event data store, see
567
+ # [Create an integration to log events from outside Amazon Web
568
+ # Services][3] in the CloudTrail User Guide.
569
+ #
474
570
  #
475
571
  #
476
572
  # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced
573
+ # [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-lake-cli.html#lake-cli-create-eds-config
574
+ # [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-lake-cli.html#lake-cli-create-integration
477
575
  #
478
576
  # @option params [Boolean] :multi_region_enabled
479
577
  # Specifies whether the event data store includes events from all
@@ -687,12 +785,15 @@ module Aws::CloudTrail
687
785
  # @option params [String] :cloud_watch_logs_log_group_arn
688
786
  # Specifies a log group name using an Amazon Resource Name (ARN), a
689
787
  # unique identifier that represents the log group to which CloudTrail
690
- # logs will be delivered. Not required unless you specify
691
- # `CloudWatchLogsRoleArn`.
788
+ # logs will be delivered. You must use a log group that exists in your
789
+ # account.
790
+ #
791
+ # Not required unless you specify `CloudWatchLogsRoleArn`.
692
792
  #
693
793
  # @option params [String] :cloud_watch_logs_role_arn
694
794
  # Specifies the role for the CloudWatch Logs endpoint to assume to write
695
- # to a user's log group.
795
+ # to a user's log group. You must use a role that exists in your
796
+ # account.
696
797
  #
697
798
  # @option params [String] :kms_key_id
698
799
  # Specifies the KMS key ID to use to encrypt the logs delivered by
@@ -723,7 +824,8 @@ module Aws::CloudTrail
723
824
  # organization in Organizations, or only for the current Amazon Web
724
825
  # Services account. The default is false, and cannot be true unless the
725
826
  # call is made on behalf of an Amazon Web Services account that is the
726
- # management account for an organization in Organizations.
827
+ # management account or delegated administrator account for an
828
+ # organization in Organizations.
727
829
  #
728
830
  # @option params [Array<Types::Tag>] :tags_list
729
831
  # A list of tags.
@@ -791,6 +893,28 @@ module Aws::CloudTrail
791
893
  req.send_request(options)
792
894
  end
793
895
 
896
+ # Deletes a channel.
897
+ #
898
+ # @option params [required, String] :channel
899
+ # The ARN or the `UUID` value of the channel that you want to delete.
900
+ #
901
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
902
+ #
903
+ # @example Request syntax with placeholder values
904
+ #
905
+ # resp = client.delete_channel({
906
+ # channel: "ChannelArn", # required
907
+ # })
908
+ #
909
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteChannel AWS API Documentation
910
+ #
911
+ # @overload delete_channel(params = {})
912
+ # @param [Hash] params ({})
913
+ def delete_channel(params = {}, options = {})
914
+ req = build_request(:delete_channel, params)
915
+ req.send_request(options)
916
+ end
917
+
794
918
  # Disables the event data store specified by `EventDataStore`, which
795
919
  # accepts an event data store ARN. After you run `DeleteEventDataStore`,
796
920
  # the event data store enters a `PENDING_DELETION` state, and is
@@ -826,6 +950,31 @@ module Aws::CloudTrail
826
950
  req.send_request(options)
827
951
  end
828
952
 
953
+ # Deletes the resource-based policy attached to the CloudTrail channel.
954
+ #
955
+ # @option params [required, String] :resource_arn
956
+ # The Amazon Resource Name (ARN) of the CloudTrail channel you're
957
+ # deleting the resource-based policy from. The following is the format
958
+ # of a resource ARN:
959
+ # `arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel`.
960
+ #
961
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
962
+ #
963
+ # @example Request syntax with placeholder values
964
+ #
965
+ # resp = client.delete_resource_policy({
966
+ # resource_arn: "ResourceArn", # required
967
+ # })
968
+ #
969
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeleteResourcePolicy AWS API Documentation
970
+ #
971
+ # @overload delete_resource_policy(params = {})
972
+ # @param [Hash] params ({})
973
+ def delete_resource_policy(params = {}, options = {})
974
+ req = build_request(:delete_resource_policy, params)
975
+ req.send_request(options)
976
+ end
977
+
829
978
  # Deletes a trail. This operation must be called from the region in
830
979
  # which the trail was created. `DeleteTrail` cannot be called on the
831
980
  # shadow trails (replicated trails in other regions) of a trail that is
@@ -951,8 +1100,8 @@ module Aws::CloudTrail
951
1100
  #
952
1101
  # <note markdown="1"> If one or more trail names are specified, information is returned only
953
1102
  # if the names match the names of trails belonging only to the current
954
- # region. To return information about a trail in another region, you
955
- # must specify its trail ARN.
1103
+ # region and current account. To return information about a trail in
1104
+ # another region, you must specify its trail ARN.
956
1105
  #
957
1106
  # </note>
958
1107
  #
@@ -1004,15 +1153,7 @@ module Aws::CloudTrail
1004
1153
  req.send_request(options)
1005
1154
  end
1006
1155
 
1007
- # Returns information about a specific channel. Amazon Web Services
1008
- # services create service-linked channels to get information about
1009
- # CloudTrail events on your behalf. For more information about
1010
- # service-linked channels, see [Viewing service-linked channels for
1011
- # CloudTrail by using the CLI][1].
1012
- #
1013
- #
1014
- #
1015
- # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html
1156
+ # Returns information about a specific channel.
1016
1157
  #
1017
1158
  # @option params [required, String] :channel
1018
1159
  # The ARN or `UUID` of a channel.
@@ -1024,6 +1165,7 @@ module Aws::CloudTrail
1024
1165
  # * {Types::GetChannelResponse#source #source} => String
1025
1166
  # * {Types::GetChannelResponse#source_config #source_config} => Types::SourceConfig
1026
1167
  # * {Types::GetChannelResponse#destinations #destinations} => Array&lt;Types::Destination&gt;
1168
+ # * {Types::GetChannelResponse#ingestion_status #ingestion_status} => Types::IngestionStatus
1027
1169
  #
1028
1170
  # @example Request syntax with placeholder values
1029
1171
  #
@@ -1056,6 +1198,11 @@ module Aws::CloudTrail
1056
1198
  # resp.destinations #=> Array
1057
1199
  # resp.destinations[0].type #=> String, one of "EVENT_DATA_STORE", "AWS_SERVICE"
1058
1200
  # resp.destinations[0].location #=> String
1201
+ # resp.ingestion_status.latest_ingestion_success_time #=> Time
1202
+ # resp.ingestion_status.latest_ingestion_success_event_id #=> String
1203
+ # resp.ingestion_status.latest_ingestion_error_code #=> String
1204
+ # resp.ingestion_status.latest_ingestion_attempt_time #=> Time
1205
+ # resp.ingestion_status.latest_ingestion_attempt_event_id #=> String
1059
1206
  #
1060
1207
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetChannel AWS API Documentation
1061
1208
  #
@@ -1395,6 +1542,39 @@ module Aws::CloudTrail
1395
1542
  req.send_request(options)
1396
1543
  end
1397
1544
 
1545
+ # Retrieves the JSON text of the resource-based policy document attached
1546
+ # to the CloudTrail channel.
1547
+ #
1548
+ # @option params [required, String] :resource_arn
1549
+ # The Amazon Resource Name (ARN) of the CloudTrail channel attached to
1550
+ # the resource-based policy. The following is the format of a resource
1551
+ # ARN: `arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel`.
1552
+ #
1553
+ # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1554
+ #
1555
+ # * {Types::GetResourcePolicyResponse#resource_arn #resource_arn} => String
1556
+ # * {Types::GetResourcePolicyResponse#resource_policy #resource_policy} => String
1557
+ #
1558
+ # @example Request syntax with placeholder values
1559
+ #
1560
+ # resp = client.get_resource_policy({
1561
+ # resource_arn: "ResourceArn", # required
1562
+ # })
1563
+ #
1564
+ # @example Response structure
1565
+ #
1566
+ # resp.resource_arn #=> String
1567
+ # resp.resource_policy #=> String
1568
+ #
1569
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetResourcePolicy AWS API Documentation
1570
+ #
1571
+ # @overload get_resource_policy(params = {})
1572
+ # @param [Hash] params ({})
1573
+ def get_resource_policy(params = {}, options = {})
1574
+ req = build_request(:get_resource_policy, params)
1575
+ req.send_request(options)
1576
+ end
1577
+
1398
1578
  # Returns settings information for a specified trail.
1399
1579
  #
1400
1580
  # @option params [required, String] :name
@@ -1510,14 +1690,6 @@ module Aws::CloudTrail
1510
1690
  end
1511
1691
 
1512
1692
  # Lists the channels in the current account, and their source names.
1513
- # Amazon Web Services services create service-linked channels get
1514
- # information about CloudTrail events on your behalf. For more
1515
- # information about service-linked channels, see [Viewing service-linked
1516
- # channels for CloudTrail by using the CLI][1].
1517
- #
1518
- #
1519
- #
1520
- # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/viewing-service-linked-channels.html
1521
1693
  #
1522
1694
  # @option params [Integer] :max_results
1523
1695
  # The maximum number of CloudTrail channels to display on a single page.
@@ -1840,12 +2012,12 @@ module Aws::CloudTrail
1840
2012
  req.send_request(options)
1841
2013
  end
1842
2014
 
1843
- # Lists the tags for the trail or event data store in the current
1844
- # region.
2015
+ # Lists the tags for the trail, event data store, or channel in the
2016
+ # current region.
1845
2017
  #
1846
2018
  # @option params [required, Array<String>] :resource_id_list
1847
- # Specifies a list of trail and event data store ARNs whose tags will be
1848
- # listed. The list has a limit of 20 ARNs.
2019
+ # Specifies a list of trail, event data store, or channel ARNs whose
2020
+ # tags will be listed. The list has a limit of 20 ARNs.
1849
2021
  #
1850
2022
  # @option params [String] :next_token
1851
2023
  # Reserved for future use.
@@ -2259,6 +2431,61 @@ module Aws::CloudTrail
2259
2431
  req.send_request(options)
2260
2432
  end
2261
2433
 
2434
+ # Attaches a resource-based permission policy to a CloudTrail channel
2435
+ # that is used for an integration with an event source outside of Amazon
2436
+ # Web Services. For more information about resource-based policies, see
2437
+ # [CloudTrail resource-based policy examples][1] in the *CloudTrail User
2438
+ # Guide*.
2439
+ #
2440
+ #
2441
+ #
2442
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/security_iam_resource-based-policy-examples.html
2443
+ #
2444
+ # @option params [required, String] :resource_arn
2445
+ # The Amazon Resource Name (ARN) of the CloudTrail channel attached to
2446
+ # the resource-based policy. The following is the format of a resource
2447
+ # ARN: `arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel`.
2448
+ #
2449
+ # @option params [required, String] :resource_policy
2450
+ # A JSON-formatted string for an Amazon Web Services resource-based
2451
+ # policy.
2452
+ #
2453
+ # The following are requirements for the resource policy:
2454
+ #
2455
+ # * Contains only one action: cloudtrail-data:PutAuditEvents
2456
+ #
2457
+ # * Contains at least one statement. The policy can have a maximum of 20
2458
+ # statements.
2459
+ #
2460
+ # * Each statement contains at least one principal. A statement can have
2461
+ # a maximum of 50 principals.
2462
+ #
2463
+ # @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2464
+ #
2465
+ # * {Types::PutResourcePolicyResponse#resource_arn #resource_arn} => String
2466
+ # * {Types::PutResourcePolicyResponse#resource_policy #resource_policy} => String
2467
+ #
2468
+ # @example Request syntax with placeholder values
2469
+ #
2470
+ # resp = client.put_resource_policy({
2471
+ # resource_arn: "ResourceArn", # required
2472
+ # resource_policy: "ResourcePolicy", # required
2473
+ # })
2474
+ #
2475
+ # @example Response structure
2476
+ #
2477
+ # resp.resource_arn #=> String
2478
+ # resp.resource_policy #=> String
2479
+ #
2480
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutResourcePolicy AWS API Documentation
2481
+ #
2482
+ # @overload put_resource_policy(params = {})
2483
+ # @param [Hash] params ({})
2484
+ def put_resource_policy(params = {}, options = {})
2485
+ req = build_request(:put_resource_policy, params)
2486
+ req.send_request(options)
2487
+ end
2488
+
2262
2489
  # Registers an organization’s member account as the CloudTrail delegated
2263
2490
  # administrator.
2264
2491
  #
@@ -2283,11 +2510,11 @@ module Aws::CloudTrail
2283
2510
  req.send_request(options)
2284
2511
  end
2285
2512
 
2286
- # Removes the specified tags from a trail or event data store.
2513
+ # Removes the specified tags from a trail, event data store, or channel.
2287
2514
  #
2288
2515
  # @option params [required, String] :resource_id
2289
- # Specifies the ARN of the trail or event data store from which tags
2290
- # should be removed.
2516
+ # Specifies the ARN of the trail, event data store, or channel from
2517
+ # which tags should be removed.
2291
2518
  #
2292
2519
  # Example trail ARN format:
2293
2520
  # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
@@ -2295,6 +2522,9 @@ module Aws::CloudTrail
2295
2522
  # Example event data store ARN format:
2296
2523
  # `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
2297
2524
  #
2525
+ # Example channel ARN format:
2526
+ # `arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890`
2527
+ #
2298
2528
  # @option params [required, Array<Types::Tag>] :tags_list
2299
2529
  # Specifies a list of tags to be removed.
2300
2530
  #
@@ -2406,6 +2636,12 @@ module Aws::CloudTrail
2406
2636
  #
2407
2637
  # When you retry an import, the `ImportID` parameter is required.
2408
2638
  #
2639
+ # <note markdown="1"> If the destination event data store is for an organization, you must
2640
+ # use the management account to import trail events. You cannot use the
2641
+ # delegated administrator account for the organization.
2642
+ #
2643
+ # </note>
2644
+ #
2409
2645
  #
2410
2646
  #
2411
2647
  # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-copy-trail-to-lake.html#cloudtrail-trail-copy-considerations
@@ -2640,16 +2876,72 @@ module Aws::CloudTrail
2640
2876
  req.send_request(options)
2641
2877
  end
2642
2878
 
2879
+ # Updates a channel specified by a required channel ARN or UUID.
2880
+ #
2881
+ # @option params [required, String] :channel
2882
+ # The ARN or ID (the ARN suffix) of the channel that you want to update.
2883
+ #
2884
+ # @option params [Array<Types::Destination>] :destinations
2885
+ # The ARNs of event data stores that you want to log events arriving
2886
+ # through the channel.
2887
+ #
2888
+ # @option params [String] :name
2889
+ # Changes the name of the channel.
2890
+ #
2891
+ # @return [Types::UpdateChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2892
+ #
2893
+ # * {Types::UpdateChannelResponse#channel_arn #channel_arn} => String
2894
+ # * {Types::UpdateChannelResponse#name #name} => String
2895
+ # * {Types::UpdateChannelResponse#source #source} => String
2896
+ # * {Types::UpdateChannelResponse#destinations #destinations} => Array&lt;Types::Destination&gt;
2897
+ #
2898
+ # @example Request syntax with placeholder values
2899
+ #
2900
+ # resp = client.update_channel({
2901
+ # channel: "ChannelArn", # required
2902
+ # destinations: [
2903
+ # {
2904
+ # type: "EVENT_DATA_STORE", # required, accepts EVENT_DATA_STORE, AWS_SERVICE
2905
+ # location: "Location", # required
2906
+ # },
2907
+ # ],
2908
+ # name: "ChannelName",
2909
+ # })
2910
+ #
2911
+ # @example Response structure
2912
+ #
2913
+ # resp.channel_arn #=> String
2914
+ # resp.name #=> String
2915
+ # resp.source #=> String
2916
+ # resp.destinations #=> Array
2917
+ # resp.destinations[0].type #=> String, one of "EVENT_DATA_STORE", "AWS_SERVICE"
2918
+ # resp.destinations[0].location #=> String
2919
+ #
2920
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateChannel AWS API Documentation
2921
+ #
2922
+ # @overload update_channel(params = {})
2923
+ # @param [Hash] params ({})
2924
+ def update_channel(params = {}, options = {})
2925
+ req = build_request(:update_channel, params)
2926
+ req.send_request(options)
2927
+ end
2928
+
2643
2929
  # Updates an event data store. The required `EventDataStore` value is an
2644
2930
  # ARN or the ID portion of the ARN. Other parameters are optional, but
2645
2931
  # at least one optional parameter must be specified, or CloudTrail
2646
2932
  # throws an error. `RetentionPeriod` is in days, and valid values are
2647
2933
  # integers between 90 and 2557. By default, `TerminationProtection` is
2648
- # enabled. `AdvancedEventSelectors` includes or excludes management and
2649
- # data events in your event data store; for more information about
2650
- # `AdvancedEventSelectors`, see
2934
+ # enabled.
2935
+ #
2936
+ # For event data stores for CloudTrail events, `AdvancedEventSelectors`
2937
+ # includes or excludes management and data events in your event data
2938
+ # store. For more information about `AdvancedEventSelectors`, see
2651
2939
  # PutEventSelectorsRequest$AdvancedEventSelectors.
2652
2940
  #
2941
+ # For event data stores for Config configuration items, Audit Manager
2942
+ # evidence, or non-Amazon Web Services events, `AdvancedEventSelectors`
2943
+ # includes events of that type in your event data store.
2944
+ #
2653
2945
  # @option params [required, String] :event_data_store
2654
2946
  # The ARN (or the ID suffix of the ARN) of the event data store that you
2655
2947
  # want to update.
@@ -2872,12 +3164,15 @@ module Aws::CloudTrail
2872
3164
  # @option params [String] :cloud_watch_logs_log_group_arn
2873
3165
  # Specifies a log group name using an Amazon Resource Name (ARN), a
2874
3166
  # unique identifier that represents the log group to which CloudTrail
2875
- # logs are delivered. Not required unless you specify
2876
- # `CloudWatchLogsRoleArn`.
3167
+ # logs are delivered. You must use a log group that exists in your
3168
+ # account.
3169
+ #
3170
+ # Not required unless you specify `CloudWatchLogsRoleArn`.
2877
3171
  #
2878
3172
  # @option params [String] :cloud_watch_logs_role_arn
2879
3173
  # Specifies the role for the CloudWatch Logs endpoint to assume to write
2880
- # to a user's log group.
3174
+ # to a user's log group. You must use a role that exists in your
3175
+ # account.
2881
3176
  #
2882
3177
  # @option params [String] :kms_key_id
2883
3178
  # Specifies the KMS key ID to use to encrypt the logs delivered by
@@ -2908,12 +3203,13 @@ module Aws::CloudTrail
2908
3203
  # organization in Organizations, or only for the current Amazon Web
2909
3204
  # Services account. The default is false, and cannot be true unless the
2910
3205
  # call is made on behalf of an Amazon Web Services account that is the
2911
- # management account for an organization in Organizations. If the trail
2912
- # is not an organization trail and this is set to `true`, the trail will
2913
- # be created in all Amazon Web Services accounts that belong to the
2914
- # organization. If the trail is an organization trail and this is set to
2915
- # `false`, the trail will remain in the current Amazon Web Services
2916
- # account but be deleted from all member accounts in the organization.
3206
+ # management account or delegated administrator account for an
3207
+ # organization in Organizations. If the trail is not an organization
3208
+ # trail and this is set to `true`, the trail will be created in all
3209
+ # Amazon Web Services accounts that belong to the organization. If the
3210
+ # trail is an organization trail and this is set to `false`, the trail
3211
+ # will remain in the current Amazon Web Services account but be deleted
3212
+ # from all member accounts in the organization.
2917
3213
  #
2918
3214
  # @return [Types::UpdateTrailResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2919
3215
  #
@@ -2985,7 +3281,7 @@ module Aws::CloudTrail
2985
3281
  params: params,
2986
3282
  config: config)
2987
3283
  context[:gem_name] = 'aws-sdk-cloudtrail'
2988
- context[:gem_version] = '1.55.0'
3284
+ context[:gem_version] = '1.57.0'
2989
3285
  Seahorse::Client::Request.new(handlers, context)
2990
3286
  end
2991
3287