Skip to main content

recommendation_resources

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

Overview

Namerecommendation_resources
TypeResource
Idaws.trustedadvisor.recommendation_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the Recommendation Resource
arnstringThe ARN of the Recommendation Resource (pattern: <code>arn:[\w-]+:trustedadvisor::\d{12}:recommendation-resource/[\w-]+/[\w-]+</code>)
aws_resource_idstringThe AWS resource identifier. There are certain checks that generate recommendation resources without an awsResourceId.
exclusion_statusstringThe exclusion status of the Recommendation Resource (excluded, included)
last_updated_atstring (date-time)When the Recommendation Resource was last updated
metadataobjectMetadata associated with the Recommendation Resource
recommendation_arnstringThe Recommendation ARN (pattern: <code>arn:[\w-]+:trustedadvisor::\d{12}:recommendation/[\w-]+</code>)
region_codestringThe AWS Region code that the Recommendation Resource is in
statusstringThe current status of the Recommendation Resource (ok, warning, error)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_recommendation_resourcesselectrecommendation_identifier, regionnextToken, maxResults, status, exclusionStatus, regionCode, languageList Resources of a Recommendation. This API provides global recommendations, eliminating the need to call the API in each AWS Region.

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
recommendation_identifierstringThe Recommendation identifier
regionstringAWS region (default: us-east-1)
exclusionStatusstringThe exclusion status of the resource
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.
regionCodestringThe AWS Region code of the resource
statusstringThe status of the resource

SELECT examples

List Resources of a Recommendation. This API provides global recommendations, eliminating the need to call the API in each AWS Region.

SELECT
id,
arn,
aws_resource_id,
exclusion_status,
last_updated_at,
metadata,
recommendation_arn,
region_code,
status
FROM aws.trustedadvisor.recommendation_resources
WHERE recommendation_identifier = '{{ recommendation_identifier }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND status = '{{ status }}'
AND exclusionStatus = '{{ exclusionStatus }}'
AND regionCode = '{{ regionCode }}'
AND language = '{{ language }}'
;