Assurance / Paginator / ListComments
ListComments¶
- class Assurance.Paginator.ListComments¶
paginator = client.get_paginator('list_comments')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
Assurance.Client.list_comments().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( environmentArn='string', project='string', framework='string', frameworkVersion='string', controlId='string', filters=[ { 'name': 'task-id', 'values': [ '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.
filters (list) –
The response filter criteria. Optional. See
CommentFilterNamefor 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 comment in the control.(dict) –
One
ListCommentsfilter 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.
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
{ '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) –
A token to resume pagination.