get_cis_scan_report
¶
get_cis_scan_report(
scan_arn: CisScanArn,
*,
config_overrides: Optional[Inspector2ClientConfig] = 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
>>> 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/inspector2.py
2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 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 | |