get_assessment_report_content
¶
get_assessment_report_content(
environment_arn: EnvironmentArn,
project: ProjectName,
export_id: ExportId,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
) -> GetAssessmentReportContentOutput
Returns an assessment report. The export must have the status COMPLETED.
A completed report stays available for at least 12 hours after the export starts. If the report is no longer available, start a new export.
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of the environment.
-
project(ProjectName) –The project the export belongs to.
-
export_id(ExportId) –The identifier of an export that has the status
COMPLETED.
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 the content of a finished assessment report
>>> client.get_assessment_report_content(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', export_id='a3f29c1d4b5e4a7c8d9e1a2b3c4d5e6f', project='payments-prod')
Source code in docs_src/capo_assurance/_services/assurance.py
2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 | |