Assurance / Client / get_task
get_task¶
- Assurance.Client.get_task(**kwargs)¶
Retrieves a specific task by its identifying fields.
See also: AWS API Documentation
Request Syntax
response = client.get_task( environmentArn='string', project='string', framework='string', frameworkVersion='string', controlId='string', taskId='string' )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
project (string) –
[REQUIRED]
The name of the project.
framework (string) –
[REQUIRED]
The name of the compliance framework.
frameworkVersion (string) –
[REQUIRED]
The version of the compliance framework.
controlId (string) –
[REQUIRED]
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) –
[REQUIRED]
The identifier of the task.
- Return type:
dict
- Returns:
Response Syntax
{ 'task': { 'environment': 'string', 'project': 'string', 'framework': 'string', 'frameworkVersion': 'string', 'controlId': 'string', 'taskId': 'string', 'title': 'string', 'description': 'string', 'status': 'OPEN'|'PENDING'|'COMPLETED'|'CANCELLED', 'createdBy': 'string', 'dueAt': datetime(2015, 1, 1), 'priority': 'HIGH'|'MEDIUM'|'LOW', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
task (dict) –
The task.
environment (string) –
The name of the governance environment the task belongs to.
project (string) –
The name of the project.
framework (string) –
The name of the compliance framework.
frameworkVersion (string) –
The version of the compliance framework.
controlId (string) –
The control identifier. Optional. If omitted, the operation applies to the full framework.
taskId (string) –
The identifier of the task.
title (string) –
The human-readable title of the task.
description (string) –
A description of the task.
status (string) –
The current lifecycle state of the task.
createdBy (string) –
The identity of the principal who created the task.
dueAt (datetime) –
The deadline for the task.
priority (string) –
The relative priority of the item.
createdAt (datetime) –
The timestamp when the task was created.
updatedAt (datetime) –
The timestamp when the task was last updated.
Exceptions