Expand description
Data structures used by operation inputs/outputs.
Modules§
Structs§
- Advanced
Event Selector Advanced event selectors let you create fine-grained selectors for CloudTrail management, data, and network activity events. They help you control costs by logging only those events that are important to you. For more information about configuring advanced event selectors, see the Logging data events, Logging network activity events, and Logging management events topics in the CloudTrail User Guide.
You cannot apply both event selectors and advanced event selectors to a trail.
For information about configurable advanced event selector fields, see AdvancedEventSelector in the CloudTrail API Reference.
- Advanced
Field Selector A single selector statement in an advanced event selector.
- Aggregation
Configuration An object that contains configuration settings for aggregating events.
- Channel
Contains information about a returned CloudTrail channel.
- Context
KeySelector An object that contains information types to be included in CloudTrail enriched events.
- Dashboard
Detail Provides information about a CloudTrail Lake dashboard.
- Data
Resource You can configure the
DataResourcein anEventSelectorto log data events for the following three resource types:-
AWS::DynamoDB::Table -
AWS::Lambda::Function -
AWS::S3::Object
To log data events for all other resource types including objects stored in directory buckets, you must use AdvancedEventSelectors. You must also use
AdvancedEventSelectorsif you want to filter on theeventNamefield.Configure the
DataResourceto specify the resource type and resource ARNs for which you want to log data events.The total number of allowed data resources is 250. This number can be distributed between 1 and 5 event selectors, but the total cannot exceed 250 across all selectors for the trail.
The following example demonstrates how logging works when you configure logging of all data events for a general purpose bucket named
amzn-s3-demo-bucket1. In this example, the CloudTrail user specified an empty prefix, and the option to log bothReadandWritedata events.-
A user uploads an image file to
amzn-s3-demo-bucket1. -
The
PutObjectAPI operation is an Amazon S3 object-level API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified an S3 bucket with an empty prefix, events that occur on any object in that bucket are logged. The trail processes and logs the event. -
A user uploads an object to an Amazon S3 bucket named
arn:aws:s3:::amzn-s3-demo-bucket1. -
The
PutObjectAPI operation occurred for an object in an S3 bucket that the CloudTrail user didn't specify for the trail. The trail doesn’t log the event.
The following example demonstrates how logging works when you configure logging of Lambda data events for a Lambda function named MyLambdaFunction, but not for all Lambda functions.
-
A user runs a script that includes a call to the MyLambdaFunction function and the MyOtherLambdaFunction function.
-
The
InvokeAPI operation on MyLambdaFunction is an Lambda API. It is recorded as a data event in CloudTrail. Because the CloudTrail user specified logging data events for MyLambdaFunction, any invocations of that function are logged. The trail processes and logs the event. -
The
InvokeAPI operation on MyOtherLambdaFunction is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, theInvokeoperation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.
-
- Destination
Contains information about the destination receiving events.
- Event
Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.
- Event
Data Store A storage lake of event data against which you can run complex SQL-based queries. An event data store can include events that you have logged on your account. To select events for an event data store, use advanced event selectors.
- Event
Selector Use event selectors to further specify the management and data event settings for your trail. By default, trails created without specific event selectors will be configured to log all read and write management events, and no data events. When an event occurs in your account, CloudTrail evaluates the event selector for all trails. For each trail, if the event matches any event selector, the trail processes and logs the event. If the event doesn't match any event selector, the trail doesn't log the event.
You can configure up to five event selectors for a trail.
You cannot apply both event selectors and advanced event selectors to a trail.
- Import
Failure List Item Provides information about an import failure.
- Import
Source The import source.
- Import
Statistics Provides statistics for the specified
ImportID. CloudTrail does not update import statistics in real-time. Returned values for parameters such asEventsCompletedmay be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.- Imports
List Item Contains information about an import that was returned by a lookup request.
- Ingestion
Status A table showing information about the most recent successful and failed attempts to ingest events.
- Insight
Selector A JSON string that contains a list of Insights types that are logged on a trail or event data store.
- Lookup
Attribute Specifies an attribute and value that filter the events returned.
- Partition
Key Contains information about a partition key for an event data store.
- Public
Key Contains information about a returned public key.
- Query
A SQL string of criteria about events that you want to collect in an event data store.
- Query
Statistics Metadata about a query, such as the number of results.
- Query
Statistics ForDescribe Query Gets metadata about a query, including the number of events that were matched, the total number of events scanned, the query run time in milliseconds, and the query's creation time.
- Refresh
Schedule The schedule for a dashboard refresh.
- Refresh
Schedule Frequency Specifies the frequency for a dashboard refresh schedule.
For a custom dashboard, you can schedule a refresh for every 1, 6, 12, or 24 hours, or every day.
- Request
Widget Contains information about a widget on a CloudTrail Lake dashboard.
- Resource
Specifies the type and name of a resource referenced by an event.
- Resource
Tag A resource tag.
- S3Import
Source The settings for the source S3 bucket.
- Search
Sample Queries Search Result A search result returned by the
SearchSampleQueriesoperation.- Source
Config Contains configuration information about the channel.
- Tag
A custom key-value pair associated with a resource such as a CloudTrail trail, event data store, dashboard, or channel.
- Trail
The settings for a trail.
- Trail
Info Information about a CloudTrail trail, including the trail's name, home Region, and Amazon Resource Name (ARN).
- Widget
A widget on a CloudTrail Lake dashboard.
Enums§
- Billing
Mode - When writing a match expression against
BillingMode, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Dashboard
Status - When writing a match expression against
DashboardStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Dashboard
Type - When writing a match expression against
DashboardType, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Delivery
Status - When writing a match expression against
DeliveryStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Destination
Type - When writing a match expression against
DestinationType, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Event
Category - When writing a match expression against
EventCategory, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Event
Category Aggregation - When writing a match expression against
EventCategoryAggregation, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Event
Data Store Status - When writing a match expression against
EventDataStoreStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Federation
Status - When writing a match expression against
FederationStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Import
Failure Status - When writing a match expression against
ImportFailureStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Import
Status - When writing a match expression against
ImportStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Insight
Type - When writing a match expression against
InsightType, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Insights
Metric Data Type - When writing a match expression against
InsightsMetricDataType, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - List
Insights Data Dimension Key - When writing a match expression against
ListInsightsDataDimensionKey, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - List
Insights Data Type - When writing a match expression against
ListInsightsDataType, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Lookup
Attribute Key - When writing a match expression against
LookupAttributeKey, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - MaxEvent
Size - When writing a match expression against
MaxEventSize, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Query
Status - When writing a match expression against
QueryStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Read
Write Type - When writing a match expression against
ReadWriteType, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Refresh
Schedule Frequency Unit - When writing a match expression against
RefreshScheduleFrequencyUnit, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Refresh
Schedule Status - When writing a match expression against
RefreshScheduleStatus, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Source
Event Category - When writing a match expression against
SourceEventCategory, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Template
- When writing a match expression against
Template, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Type
- When writing a match expression against
Type, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature.