get_cis_scan_report
async
¶
get_cis_scan_report(
scan_arn: CisScanArn,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = None,
target_accounts: Optional[ReportTargetAccounts] = None,
report_format: Optional[CisReportFormat] = None,
) -> GetCisScanReportResponse
Retrieves a CIS scan report.
Parameters:
-
scan_arn(CisScanArn) –The scan ARN.
-
target_accounts(Optional[ReportTargetAccounts], default:None) –The target accounts.
-
report_format(Optional[CisReportFormat], default:None) –The format of the report. Valid values are
PDFandCSV. If no value is specified, the report format defaults toPDF.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ResourceNotFoundException–The operation tried to access an invalid resource. Make sure the resource is specified correctly.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Sample GetCisScanReport Call
>>> await client.get_cis_scan_report(scan_arn='arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-scan/624b746d-e080-44ae-8c1d-48e653365a38', report_format='PDF')
Source code in docs_src/capo_inspector2/_services/async_inspector2.py
2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 | |