2026/08/06 - Amazon Bedrock AgentCore - 1 new api methods
Changes Add support for capacity provider sessions in Amazon Bedrock AgentCore. Customers can now delete an active session running on a runtime instance launched through their capacity provider.
Deletes a session associated with a capacity provider in Amazon Bedrock AgentCore and makes the session unavailable for further use. To delete a capacity provider session, specify both the capacity provider identifier and the session ID. After you delete a session, you cannot restart it.
See also: AWS API Documentation
Request Syntax
client.delete_capacity_provider_session(
capacityProviderId='string',
sessionId='string'
)
string
[REQUIRED]
The unique identifier of the capacity provider associated with the session.
string
[REQUIRED]
The unique identifier of the capacity provider session to delete.
dict
Response Syntax
{
'capacityProviderArn': 'string',
'sessionId': 'string',
'status': 'Provisioning'|'Deprovisioning'|'Active'|'Deleting'|'Deleted'|'Stopped'
}
Response Structure
(dict) --
capacityProviderArn (string) --
The Amazon Resource Name (ARN) of the capacity provider associated with the deleted session.
sessionId (string) --
The unique identifier of the deleted capacity provider session.
status (string) --
The current status of the capacity provider session. When the status is Deleting, the session is being deleted and is not available. When the status is Deleted, the session is no longer available.