Skip to main content

organization_recommendation_resources

Creates, updates, deletes, gets or lists an organization_recommendation_resources resource.

Overview

Nameorganization_recommendation_resources
TypeResource
Idaws.trustedadvisor.organization_recommendation_resources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the Recommendation Resource
account_idstringThe AWS account ID (pattern: <code>\d+</code>)
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:::organization-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_organization_recommendation_resourcesselectorganization_recommendation_identifier, regionnextToken, maxResults, status, exclusionStatus, regionCode, affectedAccountIdList Resources of a Recommendation within an Organization. This API only supports prioritized recommendations and provides global priority 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
organization_recommendation_identifierstringThe AWS Organization organization's Recommendation identifier
regionstringAWS region (default: us-east-1)
affectedAccountIdstringAn account affected by this organization recommendation
exclusionStatusstringThe exclusion status of the resource
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 within an Organization. This API only supports prioritized recommendations and provides global priority recommendations, eliminating the need to call the API in each AWS Region.

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