Assurance / Client / batch_get_comment
batch_get_comment¶
- Assurance.Client.batch_get_comment(**kwargs)¶
Retrieves multiple comments in a single request. Use it instead of calling
GetCommentfor each comment. If the operation can’t return a comment, it lists the comment inerrorsand still succeeds.See also: AWS API Documentation
Request Syntax
response = client.batch_get_comment( environmentArn='string', project='string', keys=[ { 'framework': 'string', 'frameworkVersion': 'string', 'controlId': 'string', 'commentId': 'string' }, ] )
- Parameters:
environmentArn (string) –
[REQUIRED]
The ARN of this governance environment.
project (string) –
[REQUIRED]
The name of the project.
keys (list) –
[REQUIRED]
The comments to retrieve, 1 to 100 per request. Keys must be unique within a request.
(dict) –
Identifying key for a single comment in a batch request (within the environment and project named in the request).
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.
commentId (string) – [REQUIRED]
The unique identifier of the comment.
- Return type:
dict
- Returns:
Response Syntax
{ 'comments': [ { 'environment': 'string', 'project': 'string', 'framework': 'string', 'frameworkVersion': 'string', 'controlId': 'string', 'taskId': 'string', 'commentId': 'string', 'content': 'string', 'addedBy': 'string', 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'errors': [ { 'key': { 'framework': 'string', 'frameworkVersion': 'string', 'controlId': 'string', 'commentId': 'string' }, 'code': 'string', 'message': 'string' }, ] }
Response Structure
(dict) –
comments (list) –
The list of comments.
(dict) –
Full comment structure returned in responses.
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.
content (string) –
The free-text content of the comment.
addedBy (string) –
The identity of the principal who added the comment.
createdAt (datetime) –
The timestamp when the comment was created.
updatedAt (datetime) –
The timestamp when the comment was last updated.
errors (list) –
The entries for requested comments that the operation could not return. Empty when the operation returned all of them; a request in which every comment failed still succeeds.
(dict) –
A requested comment that the operation could not return, along with the reason.
key (dict) –
The identifier of the comment that the operation could not retrieve.
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.
commentId (string) –
The unique identifier of the comment.
code (string) –
The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.
message (string) –
A human-readable explanation of why the operation could not return this comment. Intended for display and logging; match on
codefor programmatic handling.
Exceptions
Assurance.Client.exceptions.ValidationExceptionAssurance.Client.exceptions.InternalServerExceptionAssurance.Client.exceptions.ThrottlingExceptionAssurance.Client.exceptions.AccessDeniedExceptionAssurance.Client.exceptions.ResourceNotFoundException