Skip to main content

agent_contexts

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

Overview

Nameagent_contexts
TypeResource
Idaws.wellarchitected.agent_contexts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the context. (pattern: <code>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}</code>)
application_typestringThe type of application described by this context. (SAS, DESKTOP_APPLICATION, OTHER)
contentobjectTyped content structure for a context. Contains application-specific fields that describe the environment used during recommendation generation.
context_typestringThe type of the context. (APPLICATION)
created_atstring (date-time)The timestamp when the context was created.
created_bystringThe identifier of the user or system that created this context.
criticalitystringThe business criticality of the application described by this context. (MISSION_CRITICAL, BUSINESS_CRITICAL, NON_CRITICAL, TEST_DEVELOPMENT)
last_modified_atstring (date-time)The timestamp when the context was last modified.
last_modified_bystringThe identifier of the user or system that last modified this context.
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 context. (pattern: <code>(?:(?!$&#123;[a-zA-Z]+:)[\P{C}])+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_contextselectprofile_arn, id, regionRetrieves detailed information about a specific context associated with a profile.
list_agent_contextsselectprofile_arn, regionmaxResults, nextTokenLists contexts associated with a profile.
create_agent_contextinsertprofile_arn, region, title, contextType, contentCreates a context associated with an optimization profile. Contexts provide application and environment information used during recommendation generation.
update_agent_contextupdateprofile_arn, id, regionUpdates an existing context associated with a profile.
delete_agent_contextdeleteprofile_arn, id, regionDeletes a context associated with 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 context to delete.
profile_arnstringThe Amazon Resource Name (ARN) of the profile containing the context.
regionstringAWS region (default: us-east-1)
maxResultsinteger
nextTokenstring

SELECT examples

Retrieves detailed information about a specific context associated with a profile.

SELECT
id,
application_type,
content,
context_type,
created_at,
created_by,
criticality,
last_modified_at,
last_modified_by,
profile_arn,
title_
FROM aws.wellarchitected.agent_contexts
WHERE profile_arn = '{{ profile_arn }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a context associated with an optimization profile. Contexts provide application and environment information used during recommendation generation.

INSERT INTO aws.wellarchitected.agent_contexts (
clientToken,
title,
contextType,
content,
profile_arn,
region
)
SELECT
'{{ clientToken }}',
'{{ title }}' /* required */,
'{{ contextType }}' /* required */,
'{{ content }}' /* required */,
'{{ profile_arn }}',
'{{ region }}'
RETURNING
context
;

UPDATE examples

Updates an existing context associated with a profile.

UPDATE aws.wellarchitected.agent_contexts
SET
clientToken = '{{ clientToken }}',
title = '{{ title }}',
content = '{{ content }}'
WHERE
profile_arn = '{{ profile_arn }}' --required
AND id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
context;

DELETE examples

Deletes a context associated with a profile.

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