list_recommendation_templates
¶
list_recommendation_templates(
*,
config_overrides: Optional[resiliencehubClientConfig] = 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/resiliencehub.py
3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 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 | |