aws-sdk-cloudtrail 1.98.0 → 1.99.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudtrail/client.rb +57 -9
- data/lib/aws-sdk-cloudtrail/client_api.rb +38 -0
- data/lib/aws-sdk-cloudtrail/types.rb +83 -2
- data/lib/aws-sdk-cloudtrail.rb +1 -1
- data/sig/client.rbs +13 -0
- data/sig/types.rbs +21 -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: bc9aca08534f9deeb55d0fff7207fc0345ceba43d6a84e4dce182ccc9e338a52
|
4
|
+
data.tar.gz: 96030cece64be6f5cedf96ae2396bae711dbdaf1a56cda5968c866cd41fd536c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4117bd65d9851ee26e2f61861f88d89cac59a72fe7ca927d278efab0948aeea85fd309c2a7fb87dee94ce5827bbf3429cea0758556c6ea943410bc7e5fca17da
|
7
|
+
data.tar.gz: f73baf4f324b377286fbf6a72dd68c97fdd44d7d76fb5656bc7113548eec1bdcaab08f1f99f45c5650d960790053121bb5686d64d143acfe9b2d27a095b31436
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.99.0 (2025-01-24)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release introduces the SearchSampleQueries API that allows users to search for CloudTrail Lake sample queries.
|
8
|
+
|
4
9
|
1.98.0 (2025-01-15)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.99.0
|
@@ -2029,8 +2029,8 @@ module Aws::CloudTrail
|
|
2029
2029
|
# get Insights event selectors for a trail. You cannot specify these
|
2030
2030
|
# parameters together.
|
2031
2031
|
#
|
2032
|
-
# For more information, see [
|
2033
|
-
#
|
2032
|
+
# For more information, see [Working with CloudTrail Insights][1] in the
|
2033
|
+
# *CloudTrail User Guide*.
|
2034
2034
|
#
|
2035
2035
|
#
|
2036
2036
|
#
|
@@ -3059,10 +3059,11 @@ module Aws::CloudTrail
|
|
3059
3059
|
# If you want your trail to log Insights events, be sure the event
|
3060
3060
|
# selector or advanced event selector enables logging of the Insights
|
3061
3061
|
# event types you want configured for your trail. For more information
|
3062
|
-
# about logging Insights events, see [
|
3063
|
-
# *CloudTrail User Guide*. By default, trails
|
3064
|
-
# event selectors are configured to log all
|
3065
|
-
# events, and no data events or network
|
3062
|
+
# about logging Insights events, see [Working with CloudTrail
|
3063
|
+
# Insights][1] in the *CloudTrail User Guide*. By default, trails
|
3064
|
+
# created without specific event selectors are configured to log all
|
3065
|
+
# read and write management events, and no data events or network
|
3066
|
+
# activity events.
|
3066
3067
|
#
|
3067
3068
|
# When an event occurs in your account, CloudTrail evaluates the event
|
3068
3069
|
# selectors or advanced event selectors in all trails. For each trail,
|
@@ -3273,8 +3274,8 @@ module Aws::CloudTrail
|
|
3273
3274
|
# management events. You can call `GetEventDataStore` on an event data
|
3274
3275
|
# store to check whether the event data store logs management events.
|
3275
3276
|
#
|
3276
|
-
# For more information, see [
|
3277
|
-
#
|
3277
|
+
# For more information, see [Working with CloudTrail Insights][1] in the
|
3278
|
+
# *CloudTrail User Guide*.
|
3278
3279
|
#
|
3279
3280
|
#
|
3280
3281
|
#
|
@@ -3557,6 +3558,53 @@ module Aws::CloudTrail
|
|
3557
3558
|
req.send_request(options)
|
3558
3559
|
end
|
3559
3560
|
|
3561
|
+
# Searches sample queries and returns a list of sample queries that are
|
3562
|
+
# sorted by relevance. To search for sample queries, provide a natural
|
3563
|
+
# language `SearchPhrase` in English.
|
3564
|
+
#
|
3565
|
+
# @option params [required, String] :search_phrase
|
3566
|
+
# The natural language phrase to use for the semantic search. The phrase
|
3567
|
+
# must be in English. The length constraint is in characters, not words.
|
3568
|
+
#
|
3569
|
+
# @option params [Integer] :max_results
|
3570
|
+
# The maximum number of results to return on a single page. The default
|
3571
|
+
# value is 10.
|
3572
|
+
#
|
3573
|
+
# @option params [String] :next_token
|
3574
|
+
# A token you can use to get the next page of results. The length
|
3575
|
+
# constraint is in characters, not words.
|
3576
|
+
#
|
3577
|
+
# @return [Types::SearchSampleQueriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3578
|
+
#
|
3579
|
+
# * {Types::SearchSampleQueriesResponse#search_results #search_results} => Array<Types::SearchSampleQueriesSearchResult>
|
3580
|
+
# * {Types::SearchSampleQueriesResponse#next_token #next_token} => String
|
3581
|
+
#
|
3582
|
+
# @example Request syntax with placeholder values
|
3583
|
+
#
|
3584
|
+
# resp = client.search_sample_queries({
|
3585
|
+
# search_phrase: "SearchSampleQueriesSearchPhrase", # required
|
3586
|
+
# max_results: 1,
|
3587
|
+
# next_token: "PaginationToken",
|
3588
|
+
# })
|
3589
|
+
#
|
3590
|
+
# @example Response structure
|
3591
|
+
#
|
3592
|
+
# resp.search_results #=> Array
|
3593
|
+
# resp.search_results[0].name #=> String
|
3594
|
+
# resp.search_results[0].description #=> String
|
3595
|
+
# resp.search_results[0].sql #=> String
|
3596
|
+
# resp.search_results[0].relevance #=> Float
|
3597
|
+
# resp.next_token #=> String
|
3598
|
+
#
|
3599
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/SearchSampleQueries AWS API Documentation
|
3600
|
+
#
|
3601
|
+
# @overload search_sample_queries(params = {})
|
3602
|
+
# @param [Hash] params ({})
|
3603
|
+
def search_sample_queries(params = {}, options = {})
|
3604
|
+
req = build_request(:search_sample_queries, params)
|
3605
|
+
req.send_request(options)
|
3606
|
+
end
|
3607
|
+
|
3560
3608
|
# Starts a refresh of the specified dashboard.
|
3561
3609
|
#
|
3562
3610
|
# Each time a dashboard is refreshed, CloudTrail runs queries to
|
@@ -4536,7 +4584,7 @@ module Aws::CloudTrail
|
|
4536
4584
|
tracer: tracer
|
4537
4585
|
)
|
4538
4586
|
context[:gem_name] = 'aws-sdk-cloudtrail'
|
4539
|
-
context[:gem_version] = '1.
|
4587
|
+
context[:gem_version] = '1.99.0'
|
4540
4588
|
Seahorse::Client::Request.new(handlers, context)
|
4541
4589
|
end
|
4542
4590
|
|
@@ -306,6 +306,16 @@ module Aws::CloudTrail
|
|
306
306
|
RetentionPeriod = Shapes::IntegerShape.new(name: 'RetentionPeriod')
|
307
307
|
S3BucketDoesNotExistException = Shapes::StructureShape.new(name: 'S3BucketDoesNotExistException')
|
308
308
|
S3ImportSource = Shapes::StructureShape.new(name: 'S3ImportSource')
|
309
|
+
SampleQueryDescription = Shapes::StringShape.new(name: 'SampleQueryDescription')
|
310
|
+
SampleQueryName = Shapes::StringShape.new(name: 'SampleQueryName')
|
311
|
+
SampleQueryRelevance = Shapes::FloatShape.new(name: 'SampleQueryRelevance')
|
312
|
+
SampleQuerySQL = Shapes::StringShape.new(name: 'SampleQuerySQL')
|
313
|
+
SearchSampleQueriesMaxResults = Shapes::IntegerShape.new(name: 'SearchSampleQueriesMaxResults')
|
314
|
+
SearchSampleQueriesRequest = Shapes::StructureShape.new(name: 'SearchSampleQueriesRequest')
|
315
|
+
SearchSampleQueriesResponse = Shapes::StructureShape.new(name: 'SearchSampleQueriesResponse')
|
316
|
+
SearchSampleQueriesSearchPhrase = Shapes::StringShape.new(name: 'SearchSampleQueriesSearchPhrase')
|
317
|
+
SearchSampleQueriesSearchResult = Shapes::StructureShape.new(name: 'SearchSampleQueriesSearchResult')
|
318
|
+
SearchSampleQueriesSearchResults = Shapes::ListShape.new(name: 'SearchSampleQueriesSearchResults')
|
309
319
|
SelectorField = Shapes::StringShape.new(name: 'SelectorField')
|
310
320
|
SelectorName = Shapes::StringShape.new(name: 'SelectorName')
|
311
321
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
@@ -1213,6 +1223,23 @@ module Aws::CloudTrail
|
|
1213
1223
|
S3ImportSource.add_member(:s3_bucket_access_role_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "S3BucketAccessRoleArn"))
|
1214
1224
|
S3ImportSource.struct_class = Types::S3ImportSource
|
1215
1225
|
|
1226
|
+
SearchSampleQueriesRequest.add_member(:search_phrase, Shapes::ShapeRef.new(shape: SearchSampleQueriesSearchPhrase, required: true, location_name: "SearchPhrase"))
|
1227
|
+
SearchSampleQueriesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: SearchSampleQueriesMaxResults, location_name: "MaxResults"))
|
1228
|
+
SearchSampleQueriesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
1229
|
+
SearchSampleQueriesRequest.struct_class = Types::SearchSampleQueriesRequest
|
1230
|
+
|
1231
|
+
SearchSampleQueriesResponse.add_member(:search_results, Shapes::ShapeRef.new(shape: SearchSampleQueriesSearchResults, location_name: "SearchResults"))
|
1232
|
+
SearchSampleQueriesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
|
1233
|
+
SearchSampleQueriesResponse.struct_class = Types::SearchSampleQueriesResponse
|
1234
|
+
|
1235
|
+
SearchSampleQueriesSearchResult.add_member(:name, Shapes::ShapeRef.new(shape: SampleQueryName, location_name: "Name"))
|
1236
|
+
SearchSampleQueriesSearchResult.add_member(:description, Shapes::ShapeRef.new(shape: SampleQueryDescription, location_name: "Description"))
|
1237
|
+
SearchSampleQueriesSearchResult.add_member(:sql, Shapes::ShapeRef.new(shape: SampleQuerySQL, location_name: "SQL"))
|
1238
|
+
SearchSampleQueriesSearchResult.add_member(:relevance, Shapes::ShapeRef.new(shape: SampleQueryRelevance, location_name: "Relevance"))
|
1239
|
+
SearchSampleQueriesSearchResult.struct_class = Types::SearchSampleQueriesSearchResult
|
1240
|
+
|
1241
|
+
SearchSampleQueriesSearchResults.member = Shapes::ShapeRef.new(shape: SearchSampleQueriesSearchResult)
|
1242
|
+
|
1216
1243
|
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
1217
1244
|
|
1218
1245
|
SourceConfig.add_member(:apply_to_all_regions, Shapes::ShapeRef.new(shape: Boolean, location_name: "ApplyToAllRegions"))
|
@@ -2254,6 +2281,17 @@ module Aws::CloudTrail
|
|
2254
2281
|
o.errors << Shapes::ShapeRef.new(shape: OrganizationNotInAllFeaturesModeException)
|
2255
2282
|
end)
|
2256
2283
|
|
2284
|
+
api.add_operation(:search_sample_queries, Seahorse::Model::Operation.new.tap do |o|
|
2285
|
+
o.name = "SearchSampleQueries"
|
2286
|
+
o.http_method = "POST"
|
2287
|
+
o.http_request_uri = "/"
|
2288
|
+
o.input = Shapes::ShapeRef.new(shape: SearchSampleQueriesRequest)
|
2289
|
+
o.output = Shapes::ShapeRef.new(shape: SearchSampleQueriesResponse)
|
2290
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2291
|
+
o.errors << Shapes::ShapeRef.new(shape: UnsupportedOperationException)
|
2292
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
|
2293
|
+
end)
|
2294
|
+
|
2257
2295
|
api.add_operation(:start_dashboard_refresh, Seahorse::Model::Operation.new.tap do |o|
|
2258
2296
|
o.name = "StartDashboardRefresh"
|
2259
2297
|
o.http_method = "POST"
|
@@ -96,7 +96,7 @@ module Aws::CloudTrail
|
|
96
96
|
# a trail.
|
97
97
|
#
|
98
98
|
# For information about configurable advanced event selector fields, see
|
99
|
-
# [AdvancedEventSelector][4] in the *
|
99
|
+
# [AdvancedEventSelector][4] in the *CloudTrail API Reference*.
|
100
100
|
#
|
101
101
|
#
|
102
102
|
#
|
@@ -133,7 +133,14 @@ module Aws::CloudTrail
|
|
133
133
|
# filtering is not supported.
|
134
134
|
#
|
135
135
|
# For more information, see [AdvancedFieldSelector][1] in the
|
136
|
-
# *
|
136
|
+
# *CloudTrail API Reference*.
|
137
|
+
#
|
138
|
+
# <note markdown="1"> Selectors don't support the use of wildcards like `*` . To match
|
139
|
+
# multiple values with a single condition, you may use `StartsWith`,
|
140
|
+
# `EndsWith`, `NotStartsWith`, or `NotEndsWith` to explicitly match
|
141
|
+
# the beginning or end of the event field.
|
142
|
+
#
|
143
|
+
# </note>
|
137
144
|
#
|
138
145
|
#
|
139
146
|
#
|
@@ -4657,6 +4664,80 @@ module Aws::CloudTrail
|
|
4657
4664
|
include Aws::Structure
|
4658
4665
|
end
|
4659
4666
|
|
4667
|
+
# @!attribute [rw] search_phrase
|
4668
|
+
# The natural language phrase to use for the semantic search. The
|
4669
|
+
# phrase must be in English. The length constraint is in characters,
|
4670
|
+
# not words.
|
4671
|
+
# @return [String]
|
4672
|
+
#
|
4673
|
+
# @!attribute [rw] max_results
|
4674
|
+
# The maximum number of results to return on a single page. The
|
4675
|
+
# default value is 10.
|
4676
|
+
# @return [Integer]
|
4677
|
+
#
|
4678
|
+
# @!attribute [rw] next_token
|
4679
|
+
# A token you can use to get the next page of results. The length
|
4680
|
+
# constraint is in characters, not words.
|
4681
|
+
# @return [String]
|
4682
|
+
#
|
4683
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/SearchSampleQueriesRequest AWS API Documentation
|
4684
|
+
#
|
4685
|
+
class SearchSampleQueriesRequest < Struct.new(
|
4686
|
+
:search_phrase,
|
4687
|
+
:max_results,
|
4688
|
+
:next_token)
|
4689
|
+
SENSITIVE = []
|
4690
|
+
include Aws::Structure
|
4691
|
+
end
|
4692
|
+
|
4693
|
+
# @!attribute [rw] search_results
|
4694
|
+
# A list of objects containing the search results ordered from most
|
4695
|
+
# relevant to least relevant.
|
4696
|
+
# @return [Array<Types::SearchSampleQueriesSearchResult>]
|
4697
|
+
#
|
4698
|
+
# @!attribute [rw] next_token
|
4699
|
+
# A token you can use to get the next page of results.
|
4700
|
+
# @return [String]
|
4701
|
+
#
|
4702
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/SearchSampleQueriesResponse AWS API Documentation
|
4703
|
+
#
|
4704
|
+
class SearchSampleQueriesResponse < Struct.new(
|
4705
|
+
:search_results,
|
4706
|
+
:next_token)
|
4707
|
+
SENSITIVE = []
|
4708
|
+
include Aws::Structure
|
4709
|
+
end
|
4710
|
+
|
4711
|
+
# A search result returned by the `SearchSampleQueries` operation.
|
4712
|
+
#
|
4713
|
+
# @!attribute [rw] name
|
4714
|
+
# The name of a sample query.
|
4715
|
+
# @return [String]
|
4716
|
+
#
|
4717
|
+
# @!attribute [rw] description
|
4718
|
+
# A longer description of a sample query.
|
4719
|
+
# @return [String]
|
4720
|
+
#
|
4721
|
+
# @!attribute [rw] sql
|
4722
|
+
# The SQL code of the sample query.
|
4723
|
+
# @return [String]
|
4724
|
+
#
|
4725
|
+
# @!attribute [rw] relevance
|
4726
|
+
# A value between 0 and 1 indicating the similarity between the search
|
4727
|
+
# phrase and result.
|
4728
|
+
# @return [Float]
|
4729
|
+
#
|
4730
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/SearchSampleQueriesSearchResult AWS API Documentation
|
4731
|
+
#
|
4732
|
+
class SearchSampleQueriesSearchResult < Struct.new(
|
4733
|
+
:name,
|
4734
|
+
:description,
|
4735
|
+
:sql,
|
4736
|
+
:relevance)
|
4737
|
+
SENSITIVE = []
|
4738
|
+
include Aws::Structure
|
4739
|
+
end
|
4740
|
+
|
4660
4741
|
# This exception is thrown when the quota is exceeded. For information
|
4661
4742
|
# about CloudTrail quotas, see [Service quotas][1] in the *Amazon Web
|
4662
4743
|
# Services General Reference*.
|
data/lib/aws-sdk-cloudtrail.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -835,6 +835,19 @@ module Aws
|
|
835
835
|
) -> _RestoreEventDataStoreResponseSuccess
|
836
836
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreEventDataStoreResponseSuccess
|
837
837
|
|
838
|
+
interface _SearchSampleQueriesResponseSuccess
|
839
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::SearchSampleQueriesResponse]
|
840
|
+
def search_results: () -> ::Array[Types::SearchSampleQueriesSearchResult]
|
841
|
+
def next_token: () -> ::String
|
842
|
+
end
|
843
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudTrail/Client.html#search_sample_queries-instance_method
|
844
|
+
def search_sample_queries: (
|
845
|
+
search_phrase: ::String,
|
846
|
+
?max_results: ::Integer,
|
847
|
+
?next_token: ::String
|
848
|
+
) -> _SearchSampleQueriesResponseSuccess
|
849
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _SearchSampleQueriesResponseSuccess
|
850
|
+
|
838
851
|
interface _StartDashboardRefreshResponseSuccess
|
839
852
|
include ::Seahorse::Client::_ResponseSuccess[Types::StartDashboardRefreshResponse]
|
840
853
|
def refresh_id: () -> ::String
|
data/sig/types.rbs
CHANGED
@@ -1095,6 +1095,27 @@ module Aws::CloudTrail
|
|
1095
1095
|
SENSITIVE: []
|
1096
1096
|
end
|
1097
1097
|
|
1098
|
+
class SearchSampleQueriesRequest
|
1099
|
+
attr_accessor search_phrase: ::String
|
1100
|
+
attr_accessor max_results: ::Integer
|
1101
|
+
attr_accessor next_token: ::String
|
1102
|
+
SENSITIVE: []
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
class SearchSampleQueriesResponse
|
1106
|
+
attr_accessor search_results: ::Array[Types::SearchSampleQueriesSearchResult]
|
1107
|
+
attr_accessor next_token: ::String
|
1108
|
+
SENSITIVE: []
|
1109
|
+
end
|
1110
|
+
|
1111
|
+
class SearchSampleQueriesSearchResult
|
1112
|
+
attr_accessor name: ::String
|
1113
|
+
attr_accessor description: ::String
|
1114
|
+
attr_accessor sql: ::String
|
1115
|
+
attr_accessor relevance: ::Float
|
1116
|
+
SENSITIVE: []
|
1117
|
+
end
|
1118
|
+
|
1098
1119
|
class ServiceQuotaExceededException < Aws::EmptyStructure
|
1099
1120
|
end
|
1100
1121
|
|
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.99.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: 2025-01-
|
11
|
+
date: 2025-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|