Skip to main content

review_templates

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

Overview

Namereview_templates
TypeResource
Idaws.wellarchitected.review_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
descriptionstringThe review template description. (pattern: <code>[A-Za-z0-9-_.,:/()@!&?#+'’\s]+</code>)
lensesarrayThe lenses applied to the review template.
notesstringThe notes associated with the workload. For a review template, these are the notes that will be associated with the workload when the template is applied.
ownerstringAn Amazon Web Services account ID. (pattern: <code>[0-9]{12}</code>)
question_countsobjectA count of how many total questions are answered and unanswered in the review template.
share_invitation_idstringThe ID assigned to the template share invitation. (pattern: <code>[0-9a-f]{32}</code>)
tagsobjectThe tags assigned to the review template.
template_arnstringThe review template ARN. (pattern: <code>arn:aws(-us-gov|-iso(-[a-z])?|-cn)?:wellarchitected:[a-z]{2}(-gov|-iso([a-z])?)?-[a-z]+-\d:\d{12}:(review-template)/[a-f0-9]{32}</code>)
template_namestringThe name of the review template. (pattern: <code>[A-Za-z0-9-_.,:/()@!&?#+'’\s]+</code>)
update_statusstringThe latest status of a review template. (CURRENT, LENS_NOT_CURRENT)
updated_atstring (date-time)The date and time when the review template was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_review_templateselecttemplate_arn, regionGet review template.
list_review_templatesselectregionNextToken, MaxResultsList review templates.
create_review_templateinsertregion, TemplateName, Description, Lenses, ClientRequestTokenCreate a review template. Disclaimer Do not include or gather personal identifiable information (PII) of end users or other identifiable individuals in or via your review templates. If your review template or those shared with you and used in your account do include or collect PII you are responsible for: ensuring that the included PII is processed in accordance with applicable law, providing adequate privacy notices, and obtaining necessary consents for processing such data.
update_review_templateupdatetemplate_arn, regionUpdate a review template.
delete_review_templatedeletetemplate_arn, ClientRequestToken, regionDelete a review template. Only the owner of a review template can delete it. After the review template is deleted, Amazon Web Services accounts, users, organizations, and organizational units (OUs) that you shared the review template with will no longer be able to apply it to new workloads.

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
ClientRequestTokenstring
regionstringAWS region (default: us-east-1)
template_arnstringThe review template ARN.
MaxResultsinteger
NextTokenstring

SELECT examples

Get review template.

SELECT
description,
lenses,
notes,
owner,
question_counts,
share_invitation_id,
tags,
template_arn,
template_name,
update_status,
updated_at
FROM aws.wellarchitected.review_templates
WHERE template_arn = '{{ template_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a review template. Disclaimer Do not include or gather personal identifiable information (PII) of end users or other identifiable individuals in or via your review templates. If your review template or those shared with you and used in your account do include or collect PII you are responsible for: ensuring that the included PII is processed in accordance with applicable law, providing adequate privacy notices, and obtaining necessary consents for processing such data.

INSERT INTO aws.wellarchitected.review_templates (
TemplateName,
Description,
Lenses,
Notes,
Tags,
ClientRequestToken,
region
)
SELECT
'{{ TemplateName }}' /* required */,
'{{ Description }}' /* required */,
'{{ Lenses }}' /* required */,
'{{ Notes }}',
'{{ Tags }}',
'{{ ClientRequestToken }}' /* required */,
'{{ region }}'
RETURNING
template_arn
;

UPDATE examples

Update a review template.

UPDATE aws.wellarchitected.review_templates
SET
TemplateName = '{{ TemplateName }}',
Description = '{{ Description }}',
Notes = '{{ Notes }}',
LensesToAssociate = '{{ LensesToAssociate }}',
LensesToDisassociate = '{{ LensesToDisassociate }}'
WHERE
template_arn = '{{ template_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
review_template;

DELETE examples

Delete a review template. Only the owner of a review template can delete it. After the review template is deleted, Amazon Web Services accounts, users, organizations, and organizational units (OUs) that you shared the review template with will no longer be able to apply it to new workloads.

DELETE FROM aws.wellarchitected.review_templates
WHERE template_arn = '{{ template_arn }}' --required
AND ClientRequestToken = '{{ ClientRequestToken }}' --required
AND region = '{{ region }}' --required
;