list_recommendation_templates
async
¶
list_recommendation_templates(
*,
config_overrides: Optional[AsyncresiliencehubClientConfig] = None,
assessment_arn: Optional[Arn] = None,
reverse_order: Optional[BooleanOptional] = None,
status: Optional[RecommendationTemplateStatusList] = None,
recommendation_template_arn: Optional[Arn] = None,
name: Optional[EntityName] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListRecommendationTemplatesResponse
Lists the recommendation templates for the Resilience Hub applications.
Parameters:
-
assessment_arn(Optional[Arn], default:None) –Amazon Resource Name (ARN) of the assessment. The format for this ARN is: arn:
partition:resiliencehub:region:account:app-assessment/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. -
reverse_order(Optional[BooleanOptional], default:None) –The default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to
true. -
status(Optional[RecommendationTemplateStatusList], default:None) –Status of the action.
-
recommendation_template_arn(Optional[Arn], default:None) –The Amazon Resource Name (ARN) for a recommendation template.
-
name(Optional[EntityName], default:None) –The name for one of the listed recommendation templates.
-
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.
-
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/async_resiliencehub.py
3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 | |