aws-sdk-cloudtrail 1.28.0 → 1.33.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: ca2e38d223f4319eb07d99fde3ac23664816b975e236292e6ea97da9f2be86ed
4
- data.tar.gz: b65a607591cfce51642812a962fd8fa39a5686bca038e9491fbcfa2e86389d54
3
+ metadata.gz: 49fc047dc2d8263fa56384ecec867cdb0bd7cceeb492efe32ee6c58c445c4a65
4
+ data.tar.gz: febf25452d46c58817c0f230e6f5fa3e731a3b07f5f740d2c3f7cb027c51d783
5
5
  SHA512:
6
- metadata.gz: 68cff829f67ece7d4343f5e2ceb084b6f3a78b22fcffae5bc4907189dad5dc6164e0e89213f6e9945936dc6447e2cc6ff755d38e6270d4fc87fc2aba0a175488
7
- data.tar.gz: ffde1667a2cf7806cded4e541de21d3a16ec3d651e3faeded54c5c8a51641c6b9b3e4d99cb36ed9b9e6b8c200e33c78d84149e21e6084677003efce8e53d3d2e
6
+ metadata.gz: 2a5e88c72243fb91648a48072f719476ee8371df75b8dbd2aea77cdcf670e0c2845dac49e0816d90efb2dd9b806ca3c94e3eb834aed94b9517515ccac214cb2a
7
+ data.tar.gz: 23283771167743f47d5c7ec05ede848b057dc74c3d3e0c06102320a0b879bcb41d1696fdc5bdd7cbd9b1283da3298893054181167d9e8a4c01cbe88e8ca7db10
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-cloudtrail/customizations'
48
48
  # @!group service
49
49
  module Aws::CloudTrail
50
50
 
51
- GEM_VERSION = '1.28.0'
51
+ GEM_VERSION = '1.33.0'
52
52
 
53
53
  end
@@ -689,6 +689,7 @@ module Aws::CloudTrail
689
689
  #
690
690
  # * {Types::GetEventSelectorsResponse#trail_arn #trail_arn} => String
691
691
  # * {Types::GetEventSelectorsResponse#event_selectors #event_selectors} => Array<Types::EventSelector>
692
+ # * {Types::GetEventSelectorsResponse#advanced_event_selectors #advanced_event_selectors} => Array<Types::AdvancedEventSelector>
692
693
  #
693
694
  # @example Request syntax with placeholder values
694
695
  #
@@ -708,6 +709,22 @@ module Aws::CloudTrail
708
709
  # resp.event_selectors[0].data_resources[0].values[0] #=> String
709
710
  # resp.event_selectors[0].exclude_management_event_sources #=> Array
710
711
  # resp.event_selectors[0].exclude_management_event_sources[0] #=> String
712
+ # resp.advanced_event_selectors #=> Array
713
+ # resp.advanced_event_selectors[0].name #=> String
714
+ # resp.advanced_event_selectors[0].field_selectors #=> Array
715
+ # resp.advanced_event_selectors[0].field_selectors[0].field #=> String
716
+ # resp.advanced_event_selectors[0].field_selectors[0].equals #=> Array
717
+ # resp.advanced_event_selectors[0].field_selectors[0].equals[0] #=> String
718
+ # resp.advanced_event_selectors[0].field_selectors[0].starts_with #=> Array
719
+ # resp.advanced_event_selectors[0].field_selectors[0].starts_with[0] #=> String
720
+ # resp.advanced_event_selectors[0].field_selectors[0].ends_with #=> Array
721
+ # resp.advanced_event_selectors[0].field_selectors[0].ends_with[0] #=> String
722
+ # resp.advanced_event_selectors[0].field_selectors[0].not_equals #=> Array
723
+ # resp.advanced_event_selectors[0].field_selectors[0].not_equals[0] #=> String
724
+ # resp.advanced_event_selectors[0].field_selectors[0].not_starts_with #=> Array
725
+ # resp.advanced_event_selectors[0].field_selectors[0].not_starts_with[0] #=> String
726
+ # resp.advanced_event_selectors[0].field_selectors[0].not_ends_with #=> Array
727
+ # resp.advanced_event_selectors[0].field_selectors[0].not_ends_with[0] #=> String
711
728
  #
712
729
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors AWS API Documentation
713
730
  #
@@ -1065,8 +1082,8 @@ module Aws::CloudTrail
1065
1082
  # 50, with a maximum of 50 possible. The response includes a token that
1066
1083
  # you can use to get the next page of results.
1067
1084
  #
1068
- # The rate of lookup requests is limited to two per second per account.
1069
- # If this limit is exceeded, a throttling error occurs.
1085
+ # The rate of lookup requests is limited to two per second, per account,
1086
+ # per region. If this limit is exceeded, a throttling error occurs.
1070
1087
  #
1071
1088
  #
1072
1089
  #
@@ -1152,16 +1169,17 @@ module Aws::CloudTrail
1152
1169
  req.send_request(options)
1153
1170
  end
1154
1171
 
1155
- # Configures an event selector for your trail. Use event selectors to
1156
- # further specify the management and data event settings for your trail.
1157
- # By default, trails created without specific event selectors will be
1158
- # configured to log all read and write management events, and no data
1159
- # 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.
1160
1177
  #
1161
1178
  # When an event occurs in your account, CloudTrail evaluates the event
1162
- # selectors in all trails. For each trail, if the event matches any
1163
- # event selector, the trail processes and logs the event. If the event
1164
- # doesn't match any event selector, the trail doesn't log the event.
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.
1165
1183
  #
1166
1184
  # Example
1167
1185
  #
@@ -1177,21 +1195,30 @@ module Aws::CloudTrail
1177
1195
  # 4. The `RunInstances` is a write-only event and it matches your event
1178
1196
  # selector. The trail logs the event.
1179
1197
  #
1180
- # 5. The `GetConsoleOutput` is a read-only event but it doesn't match
1198
+ # 5. The `GetConsoleOutput` is a read-only event that doesn't match
1181
1199
  # your event selector. The trail doesn't log the event.
1182
1200
  #
1183
1201
  # The `PutEventSelectors` operation must be called from the region in
1184
1202
  # which the trail was created; otherwise, an
1185
- # `InvalidHomeRegionException` is thrown.
1203
+ # `InvalidHomeRegionException` exception is thrown.
1186
1204
  #
1187
1205
  # You can configure up to five event selectors for each trail. For more
1188
- # information, see [Logging Data and Management Events for Trails ][1]
1189
- # and [Limits in AWS CloudTrail][2] in the *AWS CloudTrail User Guide*.
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*.
1190
1216
  #
1191
1217
  #
1192
1218
  #
1193
1219
  # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html
1194
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
1195
1222
  #
1196
1223
  # @option params [required, String] :trail_name
1197
1224
  # Specifies the name of the trail or trail ARN. If you specify a trail
@@ -1213,20 +1240,38 @@ module Aws::CloudTrail
1213
1240
  #
1214
1241
  # `arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail`
1215
1242
  #
1216
- # @option params [required, Array<Types::EventSelector>] :event_selectors
1243
+ # @option params [Array<Types::EventSelector>] :event_selectors
1217
1244
  # Specifies the settings for your event selectors. You can configure up
1218
- # 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.
1249
+ #
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
1219
1263
  #
1220
1264
  # @return [Types::PutEventSelectorsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1221
1265
  #
1222
1266
  # * {Types::PutEventSelectorsResponse#trail_arn #trail_arn} => String
1223
1267
  # * {Types::PutEventSelectorsResponse#event_selectors #event_selectors} => Array&lt;Types::EventSelector&gt;
1268
+ # * {Types::PutEventSelectorsResponse#advanced_event_selectors #advanced_event_selectors} => Array&lt;Types::AdvancedEventSelector&gt;
1224
1269
  #
1225
1270
  # @example Request syntax with placeholder values
1226
1271
  #
1227
1272
  # resp = client.put_event_selectors({
1228
1273
  # trail_name: "String", # required
1229
- # event_selectors: [ # required
1274
+ # event_selectors: [
1230
1275
  # {
1231
1276
  # read_write_type: "ReadOnly", # accepts ReadOnly, WriteOnly, All
1232
1277
  # include_management_events: false,
@@ -1239,6 +1284,22 @@ module Aws::CloudTrail
1239
1284
  # exclude_management_event_sources: ["String"],
1240
1285
  # },
1241
1286
  # ],
1287
+ # advanced_event_selectors: [
1288
+ # {
1289
+ # name: "SelectorName",
1290
+ # field_selectors: [ # required
1291
+ # {
1292
+ # field: "SelectorField", # required
1293
+ # equals: ["OperatorValue"],
1294
+ # starts_with: ["OperatorValue"],
1295
+ # ends_with: ["OperatorValue"],
1296
+ # not_equals: ["OperatorValue"],
1297
+ # not_starts_with: ["OperatorValue"],
1298
+ # not_ends_with: ["OperatorValue"],
1299
+ # },
1300
+ # ],
1301
+ # },
1302
+ # ],
1242
1303
  # })
1243
1304
  #
1244
1305
  # @example Response structure
@@ -1253,6 +1314,22 @@ module Aws::CloudTrail
1253
1314
  # resp.event_selectors[0].data_resources[0].values[0] #=> String
1254
1315
  # resp.event_selectors[0].exclude_management_event_sources #=> Array
1255
1316
  # resp.event_selectors[0].exclude_management_event_sources[0] #=> String
1317
+ # resp.advanced_event_selectors #=> Array
1318
+ # resp.advanced_event_selectors[0].name #=> String
1319
+ # resp.advanced_event_selectors[0].field_selectors #=> Array
1320
+ # resp.advanced_event_selectors[0].field_selectors[0].field #=> String
1321
+ # resp.advanced_event_selectors[0].field_selectors[0].equals #=> Array
1322
+ # resp.advanced_event_selectors[0].field_selectors[0].equals[0] #=> String
1323
+ # resp.advanced_event_selectors[0].field_selectors[0].starts_with #=> Array
1324
+ # resp.advanced_event_selectors[0].field_selectors[0].starts_with[0] #=> String
1325
+ # resp.advanced_event_selectors[0].field_selectors[0].ends_with #=> Array
1326
+ # resp.advanced_event_selectors[0].field_selectors[0].ends_with[0] #=> String
1327
+ # resp.advanced_event_selectors[0].field_selectors[0].not_equals #=> Array
1328
+ # resp.advanced_event_selectors[0].field_selectors[0].not_equals[0] #=> String
1329
+ # resp.advanced_event_selectors[0].field_selectors[0].not_starts_with #=> Array
1330
+ # resp.advanced_event_selectors[0].field_selectors[0].not_starts_with[0] #=> String
1331
+ # resp.advanced_event_selectors[0].field_selectors[0].not_ends_with #=> Array
1332
+ # resp.advanced_event_selectors[0].field_selectors[0].not_ends_with[0] #=> String
1256
1333
  #
1257
1334
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectors AWS API Documentation
1258
1335
  #
@@ -1593,7 +1670,7 @@ module Aws::CloudTrail
1593
1670
  params: params,
1594
1671
  config: config)
1595
1672
  context[:gem_name] = 'aws-sdk-cloudtrail'
1596
- context[:gem_version] = '1.28.0'
1673
+ context[:gem_version] = '1.33.0'
1597
1674
  Seahorse::Client::Request.new(handlers, context)
1598
1675
  end
1599
1676
 
@@ -15,11 +15,17 @@ module Aws::CloudTrail
15
15
 
16
16
  AddTagsRequest = Shapes::StructureShape.new(name: 'AddTagsRequest')
17
17
  AddTagsResponse = Shapes::StructureShape.new(name: 'AddTagsResponse')
18
+ AdvancedEventSelector = Shapes::StructureShape.new(name: 'AdvancedEventSelector')
19
+ AdvancedEventSelectors = Shapes::ListShape.new(name: 'AdvancedEventSelectors')
20
+ AdvancedFieldSelector = Shapes::StructureShape.new(name: 'AdvancedFieldSelector')
21
+ AdvancedFieldSelectors = Shapes::ListShape.new(name: 'AdvancedFieldSelectors')
18
22
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
19
23
  ByteBuffer = Shapes::BlobShape.new(name: 'ByteBuffer')
20
24
  CloudTrailARNInvalidException = Shapes::StructureShape.new(name: 'CloudTrailARNInvalidException')
21
25
  CloudTrailAccessNotEnabledException = Shapes::StructureShape.new(name: 'CloudTrailAccessNotEnabledException')
26
+ CloudTrailInvalidClientTokenIdException = Shapes::StructureShape.new(name: 'CloudTrailInvalidClientTokenIdException')
22
27
  CloudWatchLogsDeliveryUnavailableException = Shapes::StructureShape.new(name: 'CloudWatchLogsDeliveryUnavailableException')
28
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
23
29
  CreateTrailRequest = Shapes::StructureShape.new(name: 'CreateTrailRequest')
24
30
  CreateTrailResponse = Shapes::StructureShape.new(name: 'CreateTrailResponse')
25
31
  DataResource = Shapes::StructureShape.new(name: 'DataResource')
@@ -89,6 +95,8 @@ module Aws::CloudTrail
89
95
  NextToken = Shapes::StringShape.new(name: 'NextToken')
90
96
  NotOrganizationMasterAccountException = Shapes::StructureShape.new(name: 'NotOrganizationMasterAccountException')
91
97
  OperationNotPermittedException = Shapes::StructureShape.new(name: 'OperationNotPermittedException')
98
+ Operator = Shapes::ListShape.new(name: 'Operator')
99
+ OperatorValue = Shapes::StringShape.new(name: 'OperatorValue')
92
100
  OrganizationNotInAllFeaturesModeException = Shapes::StructureShape.new(name: 'OrganizationNotInAllFeaturesModeException')
93
101
  OrganizationsNotInUseException = Shapes::StructureShape.new(name: 'OrganizationsNotInUseException')
94
102
  PublicKey = Shapes::StructureShape.new(name: 'PublicKey')
@@ -108,6 +116,8 @@ module Aws::CloudTrail
108
116
  ResourceTagList = Shapes::ListShape.new(name: 'ResourceTagList')
109
117
  ResourceTypeNotSupportedException = Shapes::StructureShape.new(name: 'ResourceTypeNotSupportedException')
110
118
  S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
119
+ SelectorField = Shapes::StringShape.new(name: 'SelectorField')
120
+ SelectorName = Shapes::StringShape.new(name: 'SelectorName')
111
121
  StartLoggingRequest = Shapes::StructureShape.new(name: 'StartLoggingRequest')
112
122
  StartLoggingResponse = Shapes::StructureShape.new(name: 'StartLoggingResponse')
113
123
  StopLoggingRequest = Shapes::StructureShape.new(name: 'StopLoggingRequest')
@@ -134,12 +144,33 @@ module Aws::CloudTrail
134
144
 
135
145
  AddTagsResponse.struct_class = Types::AddTagsResponse
136
146
 
147
+ AdvancedEventSelector.add_member(:name, Shapes::ShapeRef.new(shape: SelectorName, location_name: "Name"))
148
+ AdvancedEventSelector.add_member(:field_selectors, Shapes::ShapeRef.new(shape: AdvancedFieldSelectors, required: true, location_name: "FieldSelectors"))
149
+ AdvancedEventSelector.struct_class = Types::AdvancedEventSelector
150
+
151
+ AdvancedEventSelectors.member = Shapes::ShapeRef.new(shape: AdvancedEventSelector)
152
+
153
+ AdvancedFieldSelector.add_member(:field, Shapes::ShapeRef.new(shape: SelectorField, required: true, location_name: "Field"))
154
+ AdvancedFieldSelector.add_member(:equals, Shapes::ShapeRef.new(shape: Operator, location_name: "Equals"))
155
+ AdvancedFieldSelector.add_member(:starts_with, Shapes::ShapeRef.new(shape: Operator, location_name: "StartsWith"))
156
+ AdvancedFieldSelector.add_member(:ends_with, Shapes::ShapeRef.new(shape: Operator, location_name: "EndsWith"))
157
+ AdvancedFieldSelector.add_member(:not_equals, Shapes::ShapeRef.new(shape: Operator, location_name: "NotEquals"))
158
+ AdvancedFieldSelector.add_member(:not_starts_with, Shapes::ShapeRef.new(shape: Operator, location_name: "NotStartsWith"))
159
+ AdvancedFieldSelector.add_member(:not_ends_with, Shapes::ShapeRef.new(shape: Operator, location_name: "NotEndsWith"))
160
+ AdvancedFieldSelector.struct_class = Types::AdvancedFieldSelector
161
+
162
+ AdvancedFieldSelectors.member = Shapes::ShapeRef.new(shape: AdvancedFieldSelector)
163
+
137
164
  CloudTrailARNInvalidException.struct_class = Types::CloudTrailARNInvalidException
138
165
 
139
166
  CloudTrailAccessNotEnabledException.struct_class = Types::CloudTrailAccessNotEnabledException
140
167
 
168
+ CloudTrailInvalidClientTokenIdException.struct_class = Types::CloudTrailInvalidClientTokenIdException
169
+
141
170
  CloudWatchLogsDeliveryUnavailableException.struct_class = Types::CloudWatchLogsDeliveryUnavailableException
142
171
 
172
+ ConflictException.struct_class = Types::ConflictException
173
+
143
174
  CreateTrailRequest.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
144
175
  CreateTrailRequest.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketName"))
145
176
  CreateTrailRequest.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "S3KeyPrefix"))
@@ -217,6 +248,7 @@ module Aws::CloudTrail
217
248
 
218
249
  GetEventSelectorsResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
219
250
  GetEventSelectorsResponse.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
251
+ GetEventSelectorsResponse.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
220
252
  GetEventSelectorsResponse.struct_class = Types::GetEventSelectorsResponse
221
253
 
222
254
  GetInsightSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
@@ -359,6 +391,8 @@ module Aws::CloudTrail
359
391
 
360
392
  OperationNotPermittedException.struct_class = Types::OperationNotPermittedException
361
393
 
394
+ Operator.member = Shapes::ShapeRef.new(shape: OperatorValue)
395
+
362
396
  OrganizationNotInAllFeaturesModeException.struct_class = Types::OrganizationNotInAllFeaturesModeException
363
397
 
364
398
  OrganizationsNotInUseException.struct_class = Types::OrganizationsNotInUseException
@@ -372,11 +406,13 @@ module Aws::CloudTrail
372
406
  PublicKeyList.member = Shapes::ShapeRef.new(shape: PublicKey)
373
407
 
374
408
  PutEventSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
375
- PutEventSelectorsRequest.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, required: true, location_name: "EventSelectors"))
409
+ PutEventSelectorsRequest.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
410
+ PutEventSelectorsRequest.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
376
411
  PutEventSelectorsRequest.struct_class = Types::PutEventSelectorsRequest
377
412
 
378
413
  PutEventSelectorsResponse.add_member(:trail_arn, Shapes::ShapeRef.new(shape: String, location_name: "TrailARN"))
379
414
  PutEventSelectorsResponse.add_member(:event_selectors, Shapes::ShapeRef.new(shape: EventSelectors, location_name: "EventSelectors"))
415
+ PutEventSelectorsResponse.add_member(:advanced_event_selectors, Shapes::ShapeRef.new(shape: AdvancedEventSelectors, location_name: "AdvancedEventSelectors"))
380
416
  PutEventSelectorsResponse.struct_class = Types::PutEventSelectorsResponse
381
417
 
382
418
  PutInsightSelectorsRequest.add_member(:trail_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "TrailName"))
@@ -565,6 +601,7 @@ module Aws::CloudTrail
565
601
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
566
602
  o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
567
603
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
604
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailInvalidClientTokenIdException)
568
605
  end)
569
606
 
570
607
  api.add_operation(:delete_trail, Seahorse::Model::Operation.new.tap do |o|
@@ -580,6 +617,7 @@ module Aws::CloudTrail
580
617
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
581
618
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
582
619
  o.errors << Shapes::ShapeRef.new(shape: InsufficientDependencyServiceAccessPermissionException)
620
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
583
621
  end)
584
622
 
585
623
  api.add_operation(:describe_trails, Seahorse::Model::Operation.new.tap do |o|
@@ -743,6 +781,8 @@ module Aws::CloudTrail
743
781
  o.errors << Shapes::ShapeRef.new(shape: InvalidInsightSelectorsException)
744
782
  o.errors << Shapes::ShapeRef.new(shape: InsufficientS3BucketPolicyException)
745
783
  o.errors << Shapes::ShapeRef.new(shape: InsufficientEncryptionPolicyException)
784
+ o.errors << Shapes::ShapeRef.new(shape: S3BucketDoesNotExistException)
785
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
746
786
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
747
787
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
748
788
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
@@ -827,6 +867,7 @@ module Aws::CloudTrail
827
867
  o.errors << Shapes::ShapeRef.new(shape: OrganizationsNotInUseException)
828
868
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
829
869
  o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
870
+ o.errors << Shapes::ShapeRef.new(shape: CloudTrailInvalidClientTokenIdException)
830
871
  end)
831
872
  end
832
873
 
@@ -29,7 +29,9 @@ module Aws::CloudTrail
29
29
  # ## Error Classes
30
30
  # * {CloudTrailARNInvalidException}
31
31
  # * {CloudTrailAccessNotEnabledException}
32
+ # * {CloudTrailInvalidClientTokenIdException}
32
33
  # * {CloudWatchLogsDeliveryUnavailableException}
34
+ # * {ConflictException}
33
35
  # * {InsightNotEnabledException}
34
36
  # * {InsufficientDependencyServiceAccessPermissionException}
35
37
  # * {InsufficientEncryptionPolicyException}
@@ -96,6 +98,16 @@ module Aws::CloudTrail
96
98
  end
97
99
  end
98
100
 
101
+ class CloudTrailInvalidClientTokenIdException < ServiceError
102
+
103
+ # @param [Seahorse::Client::RequestContext] context
104
+ # @param [String] message
105
+ # @param [Aws::CloudTrail::Types::CloudTrailInvalidClientTokenIdException] data
106
+ def initialize(context, message, data = Aws::EmptyStructure.new)
107
+ super(context, message, data)
108
+ end
109
+ end
110
+
99
111
  class CloudWatchLogsDeliveryUnavailableException < ServiceError
100
112
 
101
113
  # @param [Seahorse::Client::RequestContext] context
@@ -106,6 +118,16 @@ module Aws::CloudTrail
106
118
  end
107
119
  end
108
120
 
121
+ class ConflictException < ServiceError
122
+
123
+ # @param [Seahorse::Client::RequestContext] context
124
+ # @param [String] message
125
+ # @param [Aws::CloudTrail::Types::ConflictException] data
126
+ def initialize(context, message, data = Aws::EmptyStructure.new)
127
+ super(context, message, data)
128
+ end
129
+ end
130
+
109
131
  class InsightNotEnabledException < ServiceError
110
132
 
111
133
  # @param [Seahorse::Client::RequestContext] context
@@ -52,6 +52,186 @@ 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
+ #
80
+ # @note When making an API call, you may pass AdvancedEventSelector
81
+ # data as a hash:
82
+ #
83
+ # {
84
+ # name: "SelectorName",
85
+ # field_selectors: [ # required
86
+ # {
87
+ # field: "SelectorField", # required
88
+ # equals: ["OperatorValue"],
89
+ # starts_with: ["OperatorValue"],
90
+ # ends_with: ["OperatorValue"],
91
+ # not_equals: ["OperatorValue"],
92
+ # not_starts_with: ["OperatorValue"],
93
+ # not_ends_with: ["OperatorValue"],
94
+ # },
95
+ # ],
96
+ # }
97
+ #
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".
101
+ # @return [String]
102
+ #
103
+ # @!attribute [rw] field_selectors
104
+ # Contains all selector statements in an advanced event selector.
105
+ # @return [Array<Types::AdvancedFieldSelector>]
106
+ #
107
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AdvancedEventSelector AWS API Documentation
108
+ #
109
+ class AdvancedEventSelector < Struct.new(
110
+ :name,
111
+ :field_selectors)
112
+ SENSITIVE = []
113
+ include Aws::Structure
114
+ end
115
+
116
+ # A single selector statement in an advanced event selector.
117
+ #
118
+ # @note When making an API call, you may pass AdvancedFieldSelector
119
+ # data as a hash:
120
+ #
121
+ # {
122
+ # field: "SelectorField", # required
123
+ # equals: ["OperatorValue"],
124
+ # starts_with: ["OperatorValue"],
125
+ # ends_with: ["OperatorValue"],
126
+ # not_equals: ["OperatorValue"],
127
+ # not_starts_with: ["OperatorValue"],
128
+ # not_ends_with: ["OperatorValue"],
129
+ # }
130
+ #
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`,
156
+ # `AWS::Lambda::Function`, or `AWS::S3Outposts::Object`. You can
157
+ # have only one `resources.type` field per selector. To log data
158
+ # events on more than one resource 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
+ # ^
179
+ #
180
+ # When `resources.type` equals `AWS::S3Outposts::Object`, and the
181
+ # operator is set to `Equals` or `NotEquals`, the ARN must be in the
182
+ # following format:
183
+ #
184
+ # * `arn:partition:s3-outposts:region:>account_ID:object_path`
185
+ #
186
+ # ^
187
+ # @return [String]
188
+ #
189
+ # @!attribute [rw] equals
190
+ # An operator that includes events that match the exact value of the
191
+ # event record field specified as the value of `Field`. This is the
192
+ # only valid operator that you can use with the `readOnly`,
193
+ # `eventCategory`, and `resources.type` fields.
194
+ # @return [Array<String>]
195
+ #
196
+ # @!attribute [rw] starts_with
197
+ # An operator that includes events that match the first few characters
198
+ # of the event record field specified as the value of `Field`.
199
+ # @return [Array<String>]
200
+ #
201
+ # @!attribute [rw] ends_with
202
+ # An operator that includes events that match the last few characters
203
+ # of the event record field specified as the value of `Field`.
204
+ # @return [Array<String>]
205
+ #
206
+ # @!attribute [rw] not_equals
207
+ # An operator that excludes events that match the exact value of the
208
+ # event record field specified as the value of `Field`.
209
+ # @return [Array<String>]
210
+ #
211
+ # @!attribute [rw] not_starts_with
212
+ # An operator that excludes events that match the first few characters
213
+ # of the event record field specified as the value of `Field`.
214
+ # @return [Array<String>]
215
+ #
216
+ # @!attribute [rw] not_ends_with
217
+ # An operator that excludes events that match the last few characters
218
+ # of the event record field specified as the value of `Field`.
219
+ # @return [Array<String>]
220
+ #
221
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/AdvancedFieldSelector AWS API Documentation
222
+ #
223
+ class AdvancedFieldSelector < Struct.new(
224
+ :field,
225
+ :equals,
226
+ :starts_with,
227
+ :ends_with,
228
+ :not_equals,
229
+ :not_starts_with,
230
+ :not_ends_with)
231
+ SENSITIVE = []
232
+ include Aws::Structure
233
+ end
234
+
55
235
  # This exception is thrown when an operation is called with an invalid
56
236
  # trail ARN. The format of a trail ARN is:
57
237
  #
@@ -75,12 +255,31 @@ module Aws::CloudTrail
75
255
  #
76
256
  class CloudTrailAccessNotEnabledException < Aws::EmptyStructure; end
77
257
 
258
+ # This exception is thrown when a call results in the
259
+ # `InvalidClientTokenId` error code. This can occur when you are
260
+ # creating or updating a trail to send notifications to an Amazon SNS
261
+ # topic that is in a suspended AWS account.
262
+ #
263
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudTrailInvalidClientTokenIdException AWS API Documentation
264
+ #
265
+ class CloudTrailInvalidClientTokenIdException < Aws::EmptyStructure; end
266
+
78
267
  # Cannot set a CloudWatch Logs delivery for this region.
79
268
  #
80
269
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/CloudWatchLogsDeliveryUnavailableException AWS API Documentation
81
270
  #
82
271
  class CloudWatchLogsDeliveryUnavailableException < Aws::EmptyStructure; end
83
272
 
273
+ # This exception is thrown when the specified resource is not ready for
274
+ # an operation. This can occur when you try to run an operation on a
275
+ # trail before CloudTrail has time to fully load the trail. If this
276
+ # exception occurs, wait a few minutes, and then try the operation
277
+ # again.
278
+ #
279
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ConflictException AWS API Documentation
280
+ #
281
+ class ConflictException < Aws::EmptyStructure; end
282
+
84
283
  # Specifies the settings for each trail.
85
284
  #
86
285
  # @note When making an API call, you may pass CreateTrailRequest
@@ -343,6 +542,10 @@ module Aws::CloudTrail
343
542
  # distributed between 1 and 5 event selectors, but the total cannot
344
543
  # exceed 250 across all selectors.
345
544
  #
545
+ # If you are using advanced event selectors, the maximum total number of
546
+ # values for all conditions, across all advanced event selectors for the
547
+ # trail, is 500.
548
+ #
346
549
  # </note>
347
550
  #
348
551
  # The following example demonstrates how logging works when you
@@ -396,6 +599,10 @@ module Aws::CloudTrail
396
599
  # @!attribute [rw] type
397
600
  # The resource type in which you want to log data events. You can
398
601
  # specify `AWS::S3::Object` or `AWS::Lambda::Function` resources.
602
+ #
603
+ # The `AWS::S3Outposts::Object` resource type is not valid in basic
604
+ # event selectors. To log data events on this resource type, use
605
+ # advanced event selectors.
399
606
  # @return [String]
400
607
  #
401
608
  # @!attribute [rw] values
@@ -626,6 +833,9 @@ module Aws::CloudTrail
626
833
  #
627
834
  # You can configure up to five event selectors for a trail.
628
835
  #
836
+ # You cannot apply both event selectors and advanced event selectors to
837
+ # a trail.
838
+ #
629
839
  # @note When making an API call, you may pass EventSelector
630
840
  # data as a hash:
631
841
  #
@@ -659,9 +869,15 @@ module Aws::CloudTrail
659
869
  #
660
870
  # By default, the value is `true`.
661
871
  #
872
+ # The first copy of management events is free. You are charged for
873
+ # additional copies of management events that you are logging on any
874
+ # subsequent trail in the same region. For more information about
875
+ # CloudTrail pricing, see [AWS CloudTrail Pricing][2].
876
+ #
662
877
  #
663
878
  #
664
879
  # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html#logging-management-events
880
+ # [2]: http://aws.amazon.com/cloudtrail/pricing/
665
881
  # @return [Boolean]
666
882
  #
667
883
  # @!attribute [rw] data_resources
@@ -745,11 +961,16 @@ module Aws::CloudTrail
745
961
  # The event selectors that are configured for the trail.
746
962
  # @return [Array<Types::EventSelector>]
747
963
  #
964
+ # @!attribute [rw] advanced_event_selectors
965
+ # The advanced event selectors that are configured for the trail.
966
+ # @return [Array<Types::AdvancedEventSelector>]
967
+ #
748
968
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectorsResponse AWS API Documentation
749
969
  #
750
970
  class GetEventSelectorsResponse < Struct.new(
751
971
  :trail_arn,
752
- :event_selectors)
972
+ :event_selectors,
973
+ :advanced_event_selectors)
753
974
  SENSITIVE = []
754
975
  include Aws::Structure
755
976
  end
@@ -1094,11 +1315,14 @@ module Aws::CloudTrail
1094
1315
  class InvalidEventCategoryException < Aws::EmptyStructure; end
1095
1316
 
1096
1317
  # This exception is thrown when the `PutEventSelectors` operation is
1097
- # called with a number of event selectors or data resources that is not
1098
- # valid. The combination of event selectors and data resources is not
1099
- # valid. A trail can have up to 5 event selectors. A trail is limited to
1100
- # 250 data resources. These data resources can be distributed across
1101
- # event selectors, but the overall total cannot exceed 250.
1318
+ # called with a number of event selectors, advanced event selectors, or
1319
+ # data resources that is not valid. The combination of event selectors
1320
+ # or advanced event selectors and data resources is not valid. A trail
1321
+ # can have up to 5 event selectors. If a trail uses advanced event
1322
+ # selectors, a maximum of 500 total values for all conditions in all
1323
+ # advanced event selectors is allowed. A trail is limited to 250 data
1324
+ # resources. These data resources can be distributed across event
1325
+ # selectors, but the overall total cannot exceed 250.
1102
1326
  #
1103
1327
  # You can:
1104
1328
  #
@@ -1110,6 +1334,9 @@ module Aws::CloudTrail
1110
1334
  # allowed only if the total number of data resources does not exceed
1111
1335
  # 250 across all event selectors for a trail.
1112
1336
  #
1337
+ # * Specify up to 500 values for all conditions in all advanced event
1338
+ # selectors for a trail.
1339
+ #
1113
1340
  # * Specify a valid value for a parameter. For example, specifying the
1114
1341
  # `ReadWriteType` parameter with a value of `read-only` is invalid.
1115
1342
  #
@@ -1240,8 +1467,10 @@ module Aws::CloudTrail
1240
1467
  #
1241
1468
  class KmsKeyDisabledException < Aws::EmptyStructure; end
1242
1469
 
1243
- # This exception is thrown when the KMS key does not exist, or when the
1244
- # S3 bucket and the KMS key are not in the same region.
1470
+ # This exception is thrown when the KMS key does not exist, when the S3
1471
+ # bucket and the KMS key are not in the same region, or when the KMS key
1472
+ # associated with the SNS topic either does not exist or is not in the
1473
+ # same region.
1245
1474
  #
1246
1475
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/KmsKeyNotFoundException AWS API Documentation
1247
1476
  #
@@ -1609,7 +1838,7 @@ module Aws::CloudTrail
1609
1838
  #
1610
1839
  # {
1611
1840
  # trail_name: "String", # required
1612
- # event_selectors: [ # required
1841
+ # event_selectors: [
1613
1842
  # {
1614
1843
  # read_write_type: "ReadOnly", # accepts ReadOnly, WriteOnly, All
1615
1844
  # include_management_events: false,
@@ -1622,6 +1851,22 @@ module Aws::CloudTrail
1622
1851
  # exclude_management_event_sources: ["String"],
1623
1852
  # },
1624
1853
  # ],
1854
+ # advanced_event_selectors: [
1855
+ # {
1856
+ # name: "SelectorName",
1857
+ # field_selectors: [ # required
1858
+ # {
1859
+ # field: "SelectorField", # required
1860
+ # equals: ["OperatorValue"],
1861
+ # starts_with: ["OperatorValue"],
1862
+ # ends_with: ["OperatorValue"],
1863
+ # not_equals: ["OperatorValue"],
1864
+ # not_starts_with: ["OperatorValue"],
1865
+ # not_ends_with: ["OperatorValue"],
1866
+ # },
1867
+ # ],
1868
+ # },
1869
+ # ],
1625
1870
  # }
1626
1871
  #
1627
1872
  # @!attribute [rw] trail_name
@@ -1647,14 +1892,35 @@ module Aws::CloudTrail
1647
1892
  #
1648
1893
  # @!attribute [rw] event_selectors
1649
1894
  # Specifies the settings for your event selectors. You can configure
1650
- # up to five event selectors for a trail.
1895
+ # up to five event selectors for a trail. You can use either
1896
+ # `EventSelectors` or `AdvancedEventSelectors` in a
1897
+ # `PutEventSelectors` request, but not both. If you apply
1898
+ # `EventSelectors` to a trail, any existing `AdvancedEventSelectors`
1899
+ # are overwritten.
1651
1900
  # @return [Array<Types::EventSelector>]
1652
1901
  #
1902
+ # @!attribute [rw] advanced_event_selectors
1903
+ # Specifies the settings for advanced event selectors. You can add
1904
+ # advanced event selectors, and conditions for your advanced event
1905
+ # selectors, up to a maximum of 500 values for all conditions and
1906
+ # selectors on a trail. You can use either `AdvancedEventSelectors` or
1907
+ # `EventSelectors`, but not both. If you apply
1908
+ # `AdvancedEventSelectors` to a trail, any existing `EventSelectors`
1909
+ # are overwritten. For more information about advanced event
1910
+ # selectors, see [Logging data events for trails][1] in the *AWS
1911
+ # CloudTrail User Guide*.
1912
+ #
1913
+ #
1914
+ #
1915
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html
1916
+ # @return [Array<Types::AdvancedEventSelector>]
1917
+ #
1653
1918
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsRequest AWS API Documentation
1654
1919
  #
1655
1920
  class PutEventSelectorsRequest < Struct.new(
1656
1921
  :trail_name,
1657
- :event_selectors)
1922
+ :event_selectors,
1923
+ :advanced_event_selectors)
1658
1924
  SENSITIVE = []
1659
1925
  include Aws::Structure
1660
1926
  end
@@ -1670,11 +1936,16 @@ module Aws::CloudTrail
1670
1936
  # Specifies the event selectors configured for your trail.
1671
1937
  # @return [Array<Types::EventSelector>]
1672
1938
  #
1939
+ # @!attribute [rw] advanced_event_selectors
1940
+ # Specifies the advanced event selectors configured for your trail.
1941
+ # @return [Array<Types::AdvancedEventSelector>]
1942
+ #
1673
1943
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/PutEventSelectorsResponse AWS API Documentation
1674
1944
  #
1675
1945
  class PutEventSelectorsResponse < Struct.new(
1676
1946
  :trail_arn,
1677
- :event_selectors)
1947
+ :event_selectors,
1948
+ :advanced_event_selectors)
1678
1949
  SENSITIVE = []
1679
1950
  include Aws::Structure
1680
1951
  end
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.28.0
4
+ version: 1.33.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-09-15 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.99.0
22
+ version: 3.112.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.99.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement