get_assessment_report_content
async
¶
get_assessment_report_content(
environment_arn: EnvironmentArn,
project: ProjectName,
export_id: ExportId,
*,
config_overrides: Optional[AsyncAssuranceClientConfig] = 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
>>> await 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/async_assurance.py
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 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 | |