

# IngestionFailureReason
<a name="API_IngestionFailureReason"></a>

A reason that explains why an ingestion stopped.

## Contents
<a name="API_IngestionFailureReason_Contents"></a>

 ** code **   <a name="opensearchserverless-Type-IngestionFailureReason-code"></a>
The code that identifies the reason for the failure.  
Type: String  
Valid Values: `SOURCE_ACCESS_DENIED | SOURCE_RESOURCE_NOT_FOUND | DESTINATION_ACCESS_DENIED | DESTINATION_RESOURCE_NOT_FOUND | INTERNAL_SERVER_ERROR`   
Required: No

 ** message **   <a name="opensearchserverless-Type-IngestionFailureReason-message"></a>
A description of the reason for the failure.  
Type: String  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/opensearchserverless-2021-11-01/IngestionFailureReason) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/opensearchserverless-2021-11-01/IngestionFailureReason) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/opensearchserverless-2021-11-01/IngestionFailureReason) 