aws-sdk-cloudtrail 1.48.0 → 1.49.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +23 -19
- data/lib/aws-sdk-cloudtrail/client_api.rb +8 -8
- data/lib/aws-sdk-cloudtrail/types.rb +44 -48
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec5d187176c43abe1b0f9e22af755232ba56d77e6046d484a4941906e768822
|
4
|
+
data.tar.gz: 031acc2864f6fd5fc8a6378177056166b3d6a13bc591565c69ced8c63513e5c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55e951e6f59972a6cf10f73ceebc98d1764dfd9171d5dc84cee5b1b0f3618cb6d0ad6a2ae671357eca2cc30d43a6b282f19a2cef37667153033195a027b63c0e
|
7
|
+
data.tar.gz: '0853615833aa071d8fce2194c44c1ae0c19f3c7d2e7c92ff79345f66b1b65abc9121ea292eacdd452f555dd2e92084c70d09d75e696d221591d0e43f4e8459d7'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2022-04-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Increases the retention period maximum to 2557 days. Deprecates unused fields of the ListEventDataStores API response. Updates documentation.
|
8
|
+
|
4
9
|
1.48.0 (2022-03-02)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.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
|
365
|
-
# existing tag's value when a new value is specified
|
366
|
-
# tag key. Tag key names must be unique for a trail; you
|
367
|
-
# keys with the same name but different values. If you
|
368
|
-
# without a value, the tag will be created with the
|
369
|
-
# value of null. You can tag a trail
|
370
|
-
#
|
371
|
-
#
|
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
|
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
|
#
|
@@ -1492,13 +1493,12 @@ module Aws::CloudTrail
|
|
1492
1493
|
req.send_request(options)
|
1493
1494
|
end
|
1494
1495
|
|
1495
|
-
# Lists the tags for the trail in the current
|
1496
|
+
# Lists the tags for the trail or event data store in the current
|
1497
|
+
# region.
|
1496
1498
|
#
|
1497
1499
|
# @option params [required, Array<String>] :resource_id_list
|
1498
|
-
# Specifies a list of trail ARNs whose tags will be
|
1499
|
-
#
|
1500
|
-
#
|
1501
|
-
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
1500
|
+
# Specifies a list of trail and event data store ARNs whose tags will be
|
1501
|
+
# listed. The list has a limit of 20 ARNs.
|
1502
1502
|
#
|
1503
1503
|
# @option params [String] :next_token
|
1504
1504
|
# Reserved for future use.
|
@@ -1911,14 +1911,18 @@ module Aws::CloudTrail
|
|
1911
1911
|
req.send_request(options)
|
1912
1912
|
end
|
1913
1913
|
|
1914
|
-
# Removes the specified tags from a trail.
|
1914
|
+
# Removes the specified tags from a trail or event data store.
|
1915
1915
|
#
|
1916
1916
|
# @option params [required, String] :resource_id
|
1917
|
-
# Specifies the ARN of the trail
|
1918
|
-
#
|
1917
|
+
# Specifies the ARN of the trail or event data store from which tags
|
1918
|
+
# should be removed.
|
1919
1919
|
#
|
1920
|
+
# Example trail ARN format:
|
1920
1921
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
1921
1922
|
#
|
1923
|
+
# Example event data store ARN format:
|
1924
|
+
# `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
|
1925
|
+
#
|
1922
1926
|
# @option params [required, Array<Types::Tag>] :tags_list
|
1923
1927
|
# Specifies a list of tags to be removed.
|
1924
1928
|
#
|
@@ -2414,7 +2418,7 @@ module Aws::CloudTrail
|
|
2414
2418
|
params: params,
|
2415
2419
|
config: config)
|
2416
2420
|
context[:gem_name] = 'aws-sdk-cloudtrail'
|
2417
|
-
context[:gem_version] = '1.
|
2421
|
+
context[:gem_version] = '1.49.0'
|
2418
2422
|
Seahorse::Client::Request.new(handlers, context)
|
2419
2423
|
end
|
2420
2424
|
|
@@ -343,14 +343,14 @@ module Aws::CloudTrail
|
|
343
343
|
|
344
344
|
EventDataStore.add_member(:event_data_store_arn, Shapes::ShapeRef.new(shape: EventDataStoreArn, location_name: "EventDataStoreArn"))
|
345
345
|
EventDataStore.add_member(:name, Shapes::ShapeRef.new(shape: EventDataStoreName, location_name: "Name"))
|
346
|
-
EventDataStore.add_member(:termination_protection_enabled, Shapes::ShapeRef.new(shape: TerminationProtectionEnabled, location_name: "TerminationProtectionEnabled"))
|
347
|
-
EventDataStore.add_member(:status, Shapes::ShapeRef.new(shape: EventDataStoreStatus, location_name: "Status"))
|
348
|
-
EventDataStore.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
|
349
|
-
EventDataStore.add_member(:multi_region_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "MultiRegionEnabled"))
|
350
|
-
EventDataStore.add_member(:organization_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "OrganizationEnabled"))
|
351
|
-
EventDataStore.add_member(:retention_period, Shapes::ShapeRef.new(shape: RetentionPeriod, location_name: "RetentionPeriod"))
|
352
|
-
EventDataStore.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "CreatedTimestamp"))
|
353
|
-
EventDataStore.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, location_name: "UpdatedTimestamp"))
|
346
|
+
EventDataStore.add_member(:termination_protection_enabled, Shapes::ShapeRef.new(shape: TerminationProtectionEnabled, deprecated: true, location_name: "TerminationProtectionEnabled", metadata: {"deprecatedMessage"=>"TerminationProtectionEnabled is no longer returned by ListEventDataStores"}))
|
347
|
+
EventDataStore.add_member(:status, Shapes::ShapeRef.new(shape: EventDataStoreStatus, deprecated: true, location_name: "Status", metadata: {"deprecatedMessage"=>"Status is no longer returned by ListEventDataStores"}))
|
348
|
+
EventDataStore.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, deprecated: true, location_name: "AdvancedEventSelectors", metadata: {"deprecatedMessage"=>"AdvancedEventSelectors is no longer returned by ListEventDataStores"}))
|
349
|
+
EventDataStore.add_member(:multi_region_enabled, Shapes::ShapeRef.new(shape: Boolean, deprecated: true, location_name: "MultiRegionEnabled", metadata: {"deprecatedMessage"=>"MultiRegionEnabled is no longer returned by ListEventDataStores"}))
|
350
|
+
EventDataStore.add_member(:organization_enabled, Shapes::ShapeRef.new(shape: Boolean, deprecated: true, location_name: "OrganizationEnabled", metadata: {"deprecatedMessage"=>"OrganizationEnabled is no longer returned by ListEventDataStores"}))
|
351
|
+
EventDataStore.add_member(:retention_period, Shapes::ShapeRef.new(shape: RetentionPeriod, deprecated: true, location_name: "RetentionPeriod", metadata: {"deprecatedMessage"=>"RetentionPeriod is no longer returned by ListEventDataStores"}))
|
352
|
+
EventDataStore.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Date, deprecated: true, location_name: "CreatedTimestamp", metadata: {"deprecatedMessage"=>"CreatedTimestamp is no longer returned by ListEventDataStores"}))
|
353
|
+
EventDataStore.add_member(:updated_timestamp, Shapes::ShapeRef.new(shape: Date, deprecated: true, location_name: "UpdatedTimestamp", metadata: {"deprecatedMessage"=>"UpdatedTimestamp is no longer returned by ListEventDataStores"}))
|
354
354
|
EventDataStore.struct_class = Types::EventDataStore
|
355
355
|
|
356
356
|
EventDataStoreARNInvalidException.struct_class = Types::EventDataStoreARNInvalidException
|
@@ -10,7 +10,7 @@
|
|
10
10
|
module Aws::CloudTrail
|
11
11
|
module Types
|
12
12
|
|
13
|
-
# Specifies the tags to add to a trail.
|
13
|
+
# Specifies the tags to add to a trail or event data store.
|
14
14
|
#
|
15
15
|
# @note When making an API call, you may pass AddTagsRequest
|
16
16
|
# data as a hash:
|
@@ -26,8 +26,8 @@ module Aws::CloudTrail
|
|
26
26
|
# }
|
27
27
|
#
|
28
28
|
# @!attribute [rw] resource_id
|
29
|
-
# Specifies the ARN of the trail to which one or
|
30
|
-
# added. The format of a trail ARN is:
|
29
|
+
# Specifies the ARN of the trail or event data store to which one or
|
30
|
+
# more tags will be added. The format of a trail ARN is:
|
31
31
|
#
|
32
32
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
33
33
|
# @return [String]
|
@@ -403,8 +403,8 @@ module Aws::CloudTrail
|
|
403
403
|
|
404
404
|
# This exception is thrown when the specified resource is not ready for
|
405
405
|
# an operation. This can occur when you try to run an operation on a
|
406
|
-
#
|
407
|
-
# exception occurs, wait a few minutes, and then try the operation
|
406
|
+
# resource before CloudTrail has time to fully load the resource. If
|
407
|
+
# this exception occurs, wait a few minutes, and then try the operation
|
408
408
|
# again.
|
409
409
|
#
|
410
410
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ConflictException AWS API Documentation
|
@@ -1250,42 +1250,44 @@ module Aws::CloudTrail
|
|
1250
1250
|
# @return [String]
|
1251
1251
|
#
|
1252
1252
|
# @!attribute [rw] termination_protection_enabled
|
1253
|
-
# Indicates whether the event data
|
1254
|
-
# termination.
|
1253
|
+
# This field is being deprecated. Indicates whether the event data
|
1254
|
+
# store is protected from termination.
|
1255
1255
|
# @return [Boolean]
|
1256
1256
|
#
|
1257
1257
|
# @!attribute [rw] status
|
1258
|
-
# The status of an event data store.
|
1259
|
-
# `PENDING_DELETION`.
|
1258
|
+
# This field is being deprecated. The status of an event data store.
|
1259
|
+
# Values are `ENABLED` and `PENDING_DELETION`.
|
1260
1260
|
# @return [String]
|
1261
1261
|
#
|
1262
1262
|
# @!attribute [rw] advanced_event_selectors
|
1263
|
-
# The advanced event selectors that
|
1264
|
-
# data store.
|
1263
|
+
# This field is being deprecated. The advanced event selectors that
|
1264
|
+
# were used to select events for the data store.
|
1265
1265
|
# @return [Array<Types::AdvancedEventSelector>]
|
1266
1266
|
#
|
1267
1267
|
# @!attribute [rw] multi_region_enabled
|
1268
|
-
# Indicates whether the event data
|
1269
|
-
# regions, or only from the region in
|
1268
|
+
# This field is being deprecated. Indicates whether the event data
|
1269
|
+
# store includes events from all regions, or only from the region in
|
1270
|
+
# which it was created.
|
1270
1271
|
# @return [Boolean]
|
1271
1272
|
#
|
1272
1273
|
# @!attribute [rw] organization_enabled
|
1273
|
-
# Indicates that an event data store
|
1274
|
-
# an organization.
|
1274
|
+
# This field is being deprecated. Indicates that an event data store
|
1275
|
+
# is collecting logged events for an organization.
|
1275
1276
|
# @return [Boolean]
|
1276
1277
|
#
|
1277
1278
|
# @!attribute [rw] retention_period
|
1278
|
-
# The retention period, in days.
|
1279
|
+
# This field is being deprecated. The retention period, in days.
|
1279
1280
|
# @return [Integer]
|
1280
1281
|
#
|
1281
1282
|
# @!attribute [rw] created_timestamp
|
1282
|
-
# The timestamp of the event data
|
1283
|
+
# This field is being deprecated. The timestamp of the event data
|
1284
|
+
# store's creation.
|
1283
1285
|
# @return [Time]
|
1284
1286
|
#
|
1285
1287
|
# @!attribute [rw] updated_timestamp
|
1286
|
-
# The timestamp showing when an event
|
1287
|
-
# applicable. `UpdatedTimestamp` is always
|
1288
|
-
# than the time shown in `CreatedTimestamp`.
|
1288
|
+
# This field is being deprecated. The timestamp showing when an event
|
1289
|
+
# data store was updated, if applicable. `UpdatedTimestamp` is always
|
1290
|
+
# either the same or newer than the time shown in `CreatedTimestamp`.
|
1289
1291
|
# @return [Time]
|
1290
1292
|
#
|
1291
1293
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/EventDataStore AWS API Documentation
|
@@ -1900,7 +1902,7 @@ module Aws::CloudTrail
|
|
1900
1902
|
include Aws::Structure
|
1901
1903
|
end
|
1902
1904
|
|
1903
|
-
# The event data store
|
1905
|
+
# The event data store is inactive.
|
1904
1906
|
#
|
1905
1907
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InactiveEventDataStoreException AWS API Documentation
|
1906
1908
|
#
|
@@ -1945,14 +1947,9 @@ module Aws::CloudTrail
|
|
1945
1947
|
end
|
1946
1948
|
|
1947
1949
|
# This exception is thrown when the IAM user or role that is used to
|
1948
|
-
# create the organization
|
1949
|
-
# permissions for creating an organization
|
1950
|
-
#
|
1951
|
-
# Organization][1].
|
1952
|
-
#
|
1953
|
-
#
|
1954
|
-
#
|
1955
|
-
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
1950
|
+
# create the organization resource lacks one or more required
|
1951
|
+
# permissions for creating an organization resource in a required
|
1952
|
+
# service.
|
1956
1953
|
#
|
1957
1954
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/InsufficientDependencyServiceAccessPermissionException AWS API Documentation
|
1958
1955
|
#
|
@@ -1992,7 +1989,8 @@ module Aws::CloudTrail
|
|
1992
1989
|
#
|
1993
1990
|
class InvalidCloudWatchLogsRoleArnException < Aws::EmptyStructure; end
|
1994
1991
|
|
1995
|
-
# A date range for the query was specified that is not valid.
|
1992
|
+
# A date range for the query was specified that is not valid. Be sure
|
1993
|
+
# that the start time is chronologically before the end time. For more
|
1996
1994
|
# information about writing a query, see [Create or edit a query][1] in
|
1997
1995
|
# the *CloudTrail User Guide*.
|
1998
1996
|
#
|
@@ -2380,7 +2378,7 @@ module Aws::CloudTrail
|
|
2380
2378
|
include Aws::Structure
|
2381
2379
|
end
|
2382
2380
|
|
2383
|
-
# Specifies a list of
|
2381
|
+
# Specifies a list of tags to return.
|
2384
2382
|
#
|
2385
2383
|
# @note When making an API call, you may pass ListTagsRequest
|
2386
2384
|
# data as a hash:
|
@@ -2391,10 +2389,8 @@ module Aws::CloudTrail
|
|
2391
2389
|
# }
|
2392
2390
|
#
|
2393
2391
|
# @!attribute [rw] resource_id_list
|
2394
|
-
# Specifies a list of trail ARNs whose tags will
|
2395
|
-
#
|
2396
|
-
#
|
2397
|
-
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
2392
|
+
# Specifies a list of trail and event data store ARNs whose tags will
|
2393
|
+
# be listed. The list has a limit of 20 ARNs.
|
2398
2394
|
# @return [Array<String>]
|
2399
2395
|
#
|
2400
2396
|
# @!attribute [rw] next_token
|
@@ -2614,14 +2610,15 @@ module Aws::CloudTrail
|
|
2614
2610
|
class MaximumNumberOfTrailsExceededException < Aws::EmptyStructure; end
|
2615
2611
|
|
2616
2612
|
# This exception is thrown when the Amazon Web Services account making
|
2617
|
-
# the request to create or update an organization trail
|
2618
|
-
# management account for an organization in
|
2619
|
-
# information, see [Prepare For Creating a Trail
|
2620
|
-
# Organization][1].
|
2613
|
+
# the request to create or update an organization trail or event data
|
2614
|
+
# store is not the management account for an organization in
|
2615
|
+
# Organizations. For more information, see [Prepare For Creating a Trail
|
2616
|
+
# For Your Organization][1] or [Create an event data store][2].
|
2621
2617
|
#
|
2622
2618
|
#
|
2623
2619
|
#
|
2624
2620
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
2621
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/query-event-data-store.html
|
2625
2622
|
#
|
2626
2623
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/NotOrganizationMasterAccountException AWS API Documentation
|
2627
2624
|
#
|
@@ -2636,12 +2633,7 @@ module Aws::CloudTrail
|
|
2636
2633
|
|
2637
2634
|
# This exception is thrown when Organizations is not configured to
|
2638
2635
|
# support all features. All features must be enabled in Organizations to
|
2639
|
-
# support creating an organization trail
|
2640
|
-
# [Prepare For Creating a Trail For Your Organization][1].
|
2641
|
-
#
|
2642
|
-
#
|
2643
|
-
#
|
2644
|
-
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html
|
2636
|
+
# support creating an organization trail or event data store.
|
2645
2637
|
#
|
2646
2638
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/OrganizationNotInAllFeaturesModeException AWS API Documentation
|
2647
2639
|
#
|
@@ -2950,7 +2942,7 @@ module Aws::CloudTrail
|
|
2950
2942
|
include Aws::Structure
|
2951
2943
|
end
|
2952
2944
|
|
2953
|
-
# Specifies the tags to remove from a trail.
|
2945
|
+
# Specifies the tags to remove from a trail or event data store.
|
2954
2946
|
#
|
2955
2947
|
# @note When making an API call, you may pass RemoveTagsRequest
|
2956
2948
|
# data as a hash:
|
@@ -2966,10 +2958,14 @@ module Aws::CloudTrail
|
|
2966
2958
|
# }
|
2967
2959
|
#
|
2968
2960
|
# @!attribute [rw] resource_id
|
2969
|
-
# Specifies the ARN of the trail from which tags
|
2970
|
-
#
|
2961
|
+
# Specifies the ARN of the trail or event data store from which tags
|
2962
|
+
# should be removed.
|
2971
2963
|
#
|
2964
|
+
# Example trail ARN format:
|
2972
2965
|
# `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
|
2966
|
+
#
|
2967
|
+
# Example event data store ARN format:
|
2968
|
+
# `arn:aws:cloudtrail:us-east-2:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE`
|
2973
2969
|
# @return [String]
|
2974
2970
|
#
|
2975
2971
|
# @!attribute [rw] tags_list
|
data/lib/aws-sdk-cloudtrail.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudtrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|