list_evidence_annotations
async
¶
list_evidence_annotations(
environment_arn: EnvironmentArn,
project: ProjectName,
evidence_id: str,
evidence_version: int,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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.
>>> await 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/async_assurance.py
5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 | |