AgentsforBedrockClient#
Index > AgentsforBedrock > AgentsforBedrockClient
Auto-generated documentation for AgentsforBedrock type annotations stubs module types-boto3-bedrock-agent.
AgentsforBedrockClient#
Type annotations and code completion for boto3.client("bedrock-agent")
.
boto3 documentation
# AgentsforBedrockClient usage example
from boto3.session import Session
from types_boto3_bedrock_agent.client import AgentsforBedrockClient
def get_bedrock-agent_client() -> AgentsforBedrockClient:
return Session().client("bedrock-agent")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("bedrock-agent").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("bedrock-agent")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ThrottlingException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from types_boto3_bedrock_agent.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("bedrock-agent").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("bedrock-agent").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
associate_agent_collaborator#
Makes an agent a collaborator for another agent.
Type annotations and code completion for boto3.client("bedrock-agent").associate_agent_collaborator
method.
boto3 documentation
# associate_agent_collaborator method definition
def associate_agent_collaborator(
self,
*,
agentDescriptor: AgentDescriptorTypeDef, # (1)
agentId: str,
agentVersion: str,
collaborationInstruction: str,
collaboratorName: str,
clientToken: str = ...,
relayConversationHistory: RelayConversationHistoryType = ..., # (2)
) -> AssociateAgentCollaboratorResponseTypeDef: # (3)
...
- See AgentDescriptorTypeDef
- See RelayConversationHistoryType
- See AssociateAgentCollaboratorResponseTypeDef
# associate_agent_collaborator method usage example with argument unpacking
kwargs: AssociateAgentCollaboratorRequestRequestTypeDef = { # (1)
"agentDescriptor": ...,
"agentId": ...,
"agentVersion": ...,
"collaborationInstruction": ...,
"collaboratorName": ...,
}
parent.associate_agent_collaborator(**kwargs)
associate_agent_knowledge_base#
Associates a knowledge base with an agent.
Type annotations and code completion for boto3.client("bedrock-agent").associate_agent_knowledge_base
method.
boto3 documentation
# associate_agent_knowledge_base method definition
def associate_agent_knowledge_base(
self,
*,
agentId: str,
agentVersion: str,
description: str,
knowledgeBaseId: str,
knowledgeBaseState: KnowledgeBaseStateType = ..., # (1)
) -> AssociateAgentKnowledgeBaseResponseTypeDef: # (2)
...
# associate_agent_knowledge_base method usage example with argument unpacking
kwargs: AssociateAgentKnowledgeBaseRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
"description": ...,
"knowledgeBaseId": ...,
}
parent.associate_agent_knowledge_base(**kwargs)
create_agent#
Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
Type annotations and code completion for boto3.client("bedrock-agent").create_agent
method.
boto3 documentation
# create_agent method definition
def create_agent(
self,
*,
agentName: str,
agentCollaboration: AgentCollaborationType = ..., # (1)
agentResourceRoleArn: str = ...,
clientToken: str = ...,
customOrchestration: CustomOrchestrationTypeDef = ..., # (2)
customerEncryptionKeyArn: str = ...,
description: str = ...,
foundationModel: str = ...,
guardrailConfiguration: GuardrailConfigurationTypeDef = ..., # (3)
idleSessionTTLInSeconds: int = ...,
instruction: str = ...,
memoryConfiguration: MemoryConfigurationTypeDef = ..., # (4)
orchestrationType: OrchestrationTypeType = ..., # (5)
promptOverrideConfiguration: PromptOverrideConfigurationTypeDef = ..., # (6)
tags: Mapping[str, str] = ...,
) -> CreateAgentResponseTypeDef: # (7)
...
- See AgentCollaborationType
- See CustomOrchestrationTypeDef
- See GuardrailConfigurationTypeDef
- See MemoryConfigurationTypeDef
- See OrchestrationTypeType
- See PromptOverrideConfigurationTypeDef
- See CreateAgentResponseTypeDef
# create_agent method usage example with argument unpacking
kwargs: CreateAgentRequestRequestTypeDef = { # (1)
"agentName": ...,
}
parent.create_agent(**kwargs)
create_agent_action_group#
Creates an action group for an agent.
Type annotations and code completion for boto3.client("bedrock-agent").create_agent_action_group
method.
boto3 documentation
# create_agent_action_group method definition
def create_agent_action_group(
self,
*,
actionGroupName: str,
agentId: str,
agentVersion: str,
actionGroupExecutor: ActionGroupExecutorTypeDef = ..., # (1)
actionGroupState: ActionGroupStateType = ..., # (2)
apiSchema: APISchemaTypeDef = ..., # (3)
clientToken: str = ...,
description: str = ...,
functionSchema: FunctionSchemaTypeDef = ..., # (4)
parentActionGroupSignature: ActionGroupSignatureType = ..., # (5)
) -> CreateAgentActionGroupResponseTypeDef: # (6)
...
- See ActionGroupExecutorTypeDef
- See ActionGroupStateType
- See APISchemaTypeDef
- See FunctionSchemaTypeDef
- See ActionGroupSignatureType
- See CreateAgentActionGroupResponseTypeDef
# create_agent_action_group method usage example with argument unpacking
kwargs: CreateAgentActionGroupRequestRequestTypeDef = { # (1)
"actionGroupName": ...,
"agentId": ...,
"agentVersion": ...,
}
parent.create_agent_action_group(**kwargs)
create_agent_alias#
Creates an alias of an agent that can be used to deploy the agent.
Type annotations and code completion for boto3.client("bedrock-agent").create_agent_alias
method.
boto3 documentation
# create_agent_alias method definition
def create_agent_alias(
self,
*,
agentAliasName: str,
agentId: str,
clientToken: str = ...,
description: str = ...,
routingConfiguration: Sequence[AgentAliasRoutingConfigurationListItemTypeDef] = ..., # (1)
tags: Mapping[str, str] = ...,
) -> CreateAgentAliasResponseTypeDef: # (2)
...
# create_agent_alias method usage example with argument unpacking
kwargs: CreateAgentAliasRequestRequestTypeDef = { # (1)
"agentAliasName": ...,
"agentId": ...,
}
parent.create_agent_alias(**kwargs)
create_data_source#
Connects a knowledge base to a data source.
Type annotations and code completion for boto3.client("bedrock-agent").create_data_source
method.
boto3 documentation
# create_data_source method definition
def create_data_source(
self,
*,
dataSourceConfiguration: DataSourceConfigurationTypeDef, # (1)
knowledgeBaseId: str,
name: str,
clientToken: str = ...,
dataDeletionPolicy: DataDeletionPolicyType = ..., # (2)
description: str = ...,
serverSideEncryptionConfiguration: ServerSideEncryptionConfigurationTypeDef = ..., # (3)
vectorIngestionConfiguration: VectorIngestionConfigurationTypeDef = ..., # (4)
) -> CreateDataSourceResponseTypeDef: # (5)
...
- See DataSourceConfigurationTypeDef
- See DataDeletionPolicyType
- See ServerSideEncryptionConfigurationTypeDef
- See VectorIngestionConfigurationTypeDef
- See CreateDataSourceResponseTypeDef
# create_data_source method usage example with argument unpacking
kwargs: CreateDataSourceRequestRequestTypeDef = { # (1)
"dataSourceConfiguration": ...,
"knowledgeBaseId": ...,
"name": ...,
}
parent.create_data_source(**kwargs)
create_flow#
Creates a prompt flow that you can use to send an input through various steps to yield an output.
Type annotations and code completion for boto3.client("bedrock-agent").create_flow
method.
boto3 documentation
# create_flow method definition
def create_flow(
self,
*,
executionRoleArn: str,
name: str,
clientToken: str = ...,
customerEncryptionKeyArn: str = ...,
definition: FlowDefinitionTypeDef = ..., # (1)
description: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateFlowResponseTypeDef: # (2)
...
# create_flow method usage example with argument unpacking
kwargs: CreateFlowRequestRequestTypeDef = { # (1)
"executionRoleArn": ...,
"name": ...,
}
parent.create_flow(**kwargs)
create_flow_alias#
Creates an alias of a flow for deployment.
Type annotations and code completion for boto3.client("bedrock-agent").create_flow_alias
method.
boto3 documentation
# create_flow_alias method definition
def create_flow_alias(
self,
*,
flowIdentifier: str,
name: str,
routingConfiguration: Sequence[FlowAliasRoutingConfigurationListItemTypeDef], # (1)
clientToken: str = ...,
description: str = ...,
tags: Mapping[str, str] = ...,
) -> CreateFlowAliasResponseTypeDef: # (2)
...
# create_flow_alias method usage example with argument unpacking
kwargs: CreateFlowAliasRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
"name": ...,
"routingConfiguration": ...,
}
parent.create_flow_alias(**kwargs)
create_flow_version#
Creates a version of the flow that you can deploy.
Type annotations and code completion for boto3.client("bedrock-agent").create_flow_version
method.
boto3 documentation
# create_flow_version method definition
def create_flow_version(
self,
*,
flowIdentifier: str,
clientToken: str = ...,
description: str = ...,
) -> CreateFlowVersionResponseTypeDef: # (1)
...
# create_flow_version method usage example with argument unpacking
kwargs: CreateFlowVersionRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
}
parent.create_flow_version(**kwargs)
create_knowledge_base#
Creates a knowledge base.
Type annotations and code completion for boto3.client("bedrock-agent").create_knowledge_base
method.
boto3 documentation
# create_knowledge_base method definition
def create_knowledge_base(
self,
*,
knowledgeBaseConfiguration: KnowledgeBaseConfigurationTypeDef, # (1)
name: str,
roleArn: str,
clientToken: str = ...,
description: str = ...,
storageConfiguration: StorageConfigurationTypeDef = ..., # (2)
tags: Mapping[str, str] = ...,
) -> CreateKnowledgeBaseResponseTypeDef: # (3)
...
- See KnowledgeBaseConfigurationTypeDef
- See StorageConfigurationTypeDef
- See CreateKnowledgeBaseResponseTypeDef
# create_knowledge_base method usage example with argument unpacking
kwargs: CreateKnowledgeBaseRequestRequestTypeDef = { # (1)
"knowledgeBaseConfiguration": ...,
"name": ...,
"roleArn": ...,
}
parent.create_knowledge_base(**kwargs)
create_prompt#
Creates a prompt in your prompt library that you can add to a flow.
Type annotations and code completion for boto3.client("bedrock-agent").create_prompt
method.
boto3 documentation
# create_prompt method definition
def create_prompt(
self,
*,
name: str,
clientToken: str = ...,
customerEncryptionKeyArn: str = ...,
defaultVariant: str = ...,
description: str = ...,
tags: Mapping[str, str] = ...,
variants: Sequence[PromptVariantUnionTypeDef] = ..., # (1)
) -> CreatePromptResponseTypeDef: # (2)
...
# create_prompt method usage example with argument unpacking
kwargs: CreatePromptRequestRequestTypeDef = { # (1)
"name": ...,
}
parent.create_prompt(**kwargs)
create_prompt_version#
Creates a static snapshot of your prompt that can be deployed to production.
Type annotations and code completion for boto3.client("bedrock-agent").create_prompt_version
method.
boto3 documentation
# create_prompt_version method definition
def create_prompt_version(
self,
*,
promptIdentifier: str,
clientToken: str = ...,
description: str = ...,
tags: Mapping[str, str] = ...,
) -> CreatePromptVersionResponseTypeDef: # (1)
...
# create_prompt_version method usage example with argument unpacking
kwargs: CreatePromptVersionRequestRequestTypeDef = { # (1)
"promptIdentifier": ...,
}
parent.create_prompt_version(**kwargs)
delete_agent#
Deletes an agent.
Type annotations and code completion for boto3.client("bedrock-agent").delete_agent
method.
boto3 documentation
# delete_agent method definition
def delete_agent(
self,
*,
agentId: str,
skipResourceInUseCheck: bool = ...,
) -> DeleteAgentResponseTypeDef: # (1)
...
# delete_agent method usage example with argument unpacking
kwargs: DeleteAgentRequestRequestTypeDef = { # (1)
"agentId": ...,
}
parent.delete_agent(**kwargs)
delete_agent_action_group#
Deletes an action group in an agent.
Type annotations and code completion for boto3.client("bedrock-agent").delete_agent_action_group
method.
boto3 documentation
# delete_agent_action_group method definition
def delete_agent_action_group(
self,
*,
actionGroupId: str,
agentId: str,
agentVersion: str,
skipResourceInUseCheck: bool = ...,
) -> dict[str, Any]:
...
# delete_agent_action_group method usage example with argument unpacking
kwargs: DeleteAgentActionGroupRequestRequestTypeDef = { # (1)
"actionGroupId": ...,
"agentId": ...,
"agentVersion": ...,
}
parent.delete_agent_action_group(**kwargs)
delete_agent_alias#
Deletes an alias of an agent.
Type annotations and code completion for boto3.client("bedrock-agent").delete_agent_alias
method.
boto3 documentation
# delete_agent_alias method definition
def delete_agent_alias(
self,
*,
agentAliasId: str,
agentId: str,
) -> DeleteAgentAliasResponseTypeDef: # (1)
...
# delete_agent_alias method usage example with argument unpacking
kwargs: DeleteAgentAliasRequestRequestTypeDef = { # (1)
"agentAliasId": ...,
"agentId": ...,
}
parent.delete_agent_alias(**kwargs)
delete_agent_version#
Deletes a version of an agent.
Type annotations and code completion for boto3.client("bedrock-agent").delete_agent_version
method.
boto3 documentation
# delete_agent_version method definition
def delete_agent_version(
self,
*,
agentId: str,
agentVersion: str,
skipResourceInUseCheck: bool = ...,
) -> DeleteAgentVersionResponseTypeDef: # (1)
...
# delete_agent_version method usage example with argument unpacking
kwargs: DeleteAgentVersionRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
}
parent.delete_agent_version(**kwargs)
delete_data_source#
Deletes a data source from a knowledge base.
Type annotations and code completion for boto3.client("bedrock-agent").delete_data_source
method.
boto3 documentation
# delete_data_source method definition
def delete_data_source(
self,
*,
dataSourceId: str,
knowledgeBaseId: str,
) -> DeleteDataSourceResponseTypeDef: # (1)
...
# delete_data_source method usage example with argument unpacking
kwargs: DeleteDataSourceRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"knowledgeBaseId": ...,
}
parent.delete_data_source(**kwargs)
delete_flow#
Deletes a flow.
Type annotations and code completion for boto3.client("bedrock-agent").delete_flow
method.
boto3 documentation
# delete_flow method definition
def delete_flow(
self,
*,
flowIdentifier: str,
skipResourceInUseCheck: bool = ...,
) -> DeleteFlowResponseTypeDef: # (1)
...
# delete_flow method usage example with argument unpacking
kwargs: DeleteFlowRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
}
parent.delete_flow(**kwargs)
delete_flow_alias#
Deletes an alias of a flow.
Type annotations and code completion for boto3.client("bedrock-agent").delete_flow_alias
method.
boto3 documentation
# delete_flow_alias method definition
def delete_flow_alias(
self,
*,
aliasIdentifier: str,
flowIdentifier: str,
) -> DeleteFlowAliasResponseTypeDef: # (1)
...
# delete_flow_alias method usage example with argument unpacking
kwargs: DeleteFlowAliasRequestRequestTypeDef = { # (1)
"aliasIdentifier": ...,
"flowIdentifier": ...,
}
parent.delete_flow_alias(**kwargs)
delete_flow_version#
Deletes a version of a flow.
Type annotations and code completion for boto3.client("bedrock-agent").delete_flow_version
method.
boto3 documentation
# delete_flow_version method definition
def delete_flow_version(
self,
*,
flowIdentifier: str,
flowVersion: str,
skipResourceInUseCheck: bool = ...,
) -> DeleteFlowVersionResponseTypeDef: # (1)
...
# delete_flow_version method usage example with argument unpacking
kwargs: DeleteFlowVersionRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
"flowVersion": ...,
}
parent.delete_flow_version(**kwargs)
delete_knowledge_base#
Deletes a knowledge base.
Type annotations and code completion for boto3.client("bedrock-agent").delete_knowledge_base
method.
boto3 documentation
# delete_knowledge_base method definition
def delete_knowledge_base(
self,
*,
knowledgeBaseId: str,
) -> DeleteKnowledgeBaseResponseTypeDef: # (1)
...
# delete_knowledge_base method usage example with argument unpacking
kwargs: DeleteKnowledgeBaseRequestRequestTypeDef = { # (1)
"knowledgeBaseId": ...,
}
parent.delete_knowledge_base(**kwargs)
delete_knowledge_base_documents#
Deletes documents from a data source and syncs the changes to the knowledge base that is connected to it.
Type annotations and code completion for boto3.client("bedrock-agent").delete_knowledge_base_documents
method.
boto3 documentation
# delete_knowledge_base_documents method definition
def delete_knowledge_base_documents(
self,
*,
dataSourceId: str,
documentIdentifiers: Sequence[DocumentIdentifierTypeDef], # (1)
knowledgeBaseId: str,
clientToken: str = ...,
) -> DeleteKnowledgeBaseDocumentsResponseTypeDef: # (2)
...
# delete_knowledge_base_documents method usage example with argument unpacking
kwargs: DeleteKnowledgeBaseDocumentsRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"documentIdentifiers": ...,
"knowledgeBaseId": ...,
}
parent.delete_knowledge_base_documents(**kwargs)
delete_prompt#
Deletes a prompt or a version of it, depending on whether you include the
promptVersion
field or not.
Type annotations and code completion for boto3.client("bedrock-agent").delete_prompt
method.
boto3 documentation
# delete_prompt method definition
def delete_prompt(
self,
*,
promptIdentifier: str,
promptVersion: str = ...,
) -> DeletePromptResponseTypeDef: # (1)
...
# delete_prompt method usage example with argument unpacking
kwargs: DeletePromptRequestRequestTypeDef = { # (1)
"promptIdentifier": ...,
}
parent.delete_prompt(**kwargs)
disassociate_agent_collaborator#
Disassociates an agent collaborator.
Type annotations and code completion for boto3.client("bedrock-agent").disassociate_agent_collaborator
method.
boto3 documentation
# disassociate_agent_collaborator method definition
def disassociate_agent_collaborator(
self,
*,
agentId: str,
agentVersion: str,
collaboratorId: str,
) -> dict[str, Any]:
...
# disassociate_agent_collaborator method usage example with argument unpacking
kwargs: DisassociateAgentCollaboratorRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
"collaboratorId": ...,
}
parent.disassociate_agent_collaborator(**kwargs)
disassociate_agent_knowledge_base#
Disassociates a knowledge base from an agent.
Type annotations and code completion for boto3.client("bedrock-agent").disassociate_agent_knowledge_base
method.
boto3 documentation
# disassociate_agent_knowledge_base method definition
def disassociate_agent_knowledge_base(
self,
*,
agentId: str,
agentVersion: str,
knowledgeBaseId: str,
) -> dict[str, Any]:
...
# disassociate_agent_knowledge_base method usage example with argument unpacking
kwargs: DisassociateAgentKnowledgeBaseRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
"knowledgeBaseId": ...,
}
parent.disassociate_agent_knowledge_base(**kwargs)
get_agent#
Gets information about an agent.
Type annotations and code completion for boto3.client("bedrock-agent").get_agent
method.
boto3 documentation
# get_agent method definition
def get_agent(
self,
*,
agentId: str,
) -> GetAgentResponseTypeDef: # (1)
...
# get_agent method usage example with argument unpacking
kwargs: GetAgentRequestRequestTypeDef = { # (1)
"agentId": ...,
}
parent.get_agent(**kwargs)
get_agent_action_group#
Gets information about an action group for an agent.
Type annotations and code completion for boto3.client("bedrock-agent").get_agent_action_group
method.
boto3 documentation
# get_agent_action_group method definition
def get_agent_action_group(
self,
*,
actionGroupId: str,
agentId: str,
agentVersion: str,
) -> GetAgentActionGroupResponseTypeDef: # (1)
...
# get_agent_action_group method usage example with argument unpacking
kwargs: GetAgentActionGroupRequestRequestTypeDef = { # (1)
"actionGroupId": ...,
"agentId": ...,
"agentVersion": ...,
}
parent.get_agent_action_group(**kwargs)
get_agent_alias#
Gets information about an alias of an agent.
Type annotations and code completion for boto3.client("bedrock-agent").get_agent_alias
method.
boto3 documentation
# get_agent_alias method definition
def get_agent_alias(
self,
*,
agentAliasId: str,
agentId: str,
) -> GetAgentAliasResponseTypeDef: # (1)
...
# get_agent_alias method usage example with argument unpacking
kwargs: GetAgentAliasRequestRequestTypeDef = { # (1)
"agentAliasId": ...,
"agentId": ...,
}
parent.get_agent_alias(**kwargs)
get_agent_collaborator#
Retrieves information about an agent's collaborator.
Type annotations and code completion for boto3.client("bedrock-agent").get_agent_collaborator
method.
boto3 documentation
# get_agent_collaborator method definition
def get_agent_collaborator(
self,
*,
agentId: str,
agentVersion: str,
collaboratorId: str,
) -> GetAgentCollaboratorResponseTypeDef: # (1)
...
# get_agent_collaborator method usage example with argument unpacking
kwargs: GetAgentCollaboratorRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
"collaboratorId": ...,
}
parent.get_agent_collaborator(**kwargs)
get_agent_knowledge_base#
Gets information about a knowledge base associated with an agent.
Type annotations and code completion for boto3.client("bedrock-agent").get_agent_knowledge_base
method.
boto3 documentation
# get_agent_knowledge_base method definition
def get_agent_knowledge_base(
self,
*,
agentId: str,
agentVersion: str,
knowledgeBaseId: str,
) -> GetAgentKnowledgeBaseResponseTypeDef: # (1)
...
# get_agent_knowledge_base method usage example with argument unpacking
kwargs: GetAgentKnowledgeBaseRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
"knowledgeBaseId": ...,
}
parent.get_agent_knowledge_base(**kwargs)
get_agent_version#
Gets details about a version of an agent.
Type annotations and code completion for boto3.client("bedrock-agent").get_agent_version
method.
boto3 documentation
# get_agent_version method definition
def get_agent_version(
self,
*,
agentId: str,
agentVersion: str,
) -> GetAgentVersionResponseTypeDef: # (1)
...
# get_agent_version method usage example with argument unpacking
kwargs: GetAgentVersionRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
}
parent.get_agent_version(**kwargs)
get_data_source#
Gets information about a data source.
Type annotations and code completion for boto3.client("bedrock-agent").get_data_source
method.
boto3 documentation
# get_data_source method definition
def get_data_source(
self,
*,
dataSourceId: str,
knowledgeBaseId: str,
) -> GetDataSourceResponseTypeDef: # (1)
...
# get_data_source method usage example with argument unpacking
kwargs: GetDataSourceRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"knowledgeBaseId": ...,
}
parent.get_data_source(**kwargs)
get_flow#
Retrieves information about a flow.
Type annotations and code completion for boto3.client("bedrock-agent").get_flow
method.
boto3 documentation
# get_flow method definition
def get_flow(
self,
*,
flowIdentifier: str,
) -> GetFlowResponseTypeDef: # (1)
...
# get_flow method usage example with argument unpacking
kwargs: GetFlowRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
}
parent.get_flow(**kwargs)
get_flow_alias#
Retrieves information about a flow.
Type annotations and code completion for boto3.client("bedrock-agent").get_flow_alias
method.
boto3 documentation
# get_flow_alias method definition
def get_flow_alias(
self,
*,
aliasIdentifier: str,
flowIdentifier: str,
) -> GetFlowAliasResponseTypeDef: # (1)
...
# get_flow_alias method usage example with argument unpacking
kwargs: GetFlowAliasRequestRequestTypeDef = { # (1)
"aliasIdentifier": ...,
"flowIdentifier": ...,
}
parent.get_flow_alias(**kwargs)
get_flow_version#
Retrieves information about a version of a flow.
Type annotations and code completion for boto3.client("bedrock-agent").get_flow_version
method.
boto3 documentation
# get_flow_version method definition
def get_flow_version(
self,
*,
flowIdentifier: str,
flowVersion: str,
) -> GetFlowVersionResponseTypeDef: # (1)
...
# get_flow_version method usage example with argument unpacking
kwargs: GetFlowVersionRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
"flowVersion": ...,
}
parent.get_flow_version(**kwargs)
get_ingestion_job#
Gets information about a data ingestion job.
Type annotations and code completion for boto3.client("bedrock-agent").get_ingestion_job
method.
boto3 documentation
# get_ingestion_job method definition
def get_ingestion_job(
self,
*,
dataSourceId: str,
ingestionJobId: str,
knowledgeBaseId: str,
) -> GetIngestionJobResponseTypeDef: # (1)
...
# get_ingestion_job method usage example with argument unpacking
kwargs: GetIngestionJobRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"ingestionJobId": ...,
"knowledgeBaseId": ...,
}
parent.get_ingestion_job(**kwargs)
get_knowledge_base#
Gets information about a knoweldge base.
Type annotations and code completion for boto3.client("bedrock-agent").get_knowledge_base
method.
boto3 documentation
# get_knowledge_base method definition
def get_knowledge_base(
self,
*,
knowledgeBaseId: str,
) -> GetKnowledgeBaseResponseTypeDef: # (1)
...
# get_knowledge_base method usage example with argument unpacking
kwargs: GetKnowledgeBaseRequestRequestTypeDef = { # (1)
"knowledgeBaseId": ...,
}
parent.get_knowledge_base(**kwargs)
get_knowledge_base_documents#
Retrieves specific documents from a data source that is connected to a knowledge base.
Type annotations and code completion for boto3.client("bedrock-agent").get_knowledge_base_documents
method.
boto3 documentation
# get_knowledge_base_documents method definition
def get_knowledge_base_documents(
self,
*,
dataSourceId: str,
documentIdentifiers: Sequence[DocumentIdentifierTypeDef], # (1)
knowledgeBaseId: str,
) -> GetKnowledgeBaseDocumentsResponseTypeDef: # (2)
...
# get_knowledge_base_documents method usage example with argument unpacking
kwargs: GetKnowledgeBaseDocumentsRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"documentIdentifiers": ...,
"knowledgeBaseId": ...,
}
parent.get_knowledge_base_documents(**kwargs)
get_prompt#
Retrieves information about the working draft (DRAFT
version) of a
prompt or a version of it, depending on whether you include the
promptVersion
field or not.
Type annotations and code completion for boto3.client("bedrock-agent").get_prompt
method.
boto3 documentation
# get_prompt method definition
def get_prompt(
self,
*,
promptIdentifier: str,
promptVersion: str = ...,
) -> GetPromptResponseTypeDef: # (1)
...
# get_prompt method usage example with argument unpacking
kwargs: GetPromptRequestRequestTypeDef = { # (1)
"promptIdentifier": ...,
}
parent.get_prompt(**kwargs)
ingest_knowledge_base_documents#
Ingests documents directly into the knowledge base that is connected to the data source.
Type annotations and code completion for boto3.client("bedrock-agent").ingest_knowledge_base_documents
method.
boto3 documentation
# ingest_knowledge_base_documents method definition
def ingest_knowledge_base_documents(
self,
*,
dataSourceId: str,
documents: Sequence[KnowledgeBaseDocumentTypeDef], # (1)
knowledgeBaseId: str,
clientToken: str = ...,
) -> IngestKnowledgeBaseDocumentsResponseTypeDef: # (2)
...
# ingest_knowledge_base_documents method usage example with argument unpacking
kwargs: IngestKnowledgeBaseDocumentsRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"documents": ...,
"knowledgeBaseId": ...,
}
parent.ingest_knowledge_base_documents(**kwargs)
list_agent_action_groups#
Lists the action groups for an agent and information about each one.
Type annotations and code completion for boto3.client("bedrock-agent").list_agent_action_groups
method.
boto3 documentation
# list_agent_action_groups method definition
def list_agent_action_groups(
self,
*,
agentId: str,
agentVersion: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAgentActionGroupsResponseTypeDef: # (1)
...
# list_agent_action_groups method usage example with argument unpacking
kwargs: ListAgentActionGroupsRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
}
parent.list_agent_action_groups(**kwargs)
list_agent_aliases#
Lists the aliases of an agent and information about each one.
Type annotations and code completion for boto3.client("bedrock-agent").list_agent_aliases
method.
boto3 documentation
# list_agent_aliases method definition
def list_agent_aliases(
self,
*,
agentId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAgentAliasesResponseTypeDef: # (1)
...
# list_agent_aliases method usage example with argument unpacking
kwargs: ListAgentAliasesRequestRequestTypeDef = { # (1)
"agentId": ...,
}
parent.list_agent_aliases(**kwargs)
list_agent_collaborators#
Retrieve a list of an agent's collaborators.
Type annotations and code completion for boto3.client("bedrock-agent").list_agent_collaborators
method.
boto3 documentation
# list_agent_collaborators method definition
def list_agent_collaborators(
self,
*,
agentId: str,
agentVersion: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAgentCollaboratorsResponseTypeDef: # (1)
...
# list_agent_collaborators method usage example with argument unpacking
kwargs: ListAgentCollaboratorsRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
}
parent.list_agent_collaborators(**kwargs)
list_agent_knowledge_bases#
Lists knowledge bases associated with an agent and information about each one.
Type annotations and code completion for boto3.client("bedrock-agent").list_agent_knowledge_bases
method.
boto3 documentation
# list_agent_knowledge_bases method definition
def list_agent_knowledge_bases(
self,
*,
agentId: str,
agentVersion: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAgentKnowledgeBasesResponseTypeDef: # (1)
...
# list_agent_knowledge_bases method usage example with argument unpacking
kwargs: ListAgentKnowledgeBasesRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
}
parent.list_agent_knowledge_bases(**kwargs)
list_agent_versions#
Lists the versions of an agent and information about each version.
Type annotations and code completion for boto3.client("bedrock-agent").list_agent_versions
method.
boto3 documentation
# list_agent_versions method definition
def list_agent_versions(
self,
*,
agentId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAgentVersionsResponseTypeDef: # (1)
...
# list_agent_versions method usage example with argument unpacking
kwargs: ListAgentVersionsRequestRequestTypeDef = { # (1)
"agentId": ...,
}
parent.list_agent_versions(**kwargs)
list_agents#
Lists the agents belonging to an account and information about each agent.
Type annotations and code completion for boto3.client("bedrock-agent").list_agents
method.
boto3 documentation
# list_agents method definition
def list_agents(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListAgentsResponseTypeDef: # (1)
...
# list_agents method usage example with argument unpacking
kwargs: ListAgentsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_agents(**kwargs)
list_data_sources#
Lists the data sources in a knowledge base and information about each one.
Type annotations and code completion for boto3.client("bedrock-agent").list_data_sources
method.
boto3 documentation
# list_data_sources method definition
def list_data_sources(
self,
*,
knowledgeBaseId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListDataSourcesResponseTypeDef: # (1)
...
# list_data_sources method usage example with argument unpacking
kwargs: ListDataSourcesRequestRequestTypeDef = { # (1)
"knowledgeBaseId": ...,
}
parent.list_data_sources(**kwargs)
list_flow_aliases#
Returns a list of aliases for a flow.
Type annotations and code completion for boto3.client("bedrock-agent").list_flow_aliases
method.
boto3 documentation
# list_flow_aliases method definition
def list_flow_aliases(
self,
*,
flowIdentifier: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListFlowAliasesResponseTypeDef: # (1)
...
# list_flow_aliases method usage example with argument unpacking
kwargs: ListFlowAliasesRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
}
parent.list_flow_aliases(**kwargs)
list_flow_versions#
Returns a list of information about each flow.
Type annotations and code completion for boto3.client("bedrock-agent").list_flow_versions
method.
boto3 documentation
# list_flow_versions method definition
def list_flow_versions(
self,
*,
flowIdentifier: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListFlowVersionsResponseTypeDef: # (1)
...
# list_flow_versions method usage example with argument unpacking
kwargs: ListFlowVersionsRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
}
parent.list_flow_versions(**kwargs)
list_flows#
Returns a list of flows and information about each flow.
Type annotations and code completion for boto3.client("bedrock-agent").list_flows
method.
boto3 documentation
# list_flows method definition
def list_flows(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListFlowsResponseTypeDef: # (1)
...
# list_flows method usage example with argument unpacking
kwargs: ListFlowsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_flows(**kwargs)
list_ingestion_jobs#
Lists the data ingestion jobs for a data source.
Type annotations and code completion for boto3.client("bedrock-agent").list_ingestion_jobs
method.
boto3 documentation
# list_ingestion_jobs method definition
def list_ingestion_jobs(
self,
*,
dataSourceId: str,
knowledgeBaseId: str,
filters: Sequence[IngestionJobFilterTypeDef] = ..., # (1)
maxResults: int = ...,
nextToken: str = ...,
sortBy: IngestionJobSortByTypeDef = ..., # (2)
) -> ListIngestionJobsResponseTypeDef: # (3)
...
# list_ingestion_jobs method usage example with argument unpacking
kwargs: ListIngestionJobsRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"knowledgeBaseId": ...,
}
parent.list_ingestion_jobs(**kwargs)
list_knowledge_base_documents#
Retrieves all the documents contained in a data source that is connected to a knowledge base.
Type annotations and code completion for boto3.client("bedrock-agent").list_knowledge_base_documents
method.
boto3 documentation
# list_knowledge_base_documents method definition
def list_knowledge_base_documents(
self,
*,
dataSourceId: str,
knowledgeBaseId: str,
maxResults: int = ...,
nextToken: str = ...,
) -> ListKnowledgeBaseDocumentsResponseTypeDef: # (1)
...
# list_knowledge_base_documents method usage example with argument unpacking
kwargs: ListKnowledgeBaseDocumentsRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"knowledgeBaseId": ...,
}
parent.list_knowledge_base_documents(**kwargs)
list_knowledge_bases#
Lists the knowledge bases in an account.
Type annotations and code completion for boto3.client("bedrock-agent").list_knowledge_bases
method.
boto3 documentation
# list_knowledge_bases method definition
def list_knowledge_bases(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
) -> ListKnowledgeBasesResponseTypeDef: # (1)
...
# list_knowledge_bases method usage example with argument unpacking
kwargs: ListKnowledgeBasesRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_knowledge_bases(**kwargs)
list_prompts#
Returns either information about the working draft (DRAFT
version)
of each prompt in an account, or information about of all versions of a prompt,
depending on whether you include the promptIdentifier
field or
not.
Type annotations and code completion for boto3.client("bedrock-agent").list_prompts
method.
boto3 documentation
# list_prompts method definition
def list_prompts(
self,
*,
maxResults: int = ...,
nextToken: str = ...,
promptIdentifier: str = ...,
) -> ListPromptsResponseTypeDef: # (1)
...
# list_prompts method usage example with argument unpacking
kwargs: ListPromptsRequestRequestTypeDef = { # (1)
"maxResults": ...,
}
parent.list_prompts(**kwargs)
list_tags_for_resource#
List all the tags for the resource you specify.
Type annotations and code completion for boto3.client("bedrock-agent").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
resourceArn: str,
) -> ListTagsForResourceResponseTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
prepare_agent#
Creates a DRAFT
version of the agent that can be used for internal
testing.
Type annotations and code completion for boto3.client("bedrock-agent").prepare_agent
method.
boto3 documentation
# prepare_agent method definition
def prepare_agent(
self,
*,
agentId: str,
) -> PrepareAgentResponseTypeDef: # (1)
...
# prepare_agent method usage example with argument unpacking
kwargs: PrepareAgentRequestRequestTypeDef = { # (1)
"agentId": ...,
}
parent.prepare_agent(**kwargs)
prepare_flow#
Prepares the DRAFT
version of a flow so that it can be invoked.
Type annotations and code completion for boto3.client("bedrock-agent").prepare_flow
method.
boto3 documentation
# prepare_flow method definition
def prepare_flow(
self,
*,
flowIdentifier: str,
) -> PrepareFlowResponseTypeDef: # (1)
...
# prepare_flow method usage example with argument unpacking
kwargs: PrepareFlowRequestRequestTypeDef = { # (1)
"flowIdentifier": ...,
}
parent.prepare_flow(**kwargs)
start_ingestion_job#
Begins a data ingestion job.
Type annotations and code completion for boto3.client("bedrock-agent").start_ingestion_job
method.
boto3 documentation
# start_ingestion_job method definition
def start_ingestion_job(
self,
*,
dataSourceId: str,
knowledgeBaseId: str,
clientToken: str = ...,
description: str = ...,
) -> StartIngestionJobResponseTypeDef: # (1)
...
# start_ingestion_job method usage example with argument unpacking
kwargs: StartIngestionJobRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"knowledgeBaseId": ...,
}
parent.start_ingestion_job(**kwargs)
stop_ingestion_job#
Stops a currently running data ingestion job.
Type annotations and code completion for boto3.client("bedrock-agent").stop_ingestion_job
method.
boto3 documentation
# stop_ingestion_job method definition
def stop_ingestion_job(
self,
*,
dataSourceId: str,
ingestionJobId: str,
knowledgeBaseId: str,
) -> StopIngestionJobResponseTypeDef: # (1)
...
# stop_ingestion_job method usage example with argument unpacking
kwargs: StopIngestionJobRequestRequestTypeDef = { # (1)
"dataSourceId": ...,
"ingestionJobId": ...,
"knowledgeBaseId": ...,
}
parent.stop_ingestion_job(**kwargs)
tag_resource#
Associate tags with a resource.
Type annotations and code completion for boto3.client("bedrock-agent").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
resourceArn: str,
tags: Mapping[str, str],
) -> dict[str, Any]:
...
# tag_resource method usage example with argument unpacking
kwargs: TagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Remove tags from a resource.
Type annotations and code completion for boto3.client("bedrock-agent").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
resourceArn: str,
tagKeys: Sequence[str],
) -> dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceRequestRequestTypeDef = { # (1)
"resourceArn": ...,
"tagKeys": ...,
}
parent.untag_resource(**kwargs)
update_agent#
Updates the configuration of an agent.
Type annotations and code completion for boto3.client("bedrock-agent").update_agent
method.
boto3 documentation
# update_agent method definition
def update_agent(
self,
*,
agentId: str,
agentName: str,
agentResourceRoleArn: str,
foundationModel: str,
agentCollaboration: AgentCollaborationType = ..., # (1)
customOrchestration: CustomOrchestrationTypeDef = ..., # (2)
customerEncryptionKeyArn: str = ...,
description: str = ...,
guardrailConfiguration: GuardrailConfigurationTypeDef = ..., # (3)
idleSessionTTLInSeconds: int = ...,
instruction: str = ...,
memoryConfiguration: MemoryConfigurationTypeDef = ..., # (4)
orchestrationType: OrchestrationTypeType = ..., # (5)
promptOverrideConfiguration: PromptOverrideConfigurationTypeDef = ..., # (6)
) -> UpdateAgentResponseTypeDef: # (7)
...
- See AgentCollaborationType
- See CustomOrchestrationTypeDef
- See GuardrailConfigurationTypeDef
- See MemoryConfigurationTypeDef
- See OrchestrationTypeType
- See PromptOverrideConfigurationTypeDef
- See UpdateAgentResponseTypeDef
# update_agent method usage example with argument unpacking
kwargs: UpdateAgentRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentName": ...,
"agentResourceRoleArn": ...,
"foundationModel": ...,
}
parent.update_agent(**kwargs)
update_agent_action_group#
Updates the configuration for an action group for an agent.
Type annotations and code completion for boto3.client("bedrock-agent").update_agent_action_group
method.
boto3 documentation
# update_agent_action_group method definition
def update_agent_action_group(
self,
*,
actionGroupId: str,
actionGroupName: str,
agentId: str,
agentVersion: str,
actionGroupExecutor: ActionGroupExecutorTypeDef = ..., # (1)
actionGroupState: ActionGroupStateType = ..., # (2)
apiSchema: APISchemaTypeDef = ..., # (3)
description: str = ...,
functionSchema: FunctionSchemaTypeDef = ..., # (4)
parentActionGroupSignature: ActionGroupSignatureType = ..., # (5)
) -> UpdateAgentActionGroupResponseTypeDef: # (6)
...
- See ActionGroupExecutorTypeDef
- See ActionGroupStateType
- See APISchemaTypeDef
- See FunctionSchemaTypeDef
- See ActionGroupSignatureType
- See UpdateAgentActionGroupResponseTypeDef
# update_agent_action_group method usage example with argument unpacking
kwargs: UpdateAgentActionGroupRequestRequestTypeDef = { # (1)
"actionGroupId": ...,
"actionGroupName": ...,
"agentId": ...,
"agentVersion": ...,
}
parent.update_agent_action_group(**kwargs)
update_agent_alias#
Updates configurations for an alias of an agent.
Type annotations and code completion for boto3.client("bedrock-agent").update_agent_alias
method.
boto3 documentation
# update_agent_alias method definition
def update_agent_alias(
self,
*,
agentAliasId: str,
agentAliasName: str,
agentId: str,
description: str = ...,
routingConfiguration: Sequence[AgentAliasRoutingConfigurationListItemTypeDef] = ..., # (1)
) -> UpdateAgentAliasResponseTypeDef: # (2)
...
# update_agent_alias method usage example with argument unpacking
kwargs: UpdateAgentAliasRequestRequestTypeDef = { # (1)
"agentAliasId": ...,
"agentAliasName": ...,
"agentId": ...,
}
parent.update_agent_alias(**kwargs)
update_agent_collaborator#
Updates an agent's collaborator.
Type annotations and code completion for boto3.client("bedrock-agent").update_agent_collaborator
method.
boto3 documentation
# update_agent_collaborator method definition
def update_agent_collaborator(
self,
*,
agentDescriptor: AgentDescriptorTypeDef, # (1)
agentId: str,
agentVersion: str,
collaborationInstruction: str,
collaboratorId: str,
collaboratorName: str,
relayConversationHistory: RelayConversationHistoryType = ..., # (2)
) -> UpdateAgentCollaboratorResponseTypeDef: # (3)
...
- See AgentDescriptorTypeDef
- See RelayConversationHistoryType
- See UpdateAgentCollaboratorResponseTypeDef
# update_agent_collaborator method usage example with argument unpacking
kwargs: UpdateAgentCollaboratorRequestRequestTypeDef = { # (1)
"agentDescriptor": ...,
"agentId": ...,
"agentVersion": ...,
"collaborationInstruction": ...,
"collaboratorId": ...,
"collaboratorName": ...,
}
parent.update_agent_collaborator(**kwargs)
update_agent_knowledge_base#
Updates the configuration for a knowledge base that has been associated with an agent.
Type annotations and code completion for boto3.client("bedrock-agent").update_agent_knowledge_base
method.
boto3 documentation
# update_agent_knowledge_base method definition
def update_agent_knowledge_base(
self,
*,
agentId: str,
agentVersion: str,
knowledgeBaseId: str,
description: str = ...,
knowledgeBaseState: KnowledgeBaseStateType = ..., # (1)
) -> UpdateAgentKnowledgeBaseResponseTypeDef: # (2)
...
# update_agent_knowledge_base method usage example with argument unpacking
kwargs: UpdateAgentKnowledgeBaseRequestRequestTypeDef = { # (1)
"agentId": ...,
"agentVersion": ...,
"knowledgeBaseId": ...,
}
parent.update_agent_knowledge_base(**kwargs)
update_data_source#
Updates the configurations for a data source connector.
Type annotations and code completion for boto3.client("bedrock-agent").update_data_source
method.
boto3 documentation
# update_data_source method definition
def update_data_source(
self,
*,
dataSourceConfiguration: DataSourceConfigurationTypeDef, # (1)
dataSourceId: str,
knowledgeBaseId: str,
name: str,
dataDeletionPolicy: DataDeletionPolicyType = ..., # (2)
description: str = ...,
serverSideEncryptionConfiguration: ServerSideEncryptionConfigurationTypeDef = ..., # (3)
vectorIngestionConfiguration: VectorIngestionConfigurationTypeDef = ..., # (4)
) -> UpdateDataSourceResponseTypeDef: # (5)
...
- See DataSourceConfigurationTypeDef
- See DataDeletionPolicyType
- See ServerSideEncryptionConfigurationTypeDef
- See VectorIngestionConfigurationTypeDef
- See UpdateDataSourceResponseTypeDef
# update_data_source method usage example with argument unpacking
kwargs: UpdateDataSourceRequestRequestTypeDef = { # (1)
"dataSourceConfiguration": ...,
"dataSourceId": ...,
"knowledgeBaseId": ...,
"name": ...,
}
parent.update_data_source(**kwargs)
update_flow#
Modifies a flow.
Type annotations and code completion for boto3.client("bedrock-agent").update_flow
method.
boto3 documentation
# update_flow method definition
def update_flow(
self,
*,
executionRoleArn: str,
flowIdentifier: str,
name: str,
customerEncryptionKeyArn: str = ...,
definition: FlowDefinitionTypeDef = ..., # (1)
description: str = ...,
) -> UpdateFlowResponseTypeDef: # (2)
...
# update_flow method usage example with argument unpacking
kwargs: UpdateFlowRequestRequestTypeDef = { # (1)
"executionRoleArn": ...,
"flowIdentifier": ...,
"name": ...,
}
parent.update_flow(**kwargs)
update_flow_alias#
Modifies the alias of a flow.
Type annotations and code completion for boto3.client("bedrock-agent").update_flow_alias
method.
boto3 documentation
# update_flow_alias method definition
def update_flow_alias(
self,
*,
aliasIdentifier: str,
flowIdentifier: str,
name: str,
routingConfiguration: Sequence[FlowAliasRoutingConfigurationListItemTypeDef], # (1)
description: str = ...,
) -> UpdateFlowAliasResponseTypeDef: # (2)
...
# update_flow_alias method usage example with argument unpacking
kwargs: UpdateFlowAliasRequestRequestTypeDef = { # (1)
"aliasIdentifier": ...,
"flowIdentifier": ...,
"name": ...,
"routingConfiguration": ...,
}
parent.update_flow_alias(**kwargs)
update_knowledge_base#
Updates the configuration of a knowledge base with the fields that you specify.
Type annotations and code completion for boto3.client("bedrock-agent").update_knowledge_base
method.
boto3 documentation
# update_knowledge_base method definition
def update_knowledge_base(
self,
*,
knowledgeBaseConfiguration: KnowledgeBaseConfigurationTypeDef, # (1)
knowledgeBaseId: str,
name: str,
roleArn: str,
description: str = ...,
storageConfiguration: StorageConfigurationTypeDef = ..., # (2)
) -> UpdateKnowledgeBaseResponseTypeDef: # (3)
...
- See KnowledgeBaseConfigurationTypeDef
- See StorageConfigurationTypeDef
- See UpdateKnowledgeBaseResponseTypeDef
# update_knowledge_base method usage example with argument unpacking
kwargs: UpdateKnowledgeBaseRequestRequestTypeDef = { # (1)
"knowledgeBaseConfiguration": ...,
"knowledgeBaseId": ...,
"name": ...,
"roleArn": ...,
}
parent.update_knowledge_base(**kwargs)
update_prompt#
Modifies a prompt in your prompt library.
Type annotations and code completion for boto3.client("bedrock-agent").update_prompt
method.
boto3 documentation
# update_prompt method definition
def update_prompt(
self,
*,
name: str,
promptIdentifier: str,
customerEncryptionKeyArn: str = ...,
defaultVariant: str = ...,
description: str = ...,
variants: Sequence[PromptVariantTypeDef] = ..., # (1)
) -> UpdatePromptResponseTypeDef: # (2)
...
# update_prompt method usage example with argument unpacking
kwargs: UpdatePromptRequestRequestTypeDef = { # (1)
"name": ...,
"promptIdentifier": ...,
}
parent.update_prompt(**kwargs)
validate_flow_definition#
Validates the definition of a flow.
Type annotations and code completion for boto3.client("bedrock-agent").validate_flow_definition
method.
boto3 documentation
# validate_flow_definition method definition
def validate_flow_definition(
self,
*,
definition: FlowDefinitionTypeDef, # (1)
) -> ValidateFlowDefinitionResponseTypeDef: # (2)
...
# validate_flow_definition method usage example with argument unpacking
kwargs: ValidateFlowDefinitionRequestRequestTypeDef = { # (1)
"definition": ...,
}
parent.validate_flow_definition(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("bedrock-agent").get_paginator
method with overloads.
client.get_paginator("list_agent_action_groups")
-> ListAgentActionGroupsPaginatorclient.get_paginator("list_agent_aliases")
-> ListAgentAliasesPaginatorclient.get_paginator("list_agent_collaborators")
-> ListAgentCollaboratorsPaginatorclient.get_paginator("list_agent_knowledge_bases")
-> ListAgentKnowledgeBasesPaginatorclient.get_paginator("list_agent_versions")
-> ListAgentVersionsPaginatorclient.get_paginator("list_agents")
-> ListAgentsPaginatorclient.get_paginator("list_data_sources")
-> ListDataSourcesPaginatorclient.get_paginator("list_flow_aliases")
-> ListFlowAliasesPaginatorclient.get_paginator("list_flow_versions")
-> ListFlowVersionsPaginatorclient.get_paginator("list_flows")
-> ListFlowsPaginatorclient.get_paginator("list_ingestion_jobs")
-> ListIngestionJobsPaginatorclient.get_paginator("list_knowledge_base_documents")
-> ListKnowledgeBaseDocumentsPaginatorclient.get_paginator("list_knowledge_bases")
-> ListKnowledgeBasesPaginatorclient.get_paginator("list_prompts")
-> ListPromptsPaginator