Assurance / Client / list_comments

list_comments

Assurance.Client.list_comments(**kwargs)

Lists the comments on a specific control, optionally narrowed to a task.

See also: AWS API Documentation

Request Syntax

response = client.list_comments(
    environmentArn='string',
    project='string',
    framework='string',
    frameworkVersion='string',
    controlId='string',
    filters=[
        {
            'name': 'task-id',
            'values': [
                'string',
            ]
        },
    ],
    maxResults=123,
    nextToken='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.

  • filters (list) –

    The response filter criteria. Optional. See CommentFilterName for 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. Omitting filters returns every comment in the control.

    • (dict) –

      One ListComments filter criterion.

      A result matches if it equals any of the values you give for one attribute, and must match every attribute you name. Repeating an attribute name combines its value lists.

      • name (string) – [REQUIRED]

        The comment 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.

  • maxResults (integer) – The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the nextToken value from the response to get the next page.

  • nextToken (string) – The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Return type:

dict

Returns:

Response Syntax

{
    'comments': [
        {
            'environment': 'string',
            'project': 'string',
            'framework': 'string',
            'frameworkVersion': 'string',
            'controlId': 'string',
            'taskId': 'string',
            'commentId': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • comments (list) –

      The list of comments.

      • (dict) –

        Contains a summary of a comment, without its content or author.

        • environment (string) –

          The name of the governance environment the comment 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.

        • commentId (string) –

          The unique identifier of the comment.

    • nextToken (string) –

      The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.

Exceptions