aws-sdk-cloudtrail 1.92.0 → 1.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -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/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-cloudtrail/endpoints.rb +2 -537
- data/lib/aws-sdk-cloudtrail/errors.rb +11 -0
- data/lib/aws-sdk-cloudtrail/plugins/endpoints.rb +1 -104
- 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 +4 -4
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,16 @@
|
|
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
|
+
|
9
|
+
1.93.0 (2024-10-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.92.0 (2024-09-25)
|
5
15
|
------------------
|
6
16
|
|
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,15 +52,18 @@ module Aws::CloudTrail
|
|
52
52
|
self[:region] = options[:region]
|
53
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
-
if self[:use_dual_stack].nil?
|
56
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
-
end
|
58
55
|
self[:use_fips] = options[:use_fips]
|
59
56
|
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
-
if self[:use_fips].nil?
|
61
|
-
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
-
end
|
63
57
|
self[:endpoint] = options[:endpoint]
|
64
58
|
end
|
59
|
+
|
60
|
+
def self.create(config, options={})
|
61
|
+
new({
|
62
|
+
region: config.region,
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
64
|
+
use_fips: config.use_fips_endpoint,
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
66
|
+
}.merge(options))
|
67
|
+
end
|
65
68
|
end
|
66
69
|
end
|