2023/11/28 - Agents for Amazon Bedrock - 40 new api methods
Changes This release adds support for customization types, model life cycle status and minor versions/aliases for model identifiers.
Lists Agents
See also: AWS API Documentation
Request Syntax
client.list_agents(
    maxResults=123,
    nextToken='string'
)
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'agentSummaries': [
        {
            'agentId': 'string',
            'agentName': 'string',
            'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
            'description': 'string',
            'updatedAt': datetime(2015, 1, 1),
            'latestAgentVersion': 'string'
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
List Agent Response
agentSummaries (list) --
List of AgentSummary.
(dict) --
Summary of Agent.
agentId (string) --
Identifier for a resource.
agentName (string) --
Name for a resource.
agentStatus (string) --
Schema Type for Action APIs.
description (string) --
Description of the Resource.
updatedAt (datetime) --
Time Stamp.
latestAgentVersion (string) --
Agent Version.
nextToken (string) --
Opaque continuation token of previous paginated response.
Deletes an Agent version for existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.delete_agent_version(
    agentId='string',
    agentVersion='string',
    skipResourceInUseCheck=True|False
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Numerical Agent Version.
boolean
Skips checking if resource is in use when set to true. Defaults to false
dict
Response Syntax
{
    'agentId': 'string',
    'agentVersion': 'string',
    'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING'
}
Response Structure
(dict) --
Delete Agent Version Response
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Numerical Agent Version.
agentStatus (string) --
Schema Type for Action APIs.
List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version
See also: AWS API Documentation
Request Syntax
client.list_agent_knowledge_bases(
    agentId='string',
    agentVersion='string',
    maxResults=123,
    nextToken='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Version number generated when a version is created
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'agentKnowledgeBaseSummaries': [
        {
            'knowledgeBaseId': 'string',
            'description': 'string',
            'knowledgeBaseState': 'ENABLED'|'DISABLED',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
List Agent Knowledge Bases Response
agentKnowledgeBaseSummaries (list) --
List of Agent Knowledge Base Summaries
(dict) --
Agent Knowledge Base Summary
knowledgeBaseId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
knowledgeBaseState (string) --
State of the knowledge base; whether it is enabled or disabled
updatedAt (datetime) --
Time Stamp.
nextToken (string) --
Opaque continuation token of previous paginated response.
List Knowledge Bases
See also: AWS API Documentation
Request Syntax
client.list_knowledge_bases(
    maxResults=123,
    nextToken='string'
)
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'knowledgeBaseSummaries': [
        {
            'knowledgeBaseId': 'string',
            'name': 'string',
            'description': 'string',
            'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'FAILED',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
knowledgeBaseSummaries (list) --
List of KnowledgeBaseSummaries
(dict) --
Summary information of a knowledge base.
knowledgeBaseId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
description (string) --
Description of the Resource.
status (string) --
The status of a knowledge base.
updatedAt (datetime) --
Time Stamp.
nextToken (string) --
Opaque continuation token of previous paginated response.
Disassociate an existing Knowledge Base from an Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.disassociate_agent_knowledge_base(
    agentId='string',
    agentVersion='string',
    knowledgeBaseId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Draft Version of the Agent.
string
[REQUIRED]
Id generated at the server side when a Knowledge Base is associated to an Agent
dict
Response Syntax
{}
Response Structure
(dict) --
Disassociate Agent Knowledge Base Response
Untag a resource
See also: AWS API Documentation
Request Syntax
client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
string
[REQUIRED]
ARN of Taggable resources: [Agent, AgentAlias, Knowledge-Base]
list
[REQUIRED]
List of Tag Keys
(string) --
Key of a tag
dict
Response Syntax
{}
Response Structure
(dict) --
List ingestion jobs
See also: AWS API Documentation
Request Syntax
client.list_ingestion_jobs(
    knowledgeBaseId='string',
    dataSourceId='string',
    filters=[
        {
            'attribute': 'STATUS',
            'operator': 'EQ',
            'values': [
                'string',
            ]
        },
    ],
    sortBy={
        'attribute': 'STATUS'|'STARTED_AT',
        'order': 'ASCENDING'|'DESCENDING'
    },
    maxResults=123,
    nextToken='string'
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
list
List of IngestionJobFilters
(dict) --
Filters the response returned by ListIngestionJobs operation.
attribute (string) -- [REQUIRED]
The name of the field to filter ingestion jobs.
operator (string) -- [REQUIRED]
The operator used to filter ingestion jobs.
values (list) -- [REQUIRED]
The list of values used to filter ingestion jobs.
(string) --
The value used to filter ingestion jobs.
dict
Sorts the response returned by ListIngestionJobs operation.
attribute (string) -- [REQUIRED]
The name of the field to sort ingestion jobs.
order (string) -- [REQUIRED]
Order to sort results by.
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'ingestionJobSummaries': [
        {
            'knowledgeBaseId': 'string',
            'dataSourceId': 'string',
            'ingestionJobId': 'string',
            'description': 'string',
            'status': 'STARTING'|'IN_PROGRESS'|'COMPLETE'|'FAILED',
            'startedAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'statistics': {
                'numberOfDocumentsScanned': 123,
                'numberOfNewDocumentsIndexed': 123,
                'numberOfModifiedDocumentsIndexed': 123,
                'numberOfDocumentsDeleted': 123,
                'numberOfDocumentsFailed': 123
            }
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
ingestionJobSummaries (list) --
List of IngestionJobSummaries
(dict) --
Summary information of an ingestion job.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
ingestionJobId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
status (string) --
The status of an ingestion job.
startedAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
statistics (dict) --
The document level statistics of an ingestion job
numberOfDocumentsScanned (integer) --
Number of scanned documents
numberOfNewDocumentsIndexed (integer) --
Number of indexed documents
numberOfModifiedDocumentsIndexed (integer) --
Number of modified documents indexed
numberOfDocumentsDeleted (integer) --
Number of deleted documents
numberOfDocumentsFailed (integer) --
Number of failed documents
nextToken (string) --
Opaque continuation token of previous paginated response.
Lists an Action Group for existing Amazon Bedrock Agent Version
See also: AWS API Documentation
Request Syntax
client.list_agent_action_groups(
    agentId='string',
    agentVersion='string',
    maxResults=123,
    nextToken='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is Listed
string
[REQUIRED]
Id generated at the server side when an Agent is Listed
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'actionGroupSummaries': [
        {
            'actionGroupId': 'string',
            'actionGroupName': 'string',
            'actionGroupState': 'ENABLED'|'DISABLED',
            'description': 'string',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
List Action Groups Response
actionGroupSummaries (list) --
List of ActionGroup Summaries
(dict) --
ActionGroup Summary
actionGroupId (string) --
Identifier for a resource.
actionGroupName (string) --
Name for a resource.
actionGroupState (string) --
State of the action group
description (string) --
Description of the Resource.
updatedAt (datetime) --
Time Stamp.
nextToken (string) --
Opaque continuation token of previous paginated response.
Gets an Agent for existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.get_agent(
    agentId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
dict
Response Syntax
{
    'agent': {
        'agentId': 'string',
        'agentName': 'string',
        'agentArn': 'string',
        'agentVersion': 'string',
        'clientToken': 'string',
        'instruction': 'string',
        'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
        'foundationModel': 'string',
        'description': 'string',
        'idleSessionTTLInSeconds': 123,
        'agentResourceRoleArn': 'string',
        'customerEncryptionKeyArn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'preparedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ],
        'recommendedActions': [
            'string',
        ],
        'promptOverrideConfiguration': {
            'promptConfigurations': [
                {
                    'promptType': 'PRE_PROCESSING'|'ORCHESTRATION'|'POST_PROCESSING'|'KNOWLEDGE_BASE_RESPONSE_GENERATION',
                    'promptCreationMode': 'DEFAULT'|'OVERRIDDEN',
                    'promptState': 'ENABLED'|'DISABLED',
                    'basePromptTemplate': 'string',
                    'inferenceConfiguration': {
                        'temperature': ...,
                        'topP': ...,
                        'topK': 123,
                        'maximumLength': 123,
                        'stopSequences': [
                            'string',
                        ]
                    },
                    'parserMode': 'DEFAULT'|'OVERRIDDEN'
                },
            ],
            'overrideLambda': 'string'
        }
    }
}
Response Structure
(dict) --
Get Agent Response
agent (dict) --
Contains the information of an agent
agentId (string) --
Identifier for a resource.
agentName (string) --
Name for a resource.
agentArn (string) --
Arn representation of the Agent.
agentVersion (string) --
Draft Agent Version.
clientToken (string) --
Client specified token used for idempotency checks
instruction (string) --
Instruction for the agent.
agentStatus (string) --
Schema Type for Action APIs.
foundationModel (string) --
ARN or name of a Bedrock model.
description (string) --
Description of the Resource.
idleSessionTTLInSeconds (integer) --
Max Session Time.
agentResourceRoleArn (string) --
ARN of a IAM role.
customerEncryptionKeyArn (string) --
A KMS key ARN
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
preparedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
recommendedActions (list) --
The recommended actions users can take to resolve an error in failureReasons.
(string) --
The recommended action users can take to resolve an error in failureReasons.
promptOverrideConfiguration (dict) --
Configuration for prompt override.
promptConfigurations (list) --
List of BasePromptConfiguration
(dict) --
BasePromptConfiguration per Prompt Type.
promptType (string) --
Prompt Type.
promptCreationMode (string) --
Creation Mode for Prompt Configuration.
promptState (string) --
Prompt State.
basePromptTemplate (string) --
Base Prompt Template.
inferenceConfiguration (dict) --
Configuration for inference in prompt configuration
temperature (float) --
Controls randomness, higher values increase diversity
topP (float) --
Cumulative probability cutoff for token selection
topK (integer) --
Sample from the k most likely next tokens
maximumLength (integer) --
Maximum length of output
stopSequences (list) --
List of stop sequences
(string) --
parserMode (string) --
Creation Mode for Prompt Configuration.
overrideLambda (string) --
ARN of a Lambda.
Updates an existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.update_agent(
    agentId='string',
    agentName='string',
    instruction='string',
    foundationModel='string',
    description='string',
    idleSessionTTLInSeconds=123,
    agentResourceRoleArn='string',
    customerEncryptionKeyArn='string',
    promptOverrideConfiguration={
        'promptConfigurations': [
            {
                'promptType': 'PRE_PROCESSING'|'ORCHESTRATION'|'POST_PROCESSING'|'KNOWLEDGE_BASE_RESPONSE_GENERATION',
                'promptCreationMode': 'DEFAULT'|'OVERRIDDEN',
                'promptState': 'ENABLED'|'DISABLED',
                'basePromptTemplate': 'string',
                'inferenceConfiguration': {
                    'temperature': ...,
                    'topP': ...,
                    'topK': 123,
                    'maximumLength': 123,
                    'stopSequences': [
                        'string',
                    ]
                },
                'parserMode': 'DEFAULT'|'OVERRIDDEN'
            },
        ],
        'overrideLambda': 'string'
    }
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Name for a resource.
string
Instruction for the agent.
string
ARN or name of a Bedrock model.
string
Description of the Resource.
integer
Max Session Time.
string
[REQUIRED]
ARN of a IAM role.
string
A KMS key ARN
dict
Configuration for prompt override.
promptConfigurations (list) -- [REQUIRED]
List of BasePromptConfiguration
(dict) --
BasePromptConfiguration per Prompt Type.
promptType (string) --
Prompt Type.
promptCreationMode (string) --
Creation Mode for Prompt Configuration.
promptState (string) --
Prompt State.
basePromptTemplate (string) --
Base Prompt Template.
inferenceConfiguration (dict) --
Configuration for inference in prompt configuration
temperature (float) --
Controls randomness, higher values increase diversity
topP (float) --
Cumulative probability cutoff for token selection
topK (integer) --
Sample from the k most likely next tokens
maximumLength (integer) --
Maximum length of output
stopSequences (list) --
List of stop sequences
(string) --
parserMode (string) --
Creation Mode for Prompt Configuration.
overrideLambda (string) --
ARN of a Lambda.
dict
Response Syntax
{
    'agent': {
        'agentId': 'string',
        'agentName': 'string',
        'agentArn': 'string',
        'agentVersion': 'string',
        'clientToken': 'string',
        'instruction': 'string',
        'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
        'foundationModel': 'string',
        'description': 'string',
        'idleSessionTTLInSeconds': 123,
        'agentResourceRoleArn': 'string',
        'customerEncryptionKeyArn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'preparedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ],
        'recommendedActions': [
            'string',
        ],
        'promptOverrideConfiguration': {
            'promptConfigurations': [
                {
                    'promptType': 'PRE_PROCESSING'|'ORCHESTRATION'|'POST_PROCESSING'|'KNOWLEDGE_BASE_RESPONSE_GENERATION',
                    'promptCreationMode': 'DEFAULT'|'OVERRIDDEN',
                    'promptState': 'ENABLED'|'DISABLED',
                    'basePromptTemplate': 'string',
                    'inferenceConfiguration': {
                        'temperature': ...,
                        'topP': ...,
                        'topK': 123,
                        'maximumLength': 123,
                        'stopSequences': [
                            'string',
                        ]
                    },
                    'parserMode': 'DEFAULT'|'OVERRIDDEN'
                },
            ],
            'overrideLambda': 'string'
        }
    }
}
Response Structure
(dict) --
Update Agent Response
agent (dict) --
Contains the information of an agent
agentId (string) --
Identifier for a resource.
agentName (string) --
Name for a resource.
agentArn (string) --
Arn representation of the Agent.
agentVersion (string) --
Draft Agent Version.
clientToken (string) --
Client specified token used for idempotency checks
instruction (string) --
Instruction for the agent.
agentStatus (string) --
Schema Type for Action APIs.
foundationModel (string) --
ARN or name of a Bedrock model.
description (string) --
Description of the Resource.
idleSessionTTLInSeconds (integer) --
Max Session Time.
agentResourceRoleArn (string) --
ARN of a IAM role.
customerEncryptionKeyArn (string) --
A KMS key ARN
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
preparedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
recommendedActions (list) --
The recommended actions users can take to resolve an error in failureReasons.
(string) --
The recommended action users can take to resolve an error in failureReasons.
promptOverrideConfiguration (dict) --
Configuration for prompt override.
promptConfigurations (list) --
List of BasePromptConfiguration
(dict) --
BasePromptConfiguration per Prompt Type.
promptType (string) --
Prompt Type.
promptCreationMode (string) --
Creation Mode for Prompt Configuration.
promptState (string) --
Prompt State.
basePromptTemplate (string) --
Base Prompt Template.
inferenceConfiguration (dict) --
Configuration for inference in prompt configuration
temperature (float) --
Controls randomness, higher values increase diversity
topP (float) --
Cumulative probability cutoff for token selection
topK (integer) --
Sample from the k most likely next tokens
maximumLength (integer) --
Maximum length of output
stopSequences (list) --
List of stop sequences
(string) --
parserMode (string) --
Creation Mode for Prompt Configuration.
overrideLambda (string) --
ARN of a Lambda.
Deletes an Alias for a Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.delete_agent_alias(
    agentId='string',
    agentAliasId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Id generated at the server side when an Agent Alias is created
dict
Response Syntax
{
    'agentId': 'string',
    'agentAliasId': 'string',
    'agentAliasStatus': 'CREATING'|'PREPARED'|'FAILED'|'UPDATING'|'DELETING'
}
Response Structure
(dict) --
Delete Agent Alias Response
agentId (string) --
Identifier for a resource.
agentAliasId (string) --
Id for an Agent Alias generated at the server side.
agentAliasStatus (string) --
The statuses an Agent Alias can be in.
Update an existing data source
See also: AWS API Documentation
Request Syntax
client.update_data_source(
    knowledgeBaseId='string',
    dataSourceId='string',
    name='string',
    description='string',
    dataSourceConfiguration={
        'type': 'S3',
        's3Configuration': {
            'bucketArn': 'string',
            'inclusionPrefixes': [
                'string',
            ]
        }
    },
    serverSideEncryptionConfiguration={
        'kmsKeyArn': 'string'
    },
    vectorIngestionConfiguration={
        'chunkingConfiguration': {
            'chunkingStrategy': 'FIXED_SIZE'|'NONE',
            'fixedSizeChunkingConfiguration': {
                'maxTokens': 123,
                'overlapPercentage': 123
            }
        }
    }
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Name for a resource.
string
Description of the Resource.
dict
[REQUIRED]
Specifies a raw data source location to ingest.
type (string) -- [REQUIRED]
The type of the data source location.
s3Configuration (dict) --
Configures an S3 data source location.
bucketArn (string) -- [REQUIRED]
A S3 bucket ARN
inclusionPrefixes (list) --
A list of S3 prefixes.
(string) --
Prefix for s3 object.
dict
Server-side encryption configuration.
kmsKeyArn (string) --
A KMS key ARN
dict
Configures ingestion for a vector knowledge base
chunkingConfiguration (dict) --
Configures chunking strategy
chunkingStrategy (string) -- [REQUIRED]
The type of chunking strategy
fixedSizeChunkingConfiguration (dict) --
Configures fixed size chunking strategy
maxTokens (integer) -- [REQUIRED]
The maximum number of tokens per chunk.
overlapPercentage (integer) -- [REQUIRED]
The overlap percentage between adjacent chunks.
dict
Response Syntax
{
    'dataSource': {
        'knowledgeBaseId': 'string',
        'dataSourceId': 'string',
        'name': 'string',
        'status': 'AVAILABLE'|'DELETING',
        'description': 'string',
        'dataSourceConfiguration': {
            'type': 'S3',
            's3Configuration': {
                'bucketArn': 'string',
                'inclusionPrefixes': [
                    'string',
                ]
            }
        },
        'serverSideEncryptionConfiguration': {
            'kmsKeyArn': 'string'
        },
        'vectorIngestionConfiguration': {
            'chunkingConfiguration': {
                'chunkingStrategy': 'FIXED_SIZE'|'NONE',
                'fixedSizeChunkingConfiguration': {
                    'maxTokens': 123,
                    'overlapPercentage': 123
                }
            }
        },
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}
Response Structure
(dict) --
dataSource (dict) --
Contains the information of a data source.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
status (string) --
The status of a data source.
description (string) --
Description of the Resource.
dataSourceConfiguration (dict) --
Specifies a raw data source location to ingest.
type (string) --
The type of the data source location.
s3Configuration (dict) --
Configures an S3 data source location.
bucketArn (string) --
A S3 bucket ARN
inclusionPrefixes (list) --
A list of S3 prefixes.
(string) --
Prefix for s3 object.
serverSideEncryptionConfiguration (dict) --
Server-side encryption configuration.
kmsKeyArn (string) --
A KMS key ARN
vectorIngestionConfiguration (dict) --
Configures ingestion for a vector knowledge base
chunkingConfiguration (dict) --
Configures chunking strategy
chunkingStrategy (string) --
The type of chunking strategy
fixedSizeChunkingConfiguration (dict) --
Configures fixed size chunking strategy
maxTokens (integer) --
The maximum number of tokens per chunk.
overlapPercentage (integer) --
The overlap percentage between adjacent chunks.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
Get an ingestion job
See also: AWS API Documentation
Request Syntax
client.get_ingestion_job(
    knowledgeBaseId='string',
    dataSourceId='string',
    ingestionJobId='string'
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
dict
Response Syntax
{
    'ingestionJob': {
        'knowledgeBaseId': 'string',
        'dataSourceId': 'string',
        'ingestionJobId': 'string',
        'description': 'string',
        'status': 'STARTING'|'IN_PROGRESS'|'COMPLETE'|'FAILED',
        'statistics': {
            'numberOfDocumentsScanned': 123,
            'numberOfNewDocumentsIndexed': 123,
            'numberOfModifiedDocumentsIndexed': 123,
            'numberOfDocumentsDeleted': 123,
            'numberOfDocumentsFailed': 123
        },
        'failureReasons': [
            'string',
        ],
        'startedAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}
Response Structure
(dict) --
ingestionJob (dict) --
Contains the information of an ingestion job.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
ingestionJobId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
status (string) --
The status of an ingestion job.
statistics (dict) --
The document level statistics of an ingestion job
numberOfDocumentsScanned (integer) --
Number of scanned documents
numberOfNewDocumentsIndexed (integer) --
Number of indexed documents
numberOfModifiedDocumentsIndexed (integer) --
Number of modified documents indexed
numberOfDocumentsDeleted (integer) --
Number of deleted documents
numberOfDocumentsFailed (integer) --
Number of failed documents
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
startedAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
Creates an Alias for an existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.create_agent_alias(
    agentId='string',
    agentAliasName='string',
    clientToken='string',
    description='string',
    routingConfiguration=[
        {
            'agentVersion': 'string'
        },
    ],
    tags={
        'string': 'string'
    }
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Name for a resource.
string
Client specified token used for idempotency checks
This field is autopopulated if not provided.
string
Description of the Resource.
list
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) -- [REQUIRED]
Agent Version.
dict
A map of tag keys and values
(string) --
Key of a tag
(string) --
Value of a tag
dict
Response Syntax
{
    'agentAlias': {
        'agentId': 'string',
        'agentAliasId': 'string',
        'agentAliasName': 'string',
        'agentAliasArn': 'string',
        'clientToken': 'string',
        'description': 'string',
        'routingConfiguration': [
            {
                'agentVersion': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'agentAliasHistoryEvents': [
            {
                'routingConfiguration': [
                    {
                        'agentVersion': 'string'
                    },
                ],
                'endDate': datetime(2015, 1, 1),
                'startDate': datetime(2015, 1, 1)
            },
        ],
        'agentAliasStatus': 'CREATING'|'PREPARED'|'FAILED'|'UPDATING'|'DELETING'
    }
}
Response Structure
(dict) --
Create Agent Alias Response
agentAlias (dict) --
Contains the information of an agent alias
agentId (string) --
Identifier for a resource.
agentAliasId (string) --
Id for an Agent Alias generated at the server side.
agentAliasName (string) --
Name for a resource.
agentAliasArn (string) --
Arn representation of the Agent Alias.
clientToken (string) --
Client specified token used for idempotency checks
description (string) --
Description of the Resource.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
agentAliasHistoryEvents (list) --
The list of history events for an alias for an Agent.
(dict) --
History event for an alias for an Agent.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
endDate (datetime) --
Time Stamp.
startDate (datetime) --
Time Stamp.
agentAliasStatus (string) --
The statuses an Agent Alias can be in.
Create a new data source
See also: AWS API Documentation
Request Syntax
client.create_data_source(
    knowledgeBaseId='string',
    clientToken='string',
    name='string',
    description='string',
    dataSourceConfiguration={
        'type': 'S3',
        's3Configuration': {
            'bucketArn': 'string',
            'inclusionPrefixes': [
                'string',
            ]
        }
    },
    serverSideEncryptionConfiguration={
        'kmsKeyArn': 'string'
    },
    vectorIngestionConfiguration={
        'chunkingConfiguration': {
            'chunkingStrategy': 'FIXED_SIZE'|'NONE',
            'fixedSizeChunkingConfiguration': {
                'maxTokens': 123,
                'overlapPercentage': 123
            }
        }
    }
)
string
[REQUIRED]
Identifier for a resource.
string
Client specified token used for idempotency checks
This field is autopopulated if not provided.
string
[REQUIRED]
Name for a resource.
string
Description of the Resource.
dict
[REQUIRED]
Specifies a raw data source location to ingest.
type (string) -- [REQUIRED]
The type of the data source location.
s3Configuration (dict) --
Configures an S3 data source location.
bucketArn (string) -- [REQUIRED]
A S3 bucket ARN
inclusionPrefixes (list) --
A list of S3 prefixes.
(string) --
Prefix for s3 object.
dict
Server-side encryption configuration.
kmsKeyArn (string) --
A KMS key ARN
dict
Configures ingestion for a vector knowledge base
chunkingConfiguration (dict) --
Configures chunking strategy
chunkingStrategy (string) -- [REQUIRED]
The type of chunking strategy
fixedSizeChunkingConfiguration (dict) --
Configures fixed size chunking strategy
maxTokens (integer) -- [REQUIRED]
The maximum number of tokens per chunk.
overlapPercentage (integer) -- [REQUIRED]
The overlap percentage between adjacent chunks.
dict
Response Syntax
{
    'dataSource': {
        'knowledgeBaseId': 'string',
        'dataSourceId': 'string',
        'name': 'string',
        'status': 'AVAILABLE'|'DELETING',
        'description': 'string',
        'dataSourceConfiguration': {
            'type': 'S3',
            's3Configuration': {
                'bucketArn': 'string',
                'inclusionPrefixes': [
                    'string',
                ]
            }
        },
        'serverSideEncryptionConfiguration': {
            'kmsKeyArn': 'string'
        },
        'vectorIngestionConfiguration': {
            'chunkingConfiguration': {
                'chunkingStrategy': 'FIXED_SIZE'|'NONE',
                'fixedSizeChunkingConfiguration': {
                    'maxTokens': 123,
                    'overlapPercentage': 123
                }
            }
        },
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}
Response Structure
(dict) --
dataSource (dict) --
Contains the information of a data source.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
status (string) --
The status of a data source.
description (string) --
Description of the Resource.
dataSourceConfiguration (dict) --
Specifies a raw data source location to ingest.
type (string) --
The type of the data source location.
s3Configuration (dict) --
Configures an S3 data source location.
bucketArn (string) --
A S3 bucket ARN
inclusionPrefixes (list) --
A list of S3 prefixes.
(string) --
Prefix for s3 object.
serverSideEncryptionConfiguration (dict) --
Server-side encryption configuration.
kmsKeyArn (string) --
A KMS key ARN
vectorIngestionConfiguration (dict) --
Configures ingestion for a vector knowledge base
chunkingConfiguration (dict) --
Configures chunking strategy
chunkingStrategy (string) --
The type of chunking strategy
fixedSizeChunkingConfiguration (dict) --
Configures fixed size chunking strategy
maxTokens (integer) --
The maximum number of tokens per chunk.
overlapPercentage (integer) --
The overlap percentage between adjacent chunks.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
Get an existing data source
See also: AWS API Documentation
Request Syntax
client.get_data_source(
    knowledgeBaseId='string',
    dataSourceId='string'
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
dict
Response Syntax
{
    'dataSource': {
        'knowledgeBaseId': 'string',
        'dataSourceId': 'string',
        'name': 'string',
        'status': 'AVAILABLE'|'DELETING',
        'description': 'string',
        'dataSourceConfiguration': {
            'type': 'S3',
            's3Configuration': {
                'bucketArn': 'string',
                'inclusionPrefixes': [
                    'string',
                ]
            }
        },
        'serverSideEncryptionConfiguration': {
            'kmsKeyArn': 'string'
        },
        'vectorIngestionConfiguration': {
            'chunkingConfiguration': {
                'chunkingStrategy': 'FIXED_SIZE'|'NONE',
                'fixedSizeChunkingConfiguration': {
                    'maxTokens': 123,
                    'overlapPercentage': 123
                }
            }
        },
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}
Response Structure
(dict) --
dataSource (dict) --
Contains the information of a data source.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
status (string) --
The status of a data source.
description (string) --
Description of the Resource.
dataSourceConfiguration (dict) --
Specifies a raw data source location to ingest.
type (string) --
The type of the data source location.
s3Configuration (dict) --
Configures an S3 data source location.
bucketArn (string) --
A S3 bucket ARN
inclusionPrefixes (list) --
A list of S3 prefixes.
(string) --
Prefix for s3 object.
serverSideEncryptionConfiguration (dict) --
Server-side encryption configuration.
kmsKeyArn (string) --
A KMS key ARN
vectorIngestionConfiguration (dict) --
Configures ingestion for a vector knowledge base
chunkingConfiguration (dict) --
Configures chunking strategy
chunkingStrategy (string) --
The type of chunking strategy
fixedSizeChunkingConfiguration (dict) --
Configures fixed size chunking strategy
maxTokens (integer) --
The maximum number of tokens per chunk.
overlapPercentage (integer) --
The overlap percentage between adjacent chunks.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
Creates an Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.create_agent(
    agentName='string',
    clientToken='string',
    instruction='string',
    foundationModel='string',
    description='string',
    idleSessionTTLInSeconds=123,
    agentResourceRoleArn='string',
    customerEncryptionKeyArn='string',
    tags={
        'string': 'string'
    },
    promptOverrideConfiguration={
        'promptConfigurations': [
            {
                'promptType': 'PRE_PROCESSING'|'ORCHESTRATION'|'POST_PROCESSING'|'KNOWLEDGE_BASE_RESPONSE_GENERATION',
                'promptCreationMode': 'DEFAULT'|'OVERRIDDEN',
                'promptState': 'ENABLED'|'DISABLED',
                'basePromptTemplate': 'string',
                'inferenceConfiguration': {
                    'temperature': ...,
                    'topP': ...,
                    'topK': 123,
                    'maximumLength': 123,
                    'stopSequences': [
                        'string',
                    ]
                },
                'parserMode': 'DEFAULT'|'OVERRIDDEN'
            },
        ],
        'overrideLambda': 'string'
    }
)
string
[REQUIRED]
Name for a resource.
string
Client specified token used for idempotency checks
This field is autopopulated if not provided.
string
Instruction for the agent.
string
ARN or name of a Bedrock model.
string
Description of the Resource.
integer
Max Session Time.
string
[REQUIRED]
ARN of a IAM role.
string
A KMS key ARN
dict
A map of tag keys and values
(string) --
Key of a tag
(string) --
Value of a tag
dict
Configuration for prompt override.
promptConfigurations (list) -- [REQUIRED]
List of BasePromptConfiguration
(dict) --
BasePromptConfiguration per Prompt Type.
promptType (string) --
Prompt Type.
promptCreationMode (string) --
Creation Mode for Prompt Configuration.
promptState (string) --
Prompt State.
basePromptTemplate (string) --
Base Prompt Template.
inferenceConfiguration (dict) --
Configuration for inference in prompt configuration
temperature (float) --
Controls randomness, higher values increase diversity
topP (float) --
Cumulative probability cutoff for token selection
topK (integer) --
Sample from the k most likely next tokens
maximumLength (integer) --
Maximum length of output
stopSequences (list) --
List of stop sequences
(string) --
parserMode (string) --
Creation Mode for Prompt Configuration.
overrideLambda (string) --
ARN of a Lambda.
dict
Response Syntax
{
    'agent': {
        'agentId': 'string',
        'agentName': 'string',
        'agentArn': 'string',
        'agentVersion': 'string',
        'clientToken': 'string',
        'instruction': 'string',
        'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
        'foundationModel': 'string',
        'description': 'string',
        'idleSessionTTLInSeconds': 123,
        'agentResourceRoleArn': 'string',
        'customerEncryptionKeyArn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'preparedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ],
        'recommendedActions': [
            'string',
        ],
        'promptOverrideConfiguration': {
            'promptConfigurations': [
                {
                    'promptType': 'PRE_PROCESSING'|'ORCHESTRATION'|'POST_PROCESSING'|'KNOWLEDGE_BASE_RESPONSE_GENERATION',
                    'promptCreationMode': 'DEFAULT'|'OVERRIDDEN',
                    'promptState': 'ENABLED'|'DISABLED',
                    'basePromptTemplate': 'string',
                    'inferenceConfiguration': {
                        'temperature': ...,
                        'topP': ...,
                        'topK': 123,
                        'maximumLength': 123,
                        'stopSequences': [
                            'string',
                        ]
                    },
                    'parserMode': 'DEFAULT'|'OVERRIDDEN'
                },
            ],
            'overrideLambda': 'string'
        }
    }
}
Response Structure
(dict) --
Create Agent Response
agent (dict) --
Contains the information of an agent
agentId (string) --
Identifier for a resource.
agentName (string) --
Name for a resource.
agentArn (string) --
Arn representation of the Agent.
agentVersion (string) --
Draft Agent Version.
clientToken (string) --
Client specified token used for idempotency checks
instruction (string) --
Instruction for the agent.
agentStatus (string) --
Schema Type for Action APIs.
foundationModel (string) --
ARN or name of a Bedrock model.
description (string) --
Description of the Resource.
idleSessionTTLInSeconds (integer) --
Max Session Time.
agentResourceRoleArn (string) --
ARN of a IAM role.
customerEncryptionKeyArn (string) --
A KMS key ARN
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
preparedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
recommendedActions (list) --
The recommended actions users can take to resolve an error in failureReasons.
(string) --
The recommended action users can take to resolve an error in failureReasons.
promptOverrideConfiguration (dict) --
Configuration for prompt override.
promptConfigurations (list) --
List of BasePromptConfiguration
(dict) --
BasePromptConfiguration per Prompt Type.
promptType (string) --
Prompt Type.
promptCreationMode (string) --
Creation Mode for Prompt Configuration.
promptState (string) --
Prompt State.
basePromptTemplate (string) --
Base Prompt Template.
inferenceConfiguration (dict) --
Configuration for inference in prompt configuration
temperature (float) --
Controls randomness, higher values increase diversity
topP (float) --
Cumulative probability cutoff for token selection
topK (integer) --
Sample from the k most likely next tokens
maximumLength (integer) --
Maximum length of output
stopSequences (list) --
List of stop sequences
(string) --
parserMode (string) --
Creation Mode for Prompt Configuration.
overrideLambda (string) --
ARN of a Lambda.
Deletes an Agent for existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.delete_agent(
    agentId='string',
    skipResourceInUseCheck=True|False
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
boolean
Skips checking if resource is in use when set to true. Defaults to false
dict
Response Syntax
{
    'agentId': 'string',
    'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING'
}
Response Structure
(dict) --
Delete Agent Response
agentId (string) --
Identifier for a resource.
agentStatus (string) --
Schema Type for Action APIs.
Associate a Knowledge Base to an existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.associate_agent_knowledge_base(
    agentId='string',
    agentVersion='string',
    knowledgeBaseId='string',
    description='string',
    knowledgeBaseState='ENABLED'|'DISABLED'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Draft Version of the Agent.
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Description of the Resource.
string
State of the knowledge base; whether it is enabled or disabled
dict
Response Syntax
{
    'agentKnowledgeBase': {
        'agentId': 'string',
        'agentVersion': 'string',
        'knowledgeBaseId': 'string',
        'description': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'knowledgeBaseState': 'ENABLED'|'DISABLED'
    }
}
Response Structure
(dict) --
Associate Agent Knowledge Base Response
agentKnowledgeBase (dict) --
Contains the information of an Agent Knowledge Base.
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Agent Version.
knowledgeBaseId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
knowledgeBaseState (string) --
State of the knowledge base; whether it is enabled or disabled
Lists Agent Versions
See also: AWS API Documentation
Request Syntax
client.list_agent_versions(
    agentId='string',
    maxResults=123,
    nextToken='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'agentVersionSummaries': [
        {
            'agentName': 'string',
            'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
            'agentVersion': 'string',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1),
            'description': 'string'
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
List Agent Versions Response
agentVersionSummaries (list) --
List of AgentVersionSummary.
(dict) --
Summary of agent version.
agentName (string) --
Name for a resource.
agentStatus (string) --
Schema Type for Action APIs.
agentVersion (string) --
Agent Version.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
description (string) --
Description of the Resource.
nextToken (string) --
Opaque continuation token of previous paginated response.
Updates an existing Alias for an Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.update_agent_alias(
    agentId='string',
    agentAliasId='string',
    agentAliasName='string',
    description='string',
    routingConfiguration=[
        {
            'agentVersion': 'string'
        },
    ]
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Id generated at the server side when an Agent Alias is created
string
[REQUIRED]
Name for a resource.
string
Description of the Resource.
list
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) -- [REQUIRED]
Agent Version.
dict
Response Syntax
{
    'agentAlias': {
        'agentId': 'string',
        'agentAliasId': 'string',
        'agentAliasName': 'string',
        'agentAliasArn': 'string',
        'clientToken': 'string',
        'description': 'string',
        'routingConfiguration': [
            {
                'agentVersion': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'agentAliasHistoryEvents': [
            {
                'routingConfiguration': [
                    {
                        'agentVersion': 'string'
                    },
                ],
                'endDate': datetime(2015, 1, 1),
                'startDate': datetime(2015, 1, 1)
            },
        ],
        'agentAliasStatus': 'CREATING'|'PREPARED'|'FAILED'|'UPDATING'|'DELETING'
    }
}
Response Structure
(dict) --
Update Agent Alias Response
agentAlias (dict) --
Contains the information of an agent alias
agentId (string) --
Identifier for a resource.
agentAliasId (string) --
Id for an Agent Alias generated at the server side.
agentAliasName (string) --
Name for a resource.
agentAliasArn (string) --
Arn representation of the Agent Alias.
clientToken (string) --
Client specified token used for idempotency checks
description (string) --
Description of the Resource.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
agentAliasHistoryEvents (list) --
The list of history events for an alias for an Agent.
(dict) --
History event for an alias for an Agent.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
endDate (datetime) --
Time Stamp.
startDate (datetime) --
Time Stamp.
agentAliasStatus (string) --
The statuses an Agent Alias can be in.
Creates an Action Group for existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.create_agent_action_group(
    agentId='string',
    agentVersion='string',
    actionGroupName='string',
    clientToken='string',
    description='string',
    parentActionGroupSignature='AMAZON.UserInput',
    actionGroupExecutor={
        'lambda': 'string'
    },
    apiSchema={
        's3': {
            's3BucketName': 'string',
            's3ObjectKey': 'string'
        },
        'payload': 'string'
    },
    actionGroupState='ENABLED'|'DISABLED'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Draft Version of the Agent.
string
[REQUIRED]
Name for a resource.
string
Client specified token used for idempotency checks
This field is autopopulated if not provided.
string
Description of the Resource.
string
Action Group Signature for a BuiltIn Action
dict
Type of Executors for an Action Group
lambda (string) --
ARN of a Lambda.
dict
Contains information about the API Schema for the Action Group
s3 (dict) --
The identifier for the S3 resource.
s3BucketName (string) --
A bucket in S3.
s3ObjectKey (string) --
A object key in S3.
payload (string) --
String OpenAPI Payload
string
State of the action group
dict
Response Syntax
{
    'agentActionGroup': {
        'agentId': 'string',
        'agentVersion': 'string',
        'actionGroupId': 'string',
        'actionGroupName': 'string',
        'clientToken': 'string',
        'description': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'parentActionSignature': 'AMAZON.UserInput',
        'actionGroupExecutor': {
            'lambda': 'string'
        },
        'apiSchema': {
            's3': {
                's3BucketName': 'string',
                's3ObjectKey': 'string'
            },
            'payload': 'string'
        },
        'actionGroupState': 'ENABLED'|'DISABLED'
    }
}
Response Structure
(dict) --
Create Action Group Response
agentActionGroup (dict) --
Contains the information of an Agent Action Group
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Agent Version.
actionGroupId (string) --
Identifier for a resource.
actionGroupName (string) --
Name for a resource.
clientToken (string) --
Client specified token used for idempotency checks
description (string) --
Description of the Resource.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
parentActionSignature (string) --
Action Group Signature for a BuiltIn Action
actionGroupExecutor (dict) --
Type of Executors for an Action Group
lambda (string) --
ARN of a Lambda.
apiSchema (dict) --
Contains information about the API Schema for the Action Group
s3 (dict) --
The identifier for the S3 resource.
s3BucketName (string) --
A bucket in S3.
s3ObjectKey (string) --
A object key in S3.
payload (string) --
String OpenAPI Payload
actionGroupState (string) --
State of the action group
Describes an Alias for a Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.get_agent_alias(
    agentId='string',
    agentAliasId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Id generated at the server side when an Agent Alias is created
dict
Response Syntax
{
    'agentAlias': {
        'agentId': 'string',
        'agentAliasId': 'string',
        'agentAliasName': 'string',
        'agentAliasArn': 'string',
        'clientToken': 'string',
        'description': 'string',
        'routingConfiguration': [
            {
                'agentVersion': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'agentAliasHistoryEvents': [
            {
                'routingConfiguration': [
                    {
                        'agentVersion': 'string'
                    },
                ],
                'endDate': datetime(2015, 1, 1),
                'startDate': datetime(2015, 1, 1)
            },
        ],
        'agentAliasStatus': 'CREATING'|'PREPARED'|'FAILED'|'UPDATING'|'DELETING'
    }
}
Response Structure
(dict) --
Get Agent Alias Response
agentAlias (dict) --
Contains the information of an agent alias
agentId (string) --
Identifier for a resource.
agentAliasId (string) --
Id for an Agent Alias generated at the server side.
agentAliasName (string) --
Name for a resource.
agentAliasArn (string) --
Arn representation of the Agent Alias.
clientToken (string) --
Client specified token used for idempotency checks
description (string) --
Description of the Resource.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
agentAliasHistoryEvents (list) --
The list of history events for an alias for an Agent.
(dict) --
History event for an alias for an Agent.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
endDate (datetime) --
Time Stamp.
startDate (datetime) --
Time Stamp.
agentAliasStatus (string) --
The statuses an Agent Alias can be in.
Start a new ingestion job
See also: AWS API Documentation
Request Syntax
client.start_ingestion_job(
    knowledgeBaseId='string',
    dataSourceId='string',
    clientToken='string',
    description='string'
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
string
Client specified token used for idempotency checks
This field is autopopulated if not provided.
string
Description of the Resource.
dict
Response Syntax
{
    'ingestionJob': {
        'knowledgeBaseId': 'string',
        'dataSourceId': 'string',
        'ingestionJobId': 'string',
        'description': 'string',
        'status': 'STARTING'|'IN_PROGRESS'|'COMPLETE'|'FAILED',
        'statistics': {
            'numberOfDocumentsScanned': 123,
            'numberOfNewDocumentsIndexed': 123,
            'numberOfModifiedDocumentsIndexed': 123,
            'numberOfDocumentsDeleted': 123,
            'numberOfDocumentsFailed': 123
        },
        'failureReasons': [
            'string',
        ],
        'startedAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1)
    }
}
Response Structure
(dict) --
ingestionJob (dict) --
Contains the information of an ingestion job.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
ingestionJobId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
status (string) --
The status of an ingestion job.
statistics (dict) --
The document level statistics of an ingestion job
numberOfDocumentsScanned (integer) --
Number of scanned documents
numberOfNewDocumentsIndexed (integer) --
Number of indexed documents
numberOfModifiedDocumentsIndexed (integer) --
Number of modified documents indexed
numberOfDocumentsDeleted (integer) --
Number of deleted documents
numberOfDocumentsFailed (integer) --
Number of failed documents
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
startedAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
Delete an existing knowledge base
See also: AWS API Documentation
Request Syntax
client.delete_knowledge_base(
    knowledgeBaseId='string'
)
string
[REQUIRED]
Identifier for a resource.
dict
Response Syntax
{
    'knowledgeBaseId': 'string',
    'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'FAILED'
}
Response Structure
(dict) --
knowledgeBaseId (string) --
Identifier for a resource.
status (string) --
The status of a knowledge base.
Delete an existing data source
See also: AWS API Documentation
Request Syntax
client.delete_data_source(
    knowledgeBaseId='string',
    dataSourceId='string'
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Identifier for a resource.
dict
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.
List data sources
See also: AWS API Documentation
Request Syntax
client.list_data_sources(
    knowledgeBaseId='string',
    maxResults=123,
    nextToken='string'
)
string
[REQUIRED]
Identifier for a resource.
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'dataSourceSummaries': [
        {
            'knowledgeBaseId': 'string',
            'dataSourceId': 'string',
            'name': 'string',
            'status': 'AVAILABLE'|'DELETING',
            'description': 'string',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
dataSourceSummaries (list) --
list of data source summaries
(dict) --
Summary information of a data source.
knowledgeBaseId (string) --
Identifier for a resource.
dataSourceId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
status (string) --
The status of a data source.
description (string) --
Description of the Resource.
updatedAt (datetime) --
Time Stamp.
nextToken (string) --
Opaque continuation token of previous paginated response.
Gets an Action Group for existing Amazon Bedrock Agent Version
See also: AWS API Documentation
Request Syntax
client.get_agent_action_group(
    agentId='string',
    agentVersion='string',
    actionGroupId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Version number generated when a version is created
string
[REQUIRED]
Id generated at the server side when an Agent Action Group is created
dict
Response Syntax
{
    'agentActionGroup': {
        'agentId': 'string',
        'agentVersion': 'string',
        'actionGroupId': 'string',
        'actionGroupName': 'string',
        'clientToken': 'string',
        'description': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'parentActionSignature': 'AMAZON.UserInput',
        'actionGroupExecutor': {
            'lambda': 'string'
        },
        'apiSchema': {
            's3': {
                's3BucketName': 'string',
                's3ObjectKey': 'string'
            },
            'payload': 'string'
        },
        'actionGroupState': 'ENABLED'|'DISABLED'
    }
}
Response Structure
(dict) --
Get Action Group Response
agentActionGroup (dict) --
Contains the information of an Agent Action Group
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Agent Version.
actionGroupId (string) --
Identifier for a resource.
actionGroupName (string) --
Name for a resource.
clientToken (string) --
Client specified token used for idempotency checks
description (string) --
Description of the Resource.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
parentActionSignature (string) --
Action Group Signature for a BuiltIn Action
actionGroupExecutor (dict) --
Type of Executors for an Action Group
lambda (string) --
ARN of a Lambda.
apiSchema (dict) --
Contains information about the API Schema for the Action Group
s3 (dict) --
The identifier for the S3 resource.
s3BucketName (string) --
A bucket in S3.
s3ObjectKey (string) --
A object key in S3.
payload (string) --
String OpenAPI Payload
actionGroupState (string) --
State of the action group
Get an existing knowledge base
See also: AWS API Documentation
Request Syntax
client.get_knowledge_base(
    knowledgeBaseId='string'
)
string
[REQUIRED]
Identifier for a resource.
dict
Response Syntax
{
    'knowledgeBase': {
        'knowledgeBaseId': 'string',
        'name': 'string',
        'knowledgeBaseArn': 'string',
        'description': 'string',
        'roleArn': 'string',
        'knowledgeBaseConfiguration': {
            'type': 'VECTOR',
            'vectorKnowledgeBaseConfiguration': {
                'embeddingModelArn': 'string'
            }
        },
        'storageConfiguration': {
            'type': 'OPENSEARCH_SERVERLESS'|'PINECONE'|'REDIS_ENTERPRISE_CLOUD',
            'opensearchServerlessConfiguration': {
                'collectionArn': 'string',
                'vectorIndexName': 'string',
                'fieldMapping': {
                    'vectorField': 'string',
                    'textField': 'string',
                    'metadataField': 'string'
                }
            },
            'pineconeConfiguration': {
                'connectionString': 'string',
                'credentialsSecretArn': 'string',
                'namespace': 'string',
                'fieldMapping': {
                    'textField': 'string',
                    'metadataField': 'string'
                }
            },
            'redisEnterpriseCloudConfiguration': {
                'endpoint': 'string',
                'vectorIndexName': 'string',
                'credentialsSecretArn': 'string',
                'fieldMapping': {
                    'vectorField': 'string',
                    'textField': 'string',
                    'metadataField': 'string'
                }
            }
        },
        'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'FAILED',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ]
    }
}
Response Structure
(dict) --
knowledgeBase (dict) --
Contains the information of a knowledge base.
knowledgeBaseId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
knowledgeBaseArn (string) --
ARN of a KnowledgeBase
description (string) --
Description of the Resource.
roleArn (string) --
ARN of a IAM role.
knowledgeBaseConfiguration (dict) --
Configures a bedrock knowledge base.
type (string) --
The type of a knowledge base.
vectorKnowledgeBaseConfiguration (dict) --
Configurations for a vector knowledge base.
embeddingModelArn (string) --
Arn of a Bedrock model.
storageConfiguration (dict) --
Configures the physical storage of ingested data in a knowledge base.
type (string) --
The storage type of a knowledge base.
opensearchServerlessConfiguration (dict) --
Contains the configurations to use OpenSearch Serverless to store knowledge base data.
collectionArn (string) --
Arn of an OpenSearch Serverless collection.
vectorIndexName (string) --
Arn of an OpenSearch Serverless index.
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
vectorField (string) --
Name of the field
textField (string) --
Name of the field
metadataField (string) --
Name of the field
pineconeConfiguration (dict) --
Contains the configurations to use Pinecone to store knowledge base data.
connectionString (string) --
Pinecone connection string
credentialsSecretArn (string) --
Arn of a SecretsManager Secret.
namespace (string) --
Pinecone namespace
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to Pinecone field names
textField (string) --
Name of the field
metadataField (string) --
Name of the field
redisEnterpriseCloudConfiguration (dict) --
Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
endpoint (string) --
Redis enterprise cloud endpoint
vectorIndexName (string) --
Name of a redis enterprise cloud index
credentialsSecretArn (string) --
Arn of a SecretsManager Secret.
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
vectorField (string) --
Name of the field
textField (string) --
Name of the field
metadataField (string) --
Name of the field
status (string) --
The status of a knowledge base.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
Tag a resource
See also: AWS API Documentation
Request Syntax
client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
string
[REQUIRED]
ARN of Taggable resources: [Agent, AgentAlias, Knowledge-Base]
dict
[REQUIRED]
A map of tag keys and values
(string) --
Key of a tag
(string) --
Value of a tag
dict
Response Syntax
{}
Response Structure
(dict) --
List tags for a resource
See also: AWS API Documentation
Request Syntax
client.list_tags_for_resource(
    resourceArn='string'
)
string
[REQUIRED]
ARN of Taggable resources: [Agent, AgentAlias, Knowledge-Base]
dict
Response Syntax
{
    'tags': {
        'string': 'string'
    }
}
Response Structure
(dict) --
tags (dict) --
A map of tag keys and values
(string) --
Key of a tag
(string) --
Value of a tag
Gets a knowledge base associated to an existing Amazon Bedrock Agent Version
See also: AWS API Documentation
Request Syntax
client.get_agent_knowledge_base(
    agentId='string',
    agentVersion='string',
    knowledgeBaseId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Version number generated when a version is created
string
[REQUIRED]
Id generated at the server side when a Knowledge Base is associated
dict
Response Syntax
{
    'agentKnowledgeBase': {
        'agentId': 'string',
        'agentVersion': 'string',
        'knowledgeBaseId': 'string',
        'description': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'knowledgeBaseState': 'ENABLED'|'DISABLED'
    }
}
Response Structure
(dict) --
Get Agent Knowledge Base Response
agentKnowledgeBase (dict) --
Contains the information of an Agent Knowledge Base.
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Agent Version.
knowledgeBaseId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
knowledgeBaseState (string) --
State of the knowledge base; whether it is enabled or disabled
Prepares an existing Amazon Bedrock Agent to receive runtime requests
See also: AWS API Documentation
Request Syntax
client.prepare_agent(
    agentId='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
dict
Response Syntax
{
    'agentId': 'string',
    'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
    'agentVersion': 'string',
    'preparedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
PrepareAgent Response
agentId (string) --
Identifier for a resource.
agentStatus (string) --
Schema Type for Action APIs.
agentVersion (string) --
Agent Version.
preparedAt (datetime) --
Time Stamp.
Updates an existing Action Group for Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.update_agent_action_group(
    agentId='string',
    agentVersion='string',
    actionGroupId='string',
    actionGroupName='string',
    description='string',
    parentActionGroupSignature='AMAZON.UserInput',
    actionGroupExecutor={
        'lambda': 'string'
    },
    actionGroupState='ENABLED'|'DISABLED',
    apiSchema={
        's3': {
            's3BucketName': 'string',
            's3ObjectKey': 'string'
        },
        'payload': 'string'
    }
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Draft Version of the Agent.
string
[REQUIRED]
Id generated at the server side when an Action Group is created under Agent
string
[REQUIRED]
Name for a resource.
string
Description of the Resource.
string
Action Group Signature for a BuiltIn Action
dict
Type of Executors for an Action Group
lambda (string) --
ARN of a Lambda.
string
State of the action group
dict
Contains information about the API Schema for the Action Group
s3 (dict) --
The identifier for the S3 resource.
s3BucketName (string) --
A bucket in S3.
s3ObjectKey (string) --
A object key in S3.
payload (string) --
String OpenAPI Payload
dict
Response Syntax
{
    'agentActionGroup': {
        'agentId': 'string',
        'agentVersion': 'string',
        'actionGroupId': 'string',
        'actionGroupName': 'string',
        'clientToken': 'string',
        'description': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'parentActionSignature': 'AMAZON.UserInput',
        'actionGroupExecutor': {
            'lambda': 'string'
        },
        'apiSchema': {
            's3': {
                's3BucketName': 'string',
                's3ObjectKey': 'string'
            },
            'payload': 'string'
        },
        'actionGroupState': 'ENABLED'|'DISABLED'
    }
}
Response Structure
(dict) --
Update Action Group Response
agentActionGroup (dict) --
Contains the information of an Agent Action Group
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Agent Version.
actionGroupId (string) --
Identifier for a resource.
actionGroupName (string) --
Name for a resource.
clientToken (string) --
Client specified token used for idempotency checks
description (string) --
Description of the Resource.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
parentActionSignature (string) --
Action Group Signature for a BuiltIn Action
actionGroupExecutor (dict) --
Type of Executors for an Action Group
lambda (string) --
ARN of a Lambda.
apiSchema (dict) --
Contains information about the API Schema for the Action Group
s3 (dict) --
The identifier for the S3 resource.
s3BucketName (string) --
A bucket in S3.
s3ObjectKey (string) --
A object key in S3.
payload (string) --
String OpenAPI Payload
actionGroupState (string) --
State of the action group
Create a new knowledge base
See also: AWS API Documentation
Request Syntax
client.create_knowledge_base(
    clientToken='string',
    name='string',
    description='string',
    roleArn='string',
    knowledgeBaseConfiguration={
        'type': 'VECTOR',
        'vectorKnowledgeBaseConfiguration': {
            'embeddingModelArn': 'string'
        }
    },
    storageConfiguration={
        'type': 'OPENSEARCH_SERVERLESS'|'PINECONE'|'REDIS_ENTERPRISE_CLOUD',
        'opensearchServerlessConfiguration': {
            'collectionArn': 'string',
            'vectorIndexName': 'string',
            'fieldMapping': {
                'vectorField': 'string',
                'textField': 'string',
                'metadataField': 'string'
            }
        },
        'pineconeConfiguration': {
            'connectionString': 'string',
            'credentialsSecretArn': 'string',
            'namespace': 'string',
            'fieldMapping': {
                'textField': 'string',
                'metadataField': 'string'
            }
        },
        'redisEnterpriseCloudConfiguration': {
            'endpoint': 'string',
            'vectorIndexName': 'string',
            'credentialsSecretArn': 'string',
            'fieldMapping': {
                'vectorField': 'string',
                'textField': 'string',
                'metadataField': 'string'
            }
        }
    },
    tags={
        'string': 'string'
    }
)
string
Client specified token used for idempotency checks
This field is autopopulated if not provided.
string
[REQUIRED]
Name for a resource.
string
Description of the Resource.
string
[REQUIRED]
ARN of a IAM role.
dict
[REQUIRED]
Configures a bedrock knowledge base.
type (string) -- [REQUIRED]
The type of a knowledge base.
vectorKnowledgeBaseConfiguration (dict) --
Configurations for a vector knowledge base.
embeddingModelArn (string) -- [REQUIRED]
Arn of a Bedrock model.
dict
[REQUIRED]
Configures the physical storage of ingested data in a knowledge base.
type (string) -- [REQUIRED]
The storage type of a knowledge base.
opensearchServerlessConfiguration (dict) --
Contains the configurations to use OpenSearch Serverless to store knowledge base data.
collectionArn (string) -- [REQUIRED]
Arn of an OpenSearch Serverless collection.
vectorIndexName (string) -- [REQUIRED]
Arn of an OpenSearch Serverless index.
fieldMapping (dict) -- [REQUIRED]
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
vectorField (string) -- [REQUIRED]
Name of the field
textField (string) -- [REQUIRED]
Name of the field
metadataField (string) -- [REQUIRED]
Name of the field
pineconeConfiguration (dict) --
Contains the configurations to use Pinecone to store knowledge base data.
connectionString (string) -- [REQUIRED]
Pinecone connection string
credentialsSecretArn (string) -- [REQUIRED]
Arn of a SecretsManager Secret.
namespace (string) --
Pinecone namespace
fieldMapping (dict) -- [REQUIRED]
A mapping of Bedrock Knowledge Base fields to Pinecone field names
textField (string) -- [REQUIRED]
Name of the field
metadataField (string) -- [REQUIRED]
Name of the field
redisEnterpriseCloudConfiguration (dict) --
Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
endpoint (string) -- [REQUIRED]
Redis enterprise cloud endpoint
vectorIndexName (string) -- [REQUIRED]
Name of a redis enterprise cloud index
credentialsSecretArn (string) -- [REQUIRED]
Arn of a SecretsManager Secret.
fieldMapping (dict) -- [REQUIRED]
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
vectorField (string) -- [REQUIRED]
Name of the field
textField (string) -- [REQUIRED]
Name of the field
metadataField (string) -- [REQUIRED]
Name of the field
dict
A map of tag keys and values
(string) --
Key of a tag
(string) --
Value of a tag
dict
Response Syntax
{
    'knowledgeBase': {
        'knowledgeBaseId': 'string',
        'name': 'string',
        'knowledgeBaseArn': 'string',
        'description': 'string',
        'roleArn': 'string',
        'knowledgeBaseConfiguration': {
            'type': 'VECTOR',
            'vectorKnowledgeBaseConfiguration': {
                'embeddingModelArn': 'string'
            }
        },
        'storageConfiguration': {
            'type': 'OPENSEARCH_SERVERLESS'|'PINECONE'|'REDIS_ENTERPRISE_CLOUD',
            'opensearchServerlessConfiguration': {
                'collectionArn': 'string',
                'vectorIndexName': 'string',
                'fieldMapping': {
                    'vectorField': 'string',
                    'textField': 'string',
                    'metadataField': 'string'
                }
            },
            'pineconeConfiguration': {
                'connectionString': 'string',
                'credentialsSecretArn': 'string',
                'namespace': 'string',
                'fieldMapping': {
                    'textField': 'string',
                    'metadataField': 'string'
                }
            },
            'redisEnterpriseCloudConfiguration': {
                'endpoint': 'string',
                'vectorIndexName': 'string',
                'credentialsSecretArn': 'string',
                'fieldMapping': {
                    'vectorField': 'string',
                    'textField': 'string',
                    'metadataField': 'string'
                }
            }
        },
        'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'FAILED',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ]
    }
}
Response Structure
(dict) --
knowledgeBase (dict) --
Contains the information of a knowledge base.
knowledgeBaseId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
knowledgeBaseArn (string) --
ARN of a KnowledgeBase
description (string) --
Description of the Resource.
roleArn (string) --
ARN of a IAM role.
knowledgeBaseConfiguration (dict) --
Configures a bedrock knowledge base.
type (string) --
The type of a knowledge base.
vectorKnowledgeBaseConfiguration (dict) --
Configurations for a vector knowledge base.
embeddingModelArn (string) --
Arn of a Bedrock model.
storageConfiguration (dict) --
Configures the physical storage of ingested data in a knowledge base.
type (string) --
The storage type of a knowledge base.
opensearchServerlessConfiguration (dict) --
Contains the configurations to use OpenSearch Serverless to store knowledge base data.
collectionArn (string) --
Arn of an OpenSearch Serverless collection.
vectorIndexName (string) --
Arn of an OpenSearch Serverless index.
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
vectorField (string) --
Name of the field
textField (string) --
Name of the field
metadataField (string) --
Name of the field
pineconeConfiguration (dict) --
Contains the configurations to use Pinecone to store knowledge base data.
connectionString (string) --
Pinecone connection string
credentialsSecretArn (string) --
Arn of a SecretsManager Secret.
namespace (string) --
Pinecone namespace
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to Pinecone field names
textField (string) --
Name of the field
metadataField (string) --
Name of the field
redisEnterpriseCloudConfiguration (dict) --
Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
endpoint (string) --
Redis enterprise cloud endpoint
vectorIndexName (string) --
Name of a redis enterprise cloud index
credentialsSecretArn (string) --
Arn of a SecretsManager Secret.
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
vectorField (string) --
Name of the field
textField (string) --
Name of the field
metadataField (string) --
Name of the field
status (string) --
The status of a knowledge base.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
Gets an Agent version for existing Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.get_agent_version(
    agentId='string',
    agentVersion='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Numerical Agent Version.
dict
Response Syntax
{
    'agentVersion': {
        'agentId': 'string',
        'agentName': 'string',
        'agentArn': 'string',
        'version': 'string',
        'instruction': 'string',
        'agentStatus': 'CREATING'|'PREPARING'|'PREPARED'|'NOT_PREPARED'|'DELETING'|'FAILED'|'VERSIONING'|'UPDATING',
        'foundationModel': 'string',
        'description': 'string',
        'idleSessionTTLInSeconds': 123,
        'agentResourceRoleArn': 'string',
        'customerEncryptionKeyArn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ],
        'recommendedActions': [
            'string',
        ],
        'promptOverrideConfiguration': {
            'promptConfigurations': [
                {
                    'promptType': 'PRE_PROCESSING'|'ORCHESTRATION'|'POST_PROCESSING'|'KNOWLEDGE_BASE_RESPONSE_GENERATION',
                    'promptCreationMode': 'DEFAULT'|'OVERRIDDEN',
                    'promptState': 'ENABLED'|'DISABLED',
                    'basePromptTemplate': 'string',
                    'inferenceConfiguration': {
                        'temperature': ...,
                        'topP': ...,
                        'topK': 123,
                        'maximumLength': 123,
                        'stopSequences': [
                            'string',
                        ]
                    },
                    'parserMode': 'DEFAULT'|'OVERRIDDEN'
                },
            ],
            'overrideLambda': 'string'
        }
    }
}
Response Structure
(dict) --
Get Agent Version Response
agentVersion (dict) --
Contains the information of an agent version.
agentId (string) --
Identifier for a resource.
agentName (string) --
Name for a resource.
agentArn (string) --
Arn representation of the Agent.
version (string) --
Numerical Agent Version.
instruction (string) --
Instruction for the agent.
agentStatus (string) --
Schema Type for Action APIs.
foundationModel (string) --
ARN or name of a Bedrock model.
description (string) --
Description of the Resource.
idleSessionTTLInSeconds (integer) --
Max Session Time.
agentResourceRoleArn (string) --
ARN of a IAM role.
customerEncryptionKeyArn (string) --
A KMS key ARN
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
recommendedActions (list) --
The recommended actions users can take to resolve an error in failureReasons.
(string) --
The recommended action users can take to resolve an error in failureReasons.
promptOverrideConfiguration (dict) --
Configuration for prompt override.
promptConfigurations (list) --
List of BasePromptConfiguration
(dict) --
BasePromptConfiguration per Prompt Type.
promptType (string) --
Prompt Type.
promptCreationMode (string) --
Creation Mode for Prompt Configuration.
promptState (string) --
Prompt State.
basePromptTemplate (string) --
Base Prompt Template.
inferenceConfiguration (dict) --
Configuration for inference in prompt configuration
temperature (float) --
Controls randomness, higher values increase diversity
topP (float) --
Cumulative probability cutoff for token selection
topK (integer) --
Sample from the k most likely next tokens
maximumLength (integer) --
Maximum length of output
stopSequences (list) --
List of stop sequences
(string) --
parserMode (string) --
Creation Mode for Prompt Configuration.
overrideLambda (string) --
ARN of a Lambda.
Lists all the Aliases for an Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.list_agent_aliases(
    agentId='string',
    maxResults=123,
    nextToken='string'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
integer
Max Results.
string
Opaque continuation token of previous paginated response.
dict
Response Syntax
{
    'agentAliasSummaries': [
        {
            'agentAliasId': 'string',
            'agentAliasName': 'string',
            'description': 'string',
            'routingConfiguration': [
                {
                    'agentVersion': 'string'
                },
            ],
            'agentAliasStatus': 'CREATING'|'PREPARED'|'FAILED'|'UPDATING'|'DELETING',
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}
Response Structure
(dict) --
List Agent Aliases Response
agentAliasSummaries (list) --
The list of summaries of all the aliases for an Agent.
(dict) --
Summary of an alias for an Agent.
agentAliasId (string) --
Id for an Agent Alias generated at the server side.
agentAliasName (string) --
Name for a resource.
description (string) --
Description of the Resource.
routingConfiguration (list) --
Routing configuration for an Agent alias.
(dict) --
Details about the routing configuration for an Agent alias.
agentVersion (string) --
Agent Version.
agentAliasStatus (string) --
The statuses an Agent Alias can be in.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
nextToken (string) --
Opaque continuation token of previous paginated response.
Updates an existing Knowledge Base associated to an Amazon Bedrock Agent
See also: AWS API Documentation
Request Syntax
client.update_agent_knowledge_base(
    agentId='string',
    agentVersion='string',
    knowledgeBaseId='string',
    description='string',
    knowledgeBaseState='ENABLED'|'DISABLED'
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Draft Version of the Agent.
string
[REQUIRED]
Id generated at the server side when a Knowledge Base is associated to an Agent
string
Description of the Resource.
string
State of the knowledge base; whether it is enabled or disabled
dict
Response Syntax
{
    'agentKnowledgeBase': {
        'agentId': 'string',
        'agentVersion': 'string',
        'knowledgeBaseId': 'string',
        'description': 'string',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'knowledgeBaseState': 'ENABLED'|'DISABLED'
    }
}
Response Structure
(dict) --
Update Agent Knowledge Base Response
agentKnowledgeBase (dict) --
Contains the information of an Agent Knowledge Base.
agentId (string) --
Identifier for a resource.
agentVersion (string) --
Agent Version.
knowledgeBaseId (string) --
Identifier for a resource.
description (string) --
Description of the Resource.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
knowledgeBaseState (string) --
State of the knowledge base; whether it is enabled or disabled
Update an existing knowledge base
See also: AWS API Documentation
Request Syntax
client.update_knowledge_base(
    knowledgeBaseId='string',
    name='string',
    description='string',
    roleArn='string',
    knowledgeBaseConfiguration={
        'type': 'VECTOR',
        'vectorKnowledgeBaseConfiguration': {
            'embeddingModelArn': 'string'
        }
    },
    storageConfiguration={
        'type': 'OPENSEARCH_SERVERLESS'|'PINECONE'|'REDIS_ENTERPRISE_CLOUD',
        'opensearchServerlessConfiguration': {
            'collectionArn': 'string',
            'vectorIndexName': 'string',
            'fieldMapping': {
                'vectorField': 'string',
                'textField': 'string',
                'metadataField': 'string'
            }
        },
        'pineconeConfiguration': {
            'connectionString': 'string',
            'credentialsSecretArn': 'string',
            'namespace': 'string',
            'fieldMapping': {
                'textField': 'string',
                'metadataField': 'string'
            }
        },
        'redisEnterpriseCloudConfiguration': {
            'endpoint': 'string',
            'vectorIndexName': 'string',
            'credentialsSecretArn': 'string',
            'fieldMapping': {
                'vectorField': 'string',
                'textField': 'string',
                'metadataField': 'string'
            }
        }
    }
)
string
[REQUIRED]
Identifier for a resource.
string
[REQUIRED]
Name for a resource.
string
Description of the Resource.
string
[REQUIRED]
ARN of a IAM role.
dict
[REQUIRED]
Configures a bedrock knowledge base.
type (string) -- [REQUIRED]
The type of a knowledge base.
vectorKnowledgeBaseConfiguration (dict) --
Configurations for a vector knowledge base.
embeddingModelArn (string) -- [REQUIRED]
Arn of a Bedrock model.
dict
[REQUIRED]
Configures the physical storage of ingested data in a knowledge base.
type (string) -- [REQUIRED]
The storage type of a knowledge base.
opensearchServerlessConfiguration (dict) --
Contains the configurations to use OpenSearch Serverless to store knowledge base data.
collectionArn (string) -- [REQUIRED]
Arn of an OpenSearch Serverless collection.
vectorIndexName (string) -- [REQUIRED]
Arn of an OpenSearch Serverless index.
fieldMapping (dict) -- [REQUIRED]
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
vectorField (string) -- [REQUIRED]
Name of the field
textField (string) -- [REQUIRED]
Name of the field
metadataField (string) -- [REQUIRED]
Name of the field
pineconeConfiguration (dict) --
Contains the configurations to use Pinecone to store knowledge base data.
connectionString (string) -- [REQUIRED]
Pinecone connection string
credentialsSecretArn (string) -- [REQUIRED]
Arn of a SecretsManager Secret.
namespace (string) --
Pinecone namespace
fieldMapping (dict) -- [REQUIRED]
A mapping of Bedrock Knowledge Base fields to Pinecone field names
textField (string) -- [REQUIRED]
Name of the field
metadataField (string) -- [REQUIRED]
Name of the field
redisEnterpriseCloudConfiguration (dict) --
Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
endpoint (string) -- [REQUIRED]
Redis enterprise cloud endpoint
vectorIndexName (string) -- [REQUIRED]
Name of a redis enterprise cloud index
credentialsSecretArn (string) -- [REQUIRED]
Arn of a SecretsManager Secret.
fieldMapping (dict) -- [REQUIRED]
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
vectorField (string) -- [REQUIRED]
Name of the field
textField (string) -- [REQUIRED]
Name of the field
metadataField (string) -- [REQUIRED]
Name of the field
dict
Response Syntax
{
    'knowledgeBase': {
        'knowledgeBaseId': 'string',
        'name': 'string',
        'knowledgeBaseArn': 'string',
        'description': 'string',
        'roleArn': 'string',
        'knowledgeBaseConfiguration': {
            'type': 'VECTOR',
            'vectorKnowledgeBaseConfiguration': {
                'embeddingModelArn': 'string'
            }
        },
        'storageConfiguration': {
            'type': 'OPENSEARCH_SERVERLESS'|'PINECONE'|'REDIS_ENTERPRISE_CLOUD',
            'opensearchServerlessConfiguration': {
                'collectionArn': 'string',
                'vectorIndexName': 'string',
                'fieldMapping': {
                    'vectorField': 'string',
                    'textField': 'string',
                    'metadataField': 'string'
                }
            },
            'pineconeConfiguration': {
                'connectionString': 'string',
                'credentialsSecretArn': 'string',
                'namespace': 'string',
                'fieldMapping': {
                    'textField': 'string',
                    'metadataField': 'string'
                }
            },
            'redisEnterpriseCloudConfiguration': {
                'endpoint': 'string',
                'vectorIndexName': 'string',
                'credentialsSecretArn': 'string',
                'fieldMapping': {
                    'vectorField': 'string',
                    'textField': 'string',
                    'metadataField': 'string'
                }
            }
        },
        'status': 'CREATING'|'ACTIVE'|'DELETING'|'UPDATING'|'FAILED',
        'createdAt': datetime(2015, 1, 1),
        'updatedAt': datetime(2015, 1, 1),
        'failureReasons': [
            'string',
        ]
    }
}
Response Structure
(dict) --
knowledgeBase (dict) --
Contains the information of a knowledge base.
knowledgeBaseId (string) --
Identifier for a resource.
name (string) --
Name for a resource.
knowledgeBaseArn (string) --
ARN of a KnowledgeBase
description (string) --
Description of the Resource.
roleArn (string) --
ARN of a IAM role.
knowledgeBaseConfiguration (dict) --
Configures a bedrock knowledge base.
type (string) --
The type of a knowledge base.
vectorKnowledgeBaseConfiguration (dict) --
Configurations for a vector knowledge base.
embeddingModelArn (string) --
Arn of a Bedrock model.
storageConfiguration (dict) --
Configures the physical storage of ingested data in a knowledge base.
type (string) --
The storage type of a knowledge base.
opensearchServerlessConfiguration (dict) --
Contains the configurations to use OpenSearch Serverless to store knowledge base data.
collectionArn (string) --
Arn of an OpenSearch Serverless collection.
vectorIndexName (string) --
Arn of an OpenSearch Serverless index.
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to OpenSearch Serverless field names
vectorField (string) --
Name of the field
textField (string) --
Name of the field
metadataField (string) --
Name of the field
pineconeConfiguration (dict) --
Contains the configurations to use Pinecone to store knowledge base data.
connectionString (string) --
Pinecone connection string
credentialsSecretArn (string) --
Arn of a SecretsManager Secret.
namespace (string) --
Pinecone namespace
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to Pinecone field names
textField (string) --
Name of the field
metadataField (string) --
Name of the field
redisEnterpriseCloudConfiguration (dict) --
Contains the configurations to use Redis Enterprise Cloud to store knowledge base data.
endpoint (string) --
Redis enterprise cloud endpoint
vectorIndexName (string) --
Name of a redis enterprise cloud index
credentialsSecretArn (string) --
Arn of a SecretsManager Secret.
fieldMapping (dict) --
A mapping of Bedrock Knowledge Base fields to Redis Cloud field names
vectorField (string) --
Name of the field
textField (string) --
Name of the field
metadataField (string) --
Name of the field
status (string) --
The status of a knowledge base.
createdAt (datetime) --
Time Stamp.
updatedAt (datetime) --
Time Stamp.
failureReasons (list) --
Failure Reasons for Error.
(string) --
Failure Reason for Error.
Deletes an Action Group for existing Amazon Bedrock Agent.
See also: AWS API Documentation
Request Syntax
client.delete_agent_action_group(
    agentId='string',
    agentVersion='string',
    actionGroupId='string',
    skipResourceInUseCheck=True|False
)
string
[REQUIRED]
Id generated at the server side when an Agent is created
string
[REQUIRED]
Draft Version of the Agent.
string
[REQUIRED]
Id generated at the server side when an Agent ActionGroup is created
boolean
Skips checking if resource is in use when set to true. Defaults to false
dict
Response Syntax
{}
Response Structure
(dict) --
Delete Action Group Response