aws-sdk-cloudtrail 1.52.0 → 1.54.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: 9fd98c848dea62b03bdbe8b53bd0697af08f98035546f4f0fd11bcac9b0916cc
4
- data.tar.gz: 67792ad77475cb8ee735d3f66a6acc0c9fc7be108c65f7f6dd31c5487c33a2bf
3
+ metadata.gz: 2357c5e9e35b8c5cbf6a64ac888cf215932b2b2418229ca24024d47f53299e88
4
+ data.tar.gz: 419e1dfdcdffb6a5debf41a70310aca67a425ac99b0f4296486dd77a2a251f96
5
5
  SHA512:
6
- metadata.gz: 3c8e1be6d40035da296cda86d2ef3f730721adf4c7b36c14b4c427f484183aaff97690116f9763293450b269f76edee57ce1ef6b469449044e4b5f736ce22329
7
- data.tar.gz: 4660fc6a4bc8580998fc3fe02ea802a6d852d2957e5d70f0758cf4b3011d6122ebce0b2b5146dc5d6b81a48eff645d7d29be2af8246f2209fcb3033d463ddc3f
6
+ metadata.gz: 40dbaae6651fc52fa3f81c7dce43d85e83470319ad77d50333a459488bdedcbc09a8e8daae131928b5847f88ada570232cf61e5789684f058c43257cbc7b6f8a
7
+ data.tar.gz: caf162921ef02a74db0fc8cf26643f93c7f04f0c4651905ffd5986e1787fd8f57fa54e6f3ea861706dc2d487e78ce7a50a686df545f694c157e08f08d6626079
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.54.0 (2022-11-07)
5
+ ------------------
6
+
7
+ * Feature - This release includes support for configuring a delegated administrator to manage an AWS Organizations organization CloudTrail trails and event data stores, and AWS Key Management Service encryption of CloudTrail Lake event data stores.
8
+
9
+ 1.53.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.52.0 (2022-10-19)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.52.0
1
+ 1.54.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:cloudtrail)
@@ -79,8 +79,9 @@ module Aws::CloudTrail
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::CloudTrail::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::CloudTrail
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::CloudTrail
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::CloudTrail::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudTrail::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -409,7 +426,7 @@ module Aws::CloudTrail
409
426
  # cancel is also required. When you run `CancelQuery`, the query status
410
427
  # might show as `CANCELLED` even if the operation is not yet finished.
411
428
  #
412
- # @option params [required, String] :event_data_store
429
+ # @option params [String] :event_data_store
413
430
  # The ARN (or the ID suffix of the ARN) of an event data store on which
414
431
  # the specified query is running.
415
432
  #
@@ -425,7 +442,7 @@ module Aws::CloudTrail
425
442
  # @example Request syntax with placeholder values
426
443
  #
427
444
  # resp = client.cancel_query({
428
- # event_data_store: "EventDataStoreArn", # required
445
+ # event_data_store: "EventDataStoreArn",
429
446
  # query_id: "UUID", # required
430
447
  # })
431
448
  #
@@ -479,6 +496,38 @@ module Aws::CloudTrail
479
496
  # @option params [Array<Types::Tag>] :tags_list
480
497
  # A list of tags.
481
498
  #
499
+ # @option params [String] :kms_key_id
500
+ # Specifies the KMS key ID to use to encrypt the events delivered by
501
+ # CloudTrail. The value can be an alias name prefixed by `alias/`, a
502
+ # fully specified ARN to an alias, a fully specified ARN to a key, or a
503
+ # globally unique identifier.
504
+ #
505
+ # Disabling or deleting the KMS key, or removing CloudTrail permissions
506
+ # on the key, prevents CloudTrail from logging events to the event data
507
+ # store, and prevents users from querying the data in the event data
508
+ # store that was encrypted with the key. After you associate an event
509
+ # data store with a KMS key, the KMS key cannot be removed or changed.
510
+ # Before you disable or delete a KMS key that you are using with an
511
+ # event data store, delete or back up your event data store.
512
+ #
513
+ # CloudTrail also supports KMS multi-Region keys. For more information
514
+ # about multi-Region keys, see [Using multi-Region keys][1] in the *Key
515
+ # Management Service Developer Guide*.
516
+ #
517
+ # Examples:
518
+ #
519
+ # * `alias/MyAliasName`
520
+ #
521
+ # * `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName`
522
+ #
523
+ # * `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
524
+ #
525
+ # * `12345678-1234-1234-1234-123456789012`
526
+ #
527
+ #
528
+ #
529
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html
530
+ #
482
531
  # @return [Types::CreateEventDataStoreResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
483
532
  #
484
533
  # * {Types::CreateEventDataStoreResponse#event_data_store_arn #event_data_store_arn} => String
@@ -492,6 +541,7 @@ module Aws::CloudTrail
492
541
  # * {Types::CreateEventDataStoreResponse#tags_list #tags_list} => Array&lt;Types::Tag&gt;
493
542
  # * {Types::CreateEventDataStoreResponse#created_timestamp #created_timestamp} => Time
494
543
  # * {Types::CreateEventDataStoreResponse#updated_timestamp #updated_timestamp} => Time
544
+ # * {Types::CreateEventDataStoreResponse#kms_key_id #kms_key_id} => String
495
545
  #
496
546
  # @example Request syntax with placeholder values
497
547
  #
@@ -523,6 +573,7 @@ module Aws::CloudTrail
523
573
  # value: "TagValue",
524
574
  # },
525
575
  # ],
576
+ # kms_key_id: "EventDataStoreKmsKeyId",
526
577
  # })
527
578
  #
528
579
  # @example Response structure
@@ -555,6 +606,7 @@ module Aws::CloudTrail
555
606
  # resp.tags_list[0].value #=> String
556
607
  # resp.created_timestamp #=> Time
557
608
  # resp.updated_timestamp #=> Time
609
+ # resp.kms_key_id #=> String
558
610
  #
559
611
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CreateEventDataStore AWS API Documentation
560
612
  #
@@ -801,12 +853,37 @@ module Aws::CloudTrail
801
853
  req.send_request(options)
802
854
  end
803
855
 
856
+ # Removes CloudTrail delegated administrator permissions from a member
857
+ # account in an organization.
858
+ #
859
+ # @option params [required, String] :delegated_admin_account_id
860
+ # A delegated administrator account ID. This is a member account in an
861
+ # organization that is currently designated as a delegated
862
+ # administrator.
863
+ #
864
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
865
+ #
866
+ # @example Request syntax with placeholder values
867
+ #
868
+ # resp = client.deregister_organization_delegated_admin({
869
+ # delegated_admin_account_id: "AccountId", # required
870
+ # })
871
+ #
872
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DeregisterOrganizationDelegatedAdmin AWS API Documentation
873
+ #
874
+ # @overload deregister_organization_delegated_admin(params = {})
875
+ # @param [Hash] params ({})
876
+ def deregister_organization_delegated_admin(params = {}, options = {})
877
+ req = build_request(:deregister_organization_delegated_admin, params)
878
+ req.send_request(options)
879
+ end
880
+
804
881
  # Returns metadata about a query, including query run time in
805
882
  # milliseconds, number of events scanned and matched, and query status.
806
883
  # You must specify an ARN for `EventDataStore`, and a value for
807
884
  # `QueryID`.
808
885
  #
809
- # @option params [required, String] :event_data_store
886
+ # @option params [String] :event_data_store
810
887
  # The ARN (or the ID suffix of the ARN) of an event data store on which
811
888
  # the specified query was run.
812
889
  #
@@ -826,7 +903,7 @@ module Aws::CloudTrail
826
903
  # @example Request syntax with placeholder values
827
904
  #
828
905
  # resp = client.describe_query({
829
- # event_data_store: "EventDataStoreArn", # required
906
+ # event_data_store: "EventDataStoreArn",
830
907
  # query_id: "UUID", # required
831
908
  # })
832
909
  #
@@ -931,7 +1008,7 @@ module Aws::CloudTrail
931
1008
  # services create service-linked channels to get information about
932
1009
  # CloudTrail events on your behalf. For more information about
933
1010
  # service-linked channels, see [Viewing service-linked channels for
934
- # CloudTrail by using the CLI.][1].
1011
+ # CloudTrail by using the CLI][1].
935
1012
  #
936
1013
  #
937
1014
  #
@@ -1008,6 +1085,7 @@ module Aws::CloudTrail
1008
1085
  # * {Types::GetEventDataStoreResponse#termination_protection_enabled #termination_protection_enabled} => Boolean
1009
1086
  # * {Types::GetEventDataStoreResponse#created_timestamp #created_timestamp} => Time
1010
1087
  # * {Types::GetEventDataStoreResponse#updated_timestamp #updated_timestamp} => Time
1088
+ # * {Types::GetEventDataStoreResponse#kms_key_id #kms_key_id} => String
1011
1089
  #
1012
1090
  # @example Request syntax with placeholder values
1013
1091
  #
@@ -1042,6 +1120,7 @@ module Aws::CloudTrail
1042
1120
  # resp.termination_protection_enabled #=> Boolean
1043
1121
  # resp.created_timestamp #=> Time
1044
1122
  # resp.updated_timestamp #=> Time
1123
+ # resp.kms_key_id #=> String
1045
1124
  #
1046
1125
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventDataStore AWS API Documentation
1047
1126
  #
@@ -1262,7 +1341,7 @@ module Aws::CloudTrail
1262
1341
  # value returned by the `StartQuery` operation, and an ARN for
1263
1342
  # `EventDataStore`.
1264
1343
  #
1265
- # @option params [required, String] :event_data_store
1344
+ # @option params [String] :event_data_store
1266
1345
  # The ARN (or ID suffix of the ARN) of the event data store against
1267
1346
  # which the query was run.
1268
1347
  #
@@ -1288,7 +1367,7 @@ module Aws::CloudTrail
1288
1367
  # @example Request syntax with placeholder values
1289
1368
  #
1290
1369
  # resp = client.get_query_results({
1291
- # event_data_store: "EventDataStoreArn", # required
1370
+ # event_data_store: "EventDataStoreArn",
1292
1371
  # query_id: "UUID", # required
1293
1372
  # next_token: "PaginationToken",
1294
1373
  # max_query_results: 1,
@@ -2180,6 +2259,30 @@ module Aws::CloudTrail
2180
2259
  req.send_request(options)
2181
2260
  end
2182
2261
 
2262
+ # Registers an organization’s member account as the CloudTrail delegated
2263
+ # administrator.
2264
+ #
2265
+ # @option params [required, String] :member_account_id
2266
+ # An organization member account ID that you want to designate as a
2267
+ # delegated administrator.
2268
+ #
2269
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2270
+ #
2271
+ # @example Request syntax with placeholder values
2272
+ #
2273
+ # resp = client.register_organization_delegated_admin({
2274
+ # member_account_id: "AccountId", # required
2275
+ # })
2276
+ #
2277
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RegisterOrganizationDelegatedAdmin AWS API Documentation
2278
+ #
2279
+ # @overload register_organization_delegated_admin(params = {})
2280
+ # @param [Hash] params ({})
2281
+ def register_organization_delegated_admin(params = {}, options = {})
2282
+ req = build_request(:register_organization_delegated_admin, params)
2283
+ req.send_request(options)
2284
+ end
2285
+
2183
2286
  # Removes the specified tags from a trail or event data store.
2184
2287
  #
2185
2288
  # @option params [required, String] :resource_id
@@ -2240,6 +2343,7 @@ module Aws::CloudTrail
2240
2343
  # * {Types::RestoreEventDataStoreResponse#termination_protection_enabled #termination_protection_enabled} => Boolean
2241
2344
  # * {Types::RestoreEventDataStoreResponse#created_timestamp #created_timestamp} => Time
2242
2345
  # * {Types::RestoreEventDataStoreResponse#updated_timestamp #updated_timestamp} => Time
2346
+ # * {Types::RestoreEventDataStoreResponse#kms_key_id #kms_key_id} => String
2243
2347
  #
2244
2348
  # @example Request syntax with placeholder values
2245
2349
  #
@@ -2274,6 +2378,7 @@ module Aws::CloudTrail
2274
2378
  # resp.termination_protection_enabled #=> Boolean
2275
2379
  # resp.created_timestamp #=> Time
2276
2380
  # resp.updated_timestamp #=> Time
2381
+ # resp.kms_key_id #=> String
2277
2382
  #
2278
2383
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/RestoreEventDataStore AWS API Documentation
2279
2384
  #
@@ -2572,6 +2677,38 @@ module Aws::CloudTrail
2572
2677
  # Indicates that termination protection is enabled and the event data
2573
2678
  # store cannot be automatically deleted.
2574
2679
  #
2680
+ # @option params [String] :kms_key_id
2681
+ # Specifies the KMS key ID to use to encrypt the events delivered by
2682
+ # CloudTrail. The value can be an alias name prefixed by `alias/`, a
2683
+ # fully specified ARN to an alias, a fully specified ARN to a key, or a
2684
+ # globally unique identifier.
2685
+ #
2686
+ # Disabling or deleting the KMS key, or removing CloudTrail permissions
2687
+ # on the key, prevents CloudTrail from logging events to the event data
2688
+ # store, and prevents users from querying the data in the event data
2689
+ # store that was encrypted with the key. After you associate an event
2690
+ # data store with a KMS key, the KMS key cannot be removed or changed.
2691
+ # Before you disable or delete a KMS key that you are using with an
2692
+ # event data store, delete or back up your event data store.
2693
+ #
2694
+ # CloudTrail also supports KMS multi-Region keys. For more information
2695
+ # about multi-Region keys, see [Using multi-Region keys][1] in the *Key
2696
+ # Management Service Developer Guide*.
2697
+ #
2698
+ # Examples:
2699
+ #
2700
+ # * `alias/MyAliasName`
2701
+ #
2702
+ # * `arn:aws:kms:us-east-2:123456789012:alias/MyAliasName`
2703
+ #
2704
+ # * `arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012`
2705
+ #
2706
+ # * `12345678-1234-1234-1234-123456789012`
2707
+ #
2708
+ #
2709
+ #
2710
+ # [1]: https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html
2711
+ #
2575
2712
  # @return [Types::UpdateEventDataStoreResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2576
2713
  #
2577
2714
  # * {Types::UpdateEventDataStoreResponse#event_data_store_arn #event_data_store_arn} => String
@@ -2584,6 +2721,7 @@ module Aws::CloudTrail
2584
2721
  # * {Types::UpdateEventDataStoreResponse#termination_protection_enabled #termination_protection_enabled} => Boolean
2585
2722
  # * {Types::UpdateEventDataStoreResponse#created_timestamp #created_timestamp} => Time
2586
2723
  # * {Types::UpdateEventDataStoreResponse#updated_timestamp #updated_timestamp} => Time
2724
+ # * {Types::UpdateEventDataStoreResponse#kms_key_id #kms_key_id} => String
2587
2725
  #
2588
2726
  # @example Request syntax with placeholder values
2589
2727
  #
@@ -2610,6 +2748,7 @@ module Aws::CloudTrail
2610
2748
  # organization_enabled: false,
2611
2749
  # retention_period: 1,
2612
2750
  # termination_protection_enabled: false,
2751
+ # kms_key_id: "EventDataStoreKmsKeyId",
2613
2752
  # })
2614
2753
  #
2615
2754
  # @example Response structure
@@ -2639,6 +2778,7 @@ module Aws::CloudTrail
2639
2778
  # resp.termination_protection_enabled #=> Boolean
2640
2779
  # resp.created_timestamp #=> Time
2641
2780
  # resp.updated_timestamp #=> Time
2781
+ # resp.kms_key_id #=> String
2642
2782
  #
2643
2783
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/UpdateEventDataStore AWS API Documentation
2644
2784
  #
@@ -2845,7 +2985,7 @@ module Aws::CloudTrail
2845
2985
  params: params,
2846
2986
  config: config)
2847
2987
  context[:gem_name] = 'aws-sdk-cloudtrail'
2848
- context[:gem_version] = '1.52.0'
2988
+ context[:gem_version] = '1.54.0'
2849
2989
  Seahorse::Client::Request.new(handlers, context)
2850
2990
  end
2851
2991