list_evidence
¶
list_evidence(
environment_arn: EnvironmentArn,
project: ProjectName,
*,
config_overrides: Optional[AssuranceClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
filters: Optional[EvidenceFilterList] = None,
) -> ListEvidenceOutput
Lists evidence items (paginated).
Parameters:
-
environment_arn(EnvironmentArn) –The ARN of this governance environment.
-
max_results(Optional[MaxResults], default:None) –The maximum number of records to return on one page. If you omit it, the operation uses its default page size. If more records are available, use the
nextTokenvalue from the response to get the next page. -
next_token(Optional[PaginationToken], default:None) –The pagination token returned by a previous request. Use it to retrieve the next page of results. If the value is null, there are no more results to return.
-
project(ProjectName) –The project to list evidence for. Each request is scoped to one project.
-
filters(Optional[EvidenceFilterList], default:None) –The response filter criteria. Optional. See
EvidenceFilterNamefor the filterable attributes. A result must match every attribute you name, and matches if it equals any of the values you give for that attribute. Omittingfiltersreturns every evidence item in scope.The
framework,framework-version, andcontrol-idfilters match an evidence item when one of its linked controls matches all of them.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. This error occurs when the request is unauthenticated, or is authenticated but lacks permission to invoke the operation.
-
InternalServerException–An internal server error occurred.
-
ResourceNotFoundException–The requested resource was not found.
-
ThrottlingException–The request was throttled.
-
ValidationException–The request failed validation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List evidence for a project Lists the valid evidence items collected for the payments-prod PCI-DSS assessment.
>>> client.list_evidence(environment_arn='arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', project='payments-prod', filters=[{'name': 'status', 'values': ['VALID']}])
Source code in docs_src/capo_assurance/_services/assurance.py
5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 | |