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.
@@ -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
@@ -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 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.
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 non-Amazon Web Services events, the value must be
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
- # 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`
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][1] in the
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/filtering-data-events.html#filtering-data-events-resourcearn
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 about these additional resource
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/API_AdvancedFieldSelector.html
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]
@@ -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.92.0'
57
+ GEM_VERSION = '1.94.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.92.0
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-09-25 00:00:00.000000000 Z
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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement