aws-sdk-cloudtrail 1.93.0 → 1.95.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: 5d705020268454db88d9bb9274609b25d25e395bbe3ca13c9aa6e4e6a3fe2c71
4
- data.tar.gz: 538ce499e46dcb1480052e747d11d16800b334815032508c460826bc1b06d760
3
+ metadata.gz: f56068834c783342fa9440675e3e4ff13169e842b6e25a4cc6aef0f82d64c6ac
4
+ data.tar.gz: 2da9e6afe6cf5981921e0c8da8f814611d51223606ceed93604523b98ebd8983
5
5
  SHA512:
6
- metadata.gz: d72fc6316258e2d4ebf8d8b829f62149d26c3f344140fdc8d6dcd3b4db7116a83f6692993978ca140222217d52ee4f7d6dff75a4cf330c044cc79ed525d29192
7
- data.tar.gz: f625284ab96c7bb3af40ef825160c1f0561b1471272146379af2d4ed3348b62e758567a87f0e1ff980981c75d2bd436c99eb6678a161f15abbcd5977b6990c36
6
+ metadata.gz: efca87aaaea31e43b03dbde31de0a3fcd0a984506ad2fb4cbaa3d30e15622bf86d5c50da31430db3989418a1db8f5cd3c47a51ebd71b919b68c68fe3e2998fa4
7
+ data.tar.gz: c35658a641e20469a6fe0f12f894d0bce38eec93ce6907dea5c4d69be0c8ff1d78e17e48e801eca08dc79055f081cb8e587d46b65bab5233561245fbd07eecd6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.95.0 (2024-11-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.94.0 (2024-11-13)
10
+ ------------------
11
+
12
+ * Feature - This release adds a new API GenerateQuery that generates a query from a natural language prompt about the event data in your event data store. This operation uses generative artificial intelligence (generative AI) to produce a ready-to-use SQL query from the prompt.
13
+
4
14
  1.93.0 (2024-10-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.93.0
1
+ 1.95.0
@@ -1185,6 +1185,7 @@ module Aws::CloudTrail
1185
1185
  # * {Types::DescribeQueryResponse#error_message #error_message} => String
1186
1186
  # * {Types::DescribeQueryResponse#delivery_s3_uri #delivery_s3_uri} => String
1187
1187
  # * {Types::DescribeQueryResponse#delivery_status #delivery_status} => String
1188
+ # * {Types::DescribeQueryResponse#prompt #prompt} => String
1188
1189
  #
1189
1190
  # @example Request syntax with placeholder values
1190
1191
  #
@@ -1207,6 +1208,7 @@ module Aws::CloudTrail
1207
1208
  # resp.error_message #=> String
1208
1209
  # resp.delivery_s3_uri #=> String
1209
1210
  # resp.delivery_status #=> String, one of "SUCCESS", "FAILED", "FAILED_SIGNING_FILE", "PENDING", "RESOURCE_NOT_FOUND", "ACCESS_DENIED", "ACCESS_DENIED_SIGNING_FILE", "CANCELLED", "UNKNOWN"
1211
+ # resp.prompt #=> String
1210
1212
  #
1211
1213
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeQuery AWS API Documentation
1212
1214
  #
@@ -1395,6 +1397,71 @@ module Aws::CloudTrail
1395
1397
  req.send_request(options)
1396
1398
  end
1397
1399
 
1400
+ # Generates a query from a natural language prompt. This operation uses
1401
+ # generative artificial intelligence (generative AI) to produce a
1402
+ # ready-to-use SQL query from the prompt.
1403
+ #
1404
+ # The prompt can be a question or a statement about the event data in
1405
+ # your event data store. For example, you can enter prompts like "What
1406
+ # are my top errors in the past month?" and “Give me a list of users
1407
+ # that used SNS.”
1408
+ #
1409
+ # The prompt must be in English. For information about limitations,
1410
+ # permissions, and supported Regions, see [Create CloudTrail Lake
1411
+ # queries from natural language prompts][1] in the <i>CloudTrail </i>
1412
+ # user guide.
1413
+ #
1414
+ # <note markdown="1"> Do not include any personally identifying, confidential, or sensitive
1415
+ # information in your prompts.
1416
+ #
1417
+ # This feature uses generative AI large language models (LLMs); we
1418
+ # recommend double-checking the LLM response.
1419
+ #
1420
+ # </note>
1421
+ #
1422
+ #
1423
+ #
1424
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html
1425
+ #
1426
+ # @option params [required, Array<String>] :event_data_stores
1427
+ # The ARN (or ID suffix of the ARN) of the event data store that you
1428
+ # want to query. You can only specify one event data store.
1429
+ #
1430
+ # @option params [required, String] :prompt
1431
+ # The prompt that you want to use to generate the query. The prompt must
1432
+ # be in English. For example prompts, see [Example prompts][1] in the
1433
+ # <i>CloudTrail </i> user guide.
1434
+ #
1435
+ #
1436
+ #
1437
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html#lake-query-generator-examples
1438
+ #
1439
+ # @return [Types::GenerateQueryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1440
+ #
1441
+ # * {Types::GenerateQueryResponse#query_statement #query_statement} => String
1442
+ # * {Types::GenerateQueryResponse#query_alias #query_alias} => String
1443
+ #
1444
+ # @example Request syntax with placeholder values
1445
+ #
1446
+ # resp = client.generate_query({
1447
+ # event_data_stores: ["EventDataStoreArn"], # required
1448
+ # prompt: "Prompt", # required
1449
+ # })
1450
+ #
1451
+ # @example Response structure
1452
+ #
1453
+ # resp.query_statement #=> String
1454
+ # resp.query_alias #=> String
1455
+ #
1456
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateQuery AWS API Documentation
1457
+ #
1458
+ # @overload generate_query(params = {})
1459
+ # @param [Hash] params ({})
1460
+ def generate_query(params = {}, options = {})
1461
+ req = build_request(:generate_query, params)
1462
+ req.send_request(options)
1463
+ end
1464
+
1398
1465
  # Returns information about a specific channel.
1399
1466
  #
1400
1467
  # @option params [required, String] :channel
@@ -3958,7 +4025,7 @@ module Aws::CloudTrail
3958
4025
  tracer: tracer
3959
4026
  )
3960
4027
  context[:gem_name] = 'aws-sdk-cloudtrail'
3961
- context[:gem_version] = '1.93.0'
4028
+ context[:gem_version] = '1.95.0'
3962
4029
  Seahorse::Client::Request.new(handlers, context)
3963
4030
  end
3964
4031
 
@@ -93,6 +93,7 @@ module Aws::CloudTrail
93
93
  EventDataStoreFederationEnabledException = Shapes::StructureShape.new(name: 'EventDataStoreFederationEnabledException')
94
94
  EventDataStoreHasOngoingImportException = Shapes::StructureShape.new(name: 'EventDataStoreHasOngoingImportException')
95
95
  EventDataStoreKmsKeyId = Shapes::StringShape.new(name: 'EventDataStoreKmsKeyId')
96
+ EventDataStoreList = Shapes::ListShape.new(name: 'EventDataStoreList')
96
97
  EventDataStoreMaxLimitExceededException = Shapes::StructureShape.new(name: 'EventDataStoreMaxLimitExceededException')
97
98
  EventDataStoreName = Shapes::StringShape.new(name: 'EventDataStoreName')
98
99
  EventDataStoreNotFoundException = Shapes::StructureShape.new(name: 'EventDataStoreNotFoundException')
@@ -107,6 +108,9 @@ module Aws::CloudTrail
107
108
  ExcludeManagementEventSources = Shapes::ListShape.new(name: 'ExcludeManagementEventSources')
108
109
  FederationRoleArn = Shapes::StringShape.new(name: 'FederationRoleArn')
109
110
  FederationStatus = Shapes::StringShape.new(name: 'FederationStatus')
111
+ GenerateQueryRequest = Shapes::StructureShape.new(name: 'GenerateQueryRequest')
112
+ GenerateQueryResponse = Shapes::StructureShape.new(name: 'GenerateQueryResponse')
113
+ GenerateResponseException = Shapes::StructureShape.new(name: 'GenerateResponseException')
110
114
  GetChannelRequest = Shapes::StructureShape.new(name: 'GetChannelRequest')
111
115
  GetChannelResponse = Shapes::StructureShape.new(name: 'GetChannelResponse')
112
116
  GetEventDataStoreRequest = Shapes::StructureShape.new(name: 'GetEventDataStoreRequest')
@@ -230,6 +234,7 @@ module Aws::CloudTrail
230
234
  PartitionKeyList = Shapes::ListShape.new(name: 'PartitionKeyList')
231
235
  PartitionKeyName = Shapes::StringShape.new(name: 'PartitionKeyName')
232
236
  PartitionKeyType = Shapes::StringShape.new(name: 'PartitionKeyType')
237
+ Prompt = Shapes::StringShape.new(name: 'Prompt')
233
238
  PublicKey = Shapes::StructureShape.new(name: 'PublicKey')
234
239
  PublicKeyList = Shapes::ListShape.new(name: 'PublicKeyList')
235
240
  PutEventSelectorsRequest = Shapes::StructureShape.new(name: 'PutEventSelectorsRequest')
@@ -506,6 +511,7 @@ module Aws::CloudTrail
506
511
  DescribeQueryResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
507
512
  DescribeQueryResponse.add_member(:delivery_s3_uri, Shapes::ShapeRef.new(shape: DeliveryS3Uri, location_name: "DeliveryS3Uri"))
508
513
  DescribeQueryResponse.add_member(:delivery_status, Shapes::ShapeRef.new(shape: DeliveryStatus, location_name: "DeliveryStatus"))
514
+ DescribeQueryResponse.add_member(:prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "Prompt"))
509
515
  DescribeQueryResponse.struct_class = Types::DescribeQueryResponse
510
516
 
511
517
  DescribeTrailsRequest.add_member(:trail_name_list, Shapes::ShapeRef.new(shape: TrailNameList, location_name: "trailNameList"))
@@ -568,6 +574,8 @@ module Aws::CloudTrail
568
574
 
569
575
  EventDataStoreHasOngoingImportException.struct_class = Types::EventDataStoreHasOngoingImportException
570
576
 
577
+ EventDataStoreList.member = Shapes::ShapeRef.new(shape: EventDataStoreArn)
578
+
571
579
  EventDataStoreMaxLimitExceededException.struct_class = Types::EventDataStoreMaxLimitExceededException
572
580
 
573
581
  EventDataStoreNotFoundException.struct_class = Types::EventDataStoreNotFoundException
@@ -588,6 +596,16 @@ module Aws::CloudTrail
588
596
 
589
597
  ExcludeManagementEventSources.member = Shapes::ShapeRef.new(shape: String)
590
598
 
599
+ GenerateQueryRequest.add_member(:event_data_stores, Shapes::ShapeRef.new(shape: EventDataStoreList, required: true, location_name: "EventDataStores"))
600
+ GenerateQueryRequest.add_member(:prompt, Shapes::ShapeRef.new(shape: Prompt, required: true, location_name: "Prompt"))
601
+ GenerateQueryRequest.struct_class = Types::GenerateQueryRequest
602
+
603
+ GenerateQueryResponse.add_member(:query_statement, Shapes::ShapeRef.new(shape: QueryStatement, location_name: "QueryStatement"))
604
+ GenerateQueryResponse.add_member(:query_alias, Shapes::ShapeRef.new(shape: QueryAlias, location_name: "QueryAlias"))
605
+ GenerateQueryResponse.struct_class = Types::GenerateQueryResponse
606
+
607
+ GenerateResponseException.struct_class = Types::GenerateResponseException
608
+
591
609
  GetChannelRequest.add_member(:channel, Shapes::ShapeRef.new(shape: ChannelArn, required: true, location_name: "Channel"))
592
610
  GetChannelRequest.struct_class = Types::GetChannelRequest
593
611
 
@@ -1567,6 +1585,22 @@ module Aws::CloudTrail
1567
1585
  o.errors << Shapes::ShapeRef.new(shape: EventDataStoreFederationEnabledException)
1568
1586
  end)
1569
1587
 
1588
+ api.add_operation(:generate_query, Seahorse::Model::Operation.new.tap do |o|
1589
+ o.name = "GenerateQuery"
1590
+ o.http_method = "POST"
1591
+ o.http_request_uri = "/"
1592
+ o.input = Shapes::ShapeRef.new(shape: GenerateQueryRequest)
1593
+ o.output = Shapes::ShapeRef.new(shape: GenerateQueryResponse)
1594
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreARNInvalidException)
1595
+ o.errors << Shapes::ShapeRef.new(shape: EventDataStoreNotFoundException)
1596
+ o.errors << Shapes::ShapeRef.new(shape: InactiveEventDataStoreException)
1597
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1598
+ o.errors << Shapes::ShapeRef.new(shape: GenerateResponseException)
1599
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1600
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
1601
+ o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
1602
+ end)
1603
+
1570
1604
  api.add_operation(:get_channel, Seahorse::Model::Operation.new.tap do |o|
1571
1605
  o.name = "GetChannel"
1572
1606
  o.http_method = "POST"
@@ -1993,6 +2027,7 @@ module Aws::CloudTrail
1993
2027
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
1994
2028
  o.errors << Shapes::ShapeRef.new(shape: NotOrganizationMasterAccountException)
1995
2029
  o.errors << Shapes::ShapeRef.new(shape: NoManagementAccountSLRExistsException)
2030
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1996
2031
  end)
1997
2032
 
1998
2033
  api.add_operation(:restore_event_data_store, Seahorse::Model::Operation.new.tap do |o|
@@ -52,6 +52,7 @@ module Aws::CloudTrail
52
52
  # * {EventDataStoreMaxLimitExceededException}
53
53
  # * {EventDataStoreNotFoundException}
54
54
  # * {EventDataStoreTerminationProtectedException}
55
+ # * {GenerateResponseException}
55
56
  # * {ImportNotFoundException}
56
57
  # * {InactiveEventDataStoreException}
57
58
  # * {InactiveQueryException}
@@ -367,6 +368,16 @@ module Aws::CloudTrail
367
368
  end
368
369
  end
369
370
 
371
+ class GenerateResponseException < ServiceError
372
+
373
+ # @param [Seahorse::Client::RequestContext] context
374
+ # @param [String] message
375
+ # @param [Aws::CloudTrail::Types::GenerateResponseException] data
376
+ def initialize(context, message, data = Aws::EmptyStructure.new)
377
+ super(context, message, data)
378
+ end
379
+ end
380
+
370
381
  class ImportNotFoundException < ServiceError
371
382
 
372
383
  # @param [Seahorse::Client::RequestContext] context
@@ -99,6 +99,16 @@ module Aws::CloudTrail
99
99
  #
100
100
  # * `readOnly`
101
101
  #
102
+ # The following additional fields are available for event data stores:
103
+ #
104
+ # * `eventName`
105
+ #
106
+ # * `eventType`
107
+ #
108
+ # * `sessionCredentialFromConsole`
109
+ #
110
+ # * `userIdentity.arn`
111
+ #
102
112
  # **Supported CloudTrail event record fields for data events**
103
113
  #
104
114
  # * `eventCategory` (required)
@@ -111,6 +121,16 @@ module Aws::CloudTrail
111
121
  #
112
122
  # * `resources.ARN`
113
123
  #
124
+ # The following additional fields are available for event data stores:
125
+ #
126
+ # * `eventSource`
127
+ #
128
+ # * `eventType`
129
+ #
130
+ # * `sessionCredentialFromConsole`
131
+ #
132
+ # * `userIdentity.arn`
133
+ #
114
134
  # **Supported CloudTrail event record fields for network activity
115
135
  # events**
116
136
  #
@@ -170,11 +190,16 @@ module Aws::CloudTrail
170
190
  # filtering is not supported.
171
191
  #
172
192
  # For CloudTrail management events, supported fields include
173
- # `eventCategory` (required), `eventSource`, and `readOnly`.
193
+ # `eventCategory` (required), `eventSource`, and `readOnly`. The
194
+ # following additional fields are available for event data stores:
195
+ # `eventName`, `eventType`, `sessionCredentialFromConsole`, and
196
+ # `userIdentity.arn`.
174
197
  #
175
198
  # For CloudTrail data events, supported fields include `eventCategory`
176
199
  # (required), `resources.type` (required), `eventName`, `readOnly`,
177
- # and `resources.ARN`.
200
+ # and `resources.ARN`. The following additional fields are available
201
+ # for event data stores: `eventSource`, `eventType`,
202
+ # `sessionCredentialFromConsole`, and `userIdentity.arn`.
178
203
  #
179
204
  # For CloudTrail network activity events, supported fields include
180
205
  # `eventCategory` (required), `eventSource` (required), `eventName`,
@@ -192,12 +217,17 @@ module Aws::CloudTrail
192
217
  # only `write` events.
193
218
  #
194
219
  # * <b> <code>eventSource</code> </b> - This field is only used for
195
- # management events and network activity events.
220
+ # management events, data events (for event data stores only), and
221
+ # network activity events.
196
222
  #
197
- # For management events, this is an optional field that can be set
198
- # to `NotEquals` `kms.amazonaws.com` to exclude KMS management
199
- # events, or `NotEquals` `rdsdata.amazonaws.com` to exclude RDS
200
- # management events.
223
+ # For management events for trails, this is an optional field that
224
+ # can be set to `NotEquals` `kms.amazonaws.com` to exclude KMS
225
+ # management events, or `NotEquals` `rdsdata.amazonaws.com` to
226
+ # exclude RDS management events.
227
+ #
228
+ # For management and data events for event data stores, you can use
229
+ # it to include or exclude any event source and can use any
230
+ # operator.
201
231
  #
202
232
  # For network activity events, this is a required field that only
203
233
  # uses the `Equals` operator. Set this field to the event source for
@@ -214,12 +244,12 @@ module Aws::CloudTrail
214
244
  # * `kms.amazonaws.com`
215
245
  #
216
246
  # * `secretsmanager.amazonaws.com`
217
- #
218
247
  # * <b> <code>eventName</code> </b> - This is an optional field that
219
- # is only used for data events and network activity events. You can
220
- # use any operator with `eventName`. You can use it to filter in or
221
- # filter out specific events. You can have multiple values for this
222
- # field, separated by commas.
248
+ # is only used for data events, management events (for event data
249
+ # stores only), and network activity events. You can use any
250
+ # operator with `eventName`. You can use it to filter in or filter out
251
+ # specific events. You can have multiple values for this field,
252
+ # separated by commas.
223
253
  #
224
254
  # * <b> <code>eventCategory</code> </b> - This field is required and
225
255
  # must be set to `Equals`.
@@ -231,7 +261,6 @@ module Aws::CloudTrail
231
261
  #
232
262
  # * For CloudTrail network activity events, the value must be
233
263
  # `NetworkActivity`.
234
- #
235
264
  # The following are used only for event data stores:
236
265
  #
237
266
  # * For CloudTrail Insights events, the value must be `Insight`.
@@ -241,8 +270,13 @@ module Aws::CloudTrail
241
270
  #
242
271
  # * For Audit Manager evidence, the value must be `Evidence`.
243
272
  #
244
- # * For non-Amazon Web Services events, the value must be
273
+ # * For events outside of Amazon Web Services, the value must be
245
274
  # `ActivityAuditLog`.
275
+ # * <b> <code>eventType</code> </b> - This is an optional field
276
+ # available only for event data stores, which is used to filter
277
+ # management and data events on the event type. For information
278
+ # about available event types, see [CloudTrail record contents][1]
279
+ # in the *CloudTrail user guide*.
246
280
  #
247
281
  # * <b> <code>errorCode</code> </b> - This field is only used to filter
248
282
  # CloudTrail network activity events and is optional. This is the
@@ -250,161 +284,19 @@ module Aws::CloudTrail
250
284
  # `VpceAccessDenied`. `errorCode` can only use the `Equals`
251
285
  # operator.
252
286
  #
287
+ # * <b> <code>sessionCredentialFromConsole</code> </b> - This is an
288
+ # optional field available only for event data stores, which is used
289
+ # to filter management and data events based on whether the events
290
+ # originated from an Amazon Web Services Management Console session.
291
+ # `sessionCredentialFromConsole` can only use the `Equals` and
292
+ # `NotEquals` operators.
293
+ #
253
294
  # * <b> <code>resources.type</code> </b> - This field is required for
254
295
  # CloudTrail data events. `resources.type` can only use the `Equals`
255
296
  # operator.
256
297
  #
257
- # The value can be one of the following:
258
- #
259
- # * `AWS::AppConfig::Configuration`
260
- #
261
- # * `AWS::B2BI::Transformer`
262
- #
263
- # * `AWS::Bedrock::AgentAlias`
264
- #
265
- # * `AWS::Bedrock::FlowAlias`
266
- #
267
- # * `AWS::Bedrock::Guardrail`
268
- #
269
- # * `AWS::Bedrock::KnowledgeBase`
270
- #
271
- # * `AWS::Cassandra::Table`
272
- #
273
- # * `AWS::CloudFront::KeyValueStore`
274
- #
275
- # * `AWS::CloudTrail::Channel`
276
- #
277
- # * `AWS::CloudWatch::Metric`
278
- #
279
- # * `AWS::CodeWhisperer::Customization`
280
- #
281
- # * `AWS::CodeWhisperer::Profile`
282
- #
283
- # * `AWS::Cognito::IdentityPool`
284
- #
285
- # * `AWS::DynamoDB::Stream`
286
- #
287
- # * `AWS::DynamoDB::Table`
288
- #
289
- # * `AWS::EC2::Snapshot`
290
- #
291
- # * `AWS::EMRWAL::Workspace`
292
- #
293
- # * `AWS::FinSpace::Environment`
294
- #
295
- # * `AWS::Glue::Table`
296
- #
297
- # * `AWS::GreengrassV2::ComponentVersion`
298
- #
299
- # * `AWS::GreengrassV2::Deployment`
300
- #
301
- # * `AWS::GuardDuty::Detector`
302
- #
303
- # * `AWS::IoT::Certificate`
304
- #
305
- # * `AWS::IoT::Thing`
306
- #
307
- # * `AWS::IoTSiteWise::Asset`
308
- #
309
- # * `AWS::IoTSiteWise::TimeSeries`
310
- #
311
- # * `AWS::IoTTwinMaker::Entity`
312
- #
313
- # * `AWS::IoTTwinMaker::Workspace`
314
- #
315
- # * `AWS::KendraRanking::ExecutionPlan`
316
- #
317
- # * `AWS::Kinesis::Stream`
318
- #
319
- # * `AWS::Kinesis::StreamConsumer`
320
- #
321
- # * `AWS::KinesisVideo::Stream`
322
- #
323
- # * `AWS::Lambda::Function`
324
- #
325
- # * `AWS::MachineLearning::MlModel`
326
- #
327
- # * `AWS::ManagedBlockchain::Network`
328
- #
329
- # * `AWS::ManagedBlockchain::Node`
330
- #
331
- # * `AWS::MedicalImaging::Datastore`
332
- #
333
- # * `AWS::NeptuneGraph::Graph`
334
- #
335
- # * `AWS::One::UKey`
336
- #
337
- # * `AWS::One::User`
338
- #
339
- # * `AWS::PaymentCryptography::Alias`
340
- #
341
- # * `AWS::PaymentCryptography::Key`
342
- #
343
- # * `AWS::PCAConnectorAD::Connector`
344
- #
345
- # * `AWS::PCAConnectorSCEP::Connector`
346
- #
347
- # * `AWS::QApps:QApp`
348
- #
349
- # * `AWS::QBusiness::Application`
350
- #
351
- # * `AWS::QBusiness::DataSource`
352
- #
353
- # * `AWS::QBusiness::Index`
354
- #
355
- # * `AWS::QBusiness::WebExperience`
356
- #
357
- # * `AWS::RDS::DBCluster`
358
- #
359
- # * `AWS::RUM::AppMonitor`
360
- #
361
- # * `AWS::S3::AccessPoint`
362
- #
363
- # * `AWS::S3::Object`
364
- #
365
- # * `AWS::S3Express::Object`
366
- #
367
- # * `AWS::S3ObjectLambda::AccessPoint`
368
- #
369
- # * `AWS::S3Outposts::Object`
370
- #
371
- # * `AWS::SageMaker::Endpoint`
372
- #
373
- # * `AWS::SageMaker::ExperimentTrialComponent`
374
- #
375
- # * `AWS::SageMaker::FeatureGroup`
376
- #
377
- # * `AWS::ServiceDiscovery::Namespace `
378
- #
379
- # * `AWS::ServiceDiscovery::Service`
380
- #
381
- # * `AWS::SCN::Instance`
382
- #
383
- # * `AWS::SNS::PlatformEndpoint`
384
- #
385
- # * `AWS::SNS::Topic`
386
- #
387
- # * `AWS::SQS::Queue`
388
- #
389
- # * `AWS::SSM::ManagedNode`
390
- #
391
- # * `AWS::SSMMessages::ControlChannel`
392
- #
393
- # * `AWS::StepFunctions::StateMachine`
394
- #
395
- # * `AWS::SWF::Domain`
396
- #
397
- # * `AWS::ThinClient::Device`
398
- #
399
- # * `AWS::ThinClient::Environment`
400
- #
401
- # * `AWS::Timestream::Database`
402
- #
403
- # * `AWS::Timestream::Table`
404
- #
405
- # * `AWS::VerifiedPermissions::PolicyStore`
406
- #
407
- # * `AWS::XRay::Trace`
298
+ # For a list of available resource types for data events, see [Data
299
+ # events][2] in the *CloudTrail User Guide*.
408
300
  #
409
301
  # You can have only one `resources.type` field per selector. To log
410
302
  # events on more than one resource type, add another selector.
@@ -419,7 +311,7 @@ module Aws::CloudTrail
419
311
  # matching value.
420
312
  #
421
313
  # For information about filtering data events on the `resources.ARN`
422
- # field, see [Filtering data events by resources.ARN][1] in the
314
+ # field, see [Filtering data events by resources.ARN][3] in the
423
315
  # *CloudTrail User Guide*.
424
316
  #
425
317
  # <note markdown="1"> You can't use the `resources.ARN` field to filter resource types
@@ -427,6 +319,13 @@ module Aws::CloudTrail
427
319
  #
428
320
  # </note>
429
321
  #
322
+ # * <b> <code>userIdentity.arn</code> </b> - This is an optional field
323
+ # available only for event data stores, which is used to filter
324
+ # management and data events on the userIdentity ARN. You can use
325
+ # any operator with `userIdentity.arn`. For more information on the
326
+ # userIdentity element, see [CloudTrail userIdentity element][4] in
327
+ # the *CloudTrail User Guide*.
328
+ #
430
329
  # * <b> <code>vpcEndpointId</code> </b> - This field is only used to
431
330
  # filter CloudTrail network activity events and is optional. This
432
331
  # field identifies the VPC endpoint that the request passed through.
@@ -434,7 +333,10 @@ module Aws::CloudTrail
434
333
  #
435
334
  #
436
335
  #
437
- # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn
336
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type
337
+ # [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events
338
+ # [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn
339
+ # [4]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html
438
340
  # @return [String]
439
341
  #
440
342
  # @!attribute [rw] equals
@@ -1284,12 +1186,11 @@ module Aws::CloudTrail
1284
1186
  # * `AWS::S3::Object`
1285
1187
  #
1286
1188
  # Additional resource types are available through *advanced* event
1287
- # selectors. For more information about these additional resource
1288
- # types, see [AdvancedFieldSelector][1].
1189
+ # selectors. For more information, see [AdvancedEventSelector][1].
1289
1190
  #
1290
1191
  #
1291
1192
  #
1292
- # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedFieldSelector.html
1193
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html
1293
1194
  # @return [String]
1294
1195
  #
1295
1196
  # @!attribute [rw] values
@@ -1514,6 +1415,16 @@ module Aws::CloudTrail
1514
1415
  # The delivery status.
1515
1416
  # @return [String]
1516
1417
  #
1418
+ # @!attribute [rw] prompt
1419
+ # The prompt used for a generated query. For information about
1420
+ # generated queries, see [Create CloudTrail Lake queries from natural
1421
+ # language prompts][1] in the <i>CloudTrail </i> user guide.
1422
+ #
1423
+ #
1424
+ #
1425
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html
1426
+ # @return [String]
1427
+ #
1517
1428
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeQueryResponse AWS API Documentation
1518
1429
  #
1519
1430
  class DescribeQueryResponse < Struct.new(
@@ -1523,7 +1434,8 @@ module Aws::CloudTrail
1523
1434
  :query_statistics,
1524
1435
  :error_message,
1525
1436
  :delivery_s3_uri,
1526
- :delivery_status)
1437
+ :delivery_status,
1438
+ :prompt)
1527
1439
  SENSITIVE = []
1528
1440
  include Aws::Structure
1529
1441
  end
@@ -1970,6 +1882,56 @@ module Aws::CloudTrail
1970
1882
  include Aws::Structure
1971
1883
  end
1972
1884
 
1885
+ # @!attribute [rw] event_data_stores
1886
+ # The ARN (or ID suffix of the ARN) of the event data store that you
1887
+ # want to query. You can only specify one event data store.
1888
+ # @return [Array<String>]
1889
+ #
1890
+ # @!attribute [rw] prompt
1891
+ # The prompt that you want to use to generate the query. The prompt
1892
+ # must be in English. For example prompts, see [Example prompts][1] in
1893
+ # the <i>CloudTrail </i> user guide.
1894
+ #
1895
+ #
1896
+ #
1897
+ # [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html#lake-query-generator-examples
1898
+ # @return [String]
1899
+ #
1900
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateQueryRequest AWS API Documentation
1901
+ #
1902
+ class GenerateQueryRequest < Struct.new(
1903
+ :event_data_stores,
1904
+ :prompt)
1905
+ SENSITIVE = []
1906
+ include Aws::Structure
1907
+ end
1908
+
1909
+ # @!attribute [rw] query_statement
1910
+ # The SQL query statement generated from the prompt.
1911
+ # @return [String]
1912
+ #
1913
+ # @!attribute [rw] query_alias
1914
+ # An alias that identifies the prompt. When you run the `StartQuery`
1915
+ # operation, you can pass in either the `QueryAlias` or
1916
+ # `QueryStatement` parameter.
1917
+ # @return [String]
1918
+ #
1919
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateQueryResponse AWS API Documentation
1920
+ #
1921
+ class GenerateQueryResponse < Struct.new(
1922
+ :query_statement,
1923
+ :query_alias)
1924
+ SENSITIVE = []
1925
+ include Aws::Structure
1926
+ end
1927
+
1928
+ # This exception is thrown when a valid query could not be generated for
1929
+ # the provided prompt.
1930
+ #
1931
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateResponseException AWS API Documentation
1932
+ #
1933
+ class GenerateResponseException < Aws::EmptyStructure; end
1934
+
1973
1935
  # @!attribute [rw] channel
1974
1936
  # The ARN or `UUID` of a channel.
1975
1937
  # @return [String]
@@ -54,7 +54,7 @@ module Aws::CloudTrail
54
54
  autoload :EndpointProvider, 'aws-sdk-cloudtrail/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-cloudtrail/endpoints'
56
56
 
57
- GEM_VERSION = '1.93.0'
57
+ GEM_VERSION = '1.95.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -273,6 +273,7 @@ module Aws
273
273
  def error_message: () -> ::String
274
274
  def delivery_s3_uri: () -> ::String
275
275
  def delivery_status: () -> ("SUCCESS" | "FAILED" | "FAILED_SIGNING_FILE" | "PENDING" | "RESOURCE_NOT_FOUND" | "ACCESS_DENIED" | "ACCESS_DENIED_SIGNING_FILE" | "CANCELLED" | "UNKNOWN")
276
+ def prompt: () -> ::String
276
277
  end
277
278
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#describe_query-instance_method
278
279
  def describe_query: (
@@ -317,6 +318,18 @@ module Aws
317
318
  ) -> _EnableFederationResponseSuccess
318
319
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _EnableFederationResponseSuccess
319
320
 
321
+ interface _GenerateQueryResponseSuccess
322
+ include ::Seahorse::Client::_ResponseSuccess[Types::GenerateQueryResponse]
323
+ def query_statement: () -> ::String
324
+ def query_alias: () -> ::String
325
+ end
326
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#generate_query-instance_method
327
+ def generate_query: (
328
+ event_data_stores: Array[::String],
329
+ prompt: ::String
330
+ ) -> _GenerateQueryResponseSuccess
331
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GenerateQueryResponseSuccess
332
+
320
333
  interface _GetChannelResponseSuccess
321
334
  include ::Seahorse::Client::_ResponseSuccess[Types::GetChannelResponse]
322
335
  def channel_arn: () -> ::String
data/sig/errors.rbs CHANGED
@@ -61,6 +61,8 @@ module Aws
61
61
  end
62
62
  class EventDataStoreTerminationProtectedException < ::Aws::Errors::ServiceError
63
63
  end
64
+ class GenerateResponseException < ::Aws::Errors::ServiceError
65
+ end
64
66
  class ImportNotFoundException < ::Aws::Errors::ServiceError
65
67
  end
66
68
  class InactiveEventDataStoreException < ::Aws::Errors::ServiceError
data/sig/types.rbs CHANGED
@@ -248,6 +248,7 @@ module Aws::CloudTrail
248
248
  attr_accessor error_message: ::String
249
249
  attr_accessor delivery_s3_uri: ::String
250
250
  attr_accessor delivery_status: ("SUCCESS" | "FAILED" | "FAILED_SIGNING_FILE" | "PENDING" | "RESOURCE_NOT_FOUND" | "ACCESS_DENIED" | "ACCESS_DENIED_SIGNING_FILE" | "CANCELLED" | "UNKNOWN")
251
+ attr_accessor prompt: ::String
251
252
  SENSITIVE: []
252
253
  end
253
254
 
@@ -348,6 +349,21 @@ module Aws::CloudTrail
348
349
  SENSITIVE: []
349
350
  end
350
351
 
352
+ class GenerateQueryRequest
353
+ attr_accessor event_data_stores: ::Array[::String]
354
+ attr_accessor prompt: ::String
355
+ SENSITIVE: []
356
+ end
357
+
358
+ class GenerateQueryResponse
359
+ attr_accessor query_statement: ::String
360
+ attr_accessor query_alias: ::String
361
+ SENSITIVE: []
362
+ end
363
+
364
+ class GenerateResponseException < Aws::EmptyStructure
365
+ end
366
+
351
367
  class GetChannelRequest
352
368
  attr_accessor channel: ::String
353
369
  SENSITIVE: []
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.93.0
4
+ version: 1.95.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: 2024-10-18 00:00:00.000000000 Z
11
+ date: 2024-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core