AgentsforBedrock / Client / delete_data_source

delete_data_source#

AgentsforBedrock.Client.delete_data_source(**kwargs)#

Delete an existing data source

See also: AWS API Documentation

Request Syntax

response = client.delete_data_source(
    knowledgeBaseId='string',
    dataSourceId='string'
)
Parameters:
  • knowledgeBaseId (string) –

    [REQUIRED]

    Identifier for a resource.

  • dataSourceId (string) –

    [REQUIRED]

    Identifier for a resource.

Return type:

dict

Returns:

Response Syntax

{
    'knowledgeBaseId': 'string',
    'dataSourceId': 'string',
    'status': 'AVAILABLE'|'DELETING'
}

Response Structure

  • (dict) –

    • knowledgeBaseId (string) –

      Identifier for a resource.

    • dataSourceId (string) –

      Identifier for a resource.

    • status (string) –

      The status of a data source.

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