get_cis_scan_result_details
¶
get_cis_scan_result_details(
scan_arn: CisScanArn,
target_resource_id: ResourceId,
account_id: AccountId,
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
filter_criteria: Optional[CisScanResultDetailsFilterCriteria] = None,
sort_by: Optional[CisScanResultDetailsSortBy] = None,
sort_order: Optional[CisSortOrder] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[GetCisScanResultDetailsMaxResults] = None,
) -> GetCisScanResultDetailsResponse
Retrieves CIS scan result details.
Parameters:
-
scan_arn(CisScanArn) –The scan ARN.
-
target_resource_id(ResourceId) –The target resource ID.
-
account_id(AccountId) –The account ID.
-
filter_criteria(Optional[CisScanResultDetailsFilterCriteria], default:None) –The filter criteria.
-
sort_by(Optional[CisScanResultDetailsSortBy], default:None) –The sort by order.
-
sort_order(Optional[CisSortOrder], default:None) –The sort order.
-
next_token(Optional[NextToken], default:None) –The pagination token from a previous request that's used to retrieve the next page of results.
-
max_results(Optional[GetCisScanResultDetailsMaxResults], default:None) –The maximum number of CIS scan result details to be returned in a single page of results.
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.
-
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 GetCisScanResultDetails Call
>>> client.get_cis_scan_result_details(scan_arn='arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-scan/624b746d-e080-44ae-8c1d-48e653365a38', target_resource_id='i-12341234', account_id='123412341234')
Source code in docs_src/capo_inspector2/_services/inspector2.py
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 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 | |