aws-sdk-cloudtrail 1.91.0 → 1.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +80 -40
- data/lib/aws-sdk-cloudtrail/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-cloudtrail/endpoints.rb +2 -537
- data/lib/aws-sdk-cloudtrail/plugins/endpoints.rb +1 -104
- data/lib/aws-sdk-cloudtrail/types.rb +206 -565
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d705020268454db88d9bb9274609b25d25e395bbe3ca13c9aa6e4e6a3fe2c71
|
4
|
+
data.tar.gz: 538ce499e46dcb1480052e747d11d16800b334815032508c460826bc1b06d760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d72fc6316258e2d4ebf8d8b829f62149d26c3f344140fdc8d6dcd3b4db7116a83f6692993978ca140222217d52ee4f7d6dff75a4cf330c044cc79ed525d29192
|
7
|
+
data.tar.gz: f625284ab96c7bb3af40ef825160c1f0561b1471272146379af2d4ed3348b62e758567a87f0e1ff980981c75d2bd436c99eb6678a161f15abbcd5977b6990c36
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.93.0 (2024-10-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.92.0 (2024-09-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Doc-only update for CloudTrail network activity events release (in preview)
|
13
|
+
|
4
14
|
1.91.0 (2024-09-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.93.0
|
@@ -1535,25 +1535,32 @@ module Aws::CloudTrail
|
|
1535
1535
|
# the following:
|
1536
1536
|
#
|
1537
1537
|
# * If your event selector includes read-only events, write-only events,
|
1538
|
-
# or all events. This applies to
|
1539
|
-
# events.
|
1538
|
+
# or all events. This applies to management events, data events, and
|
1539
|
+
# network activity events.
|
1540
1540
|
#
|
1541
1541
|
# * If your event selector includes management events.
|
1542
1542
|
#
|
1543
|
+
# * If your event selector includes network activity events, the event
|
1544
|
+
# sources for which you are logging network activity events.
|
1545
|
+
#
|
1543
1546
|
# * If your event selector includes data events, the resources on which
|
1544
1547
|
# you are logging data events.
|
1545
1548
|
#
|
1546
|
-
# For more information about logging management
|
1547
|
-
# following topics in the *CloudTrail User
|
1549
|
+
# For more information about logging management, data, and network
|
1550
|
+
# activity events, see the following topics in the *CloudTrail User
|
1551
|
+
# Guide*:
|
1548
1552
|
#
|
1549
1553
|
# * [Logging management events][1]
|
1550
1554
|
#
|
1551
1555
|
# * [Logging data events][2]
|
1552
1556
|
#
|
1557
|
+
# * [Logging network activity events][3]
|
1558
|
+
#
|
1553
1559
|
#
|
1554
1560
|
#
|
1555
1561
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html
|
1556
1562
|
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
1563
|
+
# [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html
|
1557
1564
|
#
|
1558
1565
|
# @option params [required, String] :trail_name
|
1559
1566
|
# Specifies the name of the trail or trail ARN. If you specify a trail
|
@@ -2628,16 +2635,33 @@ module Aws::CloudTrail
|
|
2628
2635
|
req.send_request(options)
|
2629
2636
|
end
|
2630
2637
|
|
2631
|
-
# Configures
|
2632
|
-
#
|
2633
|
-
#
|
2634
|
-
#
|
2635
|
-
#
|
2636
|
-
#
|
2637
|
-
#
|
2638
|
-
#
|
2639
|
-
#
|
2640
|
-
# events
|
2638
|
+
# Configures event selectors (also referred to as *basic event
|
2639
|
+
# selectors*) or advanced event selectors for your trail. You can use
|
2640
|
+
# either `AdvancedEventSelectors` or `EventSelectors`, but not both. If
|
2641
|
+
# you apply `AdvancedEventSelectors` to a trail, any existing
|
2642
|
+
# `EventSelectors` are overwritten.
|
2643
|
+
#
|
2644
|
+
# You can use `AdvancedEventSelectors` to log management events, data
|
2645
|
+
# events for all resource types, and network activity events.
|
2646
|
+
#
|
2647
|
+
# You can use `EventSelectors` to log management events and data events
|
2648
|
+
# for the following resource types:
|
2649
|
+
#
|
2650
|
+
# * `AWS::DynamoDB::Table`
|
2651
|
+
#
|
2652
|
+
# * `AWS::Lambda::Function`
|
2653
|
+
#
|
2654
|
+
# * `AWS::S3::Object`
|
2655
|
+
#
|
2656
|
+
# You can't use `EventSelectors` to log network activity events.
|
2657
|
+
#
|
2658
|
+
# If you want your trail to log Insights events, be sure the event
|
2659
|
+
# selector or advanced event selector enables logging of the Insights
|
2660
|
+
# event types you want configured for your trail. For more information
|
2661
|
+
# about logging Insights events, see [Logging Insights events][1] in the
|
2662
|
+
# *CloudTrail User Guide*. By default, trails created without specific
|
2663
|
+
# event selectors are configured to log all read and write management
|
2664
|
+
# events, and no data events or network activity events.
|
2641
2665
|
#
|
2642
2666
|
# When an event occurs in your account, CloudTrail evaluates the event
|
2643
2667
|
# selectors or advanced event selectors in all trails. For each trail,
|
@@ -2648,7 +2672,7 @@ module Aws::CloudTrail
|
|
2648
2672
|
# Example
|
2649
2673
|
#
|
2650
2674
|
# 1. You create an event selector for a trail and specify that you want
|
2651
|
-
# write-only events.
|
2675
|
+
# to log write-only events.
|
2652
2676
|
#
|
2653
2677
|
# 2. The EC2 `GetConsoleOutput` and `RunInstances` API operations occur
|
2654
2678
|
# in your account.
|
@@ -2666,25 +2690,22 @@ module Aws::CloudTrail
|
|
2666
2690
|
# which the trail was created; otherwise, an
|
2667
2691
|
# `InvalidHomeRegionException` exception is thrown.
|
2668
2692
|
#
|
2669
|
-
# You can configure up to five event selectors for each trail.
|
2670
|
-
# information, see [Logging management events][2], [Logging data
|
2671
|
-
# events][3], and [Quotas in CloudTrail][4] in the *CloudTrail User
|
2672
|
-
# Guide*.
|
2693
|
+
# You can configure up to five event selectors for each trail.
|
2673
2694
|
#
|
2674
2695
|
# You can add advanced event selectors, and conditions for your advanced
|
2675
2696
|
# event selectors, up to a maximum of 500 values for all conditions and
|
2676
|
-
# selectors on a trail.
|
2677
|
-
#
|
2678
|
-
#
|
2679
|
-
#
|
2680
|
-
# events][3] in the *CloudTrail User Guide*.
|
2697
|
+
# selectors on a trail. For more information, see [Logging management
|
2698
|
+
# events][2], [Logging data events][3], [Logging network activity
|
2699
|
+
# events][4], and [Quotas in CloudTrail][5] in the *CloudTrail User
|
2700
|
+
# Guide*.
|
2681
2701
|
#
|
2682
2702
|
#
|
2683
2703
|
#
|
2684
2704
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html
|
2685
2705
|
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html
|
2686
2706
|
# [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
2687
|
-
# [4]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/
|
2707
|
+
# [4]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html
|
2708
|
+
# [5]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html
|
2688
2709
|
#
|
2689
2710
|
# @option params [required, String] :trail_name
|
2690
2711
|
# Specifies the name of the trail or trail ARN. If you specify a trail
|
@@ -2707,25 +2728,42 @@ module Aws::CloudTrail
|
|
2707
2728
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
2708
2729
|
#
|
2709
2730
|
# @option params [Array<Types::EventSelector>] :event_selectors
|
2710
|
-
# Specifies the settings for your event selectors. You can
|
2711
|
-
# to
|
2712
|
-
#
|
2713
|
-
#
|
2714
|
-
#
|
2731
|
+
# Specifies the settings for your event selectors. You can use event
|
2732
|
+
# selectors to log management events and data events for the following
|
2733
|
+
# resource types:
|
2734
|
+
#
|
2735
|
+
# * `AWS::DynamoDB::Table`
|
2736
|
+
#
|
2737
|
+
# * `AWS::Lambda::Function`
|
2738
|
+
#
|
2739
|
+
# * `AWS::S3::Object`
|
2740
|
+
#
|
2741
|
+
# You can't use event selectors to log network activity events.
|
2742
|
+
#
|
2743
|
+
# You can configure up to five event selectors for a trail. You can use
|
2744
|
+
# either `EventSelectors` or `AdvancedEventSelectors` in a
|
2745
|
+
# `PutEventSelectors` request, but not both. If you apply
|
2746
|
+
# `EventSelectors` to a trail, any existing `AdvancedEventSelectors` are
|
2747
|
+
# overwritten.
|
2715
2748
|
#
|
2716
2749
|
# @option params [Array<Types::AdvancedEventSelector>] :advanced_event_selectors
|
2717
|
-
# Specifies the settings for advanced event selectors. You can
|
2718
|
-
# advanced event selectors,
|
2719
|
-
#
|
2750
|
+
# Specifies the settings for advanced event selectors. You can use
|
2751
|
+
# advanced event selectors to log management events, data events for all
|
2752
|
+
# resource types, and network activity events.
|
2753
|
+
#
|
2754
|
+
# You can add advanced event selectors, and conditions for your advanced
|
2755
|
+
# event selectors, up to a maximum of 500 values for all conditions and
|
2720
2756
|
# selectors on a trail. You can use either `AdvancedEventSelectors` or
|
2721
2757
|
# `EventSelectors`, but not both. If you apply `AdvancedEventSelectors`
|
2722
2758
|
# to a trail, any existing `EventSelectors` are overwritten. For more
|
2723
2759
|
# information about advanced event selectors, see [Logging data
|
2724
|
-
# events][1] in the *CloudTrail
|
2760
|
+
# events][1] and [Logging network activity events][2] in the *CloudTrail
|
2761
|
+
# User Guide*.
|
2725
2762
|
#
|
2726
2763
|
#
|
2727
2764
|
#
|
2728
2765
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
2766
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-network-events-with-cloudtrail.html
|
2729
2767
|
#
|
2730
2768
|
# @return [Types::PutEventSelectorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2731
2769
|
#
|
@@ -3111,7 +3149,8 @@ module Aws::CloudTrail
|
|
3111
3149
|
# Starts the ingestion of live events on an event data store specified
|
3112
3150
|
# as either an ARN or the ID portion of the ARN. To start ingestion, the
|
3113
3151
|
# event data store `Status` must be `STOPPED_INGESTION` and the
|
3114
|
-
# `eventCategory` must be `Management`, `Data`, or
|
3152
|
+
# `eventCategory` must be `Management`, `Data`, `NetworkActivity`, or
|
3153
|
+
# `ConfigurationItem`.
|
3115
3154
|
#
|
3116
3155
|
# @option params [required, String] :event_data_store
|
3117
3156
|
# The ARN (or ID suffix of the ARN) of the event data store for which
|
@@ -3323,7 +3362,8 @@ module Aws::CloudTrail
|
|
3323
3362
|
# Stops the ingestion of live events on an event data store specified as
|
3324
3363
|
# either an ARN or the ID portion of the ARN. To stop ingestion, the
|
3325
3364
|
# event data store `Status` must be `ENABLED` and the `eventCategory`
|
3326
|
-
# must be `Management`, `Data`, or
|
3365
|
+
# must be `Management`, `Data`, `NetworkActivity`, or
|
3366
|
+
# `ConfigurationItem`.
|
3327
3367
|
#
|
3328
3368
|
# @option params [required, String] :event_data_store
|
3329
3369
|
# The ARN (or ID suffix of the ARN) of the event data store for which
|
@@ -3491,9 +3531,9 @@ module Aws::CloudTrail
|
|
3491
3531
|
# `TerminationProtection` is enabled.
|
3492
3532
|
#
|
3493
3533
|
# For event data stores for CloudTrail events, `AdvancedEventSelectors`
|
3494
|
-
# includes or excludes management or
|
3495
|
-
# store. For more information about
|
3496
|
-
# [AdvancedEventSelectors][1].
|
3534
|
+
# includes or excludes management, data, or network activity events in
|
3535
|
+
# your event data store. For more information about
|
3536
|
+
# `AdvancedEventSelectors`, see [AdvancedEventSelectors][1].
|
3497
3537
|
#
|
3498
3538
|
# For event data stores for CloudTrail Insights events, Config
|
3499
3539
|
# configuration items, Audit Manager evidence, or non-Amazon Web
|
@@ -3918,7 +3958,7 @@ module Aws::CloudTrail
|
|
3918
3958
|
tracer: tracer
|
3919
3959
|
)
|
3920
3960
|
context[:gem_name] = 'aws-sdk-cloudtrail'
|
3921
|
-
context[:gem_version] = '1.
|
3961
|
+
context[:gem_version] = '1.93.0'
|
3922
3962
|
Seahorse::Client::Request.new(handlers, context)
|
3923
3963
|
end
|
3924
3964
|
|
@@ -52,15 +52,18 @@ module Aws::CloudTrail
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
-
if self[:use_dual_stack].nil?
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
-
end
|
58
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
-
if self[:use_fips].nil?
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
-
end
|
63
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|