Skip to main content

recommendations_for_resources

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

Overview

Namerecommendations_for_resources
TypeResource
Idaws.trustedadvisor.recommendations_for_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aws_resource_arnstringThe AWS Resource ARN (pattern: <code>arn:aws(-\w+):[\w\d-]+:([\w\d-])?:[\w\d_-]([:/].+)</code>)
check_arnstringThe Check ARN (pattern: <code>arn:[\w-]+:trustedadvisor:::check/[\w-]+</code>)
exclusion_statusstringThe exclusion status of the recommendation (excluded, included)
last_updated_atstring (date-time)When the recommendation was last updated
metadataobjectMetadata associated with the recommendation
pillarsarrayThe Pillars that the Recommendation is optimizing
recommendation_arnstringThe Recommendation ARN (pattern: <code>arn:[\w-]+:trustedadvisor::\d{12}:recommendation/[\w-]+</code>)
statusstringThe current status of the recommendation (ok, warning, error)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_recommendations_for_resourceselectaws_resource_arn, regionnextToken, maxResults, pillar, status, checkArn, languageList all Trusted Advisor recommendations for a given AWS resource ARN.

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
aws_resource_arnstringThe ARN of the AWS resource to query recommendations for
regionstringAWS region (default: us-east-1)
checkArnstringThe AWS Trusted Advisor Check ARN that relates to the Recommendation
languagestringThe ISO 639-1 code for the language that you want your recommendations to appear in.
maxResultsintegerThe maximum number of results to return per page
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
pillarstringThe pillar that the recommendation belongs to
statusstringThe current status of the Recommendation Resource

SELECT examples

List all Trusted Advisor recommendations for a given AWS resource ARN.

SELECT
aws_resource_arn,
check_arn,
exclusion_status,
last_updated_at,
metadata,
pillars,
recommendation_arn,
status
FROM aws.trustedadvisor.recommendations_for_resources
WHERE aws_resource_arn = '{{ aws_resource_arn }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND pillar = '{{ pillar }}'
AND status = '{{ status }}'
AND checkArn = '{{ checkArn }}'
AND language = '{{ language }}'
;