Module Smaws_Client_CloudTrail.EnableFederation

val request : Smaws_Lib.Context.t -> enable_federation_request -> (enable_federation_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of access_denied_exception | `CloudTrailAccessNotEnabledException of cloud_trail_access_not_enabled_exception | `ConcurrentModificationException of concurrent_modification_exception | `EventDataStoreARNInvalidException of event_data_store_arn_invalid_exception | `EventDataStoreFederationEnabledException of event_data_store_federation_enabled_exception | `EventDataStoreNotFoundException of event_data_store_not_found_exception | `InactiveEventDataStoreException of inactive_event_data_store_exception | `InsufficientDependencyServiceAccessPermissionException of insufficient_dependency_service_access_permission_exception | `InvalidParameterException of invalid_parameter_exception | `NoManagementAccountSLRExistsException of no_management_account_slr_exists_exception | `NotOrganizationMasterAccountException of not_organization_master_account_exception | `OperationNotPermittedException of operation_not_permitted_exception | `OrganizationNotInAllFeaturesModeException of organization_not_in_all_features_mode_exception | `OrganizationsNotInUseException of organizations_not_in_use_exception | `UnsupportedOperationException of unsupported_operation_exception ]) Stdlib.result

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.