

# TaskDocument

The name, size, and content type of a document that a task was started with. The document's content isn't returned.

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

 ** contentType **   <a name="context-Type-TaskDocument-contentType"></a>
The content type of the document, as declared in the StartTask request.  
Type: String  
Valid Values: `CSV | JSON | YAML | MARKDOWN | SQL | TXT`   
Required: Yes

 ** name **   <a name="context-Type-TaskDocument-name"></a>
The name of the document, as given in the StartTask request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `(?!\.\.?$)[^/\\\p{Cc}]+`   
Required: Yes

 ** sizeBytes **   <a name="context-Type-TaskDocument-sizeBytes"></a>
The size of the document's content, in bytes.  
Type: Long  
Valid Range: Minimum value of 1.  
Required: Yes

## See Also
<a name="API_TaskDocument_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/context-2022-07-26/TaskDocument) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/TaskDocument) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/TaskDocument) 