aws-sdk-cloudtrail 1.30.0 → 1.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +40 -15
- data/lib/aws-sdk-cloudtrail/client_api.rb +6 -1
- data/lib/aws-sdk-cloudtrail/errors.rb +11 -0
- data/lib/aws-sdk-cloudtrail/types.rb +140 -8
- 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: 25be88c90838214f5ca6f378cb0a13c3796aa4effa66ca1afe18145cf027251d
|
4
|
+
data.tar.gz: a75129e0264fed092634dd95f9fd759570072bc64ee8b0565549ae199de8f69e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6eebd327cec31f0f72e218c1558d2f9efaad2006ce88bbc7d94f49b9ee42000093f927d114ad7d209d38ef6badf7d708e5dbb17748c5b19928ead67fbac4ce
|
7
|
+
data.tar.gz: a0e7cef97b036feee7949bbb063cb95308f275e57ecfaba28997aa42b7980cfcf6feaffb12e14f5c3185a3fa158e18ec983eac5bc0ae4d299dbb4d4a120a8f3d
|
data/lib/aws-sdk-cloudtrail.rb
CHANGED
@@ -1169,16 +1169,17 @@ module Aws::CloudTrail
|
|
1169
1169
|
req.send_request(options)
|
1170
1170
|
end
|
1171
1171
|
|
1172
|
-
# Configures an event selector
|
1173
|
-
#
|
1174
|
-
#
|
1175
|
-
#
|
1176
|
-
# events.
|
1172
|
+
# Configures an event selector or advanced event selectors for your
|
1173
|
+
# trail. Use event selectors or advanced event selectors to specify
|
1174
|
+
# management and data event settings for your trail. By default, trails
|
1175
|
+
# created without specific event selectors are configured to log all
|
1176
|
+
# read and write management events, and no data events.
|
1177
1177
|
#
|
1178
1178
|
# When an event occurs in your account, CloudTrail evaluates the event
|
1179
|
-
# selectors in all trails. For each trail,
|
1180
|
-
# event selector, the trail processes and logs
|
1181
|
-
# doesn't match any event selector, the trail
|
1179
|
+
# selectors or advanced event selectors in all trails. For each trail,
|
1180
|
+
# if the event matches any event selector, the trail processes and logs
|
1181
|
+
# the event. If the event doesn't match any event selector, the trail
|
1182
|
+
# doesn't log the event.
|
1182
1183
|
#
|
1183
1184
|
# Example
|
1184
1185
|
#
|
@@ -1194,21 +1195,30 @@ module Aws::CloudTrail
|
|
1194
1195
|
# 4. The `RunInstances` is a write-only event and it matches your event
|
1195
1196
|
# selector. The trail logs the event.
|
1196
1197
|
#
|
1197
|
-
# 5. The `GetConsoleOutput` is a read-only event
|
1198
|
+
# 5. The `GetConsoleOutput` is a read-only event that doesn't match
|
1198
1199
|
# your event selector. The trail doesn't log the event.
|
1199
1200
|
#
|
1200
1201
|
# The `PutEventSelectors` operation must be called from the region in
|
1201
1202
|
# which the trail was created; otherwise, an
|
1202
|
-
# `InvalidHomeRegionException` is thrown.
|
1203
|
+
# `InvalidHomeRegionException` exception is thrown.
|
1203
1204
|
#
|
1204
1205
|
# You can configure up to five event selectors for each trail. For more
|
1205
|
-
# information, see [Logging
|
1206
|
-
# and [
|
1206
|
+
# information, see [Logging data and management events for trails ][1]
|
1207
|
+
# and [Quotas in AWS CloudTrail][2] in the *AWS CloudTrail User Guide*.
|
1208
|
+
#
|
1209
|
+
# You can add advanced event selectors, and conditions for your advanced
|
1210
|
+
# event selectors, up to a maximum of 500 values for all conditions and
|
1211
|
+
# selectors on a trail. You can use either `AdvancedEventSelectors` or
|
1212
|
+
# `EventSelectors`, but not both. If you apply `AdvancedEventSelectors`
|
1213
|
+
# to a trail, any existing `EventSelectors` are overwritten. For more
|
1214
|
+
# information about advanced event selectors, see [Logging data events
|
1215
|
+
# for trails][3] in the *AWS CloudTrail User Guide*.
|
1207
1216
|
#
|
1208
1217
|
#
|
1209
1218
|
#
|
1210
1219
|
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html
|
1211
1220
|
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html
|
1221
|
+
# [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
1212
1222
|
#
|
1213
1223
|
# @option params [required, String] :trail_name
|
1214
1224
|
# Specifies the name of the trail or trail ARN. If you specify a trail
|
@@ -1232,9 +1242,24 @@ module Aws::CloudTrail
|
|
1232
1242
|
#
|
1233
1243
|
# @option params [Array<Types::EventSelector>] :event_selectors
|
1234
1244
|
# Specifies the settings for your event selectors. You can configure up
|
1235
|
-
# to five event selectors for a trail.
|
1245
|
+
# to five event selectors for a trail. You can use either
|
1246
|
+
# `EventSelectors` or `AdvancedEventSelectors` in a `PutEventSelectors`
|
1247
|
+
# request, but not both. If you apply `EventSelectors` to a trail, any
|
1248
|
+
# existing `AdvancedEventSelectors` are overwritten.
|
1236
1249
|
#
|
1237
1250
|
# @option params [Array<Types::AdvancedEventSelector>] :advanced_event_selectors
|
1251
|
+
# Specifies the settings for advanced event selectors. You can add
|
1252
|
+
# advanced event selectors, and conditions for your advanced event
|
1253
|
+
# selectors, up to a maximum of 500 values for all conditions and
|
1254
|
+
# selectors on a trail. You can use either `AdvancedEventSelectors` or
|
1255
|
+
# `EventSelectors`, but not both. If you apply `AdvancedEventSelectors`
|
1256
|
+
# to a trail, any existing `EventSelectors` are overwritten. For more
|
1257
|
+
# information about advanced event selectors, see [Logging data events
|
1258
|
+
# for trails][1] in the *AWS CloudTrail User Guide*.
|
1259
|
+
#
|
1260
|
+
#
|
1261
|
+
#
|
1262
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
1238
1263
|
#
|
1239
1264
|
# @return [Types::PutEventSelectorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1240
1265
|
#
|
@@ -1261,7 +1286,7 @@ module Aws::CloudTrail
|
|
1261
1286
|
# ],
|
1262
1287
|
# advanced_event_selectors: [
|
1263
1288
|
# {
|
1264
|
-
# name: "SelectorName",
|
1289
|
+
# name: "SelectorName",
|
1265
1290
|
# field_selectors: [ # required
|
1266
1291
|
# {
|
1267
1292
|
# field: "SelectorField", # required
|
@@ -1645,7 +1670,7 @@ module Aws::CloudTrail
|
|
1645
1670
|
params: params,
|
1646
1671
|
config: config)
|
1647
1672
|
context[:gem_name] = 'aws-sdk-cloudtrail'
|
1648
|
-
context[:gem_version] = '1.
|
1673
|
+
context[:gem_version] = '1.31.0'
|
1649
1674
|
Seahorse::Client::Request.new(handlers, context)
|
1650
1675
|
end
|
1651
1676
|
|
@@ -23,6 +23,7 @@ module Aws::CloudTrail
|
|
23
23
|
ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
|
24
24
|
CloudTrailARNInvalidException = Shapes::StructureShape.new(name: 'CloudTrailARNInvalidException')
|
25
25
|
CloudTrailAccessNotEnabledException = Shapes::StructureShape.new(name: 'CloudTrailAccessNotEnabledException')
|
26
|
+
CloudTrailInvalidClientTokenIdException = Shapes::StructureShape.new(name: 'CloudTrailInvalidClientTokenIdException')
|
26
27
|
CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
|
27
28
|
CreateTrailRequest = Shapes::StructureShape.new(name: 'CreateTrailRequest')
|
28
29
|
CreateTrailResponse = Shapes::StructureShape.new(name: 'CreateTrailResponse')
|
@@ -142,7 +143,7 @@ module Aws::CloudTrail
|
|
142
143
|
|
143
144
|
AddTagsResponse.struct_class = Types::AddTagsResponse
|
144
145
|
|
145
|
-
AdvancedEventSelector.add_member(:name, Shapes::ShapeRef.new(shape: SelectorName,
|
146
|
+
AdvancedEventSelector.add_member(:name, Shapes::ShapeRef.new(shape: SelectorName, location_name: "Name"))
|
146
147
|
AdvancedEventSelector.add_member(:field_selectors, Shapes::ShapeRef.new(shape: AdvancedFieldSelectors, required: true, location_name: "FieldSelectors"))
|
147
148
|
AdvancedEventSelector.struct_class = Types::AdvancedEventSelector
|
148
149
|
|
@@ -163,6 +164,8 @@ module Aws::CloudTrail
|
|
163
164
|
|
164
165
|
CloudTrailAccessNotEnabledException.struct_class = Types::CloudTrailAccessNotEnabledException
|
165
166
|
|
167
|
+
CloudTrailInvalidClientTokenIdException.struct_class = Types::CloudTrailInvalidClientTokenIdException
|
168
|
+
|
166
169
|
CloudWatchLogsDeliveryUnavailableException.struct_class = Types::CloudWatchLogsDeliveryUnavailableException
|
167
170
|
|
168
171
|
CreateTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
|
@@ -595,6 +598,7 @@ module Aws::CloudTrail
|
|
595
598
|
o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
|
596
599
|
o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
|
597
600
|
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
|
601
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudTrailInvalidClientTokenIdException)
|
598
602
|
end)
|
599
603
|
|
600
604
|
api.add_operation(:delete_trail, Seahorse::Model::Operation.new.tap do |o|
|
@@ -857,6 +861,7 @@ module Aws::CloudTrail
|
|
857
861
|
o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
|
858
862
|
o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
|
859
863
|
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
|
864
|
+
o.errors << Shapes::ShapeRef.new(shape: CloudTrailInvalidClientTokenIdException)
|
860
865
|
end)
|
861
866
|
end
|
862
867
|
|
@@ -29,6 +29,7 @@ module Aws::CloudTrail
|
|
29
29
|
# ## Error Classes
|
30
30
|
# * {CloudTrailARNInvalidException}
|
31
31
|
# * {CloudTrailAccessNotEnabledException}
|
32
|
+
# * {CloudTrailInvalidClientTokenIdException}
|
32
33
|
# * {CloudWatchLogsDeliveryUnavailableException}
|
33
34
|
# * {InsightNotEnabledException}
|
34
35
|
# * {InsufficientDependencyServiceAccessPermissionException}
|
@@ -96,6 +97,16 @@ module Aws::CloudTrail
|
|
96
97
|
end
|
97
98
|
end
|
98
99
|
|
100
|
+
class CloudTrailInvalidClientTokenIdException < ServiceError
|
101
|
+
|
102
|
+
# @param [Seahorse::Client::RequestContext] context
|
103
|
+
# @param [String] message
|
104
|
+
# @param [Aws::CloudTrail::Types::CloudTrailInvalidClientTokenIdException] data
|
105
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
106
|
+
super(context, message, data)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
99
110
|
class CloudWatchLogsDeliveryUnavailableException < ServiceError
|
100
111
|
|
101
112
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -52,11 +52,36 @@ module Aws::CloudTrail
|
|
52
52
|
#
|
53
53
|
class AddTagsResponse < Aws::EmptyStructure; end
|
54
54
|
|
55
|
+
# Advanced event selectors let you create fine-grained selectors for the
|
56
|
+
# following AWS CloudTrail event record fields. They help you control
|
57
|
+
# costs by logging only those events that are important to you. For more
|
58
|
+
# information about advanced event selectors, see [Logging data events
|
59
|
+
# for trails][1] in the *AWS CloudTrail User Guide*.
|
60
|
+
#
|
61
|
+
# * `readOnly`
|
62
|
+
#
|
63
|
+
# * `eventSource`
|
64
|
+
#
|
65
|
+
# * `eventName`
|
66
|
+
#
|
67
|
+
# * `eventCategory`
|
68
|
+
#
|
69
|
+
# * `resources.type`
|
70
|
+
#
|
71
|
+
# * `resources.ARN`
|
72
|
+
#
|
73
|
+
# You cannot apply both event selectors and advanced event selectors to
|
74
|
+
# a trail.
|
75
|
+
#
|
76
|
+
#
|
77
|
+
#
|
78
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
79
|
+
#
|
55
80
|
# @note When making an API call, you may pass AdvancedEventSelector
|
56
81
|
# data as a hash:
|
57
82
|
#
|
58
83
|
# {
|
59
|
-
# name: "SelectorName",
|
84
|
+
# name: "SelectorName",
|
60
85
|
# field_selectors: [ # required
|
61
86
|
# {
|
62
87
|
# field: "SelectorField", # required
|
@@ -71,9 +96,12 @@ module Aws::CloudTrail
|
|
71
96
|
# }
|
72
97
|
#
|
73
98
|
# @!attribute [rw] name
|
99
|
+
# An optional, descriptive name for an advanced event selector, such
|
100
|
+
# as "Log data events for only two S3 buckets".
|
74
101
|
# @return [String]
|
75
102
|
#
|
76
103
|
# @!attribute [rw] field_selectors
|
104
|
+
# Contains all selector statements in an advanced event selector.
|
77
105
|
# @return [Array<Types::AdvancedFieldSelector>]
|
78
106
|
#
|
79
107
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AdvancedEventSelector AWS API Documentation
|
@@ -85,6 +113,8 @@ module Aws::CloudTrail
|
|
85
113
|
include Aws::Structure
|
86
114
|
end
|
87
115
|
|
116
|
+
# A single selector statement in an advanced event selector.
|
117
|
+
#
|
88
118
|
# @note When making an API call, you may pass AdvancedFieldSelector
|
89
119
|
# data as a hash:
|
90
120
|
#
|
@@ -99,24 +129,85 @@ module Aws::CloudTrail
|
|
99
129
|
# }
|
100
130
|
#
|
101
131
|
# @!attribute [rw] field
|
132
|
+
# A field in an event record on which to filter events to be logged.
|
133
|
+
# Supported fields include `readOnly`, `eventCategory`, `eventSource`
|
134
|
+
# (for management events), `eventName`, `resources.type`, and
|
135
|
+
# `resources.ARN`.
|
136
|
+
#
|
137
|
+
# * <b> <code>readOnly</code> </b> - Optional. Can be set to `Equals`
|
138
|
+
# a value of `true` or `false`. A value of `false` logs both `read`
|
139
|
+
# and `write` events.
|
140
|
+
#
|
141
|
+
# * <b> <code>eventSource</code> </b> - For filtering management
|
142
|
+
# events only. This can be set only to `NotEquals`
|
143
|
+
# `kms.amazonaws.com`.
|
144
|
+
#
|
145
|
+
# * <b> <code>eventName</code> </b> - Can use any operator. You can
|
146
|
+
# use it to filter in or filter out any data event logged to
|
147
|
+
# CloudTrail, such as `PutBucket`. You can have multiple values for
|
148
|
+
# this field, separated by commas.
|
149
|
+
#
|
150
|
+
# * <b> <code>eventCategory</code> </b> - This is required. It must be
|
151
|
+
# set to `Equals`, and the value must be `Management` or `Data`.
|
152
|
+
#
|
153
|
+
# * <b> <code>resources.type</code> </b> - This field is required.
|
154
|
+
# `resources.type` can only use the `Equals` operator, and the value
|
155
|
+
# can be one of the following: `AWS::S3::Object` or
|
156
|
+
# `AWS::Lambda::Function`. You can have only one `resources.type`
|
157
|
+
# field per selector. To log data events on more than one resource
|
158
|
+
# type, add another selector.
|
159
|
+
#
|
160
|
+
# * <b> <code>resources.ARN</code> </b> - You can use any operator
|
161
|
+
# with resources.ARN, but if you use `Equals` or `NotEquals`, the
|
162
|
+
# value must exactly match the ARN of a valid resource of the type
|
163
|
+
# you've specified in the template as the value of resources.type.
|
164
|
+
# For example, if resources.type equals `AWS::S3::Object`, the ARN
|
165
|
+
# must be in one of the following formats. The trailing slash is
|
166
|
+
# intentional; do not exclude it.
|
167
|
+
#
|
168
|
+
# * `arn:partition:s3:::bucket_name/`
|
169
|
+
#
|
170
|
+
# * `arn:partition:s3:::bucket_name/object_or_file_name/`
|
171
|
+
#
|
172
|
+
# When resources.type equals `AWS::Lambda::Function`, and the
|
173
|
+
# operator is set to `Equals` or `NotEquals`, the ARN must be in the
|
174
|
+
# following format:
|
175
|
+
#
|
176
|
+
# * `arn:partition:lambda:region:account_ID:function:function_name`
|
177
|
+
#
|
178
|
+
# ^
|
102
179
|
# @return [String]
|
103
180
|
#
|
104
181
|
# @!attribute [rw] equals
|
182
|
+
# An operator that includes events that match the exact value of the
|
183
|
+
# event record field specified as the value of `Field`. This is the
|
184
|
+
# only valid operator that you can use with the `readOnly`,
|
185
|
+
# `eventCategory`, and `resources.type` fields.
|
105
186
|
# @return [Array<String>]
|
106
187
|
#
|
107
188
|
# @!attribute [rw] starts_with
|
189
|
+
# An operator that includes events that match the first few characters
|
190
|
+
# of the event record field specified as the value of `Field`.
|
108
191
|
# @return [Array<String>]
|
109
192
|
#
|
110
193
|
# @!attribute [rw] ends_with
|
194
|
+
# An operator that includes events that match the last few characters
|
195
|
+
# of the event record field specified as the value of `Field`.
|
111
196
|
# @return [Array<String>]
|
112
197
|
#
|
113
198
|
# @!attribute [rw] not_equals
|
199
|
+
# An operator that excludes events that match the exact value of the
|
200
|
+
# event record field specified as the value of `Field`.
|
114
201
|
# @return [Array<String>]
|
115
202
|
#
|
116
203
|
# @!attribute [rw] not_starts_with
|
204
|
+
# An operator that excludes events that match the first few characters
|
205
|
+
# of the event record field specified as the value of `Field`.
|
117
206
|
# @return [Array<String>]
|
118
207
|
#
|
119
208
|
# @!attribute [rw] not_ends_with
|
209
|
+
# An operator that excludes events that match the last few characters
|
210
|
+
# of the event record field specified as the value of `Field`.
|
120
211
|
# @return [Array<String>]
|
121
212
|
#
|
122
213
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AdvancedFieldSelector AWS API Documentation
|
@@ -156,6 +247,15 @@ module Aws::CloudTrail
|
|
156
247
|
#
|
157
248
|
class CloudTrailAccessNotEnabledException < Aws::EmptyStructure; end
|
158
249
|
|
250
|
+
# This exception is thrown when a call results in the
|
251
|
+
# `InvalidClientTokenId` error code. This can occur when you are
|
252
|
+
# creating or updating a trail to send notifications to an Amazon SNS
|
253
|
+
# topic that is in a suspended AWS account.
|
254
|
+
#
|
255
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudTrailInvalidClientTokenIdException AWS API Documentation
|
256
|
+
#
|
257
|
+
class CloudTrailInvalidClientTokenIdException < Aws::EmptyStructure; end
|
258
|
+
|
159
259
|
# Cannot set a CloudWatch Logs delivery for this region.
|
160
260
|
#
|
161
261
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudWatchLogsDeliveryUnavailableException AWS API Documentation
|
@@ -424,6 +524,10 @@ module Aws::CloudTrail
|
|
424
524
|
# distributed between 1 and 5 event selectors, but the total cannot
|
425
525
|
# exceed 250 across all selectors.
|
426
526
|
#
|
527
|
+
# If you are using advanced event selectors, the maximum total number of
|
528
|
+
# values for all conditions, across all advanced event selectors for the
|
529
|
+
# trail, is 500.
|
530
|
+
#
|
427
531
|
# </note>
|
428
532
|
#
|
429
533
|
# The following example demonstrates how logging works when you
|
@@ -707,6 +811,9 @@ module Aws::CloudTrail
|
|
707
811
|
#
|
708
812
|
# You can configure up to five event selectors for a trail.
|
709
813
|
#
|
814
|
+
# You cannot apply both event selectors and advanced event selectors to
|
815
|
+
# a trail.
|
816
|
+
#
|
710
817
|
# @note When making an API call, you may pass EventSelector
|
711
818
|
# data as a hash:
|
712
819
|
#
|
@@ -833,6 +940,7 @@ module Aws::CloudTrail
|
|
833
940
|
# @return [Array<Types::EventSelector>]
|
834
941
|
#
|
835
942
|
# @!attribute [rw] advanced_event_selectors
|
943
|
+
# The advanced event selectors that are configured for the trail.
|
836
944
|
# @return [Array<Types::AdvancedEventSelector>]
|
837
945
|
#
|
838
946
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectorsResponse AWS API Documentation
|
@@ -1185,11 +1293,14 @@ module Aws::CloudTrail
|
|
1185
1293
|
class InvalidEventCategoryException < Aws::EmptyStructure; end
|
1186
1294
|
|
1187
1295
|
# This exception is thrown when the `PutEventSelectors` operation is
|
1188
|
-
# called with a number of event selectors
|
1189
|
-
# valid. The combination of event selectors
|
1190
|
-
#
|
1191
|
-
#
|
1192
|
-
#
|
1296
|
+
# called with a number of event selectors, advanced event selectors, or
|
1297
|
+
# data resources that is not valid. The combination of event selectors
|
1298
|
+
# or advanced event selectors and data resources is not valid. A trail
|
1299
|
+
# can have up to 5 event selectors. If a trail uses advanced event
|
1300
|
+
# selectors, a maximum of 500 total values for all conditions in all
|
1301
|
+
# advanced event selectors is allowed. A trail is limited to 250 data
|
1302
|
+
# resources. These data resources can be distributed across event
|
1303
|
+
# selectors, but the overall total cannot exceed 250.
|
1193
1304
|
#
|
1194
1305
|
# You can:
|
1195
1306
|
#
|
@@ -1201,6 +1312,9 @@ module Aws::CloudTrail
|
|
1201
1312
|
# allowed only if the total number of data resources does not exceed
|
1202
1313
|
# 250 across all event selectors for a trail.
|
1203
1314
|
#
|
1315
|
+
# * Specify up to 500 values for all conditions in all advanced event
|
1316
|
+
# selectors for a trail.
|
1317
|
+
#
|
1204
1318
|
# * Specify a valid value for a parameter. For example, specifying the
|
1205
1319
|
# `ReadWriteType` parameter with a value of `read-only` is invalid.
|
1206
1320
|
#
|
@@ -1717,7 +1831,7 @@ module Aws::CloudTrail
|
|
1717
1831
|
# ],
|
1718
1832
|
# advanced_event_selectors: [
|
1719
1833
|
# {
|
1720
|
-
# name: "SelectorName",
|
1834
|
+
# name: "SelectorName",
|
1721
1835
|
# field_selectors: [ # required
|
1722
1836
|
# {
|
1723
1837
|
# field: "SelectorField", # required
|
@@ -1756,10 +1870,27 @@ module Aws::CloudTrail
|
|
1756
1870
|
#
|
1757
1871
|
# @!attribute [rw] event_selectors
|
1758
1872
|
# Specifies the settings for your event selectors. You can configure
|
1759
|
-
# up to five event selectors for a trail.
|
1873
|
+
# up to five event selectors for a trail. You can use either
|
1874
|
+
# `EventSelectors` or `AdvancedEventSelectors` in a
|
1875
|
+
# `PutEventSelectors` request, but not both. If you apply
|
1876
|
+
# `EventSelectors` to a trail, any existing `AdvancedEventSelectors`
|
1877
|
+
# are overwritten.
|
1760
1878
|
# @return [Array<Types::EventSelector>]
|
1761
1879
|
#
|
1762
1880
|
# @!attribute [rw] advanced_event_selectors
|
1881
|
+
# Specifies the settings for advanced event selectors. You can add
|
1882
|
+
# advanced event selectors, and conditions for your advanced event
|
1883
|
+
# selectors, up to a maximum of 500 values for all conditions and
|
1884
|
+
# selectors on a trail. You can use either `AdvancedEventSelectors` or
|
1885
|
+
# `EventSelectors`, but not both. If you apply
|
1886
|
+
# `AdvancedEventSelectors` to a trail, any existing `EventSelectors`
|
1887
|
+
# are overwritten. For more information about advanced event
|
1888
|
+
# selectors, see [Logging data events for trails][1] in the *AWS
|
1889
|
+
# CloudTrail User Guide*.
|
1890
|
+
#
|
1891
|
+
#
|
1892
|
+
#
|
1893
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
|
1763
1894
|
# @return [Array<Types::AdvancedEventSelector>]
|
1764
1895
|
#
|
1765
1896
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsRequest AWS API Documentation
|
@@ -1784,6 +1915,7 @@ module Aws::CloudTrail
|
|
1784
1915
|
# @return [Array<Types::EventSelector>]
|
1785
1916
|
#
|
1786
1917
|
# @!attribute [rw] advanced_event_selectors
|
1918
|
+
# Specifies the advanced event selectors configured for your trail.
|
1787
1919
|
# @return [Array<Types::AdvancedEventSelector>]
|
1788
1920
|
#
|
1789
1921
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsResponse AWS API Documentation
|
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.31.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: 2020-11
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|