Assurance / Paginator / ListTaskHistory

ListTaskHistory

class Assurance.Paginator.ListTaskHistory
paginator = client.get_paginator('list_task_history')
paginate(**kwargs)

Creates an iterator that will paginate through responses from Assurance.Client.list_task_history().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    environmentArn='string',
    project='string',
    framework='string',
    frameworkVersion='string',
    controlId='string',
    taskId='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': '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.

  • 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 NextToken will 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 NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'history': [
        {
            'comment': 'string',
            'modifiedBy': 'string',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • history (list) –

      The list of task history entries returned.

      • (dict) –

        Entry in task history.

        • comment (string) –

          The comment.

        • modifiedBy (string) –

          The identity of the principal who made this historical change.

        • updatedAt (datetime) –

          The timestamp when this historical change was made.

    • NextToken (string) –

      A token to resume pagination.