

# EncodedTextChunk
<a name="API_EncodedTextChunk"></a>

A chunk of pre-tokenized text represented as a list of token IDs.

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

 ** tokens **   <a name="sagemakertrainingsession-Type-EncodedTextChunk-tokens"></a>
The token IDs representing the encoded text.  
Type: Array of integers  
Required: Yes

 ** type **   <a name="sagemakertrainingsession-Type-EncodedTextChunk-type"></a>
The type of the chunk encoding.  
Type: String  
Valid Values: `encoded_text`   
Required: Yes

## See Also
<a name="API_EncodedTextChunk_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/sagemakertrainingsessionruntime-2025-02-10/EncodedTextChunk) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sagemakertrainingsessionruntime-2025-02-10/EncodedTextChunk) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sagemakertrainingsessionruntime-2025-02-10/EncodedTextChunk) 