Skip to content

Bedrock Agent  >  Operations  >  get_data_source

get_data_source

Operation

get_data_source async

get_data_source(input: GetDataSourceInput, plugins: list[Plugin] | None = None) -> GetDataSourceOutput

Gets information about a data source.

Parameters:

Name Type Description Default
input GetDataSourceInput

An instance of GetDataSourceInput.

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
GetDataSourceOutput

An instance of GetDataSourceOutput.

Input

GetDataSourceInput dataclass

Dataclass for GetDataSourceInput structure.

Attributes

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

The unique identifier of the data source.

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

The unique identifier of the knowledge base for the data source.

Output

GetDataSourceOutput dataclass

Dataclass for GetDataSourceOutput structure.

Attributes

data_source instance-attribute
data_source: DataSource

Contains details about the data source.