Class: Aws::BedrockAgent::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::BedrockAgent::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-bedrockagent/client.rb
Overview
An API client for BedrockAgent. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::BedrockAgent::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_agent_knowledge_base(params = {}) ⇒ Types::AssociateAgentKnowledgeBaseResponse
Associate a Knowledge Base to an existing Amazon Bedrock Agent.
-
#create_agent(params = {}) ⇒ Types::CreateAgentResponse
Creates an Amazon Bedrock Agent.
-
#create_agent_action_group(params = {}) ⇒ Types::CreateAgentActionGroupResponse
Creates an Action Group for existing Amazon Bedrock Agent.
-
#create_agent_alias(params = {}) ⇒ Types::CreateAgentAliasResponse
Creates an Alias for an existing Amazon Bedrock Agent.
-
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Create a new data source.
-
#create_knowledge_base(params = {}) ⇒ Types::CreateKnowledgeBaseResponse
Create a new knowledge base.
-
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an Agent for existing Amazon Bedrock Agent.
-
#delete_agent_action_group(params = {}) ⇒ Struct
Deletes an Action Group for existing Amazon Bedrock Agent.
-
#delete_agent_alias(params = {}) ⇒ Types::DeleteAgentAliasResponse
Deletes an Alias for a Amazon Bedrock Agent.
-
#delete_agent_version(params = {}) ⇒ Types::DeleteAgentVersionResponse
Deletes an Agent version for existing Amazon Bedrock Agent.
-
#delete_data_source(params = {}) ⇒ Types::DeleteDataSourceResponse
Delete an existing data source.
-
#delete_knowledge_base(params = {}) ⇒ Types::DeleteKnowledgeBaseResponse
Delete an existing knowledge base.
-
#disassociate_agent_knowledge_base(params = {}) ⇒ Struct
Disassociate an existing Knowledge Base from an Amazon Bedrock Agent.
-
#get_agent(params = {}) ⇒ Types::GetAgentResponse
Gets an Agent for existing Amazon Bedrock Agent.
-
#get_agent_action_group(params = {}) ⇒ Types::GetAgentActionGroupResponse
Gets an Action Group for existing Amazon Bedrock Agent Version.
-
#get_agent_alias(params = {}) ⇒ Types::GetAgentAliasResponse
Describes an Alias for a Amazon Bedrock Agent.
-
#get_agent_knowledge_base(params = {}) ⇒ Types::GetAgentKnowledgeBaseResponse
Gets a knowledge base associated to an existing Amazon Bedrock Agent Version.
-
#get_agent_version(params = {}) ⇒ Types::GetAgentVersionResponse
Gets an Agent version for existing Amazon Bedrock Agent.
-
#get_data_source(params = {}) ⇒ Types::GetDataSourceResponse
Get an existing data source.
-
#get_ingestion_job(params = {}) ⇒ Types::GetIngestionJobResponse
Get an ingestion job.
-
#get_knowledge_base(params = {}) ⇒ Types::GetKnowledgeBaseResponse
Get an existing knowledge base.
-
#list_agent_action_groups(params = {}) ⇒ Types::ListAgentActionGroupsResponse
Lists an Action Group for existing Amazon Bedrock Agent Version.
-
#list_agent_aliases(params = {}) ⇒ Types::ListAgentAliasesResponse
Lists all the Aliases for an Amazon Bedrock Agent.
-
#list_agent_knowledge_bases(params = {}) ⇒ Types::ListAgentKnowledgeBasesResponse
List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version.
-
#list_agent_versions(params = {}) ⇒ Types::ListAgentVersionsResponse
Lists Agent Versions.
-
#list_agents(params = {}) ⇒ Types::ListAgentsResponse
Lists Agents.
-
#list_data_sources(params = {}) ⇒ Types::ListDataSourcesResponse
List data sources.
-
#list_ingestion_jobs(params = {}) ⇒ Types::ListIngestionJobsResponse
List ingestion jobs.
-
#list_knowledge_bases(params = {}) ⇒ Types::ListKnowledgeBasesResponse
List Knowledge Bases.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List tags for a resource.
-
#prepare_agent(params = {}) ⇒ Types::PrepareAgentResponse
Prepares an existing Amazon Bedrock Agent to receive runtime requests.
-
#start_ingestion_job(params = {}) ⇒ Types::StartIngestionJobResponse
Start a new ingestion job.
-
#tag_resource(params = {}) ⇒ Struct
Tag a resource.
-
#untag_resource(params = {}) ⇒ Struct
Untag a resource.
-
#update_agent(params = {}) ⇒ Types::UpdateAgentResponse
Updates an existing Amazon Bedrock Agent.
-
#update_agent_action_group(params = {}) ⇒ Types::UpdateAgentActionGroupResponse
Updates an existing Action Group for Amazon Bedrock Agent.
-
#update_agent_alias(params = {}) ⇒ Types::UpdateAgentAliasResponse
Updates an existing Alias for an Amazon Bedrock Agent.
-
#update_agent_knowledge_base(params = {}) ⇒ Types::UpdateAgentKnowledgeBaseResponse
Updates an existing Knowledge Base associated to an Amazon Bedrock Agent.
-
#update_data_source(params = {}) ⇒ Types::UpdateDataSourceResponse
Update an existing data source.
-
#update_knowledge_base(params = {}) ⇒ Types::UpdateKnowledgeBaseResponse
Update an existing knowledge base.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
385 386 387 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 385 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2714 2715 2716 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2714 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2717 2718 2719 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2717 def errors_module Errors end |
Instance Method Details
#associate_agent_knowledge_base(params = {}) ⇒ Types::AssociateAgentKnowledgeBaseResponse
Associate a Knowledge Base to an existing Amazon Bedrock Agent
436 437 438 439 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 436 def associate_agent_knowledge_base(params = {}, = {}) req = build_request(:associate_agent_knowledge_base, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2692 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-bedrockagent' context[:gem_version] = '1.3.0' Seahorse::Client::Request.new(handlers, context) end |
#create_agent(params = {}) ⇒ Types::CreateAgentResponse
Creates an Amazon Bedrock Agent
554 555 556 557 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 554 def create_agent(params = {}, = {}) req = build_request(:create_agent, params) req.send_request() end |
#create_agent_action_group(params = {}) ⇒ Types::CreateAgentActionGroupResponse
Creates an Action Group for existing Amazon Bedrock Agent
638 639 640 641 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 638 def create_agent_action_group(params = {}, = {}) req = build_request(:create_agent_action_group, params) req.send_request() end |
#create_agent_alias(params = {}) ⇒ Types::CreateAgentAliasResponse
Creates an Alias for an existing Amazon Bedrock Agent
710 711 712 713 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 710 def create_agent_alias(params = {}, = {}) req = build_request(:create_agent_alias, params) req.send_request() end |
#create_data_source(params = {}) ⇒ Types::CreateDataSourceResponse
Create a new data source
795 796 797 798 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 795 def create_data_source(params = {}, = {}) req = build_request(:create_data_source, params) req.send_request() end |
#create_knowledge_base(params = {}) ⇒ Types::CreateKnowledgeBaseResponse
Create a new knowledge base
935 936 937 938 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 935 def create_knowledge_base(params = {}, = {}) req = build_request(:create_knowledge_base, params) req.send_request() end |
#delete_agent(params = {}) ⇒ Types::DeleteAgentResponse
Deletes an Agent for existing Amazon Bedrock Agent
970 971 972 973 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 970 def delete_agent(params = {}, = {}) req = build_request(:delete_agent, params) req.send_request() end |
#delete_agent_action_group(params = {}) ⇒ Struct
Deletes an Action Group for existing Amazon Bedrock Agent.
1005 1006 1007 1008 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1005 def delete_agent_action_group(params = {}, = {}) req = build_request(:delete_agent_action_group, params) req.send_request() end |
#delete_agent_alias(params = {}) ⇒ Types::DeleteAgentAliasResponse
Deletes an Alias for a Amazon Bedrock Agent
1041 1042 1043 1044 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1041 def delete_agent_alias(params = {}, = {}) req = build_request(:delete_agent_alias, params) req.send_request() end |
#delete_agent_version(params = {}) ⇒ Types::DeleteAgentVersionResponse
Deletes an Agent version for existing Amazon Bedrock Agent
1082 1083 1084 1085 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1082 def delete_agent_version(params = {}, = {}) req = build_request(:delete_agent_version, params) req.send_request() end |
#delete_data_source(params = {}) ⇒ Types::DeleteDataSourceResponse
Delete an existing data source
1118 1119 1120 1121 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1118 def delete_data_source(params = {}, = {}) req = build_request(:delete_data_source, params) req.send_request() end |
#delete_knowledge_base(params = {}) ⇒ Types::DeleteKnowledgeBaseResponse
Delete an existing knowledge base
1148 1149 1150 1151 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1148 def delete_knowledge_base(params = {}, = {}) req = build_request(:delete_knowledge_base, params) req.send_request() end |
#disassociate_agent_knowledge_base(params = {}) ⇒ Struct
Disassociate an existing Knowledge Base from an Amazon Bedrock Agent
1179 1180 1181 1182 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1179 def disassociate_agent_knowledge_base(params = {}, = {}) req = build_request(:disassociate_agent_knowledge_base, params) req.send_request() end |
#get_agent(params = {}) ⇒ Types::GetAgentResponse
Gets an Agent for existing Amazon Bedrock Agent
1238 1239 1240 1241 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1238 def get_agent(params = {}, = {}) req = build_request(:get_agent, params) req.send_request() end |
#get_agent_action_group(params = {}) ⇒ Types::GetAgentActionGroupResponse
Gets an Action Group for existing Amazon Bedrock Agent Version
1287 1288 1289 1290 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1287 def get_agent_action_group(params = {}, = {}) req = build_request(:get_agent_action_group, params) req.send_request() end |
#get_agent_alias(params = {}) ⇒ Types::GetAgentAliasResponse
Describes an Alias for a Amazon Bedrock Agent
1334 1335 1336 1337 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1334 def get_agent_alias(params = {}, = {}) req = build_request(:get_agent_alias, params) req.send_request() end |
#get_agent_knowledge_base(params = {}) ⇒ Types::GetAgentKnowledgeBaseResponse
Gets a knowledge base associated to an existing Amazon Bedrock Agent Version
1377 1378 1379 1380 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1377 def get_agent_knowledge_base(params = {}, = {}) req = build_request(:get_agent_knowledge_base, params) req.send_request() end |
#get_agent_version(params = {}) ⇒ Types::GetAgentVersionResponse
Gets an Agent version for existing Amazon Bedrock Agent
1438 1439 1440 1441 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1438 def get_agent_version(params = {}, = {}) req = build_request(:get_agent_version, params) req.send_request() end |
#get_data_source(params = {}) ⇒ Types::GetDataSourceResponse
Get an existing data source
1484 1485 1486 1487 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1484 def get_data_source(params = {}, = {}) req = build_request(:get_data_source, params) req.send_request() end |
#get_ingestion_job(params = {}) ⇒ Types::GetIngestionJobResponse
Get an ingestion job
1533 1534 1535 1536 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1533 def get_ingestion_job(params = {}, = {}) req = build_request(:get_ingestion_job, params) req.send_request() end |
#get_knowledge_base(params = {}) ⇒ Types::GetKnowledgeBaseResponse
Get an existing knowledge base
1597 1598 1599 1600 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1597 def get_knowledge_base(params = {}, = {}) req = build_request(:get_knowledge_base, params) req.send_request() end |
#list_agent_action_groups(params = {}) ⇒ Types::ListAgentActionGroupsResponse
Lists an Action Group for existing Amazon Bedrock Agent Version
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1646 1647 1648 1649 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1646 def list_agent_action_groups(params = {}, = {}) req = build_request(:list_agent_action_groups, params) req.send_request() end |
#list_agent_aliases(params = {}) ⇒ Types::ListAgentAliasesResponse
Lists all the Aliases for an Amazon Bedrock Agent
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1694 1695 1696 1697 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1694 def list_agent_aliases(params = {}, = {}) req = build_request(:list_agent_aliases, params) req.send_request() end |
#list_agent_knowledge_bases(params = {}) ⇒ Types::ListAgentKnowledgeBasesResponse
List of Knowledge Bases associated to an existing Amazon Bedrock Agent Version
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1743 1744 1745 1746 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1743 def list_agent_knowledge_bases(params = {}, = {}) req = build_request(:list_agent_knowledge_bases, params) req.send_request() end |
#list_agent_versions(params = {}) ⇒ Types::ListAgentVersionsResponse
Lists Agent Versions
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1789 1790 1791 1792 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1789 def list_agent_versions(params = {}, = {}) req = build_request(:list_agent_versions, params) req.send_request() end |
#list_agents(params = {}) ⇒ Types::ListAgentsResponse
Lists Agents
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1831 1832 1833 1834 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1831 def list_agents(params = {}, = {}) req = build_request(:list_agents, params) req.send_request() end |
#list_data_sources(params = {}) ⇒ Types::ListDataSourcesResponse
List data sources
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1877 1878 1879 1880 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1877 def list_data_sources(params = {}, = {}) req = build_request(:list_data_sources, params) req.send_request() end |
#list_ingestion_jobs(params = {}) ⇒ Types::ListIngestionJobsResponse
List ingestion jobs
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1950 1951 1952 1953 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1950 def list_ingestion_jobs(params = {}, = {}) req = build_request(:list_ingestion_jobs, params) req.send_request() end |
#list_knowledge_bases(params = {}) ⇒ Types::ListKnowledgeBasesResponse
List Knowledge Bases
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1991 1992 1993 1994 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 1991 def list_knowledge_bases(params = {}, = {}) req = build_request(:list_knowledge_bases, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
List tags for a resource
2020 2021 2022 2023 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2020 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#prepare_agent(params = {}) ⇒ Types::PrepareAgentResponse
Prepares an existing Amazon Bedrock Agent to receive runtime requests
2054 2055 2056 2057 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2054 def prepare_agent(params = {}, = {}) req = build_request(:prepare_agent, params) req.send_request() end |
#start_ingestion_job(params = {}) ⇒ Types::StartIngestionJobResponse
Start a new ingestion job
2110 2111 2112 2113 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2110 def start_ingestion_job(params = {}, = {}) req = build_request(:start_ingestion_job, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Tag a resource
2138 2139 2140 2141 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2138 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Untag a resource
2164 2165 2166 2167 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2164 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_agent(params = {}) ⇒ Types::UpdateAgentResponse
Updates an existing Amazon Bedrock Agent
2273 2274 2275 2276 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2273 def update_agent(params = {}, = {}) req = build_request(:update_agent, params) req.send_request() end |
#update_agent_action_group(params = {}) ⇒ Types::UpdateAgentActionGroupResponse
Updates an existing Action Group for Amazon Bedrock Agent
2355 2356 2357 2358 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2355 def update_agent_action_group(params = {}, = {}) req = build_request(:update_agent_action_group, params) req.send_request() end |
#update_agent_alias(params = {}) ⇒ Types::UpdateAgentAliasResponse
Updates an existing Alias for an Amazon Bedrock Agent
2418 2419 2420 2421 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2418 def update_agent_alias(params = {}, = {}) req = build_request(:update_agent_alias, params) req.send_request() end |
#update_agent_knowledge_base(params = {}) ⇒ Types::UpdateAgentKnowledgeBaseResponse
Updates an existing Knowledge Base associated to an Amazon Bedrock Agent
2470 2471 2472 2473 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2470 def update_agent_knowledge_base(params = {}, = {}) req = build_request(:update_agent_knowledge_base, params) req.send_request() end |
#update_data_source(params = {}) ⇒ Types::UpdateDataSourceResponse
Update an existing data source
2552 2553 2554 2555 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2552 def update_data_source(params = {}, = {}) req = build_request(:update_data_source, params) req.send_request() end |
#update_knowledge_base(params = {}) ⇒ Types::UpdateKnowledgeBaseResponse
Update an existing knowledge base
2683 2684 2685 2686 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2683 def update_knowledge_base(params = {}, = {}) req = build_request(:update_knowledge_base, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
2707 2708 2709 |
# File 'lib/aws-sdk-bedrockagent/client.rb', line 2707 def waiter_names [] end |