list_app_assessments
¶
list_app_assessments(
*,
config_overrides: Optional[resiliencehubClientConfig] = None,
app_arn: Optional[Arn] = None,
assessment_name: Optional[EntityName] = None,
assessment_status: Optional[AssessmentStatusList] = None,
compliance_status: Optional[ComplianceStatus] = None,
invoker: Optional[AssessmentInvoker] = None,
reverse_order: Optional[BooleanOptional] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListAppAssessmentsResponse
Lists the assessments for an Resilience Hub application. You can use request parameters to refine the results for the response object.
Parameters:
-
app_arn(Optional[Arn], default:None) –Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:
partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. -
assessment_name(Optional[EntityName], default:None) –The name for the assessment.
-
assessment_status(Optional[AssessmentStatusList], default:None) –The current status of the assessment for the resiliency policy.
-
compliance_status(Optional[ComplianceStatus], default:None) –The current status of compliance for the resiliency policy.
-
invoker(Optional[AssessmentInvoker], default:None) –Specifies the entity that invoked a specific assessment, either a
Useror theSystem. -
reverse_order(Optional[BooleanOptional], default:None) –The default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to
true. -
next_token(Optional[NextToken], default:None) –Null, or the token from a previous call to get the next set of results.
-
max_results(Optional[MaxResults], default:None) –Maximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, a token is included in the response so that the remaining results can be retrieved.
Raises:
-
AccessDeniedException–You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions.
-
InternalServerException–This exception occurs when there is an internal failure in the Resilience Hub service.
-
ResourceNotFoundException–This exception occurs when the specified resource could not be found.
-
ThrottlingException–This exception occurs when you have exceeded the limit on the number of requests per second.
-
ValidationException–This exception occurs when a request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_resiliencehub/_services/resiliencehub.py
2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 | |