Skip to main content

agent_goals

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

Overview

Nameagent_goals
TypeResource
Idaws.wellarchitected.agent_goals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the goal. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
created_atstring (date-time)The timestamp when the goal was created.
created_bystringThe identifier of the user or system that created this goal.
descriptionstringA description of the goal. (pattern: <code>(?:(?!$&#123;[a-zA-Z]+:)[\P{C}])+</code>)
last_modified_atstring (date-time)The timestamp when the goal was last modified.
last_modified_bystringThe identifier of the user or system that last modified this goal.
pillarsarrayThe Well-Architected Tool Framework pillars associated with this goal.
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>)
title_stringThe title of the goal. (pattern: <code>(?:(?!$&#123;[a-zA-Z]+:)[\P{C}])+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_goalselectprofile_arn, id, regionRetrieves detailed information about a specific optimization goal.
list_agent_goalsselectprofile_arn, regionmaxResults, nextTokenLists optimization goals associated with a specified profile. Goals define specific targets and objectives for the optimization process.
create_agent_goalinsertprofile_arn, region, pillars, titleCreates an optimization goal associated with a profile. Goals define specific targets and objectives for the optimization process.
update_agent_goalupdateprofile_arn, id, regionUpdates the pillars and title of an existing goal associated with a profile.
delete_agent_goaldeleteprofile_arn, id, regionDeletes an optimization goal from a profile.

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
idstringThe unique identifier of the goal to delete.
profile_arnstringThe Amazon Resource Name (ARN) of the profile containing the goal.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of goals to return in a single response.
nextTokenstringA pagination token returned from a previous call to continue retrieving results.

SELECT examples

Retrieves detailed information about a specific optimization goal.

SELECT
id,
created_at,
created_by,
description,
last_modified_at,
last_modified_by,
pillars,
profile_arn,
title_
FROM aws.wellarchitected.agent_goals
WHERE profile_arn = '{{ profile_arn }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an optimization goal associated with a profile. Goals define specific targets and objectives for the optimization process.

INSERT INTO aws.wellarchitected.agent_goals (
clientToken,
pillars,
title,
description,
profile_arn,
region
)
SELECT
'{{ clientToken }}',
'{{ pillars }}' /* required */,
'{{ title }}' /* required */,
'{{ description }}',
'{{ profile_arn }}',
'{{ region }}'
RETURNING
goal
;

UPDATE examples

Updates the pillars and title of an existing goal associated with a profile.

UPDATE aws.wellarchitected.agent_goals
SET
clientToken = '{{ clientToken }}',
pillars = '{{ pillars }}',
title = '{{ title }}',
description = '{{ description }}'
WHERE
profile_arn = '{{ profile_arn }}' --required
AND id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
goal;

DELETE examples

Deletes an optimization goal from a profile.

DELETE FROM aws.wellarchitected.agent_goals
WHERE profile_arn = '{{ profile_arn }}' --required
AND id = '{{ id }}' --required
AND region = '{{ region }}' --required
;