

# ListImportFailures
<a name="API_ListImportFailures"></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.amazonaws.cn/awscloudtrail/latest/userguide/cloudtrail-lake-service-availability-change.html).

 Returns a list of failures for the specified import. 

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

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

## Request Parameters
<a name="API_ListImportFailures_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.

 ** [ImportId](#API_ListImportFailures_RequestSyntax) **   <a name="awscloudtrail-ListImportFailures-request-ImportId"></a>
 The ID of the import.   
Type: String  
Length Constraints: Fixed length of 36.  
Pattern: `^[a-f0-9\-]+$`   
Required: Yes

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

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

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

```
{
   "Failures": [ 
      { 
         "ErrorMessage": "string",
         "ErrorType": "string",
         "LastUpdatedTime": number,
         "Location": "string",
         "Status": "string"
      }
   ],
   "NextToken": "string"
}
```

## Response Elements
<a name="API_ListImportFailures_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.

 ** [Failures](#API_ListImportFailures_ResponseSyntax) **   <a name="awscloudtrail-ListImportFailures-response-Failures"></a>
 Contains information about the import failures.   
Type: Array of [ImportFailureListItem](API_ImportFailureListItem.md) objects

 ** [NextToken](#API_ListImportFailures_ResponseSyntax) **   <a name="awscloudtrail-ListImportFailures-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_ListImportFailures_Errors"></a>

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

 ** 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

 ** InvalidParameterException **   
The request includes a parameter that is not valid.  
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_ListImportFailures_SeeAlso"></a>

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