Assurance / Client / update_task

update_task

Assurance.Client.update_task(**kwargs)

Updates an existing task.

See also: AWS API Documentation

Request Syntax

response = client.update_task(
    environmentArn='string',
    project='string',
    framework='string',
    frameworkVersion='string',
    controlId='string',
    assessmentId='string',
    taskId='string',
    status='OPEN'|'PENDING'|'COMPLETED'|'CANCELLED',
    dueAt=datetime(2015, 1, 1),
    priority='HIGH'|'MEDIUM'|'LOW'
)
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.

  • assessmentId (string) – The identifier of the assessment.

  • taskId (string) –

    [REQUIRED]

    The identifier of the task.

  • status (string) – The lifecycle state to set on the task.

  • dueAt (datetime) – The new deadline for the task.

  • priority (string) – The relative priority of the item.

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 remediation task after the update, including its status, priority and due date.

      • 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