Module Awso_cloudtrail.ValuesSource

Sourceval service : Awso.Service.t
Sourceval apiVersion : string
Sourceval endpointPrefix : string
Sourceval serviceFullName : string
Sourceval signatureVersion : string
Sourceval protocol : string
Sourceval globalEndpoint : string
Sourceval serviceAbbreviation : string
Sourceval targetPrefix : string
Sourceval simple_to_json : ('a -> Awso__Botodata.value) -> 'a -> Yojson.Safe.t
Sourceval composed_to_json : ('a -> Awso__Botodata.value) -> 'a -> Yojson.Safe.t
Sourceval to_query : ('a -> Awso.Client.Query.value) -> 'a -> Awso.Client.Query.t
Sourceval structure_to_value_aux : ('a * 'b option) list -> f:(('a * 'b) list -> 'c) -> [> `Structure of 'c ]
Sourceval structure_to_value : ('a * 'b option) list -> [> `Structure of ('a * 'b) list ]
Sourceval structure_to_wrapped_value : wrapper:'a -> response:'a -> ('b * 'c option) list -> [> `Structure of ('a * [> `Structure of ('b * 'c) list ]) list ]
Sourcemodule OperatorValue : sig ... end
Sourcemodule Operator : sig ... end
Sourcemodule SelectorField : sig ... end
Sourcemodule String_ : sig ... end
Sourcemodule AdvancedFieldSelector : sig ... end

A single selector statement in an advanced event selector.

Sourcemodule DataResourceValues : sig ... end
Sourcemodule TagKey : sig ... end
Sourcemodule TagValue : sig ... end
Sourcemodule AdvancedFieldSelectors : sig ... end
Sourcemodule SelectorName : sig ... end
Sourcemodule QueryParameter : sig ... end
Sourcemodule ViewPropertiesKey : sig ... end
Sourcemodule ViewPropertiesValue : sig ... end
Sourcemodule SourceEventCategory : sig ... end
Sourcemodule DataResource : sig ... end

You can configure the DataResource in an EventSelector to 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 AdvancedEventSelectors if you want to filter on the eventName field. Configure the DataResource to 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 both Read and Write data events. A user uploads an image file to amzn-s3-demo-bucket1. The PutObject API 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 PutObject API 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 Invoke API 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 Invoke API operation on MyOtherLambdaFunction is an Lambda API. Because the CloudTrail user did not specify logging data events for all Lambda functions, the Invoke operation for MyOtherLambdaFunction does not match the function specified for the trail. The trail doesn’t log the event.

Sourcemodule Template : sig ... end
Sourcemodule OperatorTargetListMember : sig ... end
Sourcemodule Resource : sig ... end

Specifies the type and name of a resource referenced by an event.

Sourcemodule Tag : sig ... end

A custom key-value pair associated with a resource such as a CloudTrail trail, event data store, dashboard, or channel.

Sourcemodule EventDataStoreArn : sig ... end
Sourcemodule AdvancedEventSelector : sig ... end

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.

Sourcemodule QueryResultKey : sig ... end
Sourcemodule QueryResultValue : sig ... end
Sourcemodule QueryAlias : sig ... end
Sourcemodule QueryParameters : sig ... end
Sourcemodule QueryStatement : sig ... end
Sourcemodule ViewPropertiesMap : sig ... end
Sourcemodule DestinationType : sig ... end
Sourcemodule Location : sig ... end
Sourcemodule SampleQueryDescription : sig ... end
Sourcemodule SampleQueryName : sig ... end
Sourcemodule SampleQueryRelevance : sig ... end
Sourcemodule SampleQuerySQL : sig ... end
Sourcemodule InsightType : sig ... end
Sourcemodule SourceEventCategories : sig ... end
Sourcemodule Boolean : sig ... end
Sourcemodule DataResources : sig ... end
Sourcemodule ReadWriteType : sig ... end
Sourcemodule EventCategoryAggregation : sig ... end
Sourcemodule Templates : sig ... end
Sourcemodule OperatorTargetList : sig ... end
Sourcemodule Type : sig ... end
Sourcemodule Date : sig ... end
Sourcemodule ResourceList : sig ... end
Sourcemodule LookupAttributeKey : sig ... end
Sourcemodule LookupAttributeValue : sig ... end
Sourcemodule TagsList : sig ... end
Sourcemodule QueryStatus : sig ... end
Sourcemodule UUID : sig ... end
Sourcemodule ByteBuffer : sig ... end
Sourcemodule ImportDestinations : sig ... end
Sourcemodule ImportStatus : sig ... end
Sourcemodule ImportFailureStatus : sig ... end
Sourcemodule AdvancedEventSelectors : sig ... end
Sourcemodule EventDataStoreName : sig ... end
Sourcemodule EventDataStoreStatus : sig ... end
Sourcemodule RetentionPeriod : sig ... end
Sourcemodule DashboardArn : sig ... end
Sourcemodule DashboardType : sig ... end
Sourcemodule ChannelArn : sig ... end
Sourcemodule ChannelName : sig ... end
Sourcemodule QueryResultColumn : sig ... end
Sourcemodule PartitionKeyName : sig ... end
Sourcemodule PartitionKeyType : sig ... end
Sourcemodule RefreshScheduleFrequency : sig ... end

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.

Sourcemodule RefreshScheduleStatus : sig ... end
Sourcemodule TimeOfDay : sig ... end
Sourcemodule Widget : sig ... end

A widget on a CloudTrail Lake dashboard.

Sourcemodule RequestWidget : sig ... end

Contains information about a widget on a CloudTrail Lake dashboard.

Sourcemodule Destination : sig ... end

Contains information about the destination receiving events.

Sourcemodule S3ImportSource : sig ... end

The settings for the source S3 bucket.

Sourcemodule Long : sig ... end
Sourcemodule QueryParameterKey : sig ... end
Sourcemodule QueryParameterValue : sig ... end

A search result returned by the SearchSampleQueries operation.

Sourcemodule InsightSelector : sig ... end

A JSON string that contains a list of Insights types that are logged on a trail or event data store.

Sourcemodule EventSelector : sig ... end

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.

Sourcemodule AggregationConfiguration : sig ... end

An object that contains configuration settings for aggregating events.

Sourcemodule ContextKeySelector : sig ... end

An object that contains information types to be included in CloudTrail enriched events.

Sourcemodule Event : sig ... end

Contains information about an event that was returned by a lookup request. The result includes a representation of a CloudTrail event.

Sourcemodule LookupAttribute : sig ... end

Specifies an attribute and value that filter the events returned.

Sourcemodule TrailInfo : sig ... end

Information about a CloudTrail trail, including the trail's name, home Region, and Amazon Resource Name (ARN).

Sourcemodule ResourceTag : sig ... end

A resource tag.

Sourcemodule Query : sig ... end

A SQL string of criteria about events that you want to collect in an event data store.

Sourcemodule PublicKey : sig ... end

Contains information about a returned public key.

Sourcemodule Double : sig ... end
Sourcemodule ImportsListItem : sig ... end

Contains information about an import that was returned by a lookup request.

Sourcemodule ImportFailureListItem : sig ... end

Provides information about an import failure.

Sourcemodule EventDataStore : sig ... end

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.

Sourcemodule DashboardDetail : sig ... end

Provides information about a CloudTrail Lake dashboard.

Sourcemodule Channel : sig ... end

Contains information about a returned CloudTrail channel.

Sourcemodule QueryResultRow : sig ... end
Sourcemodule Integer : sig ... end
Sourcemodule PartitionKey : sig ... end

Contains information about a partition key for an event data store.

Sourcemodule ErrorMessage : sig ... end
Sourcemodule Trail : sig ... end

The settings for a trail.

This exception is thrown when an operation is called with an ARN that is not valid. The following is the format of a trail ARN: arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE The following is the format of a dashboard ARN: arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

This exception is thrown when trusted access has not been enabled between CloudTrail and Organizations. For more information, see How to enable or disable trusted access in the Organizations User Guide and Prepare For Creating a Trail For Your Organization in the CloudTrail User Guide.

This exception is thrown when a call results in the InvalidClientTokenId error code. This can occur when you are creating or updating a trail to send notifications to an Amazon SNS topic that is in a suspended Amazon Web Services account.

Cannot set a CloudWatch Logs delivery for this Region.

Sourcemodule ConflictException : sig ... end

This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the operation again.

This exception is thrown when the IAM identity that is used to create the organization resource lacks one or more required permissions for creating an organization resource in a required service.

For the CreateTrail PutInsightSelectors, UpdateTrail, StartQuery, and StartImport operations, this exception is thrown when the policy on the S3 bucket or KMS key does not have sufficient permissions for the operation. For all other operations, this exception is thrown when the policy for the KMS key does not have sufficient permissions for the operation.

This exception is thrown when the policy on the S3 bucket is not sufficient.

This exception is thrown when the policy on the Amazon SNS topic is not sufficient.

This exception is thrown when the provided CloudWatch Logs log group is not valid.

This exception is thrown when the provided role is not valid.

This exception is thrown when the PutEventSelectors operation is called with a number of event selectors, advanced event selectors, or data resources that is not valid. The combination of event selectors or advanced event selectors and data resources is not valid. A trail can have up to 5 event selectors. If a trail uses advanced event selectors, a maximum of 500 total values for all conditions in all advanced event selectors is allowed. A trail is limited to 250 data resources. These data resources can be distributed across event selectors, but the overall total cannot exceed 250. You can: Specify a valid number of event selectors (1 to 5) for a trail. Specify a valid number of data resources (1 to 250) for an event selector. The limit of number of resources on an individual event selector is configurable up to 250. However, this upper limit is allowed only if the total number of data resources does not exceed 250 across all event selectors for a trail. Specify up to 500 values for all conditions in all advanced event selectors for a trail. Specify a valid value for a parameter. For example, specifying the ReadWriteType parameter with a value of read-only is not valid.

This exception is thrown when an operation is called on a trail from a Region other than the Region in which the trail was created.

Sourcemodule InvalidKmsKeyIdException : sig ... end

This exception is thrown when the KMS key ARN is not valid.

This exception is thrown when the combination of parameters provided is not valid.

Sourcemodule InvalidParameterException : sig ... end

The request includes a parameter that is not valid.

This exception is thrown when the provided S3 bucket name is not valid.

Sourcemodule InvalidS3PrefixException : sig ... end

This exception is thrown when the provided S3 prefix is not valid.

This exception is thrown when the provided SNS topic name is not valid.

Sourcemodule InvalidTrailNameException : sig ... end

This exception is thrown when the provided trail name is not valid. Trail names must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-) Start with a letter or number, and end with a letter or number Be between 3 and 128 characters Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid. Not be in IP address format (for example, 192.168.5.4)

Sourcemodule KmsException : sig ... end

This exception is thrown when there is an issue with the specified KMS key and the trail or event data store can't be updated.

Sourcemodule KmsKeyDisabledException : sig ... end

This exception is no longer in use.

Sourcemodule KmsKeyNotFoundException : sig ... end

This exception is thrown when the KMS key does not exist, when the S3 bucket and the KMS key are not in the same Region, or when the KMS key associated with the Amazon SNS topic either does not exist or is not in the same Region.

This exception is thrown when the management account does not have a service-linked role.

This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail or event data store is not the management account for an organization in Organizations. For more information, see Prepare For Creating a Trail For Your Organization or Organization event data stores.

This exception is thrown when the requested operation is not permitted.

This exception is thrown when Organizations is not configured to support all features. All features must be enabled in Organizations to support creating an organization trail or event data store.

This exception is thrown when the request is made from an Amazon Web Services account that is not a member of an organization. To make this request, sign in using the credentials of an account that belongs to an organization.

This exception is thrown when the specified S3 bucket does not exist.

Sourcemodule ThrottlingException : sig ... end

This exception is thrown when the request rate exceeds the limit.

Sourcemodule TrailNotFoundException : sig ... end

This exception is thrown when the trail with the given name is not found.

Sourcemodule TrailNotProvidedException : sig ... end

This exception is no longer in use.

This exception is thrown when the requested operation is not supported.

Sourcemodule BillingMode : sig ... end

The specified event data store ARN is not valid or does not map to an event data store in your account.

An event data store with that name already exists.

This exception is thrown when you try to update or delete an event data store that currently has an import in progress.

Sourcemodule EventDataStoreKmsKeyId : sig ... end

The specified event data store was not found.

Sourcemodule FederationRoleArn : sig ... end
Sourcemodule FederationStatus : sig ... end

The event data store is inactive.

For PutInsightSelectors, this exception is thrown when the formatting or syntax of the InsightSelectors JSON statement is not valid, or the specified InsightType in the InsightSelectors statement is not valid. Valid values for InsightType are ApiCallRateInsight and ApiErrorRateInsight. To enable Insights on an event data store, the destination event data store specified by the InsightsDestination parameter must log Insights events and the source event data store specified by the EventDataStore parameter must log management events. For UpdateEventDataStore, this exception is thrown if Insights are enabled on the event data store and the updated advanced event selectors are not compatible with the configured InsightSelectors. If the InsightSelectors includes an InsightType of ApiCallRateInsight, the source event data store must log write management events. If the InsightSelectors includes an InsightType of ApiErrorRateInsight, the source event data store must log management events.

Sourcemodule DashboardName : sig ... end

The query that was submitted has validation errors, or uses incorrect syntax or unsupported keywords. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.

Sourcemodule RefreshSchedule : sig ... end

The schedule for a dashboard refresh.

Sourcemodule ResourceNotFoundException : sig ... end

This exception is thrown when the specified resource is not found.

This exception is thrown when the quota is exceeded. For information about CloudTrail quotas, see Service quotas in the Amazon Web Services General Reference.

Sourcemodule WidgetList : sig ... end
Sourcemodule RequestWidgetList : sig ... end

This exception is thrown when the specified value of ChannelARN is not valid.

This exception is thrown when the provided channel already exists.

Sourcemodule ChannelNotFoundException : sig ... end

This exception is thrown when CloudTrail cannot find the specified channel.

Sourcemodule Destinations : sig ... end

This exception is thrown when event categories of specified event data stores are not valid.

Sourcemodule Source : sig ... end
Sourcemodule ImportNotFoundException : sig ... end

The specified import was not found.

Sourcemodule ImportSource : sig ... end

The import source.

Sourcemodule ImportStatistics : sig ... end

Provides statistics for the specified ImportID. CloudTrail does not update import statistics in real-time. Returned values for parameters such as EventsCompleted may be lower than the actual value, because CloudTrail updates statistics incrementally over the course of the import.

The event data store is not in a status that supports the operation.

Sourcemodule AccountId : sig ... end

You are already running the maximum number of concurrent queries. The maximum number of concurrent queries is 10. Wait a minute for some queries to finish, and then run the query again.

Sourcemodule DeliveryS3Uri : sig ... end

This exception is thrown when you start a new import and a previous import is still in progress.

This exception is thrown when the provided source S3 bucket is not valid for import.

Sourcemodule RefreshId : sig ... end
Sourcemodule QueryParameterValues : sig ... end
Sourcemodule PaginationToken : sig ... end

Your account has used the maximum number of event data stores.

This exception is thrown when the specified tag key or values are not valid. It can also occur if there are duplicate tags or too many tags on the resource.

This exception is thrown when the specified resource type is not supported by CloudTrail.

Sourcemodule AccountNotFoundException : sig ... end

This exception is thrown when the specified account is not found or not part of an organization.

This exception is thrown when the account is already registered as the CloudTrail delegated administrator.

This exception is thrown when the management account of an organization is registered as the CloudTrail delegated administrator.

This exception is thrown when the maximum number of CloudTrail delegated administrators is reached.

The task can't be completed because you are signed in with an account that lacks permissions to view or create a service-linked role. Sign in with an account that has the required permissions and then try again.

This exception is thrown when the account making the request is not the organization's management account.

This exception is thrown when the provided resource does not exist, or the ARN format of the resource is not valid. The following is the format of an event data store ARN: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE The following is the format of a dashboard ARN: arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash The following is the format of a channel ARN: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

Sourcemodule ResourceArn : sig ... end
Sourcemodule ResourcePolicy : sig ... end

This exception is thrown when the resouce-based policy has syntax errors, or contains a principal that is not valid.

Sourcemodule InsightSelectors : sig ... end
Sourcemodule EventSelectors : sig ... end
Sourcemodule AggregationConfigurations : sig ... end
Sourcemodule ContextKeySelectors : sig ... end
Sourcemodule MaxEventSize : sig ... end
Sourcemodule EventsList : sig ... end

Occurs if an event category that is not valid is specified as a value of EventCategory.

Occurs when a lookup attribute is specified that is not valid.

This exception is thrown if the limit specified is not valid.

Sourcemodule InvalidNextTokenException : sig ... end

A token that is not valid, or a token that was previously used in a request with different parameters. This exception is thrown if the token is not valid.

Sourcemodule InvalidTimeRangeException : sig ... end

Occurs if the timestamp values are not valid. Either the start time occurs after the end time, or the time range is outside the range of possible values.

Sourcemodule NextToken : sig ... end
Sourcemodule EventCategory : sig ... end
Sourcemodule LookupAttributesList : sig ... end
Sourcemodule MaxResults : sig ... end
Sourcemodule Trails : sig ... end
Sourcemodule InvalidTokenException : sig ... end

Reserved for future use.

Sourcemodule ResourceTagList : sig ... end
Sourcemodule ResourceIdList : sig ... end
Sourcemodule InvalidDateRangeException : sig ... end

A date range for the query was specified that is not valid. Be sure that the start time is chronologically before the end time. For more information about writing a query, see Create or edit a query in the CloudTrail User Guide.

The query status is not valid for the operation.

Sourcemodule Queries : sig ... end
Sourcemodule PublicKeyList : sig ... end
Sourcemodule ErrorCode : sig ... end
Sourcemodule EventName : sig ... end
Sourcemodule EventSource : sig ... end
Sourcemodule InsightsMetricNextToken : sig ... end
Sourcemodule InsightsMetricValues : sig ... end
Sourcemodule Timestamps : sig ... end
Sourcemodule InsightsMetricDataType : sig ... end
Sourcemodule InsightsMetricMaxResults : sig ... end
Sourcemodule InsightsMetricPeriod : sig ... end
Sourcemodule ListInsightsDataType : sig ... end
Sourcemodule ImportsList : sig ... end
Sourcemodule ImportFailureList : sig ... end
Sourcemodule EventDataStores : sig ... end
Sourcemodule Dashboards : sig ... end
Sourcemodule Channels : sig ... end

This exception is thrown when the specified resource policy is not found.

Sourcemodule QueryIdNotFoundException : sig ... end

The query ID does not exist or does not map to a query.

Sourcemodule QueryResultRows : sig ... end
Sourcemodule QueryStatistics : sig ... end

Metadata about a query, such as the number of results.

Sourcemodule MaxQueryResults : sig ... end

If you run GetInsightSelectors on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException.

Sourcemodule PartitionKeyList : sig ... end
Sourcemodule DashboardStatus : sig ... end
Sourcemodule IngestionStatus : sig ... end

A table showing information about the most recent successful and failed attempts to ingest events.

Sourcemodule SourceConfig : sig ... end

Contains configuration information about the channel.

Sourcemodule GenerateResponseException : sig ... end

This exception is thrown when a valid query could not be generated for the provided prompt.

Sourcemodule EventDataStoreList : sig ... end
Sourcemodule Prompt : sig ... end
Sourcemodule AccessDeniedException : sig ... end

You do not have sufficient access to perform this action.

You are trying to update a resource when another request is in progress. Allow sufficient wait time for the previous request to complete, then retry your request.

You cannot delete the event data store because Lake query federation is enabled. To delete the event data store, run the DisableFederation operation to disable Lake query federation on the event data store.

Sourcemodule TrailList : sig ... end
Sourcemodule TrailNameList : sig ... end
Sourcemodule DeliveryStatus : sig ... end

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.

This exception is thrown when the specified account is not registered as the CloudTrail delegated administrator.

This exception is thrown when the specified event data store cannot yet be deleted because it is in use by a channel.

The event data store cannot be deleted because termination protection is enabled for it.

This exception is thrown when the maximum number of trails is reached.

The number of tags per trail, event data store, dashboard, or channel has exceeded the permitted amount. Currently, the limit is 50.

This exception is thrown when the specified trail already exists.

This exception is thrown when the maximum number of channels limit is exceeded.

Sourcemodule InvalidSourceException : sig ... end

This exception is thrown when the specified value of Source is not valid.

Sourcemodule InactiveQueryException : sig ... end

The specified query cannot be canceled because it is in the FINISHED, FAILED, TIMED_OUT, or CANCELLED state.

Sourcemodule UpdateTrailResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule UpdateTrailRequest : sig ... end

Specifies settings to update for the trail.

Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 7 and 3653 if the BillingMode is set to EXTENDABLE_RETENTION_PRICING, or between 7 and 2557 if BillingMode is set to FIXED_RETENTION_PRICING. By default, TerminationProtection is enabled. For event data stores for CloudTrail events, AdvancedEventSelectors includes or excludes management, data, or network activity events in your event data store. For more information about AdvancedEventSelectors, see AdvancedEventSelectors. For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors includes events of that type in your event data store.

Updates an event data store. The required EventDataStore value is an ARN or the ID portion of the ARN. Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error. RetentionPeriod is in days, and valid values are integers between 7 and 3653 if the BillingMode is set to EXTENDABLE_RETENTION_PRICING, or between 7 and 2557 if BillingMode is set to FIXED_RETENTION_PRICING. By default, TerminationProtection is enabled. For event data stores for CloudTrail events, AdvancedEventSelectors includes or excludes management, data, or network activity events in your event data store. For more information about AdvancedEventSelectors, see AdvancedEventSelectors. For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or non-Amazon Web Services events, AdvancedEventSelectors includes events of that type in your event data store.

Sourcemodule UpdateDashboardResponse : sig ... end

Updates the specified dashboard. To set a refresh schedule, CloudTrail must be granted permissions to run the StartDashboardRefresh operation to refresh the dashboard on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to the dashboard. For more information, see Resource-based policy example for a dashboard in the CloudTrail User Guide. CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide.

Sourcemodule UpdateDashboardRequest : sig ... end

Updates the specified dashboard. To set a refresh schedule, CloudTrail must be granted permissions to run the StartDashboardRefresh operation to refresh the dashboard on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to the dashboard. For more information, see Resource-based policy example for a dashboard in the CloudTrail User Guide. CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide.

Sourcemodule UpdateChannelResponse : sig ... end

Updates a channel specified by a required channel ARN or UUID.

Sourcemodule UpdateChannelRequest : sig ... end

Updates a channel specified by a required channel ARN or UUID.

Sourcemodule StopLoggingResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule StopLoggingRequest : sig ... end

Passes the request to CloudTrail to stop logging Amazon Web Services API calls for the specified account.

Sourcemodule StopImportResponse : sig ... end

Stops a specified import.

Sourcemodule StopImportRequest : sig ... end

Stops a specified import.

Stops the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN. To stop ingestion, the event data store Status must be ENABLED and the eventCategory must be Management, Data, NetworkActivity, or ConfigurationItem.

Stops the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN. To stop ingestion, the event data store Status must be ENABLED and the eventCategory must be Management, Data, NetworkActivity, or ConfigurationItem.

Sourcemodule StartQueryResponse : sig ... end

Starts a CloudTrail Lake query. Use the QueryStatement parameter to provide your SQL query, enclosed in single quotation marks. Use the optional DeliveryS3Uri parameter to deliver the query results to an S3 bucket. StartQuery requires you specify either the QueryStatement parameter, or a QueryAlias and any QueryParameters. In the current release, the QueryAlias and QueryParameters parameters are used only for the queries that populate the CloudTrail Lake dashboards.

Sourcemodule StartQueryRequest : sig ... end

Starts a CloudTrail Lake query. Use the QueryStatement parameter to provide your SQL query, enclosed in single quotation marks. Use the optional DeliveryS3Uri parameter to deliver the query results to an S3 bucket. StartQuery requires you specify either the QueryStatement parameter, or a QueryAlias and any QueryParameters. In the current release, the QueryAlias and QueryParameters parameters are used only for the queries that populate the CloudTrail Lake dashboards.

Sourcemodule StartLoggingResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule StartLoggingRequest : sig ... end

The request to CloudTrail to start logging Amazon Web Services API calls for an account.

Sourcemodule StartImportResponse : sig ... end

Starts an import of logged trail events from a source S3 bucket to a destination event data store. By default, CloudTrail only imports events contained in the S3 bucket's CloudTrail prefix and the prefixes inside the CloudTrail prefix, and does not check prefixes for other Amazon Web Services services. If you want to import CloudTrail events contained in another prefix, you must include the prefix in the S3LocationUri. For more considerations about importing trail events, see Considerations for copying trail events in the CloudTrail User Guide. When you start a new import, the Destinations and ImportSource parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket. For more information about disabling ACLs, see Controlling ownership of objects and disabling ACLs for your bucket. When you retry an import, the ImportID parameter is required. If the destination event data store is for an organization, you must use the management account to import trail events. You cannot use the delegated administrator account for the organization.

Sourcemodule StartImportRequest : sig ... end

Starts an import of logged trail events from a source S3 bucket to a destination event data store. By default, CloudTrail only imports events contained in the S3 bucket's CloudTrail prefix and the prefixes inside the CloudTrail prefix, and does not check prefixes for other Amazon Web Services services. If you want to import CloudTrail events contained in another prefix, you must include the prefix in the S3LocationUri. For more considerations about importing trail events, see Considerations for copying trail events in the CloudTrail User Guide. When you start a new import, the Destinations and ImportSource parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket. For more information about disabling ACLs, see Controlling ownership of objects and disabling ACLs for your bucket. When you retry an import, the ImportID parameter is required. If the destination event data store is for an organization, you must use the management account to import trail events. You cannot use the delegated administrator account for the organization.

Starts the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN. To start ingestion, the event data store Status must be STOPPED_INGESTION and the eventCategory must be Management, Data, NetworkActivity, or ConfigurationItem.

Starts the ingestion of live events on an event data store specified as either an ARN or the ID portion of the ARN. To start ingestion, the event data store Status must be STOPPED_INGESTION and the eventCategory must be Management, Data, NetworkActivity, or ConfigurationItem.

Starts a refresh of the specified dashboard. Each time a dashboard is refreshed, CloudTrail runs queries to populate the dashboard's widgets. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide.

Starts a refresh of the specified dashboard. Each time a dashboard is refreshed, CloudTrail runs queries to populate the dashboard's widgets. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide.

Searches sample queries and returns a list of sample queries that are sorted by relevance. To search for sample queries, provide a natural language SearchPhrase in English.

Searches sample queries and returns a list of sample queries that are sorted by relevance. To search for sample queries, provide a natural language SearchPhrase in English.

Restores a deleted event data store specified by EventDataStore, which accepts an event data store ARN. You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store can take several minutes, depending on the size of the event data store.

Restores a deleted event data store specified by EventDataStore, which accepts an event data store ARN. You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store can take several minutes, depending on the size of the event data store.

Sourcemodule RemoveTagsResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule RemoveTagsRequest : sig ... end

Specifies the tags to remove from a trail, event data store, dashboard, or channel.

Returns the following response if successful. Otherwise, returns an error.

Specifies an organization member account ID as a CloudTrail delegated administrator.

Sourcemodule PutResourcePolicyResponse : sig ... end

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.

Sourcemodule PutResourcePolicyRequest : sig ... end

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.

Lets you enable Insights event logging on specific event categories by specifying the Insights selectors that you want to enable on an existing trail or event data store. You also use PutInsightSelectors to turn off Insights event logging, by passing an empty list of Insights types. The valid Insights event types are ApiErrorRateInsight and ApiCallRateInsight, and valid EventCategories are Management and Data. Insights on data events are not supported on event data stores. For event data stores, you can only enable Insights on management events. To enable Insights on an event data store, you must specify the ARNs (or ID suffix of the ARNs) for the source event data store (EventDataStore) and the destination event data store (InsightsDestination). The source event data store logs management events and enables Insights. The destination event data store logs Insights events based upon the management event activity of the source event data store. The source and destination event data stores must belong to the same Amazon Web Services account. To log Insights events for a trail, you must specify the name (TrailName) of the CloudTrail trail for which you want to change or add Insights selectors. For Management events Insights: To log CloudTrail Insights on the API call rate, the trail or event data store must log write management events. To log CloudTrail Insights on the API error rate, the trail or event data store must log read or write management events. For Data events Insights: To log CloudTrail Insights on the API call rate or API error rate, the trail must log read or write data events. Data events Insights are not supported on event data store. To log CloudTrail Insights events on API call volume, the trail or event data store must log write management events. To log CloudTrail Insights events on API error rate, the trail or event data store must log read or write management events. You can call GetEventSelectors on a trail to check whether the trail logs management events. You can call GetEventDataStore on an event data store to check whether the event data store logs management events. For more information, see Working with CloudTrail Insights in the CloudTrail User Guide.

Lets you enable Insights event logging on specific event categories by specifying the Insights selectors that you want to enable on an existing trail or event data store. You also use PutInsightSelectors to turn off Insights event logging, by passing an empty list of Insights types. The valid Insights event types are ApiErrorRateInsight and ApiCallRateInsight, and valid EventCategories are Management and Data. Insights on data events are not supported on event data stores. For event data stores, you can only enable Insights on management events. To enable Insights on an event data store, you must specify the ARNs (or ID suffix of the ARNs) for the source event data store (EventDataStore) and the destination event data store (InsightsDestination). The source event data store logs management events and enables Insights. The destination event data store logs Insights events based upon the management event activity of the source event data store. The source and destination event data stores must belong to the same Amazon Web Services account. To log Insights events for a trail, you must specify the name (TrailName) of the CloudTrail trail for which you want to change or add Insights selectors. For Management events Insights: To log CloudTrail Insights on the API call rate, the trail or event data store must log write management events. To log CloudTrail Insights on the API error rate, the trail or event data store must log read or write management events. For Data events Insights: To log CloudTrail Insights on the API call rate or API error rate, the trail must log read or write data events. Data events Insights are not supported on event data store. To log CloudTrail Insights events on API call volume, the trail or event data store must log write management events. To log CloudTrail Insights events on API error rate, the trail or event data store must log read or write management events. You can call GetEventSelectors on a trail to check whether the trail logs management events. You can call GetEventDataStore on an event data store to check whether the event data store logs management events. For more information, see Working with CloudTrail Insights in the CloudTrail User Guide.

Sourcemodule PutEventSelectorsResponse : sig ... end

Configures event selectors (also referred to as basic event selectors) or advanced event selectors for your trail. You can use either AdvancedEventSelectors or EventSelectors, but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. You can use AdvancedEventSelectors to log management events, data events for all resource types, and network activity events. You can use EventSelectors to log management events and data events for the following resource types: AWS::DynamoDB::Table AWS::Lambda::Function AWS::S3::Object You can't use EventSelectors to log network activity events. If you want your trail to log Insights events, be sure the event selector or advanced event selector enables logging of the Insights event types you want configured for your trail. For more information about logging Insights events, see Working with CloudTrail Insights in the CloudTrail User Guide. By default, trails created without specific event selectors are configured to log all read and write management events, and no data events or network activity events. When an event occurs in your account, CloudTrail evaluates the event selectors or advanced event selectors in 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. Example You create an event selector for a trail and specify that you want to log write-only events. The EC2 GetConsoleOutput and RunInstances API operations occur in your account. CloudTrail evaluates whether the events match your event selectors. The RunInstances is a write-only event and it matches your event selector. The trail logs the event. The GetConsoleOutput is a read-only event that doesn't match your event selector. The trail doesn't log the event. The PutEventSelectors operation must be called from the Region in which the trail was created; otherwise, an InvalidHomeRegionException exception is thrown. You can configure up to five event selectors for each trail. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. For more information, see Logging management events, Logging data events, Logging network activity events, and Quotas in CloudTrail in the CloudTrail User Guide.

Sourcemodule PutEventSelectorsRequest : sig ... end

Configures event selectors (also referred to as basic event selectors) or advanced event selectors for your trail. You can use either AdvancedEventSelectors or EventSelectors, but not both. If you apply AdvancedEventSelectors to a trail, any existing EventSelectors are overwritten. You can use AdvancedEventSelectors to log management events, data events for all resource types, and network activity events. You can use EventSelectors to log management events and data events for the following resource types: AWS::DynamoDB::Table AWS::Lambda::Function AWS::S3::Object You can't use EventSelectors to log network activity events. If you want your trail to log Insights events, be sure the event selector or advanced event selector enables logging of the Insights event types you want configured for your trail. For more information about logging Insights events, see Working with CloudTrail Insights in the CloudTrail User Guide. By default, trails created without specific event selectors are configured to log all read and write management events, and no data events or network activity events. When an event occurs in your account, CloudTrail evaluates the event selectors or advanced event selectors in 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. Example You create an event selector for a trail and specify that you want to log write-only events. The EC2 GetConsoleOutput and RunInstances API operations occur in your account. CloudTrail evaluates whether the events match your event selectors. The RunInstances is a write-only event and it matches your event selector. The trail logs the event. The GetConsoleOutput is a read-only event that doesn't match your event selector. The trail doesn't log the event. The PutEventSelectors operation must be called from the Region in which the trail was created; otherwise, an InvalidHomeRegionException exception is thrown. You can configure up to five event selectors for each trail. You can add advanced event selectors, and conditions for your advanced event selectors, up to a maximum of 500 values for all conditions and selectors on a trail. For more information, see Logging management events, Logging data events, Logging network activity events, and Quotas in CloudTrail in the CloudTrail User Guide.

Updates the event configuration settings for the specified event data store or trail. This operation supports updating the maximum event size, adding or modifying context key selectors for event data store, and configuring aggregation settings for the trail.

Updates the event configuration settings for the specified event data store or trail. This operation supports updating the maximum event size, adding or modifying context key selectors for event data store, and configuring aggregation settings for the trail.

Sourcemodule LookupEventsResponse : sig ... end

Contains a response to a LookupEvents action.

Sourcemodule LookupEventsRequest : sig ... end

Contains a request for LookupEvents.

Sourcemodule ListTrailsResponse : sig ... end

Lists trails that are in the current account.

Sourcemodule ListTrailsRequest : sig ... end

Lists trails that are in the current account.

Sourcemodule ListTagsResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule ListTagsRequest : sig ... end

Specifies a list of tags to return.

Sourcemodule ListQueriesResponse : sig ... end

Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for EventDataStore. Optionally, to shorten the list of results, you can specify a time range, formatted as timestamps, by adding StartTime and EndTime parameters, and a QueryStatus value. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

Sourcemodule ListQueriesRequest : sig ... end

Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for EventDataStore. Optionally, to shorten the list of results, you can specify a time range, formatted as timestamps, by adding StartTime and EndTime parameters, and a QueryStatus value. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.

Sourcemodule ListPublicKeysResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule ListPublicKeysRequest : sig ... end

Requests the public keys for a specified time range.

Returns Insights metrics data for trails that have enabled Insights. The request must include the EventSource, EventName, and InsightType parameters. If the InsightType is set to ApiErrorRateInsight, the request must also include the ErrorCode parameter. The following are the available time periods for ListInsightsMetricData. Each cutoff is inclusive. Data points with a period of 60 seconds (1-minute) are available for 15 days. Data points with a period of 300 seconds (5-minute) are available for 63 days. Data points with a period of 3600 seconds (1 hour) are available for 90 days. To use ListInsightsMetricData operation, you must have the following permissions: If ListInsightsMetricData is invoked with TrailName parameter, access to the ListInsightsMetricData API operation is linked to the cloudtrail:LookupEvents action and cloudtrail:ListInsightsData. To use this operation, you must have permissions to perform the cloudtrail:LookupEvents and cloudtrail:ListInsightsData action on the specific trail. If ListInsightsMetricData is invoked without TrailName parameter, access to the ListInsightsMetricData API operation is linked to the cloudtrail:LookupEvents action only. To use this operation, you must have permissions to perform the cloudtrail:LookupEvents action.

Returns Insights metrics data for trails that have enabled Insights. The request must include the EventSource, EventName, and InsightType parameters. If the InsightType is set to ApiErrorRateInsight, the request must also include the ErrorCode parameter. The following are the available time periods for ListInsightsMetricData. Each cutoff is inclusive. Data points with a period of 60 seconds (1-minute) are available for 15 days. Data points with a period of 300 seconds (5-minute) are available for 63 days. Data points with a period of 3600 seconds (1 hour) are available for 90 days. To use ListInsightsMetricData operation, you must have the following permissions: If ListInsightsMetricData is invoked with TrailName parameter, access to the ListInsightsMetricData API operation is linked to the cloudtrail:LookupEvents action and cloudtrail:ListInsightsData. To use this operation, you must have permissions to perform the cloudtrail:LookupEvents and cloudtrail:ListInsightsData action on the specific trail. If ListInsightsMetricData is invoked without TrailName parameter, access to the ListInsightsMetricData API operation is linked to the cloudtrail:LookupEvents action only. To use this operation, you must have permissions to perform the cloudtrail:LookupEvents action.

Sourcemodule ListInsightsDataResponse : sig ... end

Returns Insights events generated on a trail that logs data events. You can list Insights events that occurred in a Region within the last 90 days. ListInsightsData supports the following Dimensions for Insights events: Event ID Event name Event source All dimensions are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results. The rate of ListInsightsData requests is limited to two per second, per account, per Region. If this limit is exceeded, a throttling error occurs.

Sourcemodule ListInsightsDataRequest : sig ... end

Returns Insights events generated on a trail that logs data events. You can list Insights events that occurred in a Region within the last 90 days. ListInsightsData supports the following Dimensions for Insights events: Event ID Event name Event source All dimensions are optional. The default number of results returned is 50, with a maximum of 50 possible. The response includes a token that you can use to get the next page of results. The rate of ListInsightsData requests is limited to two per second, per account, per Region. If this limit is exceeded, a throttling error occurs.

Sourcemodule ListImportsResponse : sig ... end

Returns information on all imports, or a select set of imports by ImportStatus or Destination.

Sourcemodule ListImportsRequest : sig ... end

Returns information on all imports, or a select set of imports by ImportStatus or Destination.

Returns a list of failures for the specified import.

Sourcemodule ListImportFailuresRequest : sig ... end

Returns a list of failures for the specified import.

Returns information about all event data stores in the account, in the current Region.

Returns information about all event data stores in the account, in the current Region.

Sourcemodule ListDashboardsResponse : sig ... end

Returns information about all dashboards in the account, in the current Region.

Sourcemodule ListDashboardsRequest : sig ... end

Returns information about all dashboards in the account, in the current Region.

Sourcemodule ListChannelsResponse : sig ... end

Lists the channels in the current account, and their source names.

Sourcemodule ListChannelsRequest : sig ... end

Lists the channels in the current account, and their source names.

Sourcemodule GetTrailStatusResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule GetTrailStatusRequest : sig ... end

The name of a trail about which you want the current status.

Sourcemodule GetTrailResponse : sig ... end

Returns settings information for a specified trail.

Sourcemodule GetTrailRequest : sig ... end

Returns settings information for a specified trail.

Sourcemodule GetResourcePolicyResponse : sig ... end

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail event data store, dashboard, or channel.

Sourcemodule GetResourcePolicyRequest : sig ... end

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail event data store, dashboard, or channel.

Sourcemodule GetQueryResultsResponse : sig ... end

Gets event data results of a query. You must specify the QueryID value returned by the StartQuery operation.

Sourcemodule GetQueryResultsRequest : sig ... end

Gets event data results of a query. You must specify the QueryID value returned by the StartQuery operation.

Describes the settings for the Insights event selectors that you configured for your trail or event data store. GetInsightSelectors shows if CloudTrail Insights logging is enabled and which Insights types are configured with corresponding event categories. If you run GetInsightSelectors on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException Specify either the EventDataStore parameter to get Insights event selectors for an event data store, or the TrailName parameter to the get Insights event selectors for a trail. You cannot specify these parameters together. For more information, see Working with CloudTrail Insights in the CloudTrail User Guide.

Describes the settings for the Insights event selectors that you configured for your trail or event data store. GetInsightSelectors shows if CloudTrail Insights logging is enabled and which Insights types are configured with corresponding event categories. If you run GetInsightSelectors on a trail or event data store that does not have Insights events enabled, the operation throws the exception InsightNotEnabledException Specify either the EventDataStore parameter to get Insights event selectors for an event data store, or the TrailName parameter to the get Insights event selectors for a trail. You cannot specify these parameters together. For more information, see Working with CloudTrail Insights in the CloudTrail User Guide.

Sourcemodule GetImportResponse : sig ... end

Returns information about a specific import.

Sourcemodule GetImportRequest : sig ... end

Returns information about a specific import.

Sourcemodule GetEventSelectorsResponse : sig ... end

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following: If your event selector includes read-only events, write-only events, or all events. This applies to management events, data events, and network activity events. If your event selector includes management events. If your event selector includes network activity events, the event sources for which you are logging network activity events. If your event selector includes data events, the resources on which you are logging data events. For more information about logging management, data, and network activity events, see the following topics in the CloudTrail User Guide: Logging management events Logging data events Logging network activity events

Sourcemodule GetEventSelectorsRequest : sig ... end

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following: If your event selector includes read-only events, write-only events, or all events. This applies to management events, data events, and network activity events. If your event selector includes management events. If your event selector includes network activity events, the event sources for which you are logging network activity events. If your event selector includes data events, the resources on which you are logging data events. For more information about logging management, data, and network activity events, see the following topics in the CloudTrail User Guide: Logging management events Logging data events Logging network activity events

Sourcemodule GetEventDataStoreResponse : sig ... end

Returns information about an event data store specified as either an ARN or the ID portion of the ARN.

Sourcemodule GetEventDataStoreRequest : sig ... end

Returns information about an event data store specified as either an ARN or the ID portion of the ARN.

Retrieves the current event configuration settings for the specified event data store or trail. The response includes maximum event size configuration, the context key selectors configured for the event data store, and any aggregation settings configured for the trail.

Retrieves the current event configuration settings for the specified event data store or trail. The response includes maximum event size configuration, the context key selectors configured for the event data store, and any aggregation settings configured for the trail.

Sourcemodule GetDashboardResponse : sig ... end

Returns the specified dashboard.

Sourcemodule GetDashboardRequest : sig ... end

Returns the specified dashboard.

Sourcemodule GetChannelResponse : sig ... end

Returns information about a specific channel.

Sourcemodule GetChannelRequest : sig ... end

Returns information about a specific channel.

Sourcemodule GenerateQueryResponse : sig ... end

Generates a query from a natural language prompt. This operation uses generative artificial intelligence (generative AI) to produce a ready-to-use SQL query from the prompt. The prompt can be a question or a statement about the event data in your event data store. For example, you can enter prompts like "What are my top errors in the past month?" and “Give me a list of users that used SNS.” The prompt must be in English. For information about limitations, permissions, and supported Regions, see Create CloudTrail Lake queries from natural language prompts in the CloudTrail user guide. Do not include any personally identifying, confidential, or sensitive information in your prompts. This feature uses generative AI large language models (LLMs); we recommend double-checking the LLM response.

Sourcemodule GenerateQueryRequest : sig ... end

Generates a query from a natural language prompt. This operation uses generative artificial intelligence (generative AI) to produce a ready-to-use SQL query from the prompt. The prompt can be a question or a statement about the event data in your event data store. For example, you can enter prompts like "What are my top errors in the past month?" and “Give me a list of users that used SNS.” The prompt must be in English. For information about limitations, permissions, and supported Regions, see Create CloudTrail Lake queries from natural language prompts in the CloudTrail user guide. Do not include any personally identifying, confidential, or sensitive information in your prompts. This feature uses generative AI large language models (LLMs); we recommend double-checking the LLM response.

Sourcemodule EnableFederationResponse : sig ... end

Enables Lake query federation on the specified event data store. Federating an event data store lets you view the metadata associated with the event data store in the Glue Data Catalog and run SQL queries against your event data using Amazon Athena. The table metadata stored in the Glue Data Catalog lets the Athena query engine know how to find, read, and process the data that you want to query. When you enable Lake query federation, CloudTrail creates a managed database named aws:cloudtrail (if the database doesn't already exist) and a managed federated table in the Glue Data Catalog. The event data store ID is used for the table name. CloudTrail registers the role ARN and event data store in Lake Formation, the service responsible for allowing fine-grained access control of the federated resources in the Glue Data Catalog. For more information about Lake query federation, see Federate an event data store.

Sourcemodule EnableFederationRequest : sig ... end

Enables Lake query federation on the specified event data store. Federating an event data store lets you view the metadata associated with the event data store in the Glue Data Catalog and run SQL queries against your event data using Amazon Athena. The table metadata stored in the Glue Data Catalog lets the Athena query engine know how to find, read, and process the data that you want to query. When you enable Lake query federation, CloudTrail creates a managed database named aws:cloudtrail (if the database doesn't already exist) and a managed federated table in the Glue Data Catalog. The event data store ID is used for the table name. CloudTrail registers the role ARN and event data store in Lake Formation, the service responsible for allowing fine-grained access control of the federated resources in the Glue Data Catalog. For more information about Lake query federation, see Federate an event data store.

Sourcemodule DisableFederationResponse : sig ... end

Disables Lake query federation on the specified event data store. When you disable federation, CloudTrail disables the integration with Glue, Lake Formation, and Amazon Athena. After disabling Lake query federation, you can no longer query your event data in Amazon Athena. No CloudTrail Lake data is deleted when you disable federation and you can continue to run queries in CloudTrail Lake.

Sourcemodule DisableFederationRequest : sig ... end

Disables Lake query federation on the specified event data store. When you disable federation, CloudTrail disables the integration with Glue, Lake Formation, and Amazon Athena. After disabling Lake query federation, you can no longer query your event data in Amazon Athena. No CloudTrail Lake data is deleted when you disable federation and you can continue to run queries in CloudTrail Lake.

Sourcemodule DescribeTrailsResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule DescribeTrailsRequest : sig ... end

Returns information about the trail.

Sourcemodule DescribeQueryResponse : sig ... end

Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status. If the query results were delivered to an S3 bucket, the response also provides the S3 URI and the delivery status. You must specify either QueryId or QueryAlias. Specifying the QueryAlias parameter returns information about the last query run for the alias. You can provide RefreshId along with QueryAlias to view the query results of a dashboard query for the specified RefreshId.

Sourcemodule DescribeQueryRequest : sig ... end

Returns metadata about a query, including query run time in milliseconds, number of events scanned and matched, and query status. If the query results were delivered to an S3 bucket, the response also provides the S3 URI and the delivery status. You must specify either QueryId or QueryAlias. Specifying the QueryAlias parameter returns information about the last query run for the alias. You can provide RefreshId along with QueryAlias to view the query results of a dashboard query for the specified RefreshId.

Returns the following response if successful. Otherwise, returns an error.

Removes CloudTrail delegated administrator permissions from a specified member account in an organization that is currently designated as a delegated administrator.

Sourcemodule DeleteTrailResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule DeleteTrailRequest : sig ... end

The request that specifies the name of a trail to delete.

Deletes the resource-based policy attached to the CloudTrail event data store, dashboard, or channel.

Deletes the resource-based policy attached to the CloudTrail event data store, dashboard, or channel.

Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store and the FederationStatus must be DISABLED. You cannot delete an event data store if TerminationProtectionEnabled is True or the FederationStatus is ENABLED. After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.

Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store and the FederationStatus must be DISABLED. You cannot delete an event data store if TerminationProtectionEnabled is True or the FederationStatus is ENABLED. After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.

Sourcemodule DeleteDashboardResponse : sig ... end

Deletes the specified dashboard. You cannot delete a dashboard that has termination protection enabled.

Sourcemodule DeleteDashboardRequest : sig ... end

Deletes the specified dashboard. You cannot delete a dashboard that has termination protection enabled.

Sourcemodule DeleteChannelResponse : sig ... end

Deletes a channel.

Sourcemodule DeleteChannelRequest : sig ... end

Deletes a channel.

Sourcemodule CreateTrailResponse : sig ... end

Returns the objects or data listed below if successful. Otherwise, returns an error.

Sourcemodule CreateTrailRequest : sig ... end

Specifies the settings for each trail.

Creates a new event data store.

Creates a new event data store.

Sourcemodule CreateDashboardResponse : sig ... end

Creates a custom dashboard or the Highlights dashboard. Custom dashboards - Custom dashboards allow you to query events in any event data store type. You can add up to 10 widgets to a custom dashboard. You can manually refresh a custom dashboard, or you can set a refresh schedule. Highlights dashboard - You can create the Highlights dashboard to see a summary of key user activities and API usage across all your event data stores. CloudTrail Lake manages the Highlights dashboard and refreshes the dashboard every 6 hours. To create the Highlights dashboard, you must set and enable a refresh schedule. CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide. To set a refresh schedule, CloudTrail must be granted permissions to run the StartDashboardRefresh operation to refresh the dashboard on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to the dashboard. For more information, see Resource-based policy example for a dashboard in the CloudTrail User Guide. For more information about dashboards, see CloudTrail Lake dashboards in the CloudTrail User Guide.

Sourcemodule CreateDashboardRequest : sig ... end

Creates a custom dashboard or the Highlights dashboard. Custom dashboards - Custom dashboards allow you to query events in any event data store type. You can add up to 10 widgets to a custom dashboard. You can manually refresh a custom dashboard, or you can set a refresh schedule. Highlights dashboard - You can create the Highlights dashboard to see a summary of key user activities and API usage across all your event data stores. CloudTrail Lake manages the Highlights dashboard and refreshes the dashboard every 6 hours. To create the Highlights dashboard, you must set and enable a refresh schedule. CloudTrail runs queries to populate the dashboard's widgets during a manual or scheduled refresh. CloudTrail must be granted permissions to run the StartQuery operation on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to each event data store. For more information, see Example: Allow CloudTrail to run queries to populate a dashboard in the CloudTrail User Guide. To set a refresh schedule, CloudTrail must be granted permissions to run the StartDashboardRefresh operation to refresh the dashboard on your behalf. To provide permissions, run the PutResourcePolicy operation to attach a resource-based policy to the dashboard. For more information, see Resource-based policy example for a dashboard in the CloudTrail User Guide. For more information about dashboards, see CloudTrail Lake dashboards in the CloudTrail User Guide.

Sourcemodule CreateChannelResponse : sig ... end

Creates a channel for CloudTrail to ingest events from a partner or external source. After you create a channel, a CloudTrail Lake event data store can log events from the partner or source that you specify.

Sourcemodule CreateChannelRequest : sig ... end

Creates a channel for CloudTrail to ingest events from a partner or external source. After you create a channel, a CloudTrail Lake event data store can log events from the partner or source that you specify.

Sourcemodule CancelQueryResponse : sig ... end

Cancels a query if the query is not in a terminated state, such as CANCELLED, FAILED, TIMED_OUT, or FINISHED. You must specify an ARN value for EventDataStore. The ID of the query that you want to cancel is also required. When you run CancelQuery, the query status might show as CANCELLED even if the operation is not yet finished.

Sourcemodule CancelQueryRequest : sig ... end

Cancels a query if the query is not in a terminated state, such as CANCELLED, FAILED, TIMED_OUT, or FINISHED. You must specify an ARN value for EventDataStore. The ID of the query that you want to cancel is also required. When you run CancelQuery, the query status might show as CANCELLED even if the operation is not yet finished.

Sourcemodule AddTagsResponse : sig ... end

Returns the objects or data if successful. Otherwise, returns an error.

Sourcemodule AddTagsRequest : sig ... end

Specifies the tags to add to a trail, event data store, dashboard, or channel.