get_assessment_report
async
¶
get_assessment_report(
assessment_run_arn: Arn,
report_file_format: ReportFileFormat,
report_type: ReportType,
*,
config_overrides: Optional[AsyncInspectorClientConfig] = None,
) -> GetAssessmentReportResponse
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
Parameters:
-
assessment_run_arn(Arn) –The ARN that specifies the assessment run for which you want to generate a report.
-
report_file_format(ReportFileFormat) –Specifies the file format (html or pdf) of the assessment report that you want to generate.
-
report_type(ReportType) –Specifies the type of the assessment report that you want to generate. There are two types of assessment reports: a finding report and a full report. For more information, see Assessment Reports.
Raises:
-
AccessDeniedException–You do not have required permissions to access the requested resource.
-
AssessmentRunInProgressException–You cannot perform a specified action if an assessment run is currently in progress.
-
InternalException–Internal server error.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
NoSuchEntityException–The request was rejected because it referenced an entity that does not exist. The error code describes the entity.
-
ServiceTemporarilyUnavailableException–The serice is temporary unavailable.
-
UnsupportedFeatureException–Used by the GetAssessmentReport API. The request was rejected because you tried to generate a report for an assessment run that existed before reporting was supported in Amazon Inspector. You can only generate reports for assessment runs that took place or will take place after generating reports in Amazon Inspector became available.
-
UnknownServiceError–The service returned an error code this client does not model.