| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Inspector.GetAssessmentReport
Description
Produces an assessment report that includes detailed and comprehensive results of a specified assessment run.
Synopsis
- data GetAssessmentReport = GetAssessmentReport' {}
- newGetAssessmentReport :: Text -> ReportFileFormat -> ReportType -> GetAssessmentReport
- getAssessmentReport_assessmentRunArn :: Lens' GetAssessmentReport Text
- getAssessmentReport_reportFileFormat :: Lens' GetAssessmentReport ReportFileFormat
- getAssessmentReport_reportType :: Lens' GetAssessmentReport ReportType
- data GetAssessmentReportResponse = GetAssessmentReportResponse' {
- url :: Maybe Text
- httpStatus :: Int
- status :: ReportStatus
- newGetAssessmentReportResponse :: Int -> ReportStatus -> GetAssessmentReportResponse
- getAssessmentReportResponse_url :: Lens' GetAssessmentReportResponse (Maybe Text)
- getAssessmentReportResponse_httpStatus :: Lens' GetAssessmentReportResponse Int
- getAssessmentReportResponse_status :: Lens' GetAssessmentReportResponse ReportStatus
Creating a Request
data GetAssessmentReport Source #
See: newGetAssessmentReport smart constructor.
Constructors
| GetAssessmentReport' | |
Fields
| |
Instances
newGetAssessmentReport Source #
Arguments
| :: Text | |
| -> ReportFileFormat | |
| -> ReportType | |
| -> GetAssessmentReport |
Create a value of GetAssessmentReport with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetAssessmentReport, getAssessmentReport_assessmentRunArn - The ARN that specifies the assessment run for which you want to generate
a report.
$sel:reportFileFormat:GetAssessmentReport', getAssessmentReport_reportFileFormat - Specifies the file format (html or pdf) of the assessment report that
you want to generate.
$sel:reportType:GetAssessmentReport', getAssessmentReport_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.
Request Lenses
getAssessmentReport_assessmentRunArn :: Lens' GetAssessmentReport Text Source #
The ARN that specifies the assessment run for which you want to generate a report.
getAssessmentReport_reportFileFormat :: Lens' GetAssessmentReport ReportFileFormat Source #
Specifies the file format (html or pdf) of the assessment report that you want to generate.
getAssessmentReport_reportType :: Lens' GetAssessmentReport ReportType Source #
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.
Destructuring the Response
data GetAssessmentReportResponse Source #
See: newGetAssessmentReportResponse smart constructor.
Constructors
| GetAssessmentReportResponse' | |
Fields
| |
Instances
newGetAssessmentReportResponse Source #
Arguments
| :: Int | |
| -> ReportStatus | |
| -> GetAssessmentReportResponse |
Create a value of GetAssessmentReportResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:url:GetAssessmentReportResponse', getAssessmentReportResponse_url - Specifies the URL where you can find the generated assessment report.
This parameter is only returned if the report is successfully generated.
$sel:httpStatus:GetAssessmentReportResponse', getAssessmentReportResponse_httpStatus - The response's http status code.
$sel:status:GetAssessmentReportResponse', getAssessmentReportResponse_status - Specifies the status of the request to generate an assessment report.
Response Lenses
getAssessmentReportResponse_url :: Lens' GetAssessmentReportResponse (Maybe Text) Source #
Specifies the URL where you can find the generated assessment report. This parameter is only returned if the report is successfully generated.
getAssessmentReportResponse_httpStatus :: Lens' GetAssessmentReportResponse Int Source #
The response's http status code.
getAssessmentReportResponse_status :: Lens' GetAssessmentReportResponse ReportStatus Source #
Specifies the status of the request to generate an assessment report.