

# TaskSummary

Summary information about a task, as returned by ListTasks: its ID, ARN, agent context, type, status, description, timestamps, status reason code and message, and statistics. It omits the task's input configuration and outputs, which GetTask returns.

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

 ** agentContextId **   <a name="context-Type-TaskSummary-agentContextId"></a>
The agent context's ID.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 180.  
Pattern: `(arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:agent-context/)?[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

 ** arn **   <a name="context-Type-TaskSummary-arn"></a>
The Amazon Resource Name (ARN) of the task.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):context:[a-z0-9\-]{1,32}:\d{12}:agent-context/[a-z0-9]+(-[a-z0-9]+)*/task/[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

 ** createdAt **   <a name="context-Type-TaskSummary-createdAt"></a>
The date and time when the task was created.  
Type: Timestamp  
Required: Yes

 ** id **   <a name="context-Type-TaskSummary-id"></a>
The ID of the task. Pass it as `taskId` to GetTask or CancelTask.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-z0-9]+(-[a-z0-9]+)*`   
Required: Yes

 ** status **   <a name="context-Type-TaskSummary-status"></a>
The status of the task. A task moves from `PENDING` to `IN_PROGRESS` and ends `COMPLETED`, `FAILED`, or `CANCELLED`. After CancelTask, it is `CANCELLING` until it stops.  
Type: String  
Valid Values: `PENDING | IN_PROGRESS | COMPLETED | FAILED | CANCELLING | CANCELLED`   
Required: Yes

 ** type **   <a name="context-Type-TaskSummary-type"></a>
The type of the task. It is set by the `inputConfiguration` member that the task was started with: `IMPORT_DATA_DICTIONARY`, `IMPORT_VERIFIED_QUERIES`, or `IMPORT_ONTOLOGY`.  
Type: String  
Valid Values: `IMPORT_DATA_DICTIONARY | IMPORT_VERIFIED_QUERIES | IMPORT_ONTOLOGY`   
Required: Yes

 ** updatedAt **   <a name="context-Type-TaskSummary-updatedAt"></a>
The date and time when the task was last updated, such as when its status changed. Equal to `createdAt` until the task first changes.  
Type: Timestamp  
Required: Yes

 ** description **   <a name="context-Type-TaskSummary-description"></a>
The description of the task, as given to StartTask.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 1024.  
Pattern: `\P{Cc}*`   
Required: No

 ** statistics **   <a name="context-Type-TaskSummary-statistics"></a>
Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is `COMPLETED`, `FAILED`, or `CANCELLED`.  
Type: [TaskStatistics](API_TaskStatistics.md) object  
Required: No

 ** statusMessage **   <a name="context-Type-TaskSummary-statusMessage"></a>
The reason the task failed. Present only when status is FAILED.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 2048.  
Required: No

 ** statusReasonCode **   <a name="context-Type-TaskSummary-statusReasonCode"></a>
The code for why the task failed. Present only when `status` is `FAILED`.  
Valid values:  
+  `GRAPH_NOT_ACTIVE` - The agent context was deleted, or was not yet available, while the task ran.
+  `ONTOLOGY_INVALID` - An ontology is missing, has no loadable source, or its source is unsafe or too large.
+  `ONTOLOGY_IMPORT_UNAVAILABLE` - An ontology couldn't be imported because of a temporary problem. Start a new task.
+  `ONTOLOGY_ALREADY_IMPORTED` - This ontology version is already imported into the agent context.
Type: String  
Valid Values: `GRAPH_NOT_ACTIVE | ONTOLOGY_INVALID | ONTOLOGY_IMPORT_UNAVAILABLE | ONTOLOGY_ALREADY_IMPORTED`   
Required: No

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