Skip to content

list_event_data_stores

list_event_data_stores(
    *,
    config_overrides: Optional[CloudTrailClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[ListEventDataStoresMaxResultsCount] = None,
) -> ListEventDataStoresResponse

CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change.

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

Parameters:

Raises:

Source code in docs_src/capo_cloudtrail/_services/cloud_trail.py
def list_event_data_stores(
    self,
    *,
    config_overrides: Optional[CloudTrailClientConfig] = None,
    next_token: Optional[
        "capo_cloudtrail.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional[
        "capo_cloudtrail.types.list_event_data_stores_max_results_count.ListEventDataStoresMaxResultsCount"
    ] = None,
) -> "capo_cloudtrail.types.list_event_data_stores_response.ListEventDataStoresResponse":
    """<important> <p>CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-service-availability-change.html">CloudTrail Lake availability change</a>.</p> </important> <p>Returns information about all event data stores in the account, in the current Region.</p>

    Args:
        next_token: <p>A token you can use to get the next page of event data store results.</p>
        max_results: <p>The maximum number of event data stores to display on a single page.</p>

    Raises:
        capo_cloudtrail.errors.invalid_max_results_exception.InvalidMaxResultsException: <p>This exception is thrown if the limit specified is not valid.</p>
        capo_cloudtrail.errors.invalid_next_token_exception.InvalidNextTokenException: <p>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.</p>
        capo_cloudtrail.errors.no_management_account_slr_exists_exception.NoManagementAccountSLRExistsException: <p> This exception is thrown when the management account does not have a service-linked role. </p>
        capo_cloudtrail.errors.operation_not_permitted_exception.OperationNotPermittedException: <p>This exception is thrown when the requested operation is not permitted.</p>
        capo_cloudtrail.errors.unsupported_operation_exception.UnsupportedOperationException: <p>This exception is thrown when the requested operation is not supported.</p>
        capo_cloudtrail.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cloudtrail.types.list_event_data_stores_request.ListEventDataStoresRequest]",
    ) -> OperationResponse[
        "capo_cloudtrail.types.list_event_data_stores_response.ListEventDataStoresResponse"
    ]:
        import capo_cloudtrail._operations.cloud_trail_20131101.list_event_data_stores

        output, http_response = (
            capo_cloudtrail._operations.cloud_trail_20131101.list_event_data_stores.list_event_data_stores(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListEventDataStores")
    )
    input_: capo_cloudtrail.types.list_event_data_stores_request.ListEventDataStoresRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output