AgentsforBedrock / Client / create_agent_alias
create_agent_alias#
- AgentsforBedrock.Client.create_agent_alias(**kwargs)#
Creates an Alias for an existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
response = client.create_agent_alias( agentId='string', agentAliasName='string', clientToken='string', description='string', routingConfiguration=[ { 'agentVersion': 'string' }, ], tags={ 'string': 'string' } )
- Parameters:
agentId (string) –
[REQUIRED]
Id generated at the server side when an Agent is created
agentAliasName (string) –
[REQUIRED]
Name for a resource.
clientToken (string) –
Client specified token used for idempotency checks
This field is autopopulated if not provided.
description (string) – Description of the Resource.
routingConfiguration (list) –
Routing configuration for an Agent alias.
(dict) –
Details about the routing configuration for an Agent alias.
agentVersion (string) – [REQUIRED]
Agent Version.
tags (dict) –
A map of tag keys and values
(string) –
Key of a tag
(string) –
Value of a tag
- Return type:
dict
- Returns:
Response Syntax
{ 'agentAlias': { 'agentId': 'string', 'agentAliasId': 'string', 'agentAliasName': 'string', 'agentAliasArn': 'string', 'clientToken': 'string', 'description': 'string', 'routingConfiguration': [ { 'agentVersion': 'string' }, ], 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'agentAliasHistoryEvents': [ { 'routingConfiguration': [ { 'agentVersion': 'string' }, ], 'endDate': datetime(2015, 1, 1), 'startDate': datetime(2015, 1, 1) }, ], 'agentAliasStatus': 'CREATING'|'PREPARED'|'FAILED'|'UPDATING'|'DELETING' } }
Response Structure
(dict) –
Create Agent Alias Response
agentAlias (dict) –
Contains the information of an agent alias
agentId (string) –
Identifier for a resource.
agentAliasId (string) –
Id for an Agent Alias generated at the server side.
agentAliasName (string) –
Name for a resource.
agentAliasArn (string) –
Arn representation of the Agent Alias.
clientToken (string) –
Client specified token used for idempotency checks
description (string) –
Description of the Resource.
routingConfiguration (list) –
Routing configuration for an Agent alias.
(dict) –
Details about the routing configuration for an Agent alias.
agentVersion (string) –
Agent Version.
createdAt (datetime) –
Time Stamp.
updatedAt (datetime) –
Time Stamp.
agentAliasHistoryEvents (list) –
The list of history events for an alias for an Agent.
(dict) –
History event for an alias for an Agent.
routingConfiguration (list) –
Routing configuration for an Agent alias.
(dict) –
Details about the routing configuration for an Agent alias.
agentVersion (string) –
Agent Version.
endDate (datetime) –
Time Stamp.
startDate (datetime) –
Time Stamp.
agentAliasStatus (string) –
The statuses an Agent Alias can be in.
Exceptions
AgentsforBedrock.Client.exceptions.ThrottlingException
AgentsforBedrock.Client.exceptions.AccessDeniedException
AgentsforBedrock.Client.exceptions.ValidationException
AgentsforBedrock.Client.exceptions.InternalServerException
AgentsforBedrock.Client.exceptions.ResourceNotFoundException
AgentsforBedrock.Client.exceptions.ConflictException
AgentsforBedrock.Client.exceptions.ServiceQuotaExceededException