Skip to main content

review_template_answers

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

Overview

Namereview_template_answers
TypeResource
Idaws.wellarchitected.review_template_answers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
answerobjectAn answer of the question.
lens_aliasstringThe alias of the lens. For Amazon Web Services official lenses, this is either the lens alias, such as serverless, or the lens ARN, such as arn:aws:wellarchitected:us-east-1::lens/serverless. Note that some operations (such as ExportLens and CreateLensShare) are not permitted on Amazon Web Services official lenses. For custom lenses, this is the lens ARN, such as arn:aws:wellarchitected:us-west-2:123456789012:lens/0123456789abcdef01234567890abcdef. Each lens is identified by its LensSummary$LensAlias.
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>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_review_template_answerselecttemplate_arn, lens_alias, question_id, regionGet review template answer.
list_review_template_answersselecttemplate_arn, lens_alias, regionPillarId, NextToken, MaxResultsList the answers of a review template.
update_review_template_answerupdatetemplate_arn, lens_alias, question_id, regionUpdate a review template answer.

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
lens_aliasstring
question_idstring
regionstringAWS region (default: us-east-1)
template_arnstringThe review template ARN.
MaxResultsintegerThe maximum number of results to return for this request.
NextTokenstring
PillarIdstring

SELECT examples

Get review template answer.

SELECT
answer,
lens_alias,
template_arn
FROM aws.wellarchitected.review_template_answers
WHERE template_arn = '{{ template_arn }}' -- required
AND lens_alias = '{{ lens_alias }}' -- required
AND question_id = '{{ question_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Update a review template answer.

UPDATE aws.wellarchitected.review_template_answers
SET
SelectedChoices = '{{ SelectedChoices }}',
ChoiceUpdates = '{{ ChoiceUpdates }}',
Notes = '{{ Notes }}',
IsApplicable = {{ IsApplicable }},
Reason = '{{ Reason }}'
WHERE
template_arn = '{{ template_arn }}' --required
AND lens_alias = '{{ lens_alias }}' --required
AND question_id = '{{ question_id }}' --required
AND region = '{{ region }}' --required
RETURNING
answer,
lens_alias,
template_arn;