aws-sdk-cloudtrail 1.93.0 → 1.94.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +68 -1
- data/lib/aws-sdk-cloudtrail/client_api.rb +35 -0
- data/lib/aws-sdk-cloudtrail/errors.rb +11 -0
- data/lib/aws-sdk-cloudtrail/types.rb +134 -169
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- data/sig/client.rbs +13 -0
- data/sig/errors.rbs +2 -0
- data/sig/types.rbs +16 -0
- 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: 40acd8bcc6dded700013fbeaed424602161420c9fe228143db79d9a04a0d98e8
|
4
|
+
data.tar.gz: 12fbad4fe420619ae4b245d41c54a54c9b1b76a055bfc67ad95b2d5b3f487501
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bb3f1a932d77fe82f530107c2c6e9d52bbd960ccb79a39883b0c6aeeec8ae659169d40bb72e3d31ae97d21d7e9166963292b7f4cd08ad732b64bc8ce8f47b9d
|
7
|
+
data.tar.gz: 0d697553b988eb198bc0f9834e200425b08dea2e31a48a231e324f4285e0b9eb74919f0d9394ac4ef85d6b6432786a4673793f47c546590ef9cab9a97f626418
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.94.0 (2024-11-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* 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.
|
8
|
+
|
4
9
|
1.93.0 (2024-10-18)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.94.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.
|
4028
|
+
context[:gem_version] = '1.94.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
|
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
|
198
|
-
# to `NotEquals` `kms.amazonaws.com` to exclude KMS
|
199
|
-
# events, or `NotEquals` `rdsdata.amazonaws.com` to
|
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
|
@@ -216,10 +246,11 @@ module Aws::CloudTrail
|
|
216
246
|
# * `secretsmanager.amazonaws.com`
|
217
247
|
#
|
218
248
|
# * <b> <code>eventName</code> </b> - This is an optional field that
|
219
|
-
# is only used for data events
|
220
|
-
#
|
221
|
-
#
|
222
|
-
# field,
|
249
|
+
# is only used for data events, management events (for event data
|
250
|
+
# stores only), and network activity events. You can use any
|
251
|
+
# operator with `eventName`. You can use it to filter in or filter out
|
252
|
+
# specific events. You can have multiple values for this field,
|
253
|
+
# separated by commas.
|
223
254
|
#
|
224
255
|
# * <b> <code>eventCategory</code> </b> - This field is required and
|
225
256
|
# must be set to `Equals`.
|
@@ -241,170 +272,34 @@ module Aws::CloudTrail
|
|
241
272
|
#
|
242
273
|
# * For Audit Manager evidence, the value must be `Evidence`.
|
243
274
|
#
|
244
|
-
# * For
|
275
|
+
# * For events outside of Amazon Web Services, the value must be
|
245
276
|
# `ActivityAuditLog`.
|
246
277
|
#
|
278
|
+
# * <b> <code>eventType</code> </b> - This is an optional field
|
279
|
+
# available only for event data stores, which is used to filter
|
280
|
+
# management and data events on the event type. For information
|
281
|
+
# about available event types, see [CloudTrail record contents][1]
|
282
|
+
# in the *CloudTrail user guide*.
|
283
|
+
#
|
247
284
|
# * <b> <code>errorCode</code> </b> - This field is only used to filter
|
248
285
|
# CloudTrail network activity events and is optional. This is the
|
249
286
|
# error code to filter on. Currently, the only valid `errorCode` is
|
250
287
|
# `VpceAccessDenied`. `errorCode` can only use the `Equals`
|
251
288
|
# operator.
|
252
289
|
#
|
290
|
+
# * <b> <code>sessionCredentialFromConsole</code> </b> - This is an
|
291
|
+
# optional field available only for event data stores, which is used
|
292
|
+
# to filter management and data events based on whether the events
|
293
|
+
# originated from an Amazon Web Services Management Console session.
|
294
|
+
# `sessionCredentialFromConsole` can only use the `Equals` and
|
295
|
+
# `NotEquals` operators.
|
296
|
+
#
|
253
297
|
# * <b> <code>resources.type</code> </b> - This field is required for
|
254
298
|
# CloudTrail data events. `resources.type` can only use the `Equals`
|
255
299
|
# operator.
|
256
300
|
#
|
257
|
-
#
|
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`
|
301
|
+
# For a list of available resource types for data events, see [Data
|
302
|
+
# events][2] in the *CloudTrail User Guide*.
|
408
303
|
#
|
409
304
|
# You can have only one `resources.type` field per selector. To log
|
410
305
|
# events on more than one resource type, add another selector.
|
@@ -419,7 +314,7 @@ module Aws::CloudTrail
|
|
419
314
|
# matching value.
|
420
315
|
#
|
421
316
|
# For information about filtering data events on the `resources.ARN`
|
422
|
-
# field, see [Filtering data events by resources.ARN][
|
317
|
+
# field, see [Filtering data events by resources.ARN][3] in the
|
423
318
|
# *CloudTrail User Guide*.
|
424
319
|
#
|
425
320
|
# <note markdown="1"> You can't use the `resources.ARN` field to filter resource types
|
@@ -427,6 +322,13 @@ module Aws::CloudTrail
|
|
427
322
|
#
|
428
323
|
# </note>
|
429
324
|
#
|
325
|
+
# * <b> <code>userIdentity.arn</code> </b> - This is an optional field
|
326
|
+
# available only for event data stores, which is used to filter
|
327
|
+
# management and data events on the userIdentity ARN. You can use
|
328
|
+
# any operator with `userIdentity.arn`. For more information on the
|
329
|
+
# userIdentity element, see [CloudTrail userIdentity element][4] in
|
330
|
+
# the *CloudTrail User Guide*.
|
331
|
+
#
|
430
332
|
# * <b> <code>vpcEndpointId</code> </b> - This field is only used to
|
431
333
|
# filter CloudTrail network activity events and is optional. This
|
432
334
|
# field identifies the VPC endpoint that the request passed through.
|
@@ -434,7 +336,10 @@ module Aws::CloudTrail
|
|
434
336
|
#
|
435
337
|
#
|
436
338
|
#
|
437
|
-
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/
|
339
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-record-contents.html#ct-event-type
|
340
|
+
# [2]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#logging-data-events
|
341
|
+
# [3]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/filtering-data-events.html#filtering-data-events-resourcearn
|
342
|
+
# [4]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html
|
438
343
|
# @return [String]
|
439
344
|
#
|
440
345
|
# @!attribute [rw] equals
|
@@ -1284,12 +1189,11 @@ module Aws::CloudTrail
|
|
1284
1189
|
# * `AWS::S3::Object`
|
1285
1190
|
#
|
1286
1191
|
# Additional resource types are available through *advanced* event
|
1287
|
-
# selectors. For more information
|
1288
|
-
# types, see [AdvancedFieldSelector][1].
|
1192
|
+
# selectors. For more information, see [AdvancedEventSelector][1].
|
1289
1193
|
#
|
1290
1194
|
#
|
1291
1195
|
#
|
1292
|
-
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/
|
1196
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/APIReference/API_AdvancedEventSelector.html
|
1293
1197
|
# @return [String]
|
1294
1198
|
#
|
1295
1199
|
# @!attribute [rw] values
|
@@ -1514,6 +1418,16 @@ module Aws::CloudTrail
|
|
1514
1418
|
# The delivery status.
|
1515
1419
|
# @return [String]
|
1516
1420
|
#
|
1421
|
+
# @!attribute [rw] prompt
|
1422
|
+
# The prompt used for a generated query. For information about
|
1423
|
+
# generated queries, see [Create CloudTrail Lake queries from natural
|
1424
|
+
# language prompts][1] in the <i>CloudTrail </i> user guide.
|
1425
|
+
#
|
1426
|
+
#
|
1427
|
+
#
|
1428
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html
|
1429
|
+
# @return [String]
|
1430
|
+
#
|
1517
1431
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/DescribeQueryResponse AWS API Documentation
|
1518
1432
|
#
|
1519
1433
|
class DescribeQueryResponse < Struct.new(
|
@@ -1523,7 +1437,8 @@ module Aws::CloudTrail
|
|
1523
1437
|
:query_statistics,
|
1524
1438
|
:error_message,
|
1525
1439
|
:delivery_s3_uri,
|
1526
|
-
:delivery_status
|
1440
|
+
:delivery_status,
|
1441
|
+
:prompt)
|
1527
1442
|
SENSITIVE = []
|
1528
1443
|
include Aws::Structure
|
1529
1444
|
end
|
@@ -1970,6 +1885,56 @@ module Aws::CloudTrail
|
|
1970
1885
|
include Aws::Structure
|
1971
1886
|
end
|
1972
1887
|
|
1888
|
+
# @!attribute [rw] event_data_stores
|
1889
|
+
# The ARN (or ID suffix of the ARN) of the event data store that you
|
1890
|
+
# want to query. You can only specify one event data store.
|
1891
|
+
# @return [Array<String>]
|
1892
|
+
#
|
1893
|
+
# @!attribute [rw] prompt
|
1894
|
+
# The prompt that you want to use to generate the query. The prompt
|
1895
|
+
# must be in English. For example prompts, see [Example prompts][1] in
|
1896
|
+
# the <i>CloudTrail </i> user guide.
|
1897
|
+
#
|
1898
|
+
#
|
1899
|
+
#
|
1900
|
+
# [1]: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-query-generator.html#lake-query-generator-examples
|
1901
|
+
# @return [String]
|
1902
|
+
#
|
1903
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateQueryRequest AWS API Documentation
|
1904
|
+
#
|
1905
|
+
class GenerateQueryRequest < Struct.new(
|
1906
|
+
:event_data_stores,
|
1907
|
+
:prompt)
|
1908
|
+
SENSITIVE = []
|
1909
|
+
include Aws::Structure
|
1910
|
+
end
|
1911
|
+
|
1912
|
+
# @!attribute [rw] query_statement
|
1913
|
+
# The SQL query statement generated from the prompt.
|
1914
|
+
# @return [String]
|
1915
|
+
#
|
1916
|
+
# @!attribute [rw] query_alias
|
1917
|
+
# An alias that identifies the prompt. When you run the `StartQuery`
|
1918
|
+
# operation, you can pass in either the `QueryAlias` or
|
1919
|
+
# `QueryStatement` parameter.
|
1920
|
+
# @return [String]
|
1921
|
+
#
|
1922
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateQueryResponse AWS API Documentation
|
1923
|
+
#
|
1924
|
+
class GenerateQueryResponse < Struct.new(
|
1925
|
+
:query_statement,
|
1926
|
+
:query_alias)
|
1927
|
+
SENSITIVE = []
|
1928
|
+
include Aws::Structure
|
1929
|
+
end
|
1930
|
+
|
1931
|
+
# This exception is thrown when a valid query could not be generated for
|
1932
|
+
# the provided prompt.
|
1933
|
+
#
|
1934
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GenerateResponseException AWS API Documentation
|
1935
|
+
#
|
1936
|
+
class GenerateResponseException < Aws::EmptyStructure; end
|
1937
|
+
|
1973
1938
|
# @!attribute [rw] channel
|
1974
1939
|
# The ARN or `UUID` of a channel.
|
1975
1940
|
# @return [String]
|
data/lib/aws-sdk-cloudtrail.rb
CHANGED
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.
|
4
|
+
version: 1.94.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-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|