AgentsforBedrock / Client / delete_agent_version
delete_agent_version#
- AgentsforBedrock.Client.delete_agent_version(**kwargs)#
Deletes a version of an agent.
See also: AWS API Documentation
Request Syntax
response = client.delete_agent_version( agentId='string', agentVersion='string', skipResourceInUseCheck=True|False )
- Parameters:
agentId (string) –
[REQUIRED]
The unique identifier of the agent that the version belongs to.
agentVersion (string) –
[REQUIRED]
The version of the agent to delete.
skipResourceInUseCheck (boolean) – By default, this value is
false
and deletion is stopped if the resource is in use. If you set it totrue
, the resource will be deleted even if the resource is in use.
- Return type:
dict
- Returns:
Response Syntax
{ 'agentId': 'string', 'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING', 'agentVersion': 'string' }
Response Structure
(dict) –
agentId (string) –
The unique identifier of the agent that the version belongs to.
agentStatus (string) –
The status of the agent version.
agentVersion (string) –
The version that was deleted.
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