aws_sdk_inspector2/client/get_cis_scan_report.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetCisScanReport`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`scan_arn(impl Into<String>)`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::scan_arn) / [`set_scan_arn(Option<String>)`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::set_scan_arn):<br>required: **true**<br><p>The scan ARN.</p><br>
7 /// - [`target_accounts(impl Into<String>)`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::target_accounts) / [`set_target_accounts(Option<Vec::<String>>)`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::set_target_accounts):<br>required: **false**<br><p>The target accounts.</p><br>
8 /// - [`report_format(CisReportFormat)`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::report_format) / [`set_report_format(Option<CisReportFormat>)`](crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::set_report_format):<br>required: **false**<br><p>The format of the report. Valid values are <code>PDF</code> and <code>CSV</code>. If no value is specified, the report format defaults to <code>PDF</code>.</p><br>
9 /// - On success, responds with [`GetCisScanReportOutput`](crate::operation::get_cis_scan_report::GetCisScanReportOutput) with field(s):
10 /// - [`url(Option<String>)`](crate::operation::get_cis_scan_report::GetCisScanReportOutput::url): <p>The URL where a PDF or CSV of the CIS scan report can be downloaded.</p>
11 /// - [`status(Option<CisReportStatus>)`](crate::operation::get_cis_scan_report::GetCisScanReportOutput::status): <p>The status.</p>
12 /// - On failure, responds with [`SdkError<GetCisScanReportError>`](crate::operation::get_cis_scan_report::GetCisScanReportError)
13 pub fn get_cis_scan_report(&self) -> crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder {
14 crate::operation::get_cis_scan_report::builders::GetCisScanReportFluentBuilder::new(self.handle.clone())
15 }
16}