BedrockAgentCore / Client / delete_recommendation

delete_recommendation

BedrockAgentCore.Client.delete_recommendation(**kwargs)

Deletes a recommendation and its associated results.

See also: AWS API Documentation

Request Syntax

response = client.delete_recommendation(
    recommendationId='string'
)
Parameters:

recommendationId (string) –

[REQUIRED]

The unique identifier of the recommendation to delete.

Return type:

dict

Returns:

Response Syntax

{
    'recommendationId': 'string',
    'status': 'PENDING'|'IN_PROGRESS'|'COMPLETED'|'FAILED'|'DELETING'
}

Response Structure

  • (dict) –

    • recommendationId (string) –

      The unique identifier of the deleted recommendation.

    • status (string) –

      The status of the recommendation deletion operation.

Exceptions

  • BedrockAgentCore.Client.exceptions.AccessDeniedException

  • BedrockAgentCore.Client.exceptions.ConflictException

  • BedrockAgentCore.Client.exceptions.ValidationException

  • BedrockAgentCore.Client.exceptions.ResourceNotFoundException

  • BedrockAgentCore.Client.exceptions.ThrottlingException

  • BedrockAgentCore.Client.exceptions.InternalServerException