Skip to main content

organization_recommendations

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

Overview

Nameorganization_recommendations
TypeResource
Idaws.trustedadvisor.organization_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID which identifies where the Recommendation was produced
namestringThe name of the AWS Trusted Advisor Recommendation
arnstringThe ARN of the Recommendation (pattern: <code>arn:[\w-]+:trustedadvisor:::organization-recommendation/[\w-]+</code>)
aws_servicesarrayThe AWS Services that the Recommendation applies to
check_arnstringThe AWS Trusted Advisor Check ARN that relates to the Recommendation
created_atstring (date-time)When the Recommendation was created, if created by AWS Trusted Advisor Priority
created_bystringThe creator, if created by AWS Trusted Advisor Priority
descriptionstringA description for AWS Trusted Advisor recommendations
last_updated_atstring (date-time)When the Recommendation was last updated
lifecycle_stagestringThe lifecycle stage from AWS Trusted Advisor Priority (in_progress, pending_response, dismissed, resolved)
pillar_specific_aggregatesobjectThe pillar aggregations for cost savings
pillarsarrayThe Pillars that the Recommendation is optimizing
resolved_atstring (date-time)When the Recommendation was resolved
resources_aggregatesobjectAn aggregation of all resources
sourcestringThe source of the Recommendation (aws_config, compute_optimizer, cost_explorer, lse, manual, pse, rds, resilience, resilience_hub, security_hub, stir, ta_check, well_architected, cost_optimization_hub)
statusstringThe status of the Recommendation (ok, warning, error)
type_stringWhether the Recommendation was automated or generated by AWS Trusted Advisor Priority (standard, priority)
update_reasonstringReason for the lifecycle stage change (pattern: <code>[\s\S]*</code>)
update_reason_codestringReason code for the lifecycle state change (non_critical_account, temporary_account, valid_business_case, other_methods_available, low_priority, not_applicable, other)
updated_on_behalf_ofstringThe person on whose behalf a Technical Account Manager (TAM) updated the recommendation. This information is only available when a Technical Account Manager takes an action on a recommendation managed by AWS Trusted Advisor Priority
updated_on_behalf_of_job_titlestringThe job title of the person on whose behalf a Technical Account Manager (TAM) updated the recommendation. This information is only available when a Technical Account Manager takes an action on a recommendation managed by AWS Trusted Advisor Priority

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_organization_recommendationselectorganization_recommendation_identifier, regionGet a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations and provides global priority recommendations, eliminating the need to call the API in each AWS Region.
list_organization_recommendationsselectregionnextToken, maxResults, type, status, pillar, awsService, source, checkIdentifier, afterLastUpdatedAt, beforeLastUpdatedAtList a filterable set of Recommendations 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.
update_organization_recommendation_lifecycleupdateorganization_recommendation_identifier, region, lifecycleStageUpdate the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations and updates 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 Recommendation identifier for AWS Trusted Advisor Priority recommendations
regionstringAWS region (default: us-east-1)
afterLastUpdatedAtstring (date-time)After the last update of the Recommendation
awsServicestringThe aws service associated with the Recommendation
beforeLastUpdatedAtstring (date-time)Before the last update of the Recommendation
checkIdentifierstringThe check identifier of the Recommendation
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 of the Recommendation
sourcestringThe source of the Recommendation
statusstringThe status of the Recommendation
typestringThe type of the Recommendation

SELECT examples

Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized recommendations and provides global priority recommendations, eliminating the need to call the API in each AWS Region.

SELECT
id,
name,
arn,
aws_services,
check_arn,
created_at,
created_by,
description,
last_updated_at,
lifecycle_stage,
pillar_specific_aggregates,
pillars,
resolved_at,
resources_aggregates,
source,
status,
type_,
update_reason,
update_reason_code,
updated_on_behalf_of,
updated_on_behalf_of_job_title
FROM aws.trustedadvisor.organization_recommendations
WHERE organization_recommendation_identifier = '{{ organization_recommendation_identifier }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Update the lifecycle of a Recommendation within an Organization. This API only supports prioritized recommendations and updates global priority recommendations, eliminating the need to call the API in each AWS Region.

UPDATE aws.trustedadvisor.organization_recommendations
SET
lifecycleStage = '{{ lifecycleStage }}',
updateReason = '{{ updateReason }}',
updateReasonCode = '{{ updateReasonCode }}'
WHERE
organization_recommendation_identifier = '{{ organization_recommendation_identifier }}' --required
AND region = '{{ region }}' --required
AND lifecycleStage = '{{ lifecycleStage }}' --required;