list_evidence_annotations
¶
list_evidence_annotations(
environment_arn: EnvironmentArn,
project: ProjectName,
evidence_id: str,
evidence_version: int,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
) -> ListEvidenceAnnotationsOutput
Lists the annotations on one version of a piece of evidence within a project, paginated.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The project scope for the annotation list. Each request is scoped to one project.
-
evidence_id(str) –The identifier of the evidence whose annotations are listed.
-
evidence_version(int) –The version number of the evidence whose annotations are listed. Required. The operation returns annotations for exactly one version. To retrieve annotations across all versions, call
ListEvidenceto get the available versions, then call this operation once for each version. -
max_results(Optional[MaxResults], default:None) –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
nextTokenvalue from the response to get the next page. -
next_token(Optional[PaginationToken], default:None) –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.
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:
List annotations for an evidence version Lists the reviewer notes attached to one version of an evidence item during a PCI-DSS review.
>>> client.list_evidence_annotations(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', evidence_id='assurance://PCI-DSS-user-access-review.pdf', evidence_version=1)
Source code in docs_src/capo_assurance/_services/assurance.py
5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 | |