

# ListEventDataStores
<a name="API_ListEventDataStores"></a>

**Important**  
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](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-service-availability-change.html).

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

## Request Syntax
<a name="API_ListEventDataStores_RequestSyntax"></a>

```
{
   "MaxResults": number,
   "NextToken": "string"
}
```

## Request Parameters
<a name="API_ListEventDataStores_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [MaxResults](#API_ListEventDataStores_RequestSyntax) **   <a name="awscloudtrail-ListEventDataStores-request-MaxResults"></a>
The maximum number of event data stores to display on a single page.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 1000.  
Required: No

 ** [NextToken](#API_ListEventDataStores_RequestSyntax) **   <a name="awscloudtrail-ListEventDataStores-request-NextToken"></a>
A token you can use to get the next page of event data store results.  
Type: String  
Length Constraints: Minimum length of 4. Maximum length of 1000.  
Pattern: `.*`   
Required: No

## Response Syntax
<a name="API_ListEventDataStores_ResponseSyntax"></a>

```
{
   "EventDataStores": [ 
      { 
         "AdvancedEventSelectors": [ 
            { 
               "FieldSelectors": [ 
                  { 
                     "EndsWith": [ "string" ],
                     "Equals": [ "string" ],
                     "Field": "string",
                     "NotEndsWith": [ "string" ],
                     "NotEquals": [ "string" ],
                     "NotStartsWith": [ "string" ],
                     "StartsWith": [ "string" ]
                  }
               ],
               "Name": "string"
            }
         ],
         "CreatedTimestamp": number,
         "EventDataStoreArn": "string",
         "MultiRegionEnabled": boolean,
         "Name": "string",
         "OrganizationEnabled": boolean,
         "RetentionPeriod": number,
         "Status": "string",
         "TerminationProtectionEnabled": boolean,
         "UpdatedTimestamp": number
      }
   ],
   "NextToken": "string"
}
```

## Response Elements
<a name="API_ListEventDataStores_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [EventDataStores](#API_ListEventDataStores_ResponseSyntax) **   <a name="awscloudtrail-ListEventDataStores-response-EventDataStores"></a>
Contains information about event data stores in the account, in the current Region.  
Type: Array of [EventDataStore](API_EventDataStore.md) objects

 ** [NextToken](#API_ListEventDataStores_ResponseSyntax) **   <a name="awscloudtrail-ListEventDataStores-response-NextToken"></a>
A token you can use to get the next page of results.  
Type: String  
Length Constraints: Minimum length of 4. Maximum length of 1000.  
Pattern: `.*` 

## Errors
<a name="API_ListEventDataStores_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** InvalidMaxResultsException **   
This exception is thrown if the limit specified is not valid.  
HTTP Status Code: 400

 ** InvalidNextTokenException **   
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.  
HTTP Status Code: 400

 ** NoManagementAccountSLRExistsException **   
 This exception is thrown when the management account does not have a service-linked role.   
HTTP Status Code: 400

 ** OperationNotPermittedException **   
This exception is thrown when the requested operation is not permitted.  
HTTP Status Code: 400

 ** UnsupportedOperationException **   
This exception is thrown when the requested operation is not supported.  
HTTP Status Code: 400

## See Also
<a name="API_ListEventDataStores_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/cloudtrail-2013-11-01/ListEventDataStores) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudtrail-2013-11-01/ListEventDataStores) 