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
- agentContextId
-
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
-
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
-
The date and time when the task was created.
Type: Timestamp
Required: Yes
- id
-
The ID of the task. Pass it as
taskIdto 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
-
The status of the task. A task moves from
PENDINGtoIN_PROGRESSand endsCOMPLETED,FAILED, orCANCELLED. After CancelTask, it isCANCELLINGuntil it stops.Type: String
Valid Values:
PENDING | IN_PROGRESS | COMPLETED | FAILED | CANCELLING | CANCELLEDRequired: Yes
- type
-
The type of the task. It is set by the
inputConfigurationmember that the task was started with:IMPORT_DATA_DICTIONARY,IMPORT_VERIFIED_QUERIES, orIMPORT_ONTOLOGY.Type: String
Valid Values:
IMPORT_DATA_DICTIONARY | IMPORT_VERIFIED_QUERIES | IMPORT_ONTOLOGYRequired: Yes
- updatedAt
-
The date and time when the task was last updated, such as when its status changed. Equal to
createdAtuntil the task first changes.Type: Timestamp
Required: Yes
- description
-
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
-
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, orCANCELLED.Type: TaskStatistics object
Required: No
- statusMessage
-
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
-
The code for why the task failed. Present only when
statusisFAILED.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_IMPORTEDRequired: No
-
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: