Skip to main content

agent_profiles

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

Overview

Nameagent_profiles
TypeResource
Idaws.wellarchitected.agent_profiles

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe system name of the profile. (pattern: <code>[a-zA-Z0-9_-]+</code>)
aggregation_configurationarrayThe aggregation configuration.
arnstringThe Amazon Resource Name (ARN) of the profile. (pattern: <code>arn:aws([a-z0-9-]+)?:wellarchitected:[a-z0-9-]{6,64}:\d{12}:agent-profile/([a-zA-Z0-9_-]+)</code>)
business_overviewstringThe business overview of the profile. (pattern: <code>(?:(?!$&#123;[a-zA-Z]+:)[\P{C}])*</code>)
created_atstring (date-time)The timestamp when the profile was created.
created_bystringThe identifier of the user or system that created this profile.
deletion_protectionbooleanIndicates whether deletion protection is enabled.
descriptionstringA description of the profile. (pattern: <code>(?:(?!$&#123;[a-zA-Z]+:)[\P{C}])*</code>)
display_namestringThe display name of the profile. (pattern: <code>(?:(?!$&#123;[a-zA-Z]+:)[\P{C}])+</code>)
eligible_for_architecture_generationbooleanIndicates whether the profile is valid for manual architecture generation.
eligible_for_scheduled_generationbooleanIndicates whether the profile is valid for scheduled recommendation generation.
execution_role_arnstringThe ARN of the IAM execution role. (pattern: <code>arn:([a-z-]+):iam::\d{12}:role/(service-role/)?[a-zA-Z0-9+=,.@-_]+</code>)
field_errorsobjectA map of field paths to error messages for invalid or missing input fields.
last_modified_atstring (date-time)The timestamp when the profile was last modified.
last_modified_bystringThe identifier of the user or system that last modified this profile.
pillarsarrayThe Well-Architected Tool Framework pillars associated with the profile.
tagsarrayThe tags associated with the profile.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_profileselectprofile_arn, regionRetrieves detailed information about an optimization profile, including its configuration and metadata.
list_agent_profilesselectregionmaxResults, nextTokenLists optimization profiles in your account. Profiles define the scope and configuration for generating optimization recommendations.
create_agent_profileinsertregion, name, pillars, executionRoleArn, aggregationConfigurationCreates an optimization profile that defines the scope and configuration for generating recommendations. A profile specifies the execution role, target pillars, and aggregation settings for analyzing your Amazon Web Services resources.
update_agent_profileupdateprofile_arn, regionUpdates an existing optimization profile's configuration, including its pillars, execution role, and aggregation settings.
delete_agent_profiledeleteprofile_arn, regionDeletes an optimization profile and its associated configuration. This action cannot be undone.

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 profile to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of profiles to return in a single call. Default is 100.
nextTokenstringA pagination token returned from a previous call to continue retrieving results.

SELECT examples

Retrieves detailed information about an optimization profile, including its configuration and metadata.

SELECT
name,
aggregation_configuration,
arn,
business_overview,
created_at,
created_by,
deletion_protection,
description,
display_name,
eligible_for_architecture_generation,
eligible_for_scheduled_generation,
execution_role_arn,
field_errors,
last_modified_at,
last_modified_by,
pillars,
tags
FROM aws.wellarchitected.agent_profiles
WHERE profile_arn = '{{ profile_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an optimization profile that defines the scope and configuration for generating recommendations. A profile specifies the execution role, target pillars, and aggregation settings for analyzing your Amazon Web Services resources.

INSERT INTO aws.wellarchitected.agent_profiles (
name,
displayName,
description,
businessOverview,
pillars,
deletionProtection,
executionRoleArn,
aggregationConfiguration,
clientToken,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ displayName }}',
'{{ description }}',
'{{ businessOverview }}',
'{{ pillars }}' /* required */,
{{ deletionProtection }},
'{{ executionRoleArn }}' /* required */,
'{{ aggregationConfiguration }}' /* required */,
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
name,
aggregation_configuration,
arn,
business_overview,
created_at,
created_by,
deletion_protection,
description,
display_name,
eligible_for_architecture_generation,
eligible_for_scheduled_generation,
execution_role_arn,
field_errors,
last_modified_at,
last_modified_by,
pillars,
tags
;

UPDATE examples

Updates an existing optimization profile's configuration, including its pillars, execution role, and aggregation settings.

UPDATE aws.wellarchitected.agent_profiles
SET
clientToken = '{{ clientToken }}',
displayName = '{{ displayName }}',
description = '{{ description }}',
executionRoleArn = '{{ executionRoleArn }}',
aggregationConfiguration = '{{ aggregationConfiguration }}',
businessOverview = '{{ businessOverview }}',
pillars = '{{ pillars }}',
deletionProtection = {{ deletionProtection }}
WHERE
profile_arn = '{{ profile_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
aggregation_configuration,
arn,
business_overview,
created_at,
created_by,
deletion_protection,
description,
display_name,
eligible_for_architecture_generation,
eligible_for_scheduled_generation,
execution_role_arn,
field_errors,
last_modified_at,
last_modified_by,
pillars,
tags;

DELETE examples

Deletes an optimization profile and its associated configuration. This action cannot be undone.

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