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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.bedrock.agent_aliases
WHERE
Identifier = '{{ agent_id }}|{{ agent_alias_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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