Skip to main content

recommendation_templates

Creates, updates, deletes, gets or lists a recommendation_templates resource.

Overview

Namerecommendation_templates
TypeResource
Idaws.resiliencehub.recommendation_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringToken for the next set of results, or null if there are no more results. (pattern: <code>^\S{1,2000}$</code>)
recommendation_templatesarrayThe recommendation templates for the Resilience Hub applications.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_recommendation_templatesselectregionassessmentArn, maxResults, name, nextToken, recommendationTemplateArn, reverseOrder, statusLists the recommendation templates for the Resilience Hub applications.
create_recommendation_templateinsertregion, assessmentArn, nameCreates a new recommendation template for the Resilience Hub application.
delete_recommendation_templatedeleteregionDeletes a recommendation template. This is a destructive action that can't be undone.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
assessmentArnstringAmazon 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.
maxResultsintegerMaximum number of results to include in the response. If more results exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
namestringThe name for one of the listed recommendation templates.
nextTokenstringNull, or the token from a previous call to get the next set of results.
recommendationTemplateArnstringThe Amazon Resource Name (ARN) for a recommendation template.
reverseOrderbooleanThe default is to sort by ascending startTime. To sort by descending startTime, set reverseOrder to true.
statusarrayStatus of the action.

SELECT examples

Lists the recommendation templates for the Resilience Hub applications.

SELECT
next_token,
recommendation_templates
FROM aws.resiliencehub.recommendation_templates
WHERE region = '{{ region }}' -- required
AND assessmentArn = '{{ assessmentArn }}'
AND maxResults = '{{ maxResults }}'
AND name = '{{ name }}'
AND nextToken = '{{ nextToken }}'
AND recommendationTemplateArn = '{{ recommendationTemplateArn }}'
AND reverseOrder = '{{ reverseOrder }}'
AND status = '{{ status }}'
;

INSERT examples

Creates a new recommendation template for the Resilience Hub application.

INSERT INTO aws.resiliencehub.recommendation_templates (
assessmentArn,
bucketName,
clientToken,
format,
name,
recommendationIds,
recommendationTypes,
tags,
region
)
SELECT
'{{ assessmentArn }}' /* required */,
'{{ bucketName }}',
'{{ clientToken }}',
'{{ format }}',
'{{ name }}' /* required */,
'{{ recommendationIds }}',
'{{ recommendationTypes }}',
'{{ tags }}',
'{{ region }}'
RETURNING
recommendation_template
;

DELETE examples

Deletes a recommendation template. This is a destructive action that can't be undone.

DELETE FROM aws.resiliencehub.recommendation_templates
WHERE region = '{{ region }}' --required
;