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
Idawscc.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.

For more information, see AWS::Bedrock::AgentAlias.

Methods

NameResourceAccessible byRequired Params
create_resourceagent_aliasesINSERTAgentAliasName, AgentId, region
delete_resourceagent_aliasesDELETEIdentifier, region
update_resourceagent_aliasesUPDATEIdentifier, PatchDocument, region
list_resourcesagent_aliases_list_onlySELECTregion
get_resourceagent_aliasesSELECTIdentifier, region

SELECT examples

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 awscc.bedrock.agent_aliases
WHERE
region = 'us-east-1' AND
Identifier = '{{ agent_id }}|{{ agent_alias_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.bedrock.agent_aliases
SET PatchDocument = string('{{ {
"AgentAliasName": agent_alias_name,
"Description": description,
"RoutingConfiguration": routing_configuration,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ agent_id }}|{{ agent_alias_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.agent_aliases
WHERE
Identifier = '{{ agent_id }}|{{ agent_alias_id }}' AND
region = 'us-east-1';

Permissions

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

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