get_cis_scan_result_details
async
¶
get_cis_scan_result_details(
scan_arn: CisScanArn,
target_resource_id: ResourceId,
account_id: AccountId,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = 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
>>> await 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/async_inspector2.py
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 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 | |