Skip to main content

agent_aliases

Creates, updates, deletes or gets an agent_alias resource or lists agent_aliases in a region

Overview

Nameagent_aliases
TypeResource
DescriptionDefinition of AWS::Bedrock::AgentAlias Resource Type
Idaws.bedrock.agent_aliases

Fields

NameDatatypeDescription
agent_alias_arnstringArn representation of the Agent Alias.
agent_alias_history_eventsarrayThe list of history events for an alias for an Agent.
agent_alias_idstringId for an Agent Alias generated at the server side.
agent_alias_namestringName for a resource.
agent_alias_statusstringThe statuses an Agent Alias can be in.
agent_idstringIdentifier for a resource.
created_atstringTime Stamp.
descriptionstringDescription of the Resource.
routing_configurationarrayRouting configuration for an Agent alias.
tagsobjectA map of tag keys and values
updated_atstringTime Stamp.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAgentAliasName, AgentId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all agent_aliases in a region.

SELECT
region,
agent_alias_arn,
agent_alias_history_events,
agent_alias_id,
agent_alias_name,
agent_alias_status,
agent_id,
created_at,
description,
routing_configuration,
tags,
updated_at
FROM aws.bedrock.agent_aliases
WHERE region = 'us-east-1';

Gets all properties from an individual agent_alias.

SELECT
region,
agent_alias_arn,
agent_alias_history_events,
agent_alias_id,
agent_alias_name,
agent_alias_status,
agent_id,
created_at,
description,
routing_configuration,
tags,
updated_at
FROM aws.bedrock.agent_aliases
WHERE region = 'us-east-1' AND data__Identifier = '<AgentId>|<AgentAliasId>';

INSERT example

Use the following StackQL query and manifest file to create a new agent_alias resource, using stack-deploy.

/*+ create */
INSERT INTO aws.bedrock.agent_aliases (
AgentAliasName,
AgentId,
region
)
SELECT
'{{ AgentAliasName }}',
'{{ AgentId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.bedrock.agent_aliases
WHERE data__Identifier = '<AgentId|AgentAliasId>'
AND region = 'us-east-1';

Permissions

To operate on the agent_aliases resource, the following permissions are required:

Create

bedrock:PrepareAgent,
bedrock:GetAgent,
bedrock:CreateAgentAlias,
bedrock:TagResource,
bedrock:GetAgentAlias,
bedrock:ListTagsForResource

Read

bedrock:GetAgentAlias,
bedrock:ListTagsForResource

Update

bedrock:PrepareAgent,
bedrock:GetAgent,
bedrock:UpdateAgentAlias,
bedrock:TagResource,
bedrock:UntagResource,
bedrock:GetAgentAlias,
bedrock:ListTagsForResource

Delete

bedrock:DeleteAgentAlias

List

bedrock:ListAgentAliases