get_annotation
¶
get_annotation(
environment_arn: EnvironmentArn,
project: ProjectName,
framework: FrameworkName,
framework_version: FrameworkVersion,
control_id: ControlID,
assessment_id: AssessmentId,
evidence_id: str,
evidence_version: int,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
) -> GetAnnotationOutput
Retrieves the annotation for a specific piece of evidence.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
project(ProjectName) –The name of the project.
-
framework(FrameworkName) –The name of the compliance framework.
-
framework_version(FrameworkVersion) –The version of the compliance framework.
-
control_id(ControlID) –The control identifier. Optional. If omitted, the operation applies to the full framework.
-
assessment_id(AssessmentId) –The identifier of the assessment.
-
evidence_id(str) –The identifier of the evidence the annotation applies to.
-
evidence_version(int) –The version number of the evidence the annotation applies to.
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:
Get an annotation Retrieves the reviewer note attached to a specific evidence version while auditing a PCI-DSS control.
>>> client.get_annotation(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', framework='AWS:PCI-DSS', framework_version='4', control_id='8.2.1', assessment_id='1773480600000', evidence_id='assurance://PCI-DSS-user-access-review.pdf', evidence_version=1)
Source code in docs_src/capo_assurance/_services/assurance.py
2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 | |