Assurance / Paginator / ListTasks
ListTasks¶
- class Assurance.Paginator.ListTasks¶
paginator = client.get_paginator('list_tasks')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Assurance.Client.list_tasks().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( environmentArn='string', project='string', filters=[ { 'name': 'framework'|'framework-version'|'control-id'|'task-id'|'status'|'priority'|'assessment-id', 'values': [ 'string', ] }, ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
project (string) –
[REQUIRED]
The project to list tasks for. Each request is scoped to one project.
filters (list) –
The response filter criteria. Optional. See
TaskFilterNamefor the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omittingfiltersreturns every task in the project.A single-valued criterion for
framework,framework-version, orcontrol-idnarrows the results when every broader component is also supplied. When a broader component is absent, the criterion is applied to the returned results.An
assessment-idcriterion returns the task history for that assessment. It accepts one value and requires single-valuedframework,framework-version, andcontrol-idcriteria alongside it.(dict) –
A single
ListTasksfilter criterion. Values within one criterion are combined with OR; criteria naming different attributes are combined with AND. Repeating an attribute name unions its value lists. Every criterion matches on exact equality.name (string) – [REQUIRED]
The task attribute to match on.
values (list) – [REQUIRED]
The values to match the attribute against, compared for exact equality.
(string) –
A value to match against a filter attribute. The match is exact. Wildcards aren’t supported.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'tasks': [ { 'environment': 'string', 'project': 'string', 'framework': 'string', 'frameworkVersion': 'string', 'controlId': 'string', 'taskId': 'string', 'title': 'string', 'status': 'OPEN'|'PENDING'|'COMPLETED'|'CANCELLED', 'createdBy': 'string', 'assessmentId': 'string', 'dueAt': datetime(2015, 1, 1), 'priority': 'HIGH'|'MEDIUM'|'LOW' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
tasks (list) –
The list of tasks.
(dict) –
Contains a summary of a 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.
status (string) –
The current lifecycle state of the task.
createdBy (string) –
The identity of the principal who created the task.
assessmentId (string) –
The assessment whose task history this task was reached through. Present when the request selected an assessment.
dueAt (datetime) –
The deadline for the task.
priority (string) –
The relative priority of the item.
NextToken (string) –
A token to resume pagination.