Skip to content

Bedrock Agent  >  Operations  >  delete_agent_version

delete_agent_version

Operation

delete_agent_version async

delete_agent_version(input: DeleteAgentVersionInput, plugins: list[Plugin] | None = None) -> DeleteAgentVersionOutput

Deletes a version of an agent.

Parameters:

Name Type Description Default
input DeleteAgentVersionInput

An instance of DeleteAgentVersionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteAgentVersionOutput

An instance of DeleteAgentVersionOutput.

Input

DeleteAgentVersionInput dataclass

Dataclass for DeleteAgentVersionInput structure.

Attributes

agent_id class-attribute instance-attribute
agent_id: str | None = None

The unique identifier of the agent that the version belongs to.

agent_version class-attribute instance-attribute
agent_version: str | None = None

The version of the agent to delete.

skip_resource_in_use_check class-attribute instance-attribute
skip_resource_in_use_check: bool = False

By default, this value is false and deletion is stopped if the resource is in use. If you set it to true, the resource will be deleted even if the resource is in use.

Output

DeleteAgentVersionOutput dataclass

Dataclass for DeleteAgentVersionOutput structure.

Attributes

agent_id instance-attribute
agent_id: str

The unique identifier of the agent that the version belongs to.

agent_status instance-attribute
agent_status: AgentStatus

The status of the agent version.

agent_version instance-attribute
agent_version: str

The version that was deleted.