batch_get_comment
async
¶
batch_get_comment(
environment_arn: EnvironmentArn,
project: ProjectName,
keys: CommentKeyList,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = None,
) -> BatchGetCommentOutput
Retrieves multiple comments in a single request. Use it instead of calling GetComment for each comment. If the operation can't return a comment, it lists the comment in errors and still succeeds.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
keys(CommentKeyList) –The comments to retrieve, 1 to 100 per request. Keys must be unique within a request.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Batch get comments on a control Retrieves several comments on a control in one request during the PCI DSS review.
>>> await client.batch_get_comment(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', keys=[{'framework': 'AWS:PCI-DSS', 'frameworkVersion': '4', 'controlId': '8.2.1', 'commentId': '1773484200000'}])