Skip to main content

agent_recommendations

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

Overview

Nameagent_recommendations
TypeResource
Idaws.wellarchitected.agent_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
applicationsarrayThe applications that the recommendation targets.
aws_servicesarrayThe Amazon Web Services services that the recommendation applies to.
business_unitsarrayThe business units that own the affected resources.
created_atstring (date-time)The timestamp when the recommendation was created.
created_bystringThe identifier of the user or system that created this recommendation.
cross_pillar_benefitsarrayCross-pillar benefits of acting on the recommendation.
descriptionstringA description of the recommendation.
effortstringThe effort required to implement the recommendation. (LARGE, MEDIUM, SMALL)
goalsarrayGoals that this recommendation targets.
highlightsarrayHighlights describing what was detected.
impactstringThe severity of the recommendation's impact. (HIGH, MEDIUM, LOW)
impact_detailsarrayDetailed impact information for the recommendation.
insightsarrayA list of insights about the recommendation.
last_modified_atstring (date-time)The timestamp when the recommendation was last modified.
last_modified_bystringThe identifier of the user or system that last modified this recommendation.
number_of_resourcesintegerThe number of Amazon Web Services resources this recommendation affects.
pillarstringThe Well-Architected Tool Framework pillar that the recommendation addresses. (COST_OPTIMIZATION, SECURITY, RESILIENCE, PERFORMANCE, OPERATIONAL_EXCELLENCE)
prioritystringThe priority of the recommendation. (HIGH, MEDIUM, LOW)
profile_arnstringThe Amazon Resource Name (ARN) of the associated profile. (pattern: <code>arn:aws([a-z0-9-]+)?:wellarchitected:[a-z0-9-]{6,64}:\d{12}:agent-profile/([a-zA-Z0-9_-]+)</code>)
recommendation_arnstringThe Amazon Resource Name (ARN) of the recommendation. (pattern: <code>arn:aws([a-z0-9-]+)?:wellarchitected:[a-z0-9-]{6,64}:\d{12}:agent-recommendation/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
remediation_summaryobjectA high-level summary of the recommended remediation.
remediationsarrayA list of remediations for the recommendation.
roiobjectThe return on investment estimate for the recommendation.
sourcesarraySources that generated this recommendation.
statestringThe current state of the recommendation. (OPEN, CLOSED)
statusstringThe current status of the recommendation. (ACTIVE, SUPPRESSED, COMPLETED)
tagsarrayA set of key-value pairs associated with the recommendation, used for cost allocation and access control.
title_stringThe title of the recommendation.
trade_offsarrayTrade-offs of acting on the recommendation.
type_stringThe type of the recommendation. (RESOURCE, ARCHITECTURE, APPLICATION)
update_reasonstringThe free-text reason associated with the recommendation's most recent status update.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_recommendationselectrecommendation_arn, regionremediationTypeRetrieves detailed information about a specific optimization recommendation, including its impact analysis, content, and implementation guidance.
list_agent_recommendationsselectprofile_arn, regionmaxResults, nextToken, state, pillarLists active optimization recommendations for a specified profile with optional filtering by state.
update_agent_recommendation_statusupdaterecommendation_arn, region, statusUpdates the status of a recommendation to track its progress through the implementation lifecycle.
put_agent_recommendation_feedbackreplacerecommendation_arn, region, typeSubmits user feedback on a recommendation to help improve future optimization suggestions and track implementation outcomes.
start_agent_recommendation_generationexecprofile_arn, region, types, scopeInitiates a new recommendation generation process for the specified optimization profile. This asynchronous operation analyzes your Amazon Web Services resources and generates optimization recommendations based on the configured pillars and scope. Use GetAgentRecommendationGeneration to check status.

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
profile_arnstringThe Amazon Resource Name (ARN) of the optimization profile to use for generating recommendations.
recommendation_arnstringThe Amazon Resource Name (ARN) of the recommendation to provide feedback for.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of recommendations to return in a single response.
nextTokenstringA pagination token returned from a previous call to continue retrieving results.
pillarstringOptional filter to return only recommendations for the specified pillar.
remediationTypestringOptional filter on remediation type.
statestringOptional filter to return only recommendations with the specified state (OPEN or CLOSED).

SELECT examples

Retrieves detailed information about a specific optimization recommendation, including its impact analysis, content, and implementation guidance.

SELECT
applications,
aws_services,
business_units,
created_at,
created_by,
cross_pillar_benefits,
description,
effort,
goals,
highlights,
impact,
impact_details,
insights,
last_modified_at,
last_modified_by,
number_of_resources,
pillar,
priority,
profile_arn,
recommendation_arn,
remediation_summary,
remediations,
roi,
sources,
state,
status,
tags,
title_,
trade_offs,
type_,
update_reason
FROM aws.wellarchitected.agent_recommendations
WHERE recommendation_arn = '{{ recommendation_arn }}' -- required
AND region = '{{ region }}' -- required
AND remediationType = '{{ remediationType }}'
;

UPDATE examples

Updates the status of a recommendation to track its progress through the implementation lifecycle.

UPDATE aws.wellarchitected.agent_recommendations
SET
status = '{{ status }}',
updateReason = '{{ updateReason }}'
WHERE
recommendation_arn = '{{ recommendation_arn }}' --required
AND region = '{{ region }}' --required
AND status = '{{ status }}' --required;

REPLACE examples

Submits user feedback on a recommendation to help improve future optimization suggestions and track implementation outcomes.

REPLACE aws.wellarchitected.agent_recommendations
SET
type = '{{ type }}',
feedbackCategory = '{{ feedbackCategory }}',
comments = '{{ comments }}'
WHERE
recommendation_arn = '{{ recommendation_arn }}' --required
AND region = '{{ region }}' --required
AND type = '{{ type }}' --required;

Lifecycle Methods

Initiates a new recommendation generation process for the specified optimization profile. This asynchronous operation analyzes your Amazon Web Services resources and generates optimization recommendations based on the configured pillars and scope. Use GetAgentRecommendationGeneration to check status.

EXEC aws.wellarchitected.agent_recommendations.start_agent_recommendation_generation
@profile_arn='{{ profile_arn }}' --required,
@region='{{ region }}' --required
@@json=
'{
"types": "{{ types }}",
"name": "{{ name }}",
"additionalContext": "{{ additionalContext }}",
"scope": "{{ scope }}"
}'
;