Class: Aws::BedrockAgentCoreControl::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::BedrockAgentCoreControl::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb
Overview
An API client for BedrockAgentCoreControl. To construct a client, you need to configure a :region and :credentials.
client = Aws::BedrockAgentCoreControl::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#create_agent_runtime(params = {}) ⇒ Types::CreateAgentRuntimeResponse
Creates an Amazon Bedrock AgentCore Runtime.
-
#create_agent_runtime_endpoint(params = {}) ⇒ Types::CreateAgentRuntimeEndpointResponse
Creates an AgentCore Runtime endpoint.
-
#create_api_key_credential_provider(params = {}) ⇒ Types::CreateApiKeyCredentialProviderResponse
Creates a new API key credential provider.
-
#create_browser(params = {}) ⇒ Types::CreateBrowserResponse
Creates a custom browser.
-
#create_code_interpreter(params = {}) ⇒ Types::CreateCodeInterpreterResponse
Creates a custom code interpreter.
-
#create_evaluator(params = {}) ⇒ Types::CreateEvaluatorResponse
Creates a custom evaluator for agent quality assessment.
-
#create_gateway(params = {}) ⇒ Types::CreateGatewayResponse
Creates a gateway for Amazon Bedrock Agent.
-
#create_gateway_target(params = {}) ⇒ Types::CreateGatewayTargetResponse
Creates a target for a gateway.
-
#create_memory(params = {}) ⇒ Types::CreateMemoryOutput
Creates a new Amazon Bedrock AgentCore Memory resource.
-
#create_oauth_2_credential_provider(params = {}) ⇒ Types::CreateOauth2CredentialProviderResponse
Creates a new OAuth2 credential provider.
-
#create_online_evaluation_config(params = {}) ⇒ Types::CreateOnlineEvaluationConfigResponse
Creates an online evaluation configuration for continuous monitoring of agent performance.
-
#create_policy(params = {}) ⇒ Types::CreatePolicyResponse
Creates a policy within the AgentCore Policy system.
-
#create_policy_engine(params = {}) ⇒ Types::CreatePolicyEngineResponse
Creates a new policy engine within the AgentCore Policy system.
-
#create_workload_identity(params = {}) ⇒ Types::CreateWorkloadIdentityResponse
Creates a new workload identity.
-
#delete_agent_runtime(params = {}) ⇒ Types::DeleteAgentRuntimeResponse
Deletes an Amazon Bedrock AgentCore Runtime.
-
#delete_agent_runtime_endpoint(params = {}) ⇒ Types::DeleteAgentRuntimeEndpointResponse
Deletes an AAgentCore Runtime endpoint.
-
#delete_api_key_credential_provider(params = {}) ⇒ Struct
Deletes an API key credential provider.
-
#delete_browser(params = {}) ⇒ Types::DeleteBrowserResponse
Deletes a custom browser.
-
#delete_code_interpreter(params = {}) ⇒ Types::DeleteCodeInterpreterResponse
Deletes a custom code interpreter.
-
#delete_evaluator(params = {}) ⇒ Types::DeleteEvaluatorResponse
Deletes a custom evaluator.
-
#delete_gateway(params = {}) ⇒ Types::DeleteGatewayResponse
Deletes a gateway.
-
#delete_gateway_target(params = {}) ⇒ Types::DeleteGatewayTargetResponse
Deletes a gateway target.
-
#delete_memory(params = {}) ⇒ Types::DeleteMemoryOutput
Deletes an Amazon Bedrock AgentCore Memory resource.
-
#delete_oauth_2_credential_provider(params = {}) ⇒ Struct
Deletes an OAuth2 credential provider.
-
#delete_online_evaluation_config(params = {}) ⇒ Types::DeleteOnlineEvaluationConfigResponse
Deletes an online evaluation configuration and stops any ongoing evaluation processes associated with it.
-
#delete_policy(params = {}) ⇒ Types::DeletePolicyResponse
Deletes an existing policy from the AgentCore Policy system.
-
#delete_policy_engine(params = {}) ⇒ Types::DeletePolicyEngineResponse
Deletes an existing policy engine from the AgentCore Policy system.
-
#delete_resource_policy(params = {}) ⇒ Struct
Deletes the resource-based policy for a specified resource.
-
#delete_workload_identity(params = {}) ⇒ Struct
Deletes a workload identity.
-
#get_agent_runtime(params = {}) ⇒ Types::GetAgentRuntimeResponse
Gets an Amazon Bedrock AgentCore Runtime.
-
#get_agent_runtime_endpoint(params = {}) ⇒ Types::GetAgentRuntimeEndpointResponse
Gets information about an Amazon Secure AgentEndpoint.
-
#get_api_key_credential_provider(params = {}) ⇒ Types::GetApiKeyCredentialProviderResponse
Retrieves information about an API key credential provider.
-
#get_browser(params = {}) ⇒ Types::GetBrowserResponse
Gets information about a custom browser.
-
#get_code_interpreter(params = {}) ⇒ Types::GetCodeInterpreterResponse
Gets information about a custom code interpreter.
-
#get_evaluator(params = {}) ⇒ Types::GetEvaluatorResponse
Retrieves detailed information about an evaluator, including its configuration, status, and metadata.
-
#get_gateway(params = {}) ⇒ Types::GetGatewayResponse
Retrieves information about a specific Gateway.
-
#get_gateway_target(params = {}) ⇒ Types::GetGatewayTargetResponse
Retrieves information about a specific gateway target.
-
#get_memory(params = {}) ⇒ Types::GetMemoryOutput
Retrieve an existing Amazon Bedrock AgentCore Memory resource.
-
#get_oauth_2_credential_provider(params = {}) ⇒ Types::GetOauth2CredentialProviderResponse
Retrieves information about an OAuth2 credential provider.
-
#get_online_evaluation_config(params = {}) ⇒ Types::GetOnlineEvaluationConfigResponse
Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status.
-
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Retrieves detailed information about a specific policy within the AgentCore Policy system.
-
#get_policy_engine(params = {}) ⇒ Types::GetPolicyEngineResponse
Retrieves detailed information about a specific policy engine within the AgentCore Policy system.
-
#get_policy_generation(params = {}) ⇒ Types::GetPolicyGenerationResponse
Retrieves information about a policy generation request within the AgentCore Policy system.
-
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyResponse
Retrieves the resource-based policy for a specified resource.
-
#get_token_vault(params = {}) ⇒ Types::GetTokenVaultResponse
Retrieves information about a token vault.
-
#get_workload_identity(params = {}) ⇒ Types::GetWorkloadIdentityResponse
Retrieves information about a workload identity.
-
#list_agent_runtime_endpoints(params = {}) ⇒ Types::ListAgentRuntimeEndpointsResponse
Lists all endpoints for a specific Amazon Secure Agent.
-
#list_agent_runtime_versions(params = {}) ⇒ Types::ListAgentRuntimeVersionsResponse
Lists all versions of a specific Amazon Secure Agent.
-
#list_agent_runtimes(params = {}) ⇒ Types::ListAgentRuntimesResponse
Lists all Amazon Secure Agents in your account.
-
#list_api_key_credential_providers(params = {}) ⇒ Types::ListApiKeyCredentialProvidersResponse
Lists all API key credential providers in your account.
-
#list_browsers(params = {}) ⇒ Types::ListBrowsersResponse
Lists all custom browsers in your account.
-
#list_code_interpreters(params = {}) ⇒ Types::ListCodeInterpretersResponse
Lists all custom code interpreters in your account.
-
#list_evaluators(params = {}) ⇒ Types::ListEvaluatorsResponse
Lists all available evaluators, including both builtin evaluators provided by the service and custom evaluators created by the user.
-
#list_gateway_targets(params = {}) ⇒ Types::ListGatewayTargetsResponse
Lists all targets for a specific gateway.
-
#list_gateways(params = {}) ⇒ Types::ListGatewaysResponse
Lists all gateways in the account.
-
#list_memories(params = {}) ⇒ Types::ListMemoriesOutput
Lists the available Amazon Bedrock AgentCore Memory resources in the current Amazon Web Services Region.
-
#list_oauth_2_credential_providers(params = {}) ⇒ Types::ListOauth2CredentialProvidersResponse
Lists all OAuth2 credential providers in your account.
-
#list_online_evaluation_configs(params = {}) ⇒ Types::ListOnlineEvaluationConfigsResponse
Lists all online evaluation configurations in the account, providing summary information about each configuration's status and settings.
-
#list_policies(params = {}) ⇒ Types::ListPoliciesResponse
Retrieves a list of policies within the AgentCore Policy engine.
-
#list_policy_engines(params = {}) ⇒ Types::ListPolicyEnginesResponse
Retrieves a list of policy engines within the AgentCore Policy system.
-
#list_policy_generation_assets(params = {}) ⇒ Types::ListPolicyGenerationAssetsResponse
Retrieves a list of generated policy assets from a policy generation request within the AgentCore Policy system.
-
#list_policy_generations(params = {}) ⇒ Types::ListPolicyGenerationsResponse
Retrieves a list of policy generation requests within the AgentCore Policy system.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags associated with the specified resource.
-
#list_workload_identities(params = {}) ⇒ Types::ListWorkloadIdentitiesResponse
Lists all workload identities in your account.
-
#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyResponse
Creates or updates a resource-based policy for a resource with the specified resourceArn.
-
#set_token_vault_cmk(params = {}) ⇒ Types::SetTokenVaultCMKResponse
Sets the customer master key (CMK) for a token vault.
-
#start_policy_generation(params = {}) ⇒ Types::StartPolicyGenerationResponse
Initiates the AI-powered generation of Cedar policies from natural language descriptions within the AgentCore Policy system.
-
#synchronize_gateway_targets(params = {}) ⇒ Types::SynchronizeGatewayTargetsResponse
The gateway targets.
-
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified resourceArn.
-
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
-
#update_agent_runtime(params = {}) ⇒ Types::UpdateAgentRuntimeResponse
Updates an existing Amazon Secure Agent.
-
#update_agent_runtime_endpoint(params = {}) ⇒ Types::UpdateAgentRuntimeEndpointResponse
Updates an existing Amazon Bedrock AgentCore Runtime endpoint.
-
#update_api_key_credential_provider(params = {}) ⇒ Types::UpdateApiKeyCredentialProviderResponse
Updates an existing API key credential provider.
-
#update_evaluator(params = {}) ⇒ Types::UpdateEvaluatorResponse
Updates a custom evaluator's configuration, description, or evaluation level.
-
#update_gateway(params = {}) ⇒ Types::UpdateGatewayResponse
Updates an existing gateway.
-
#update_gateway_target(params = {}) ⇒ Types::UpdateGatewayTargetResponse
Updates an existing gateway target.
-
#update_memory(params = {}) ⇒ Types::UpdateMemoryOutput
Update an Amazon Bedrock AgentCore Memory resource memory.
-
#update_oauth_2_credential_provider(params = {}) ⇒ Types::UpdateOauth2CredentialProviderResponse
Updates an existing OAuth2 credential provider.
-
#update_online_evaluation_config(params = {}) ⇒ Types::UpdateOnlineEvaluationConfigResponse
Updates an online evaluation configuration's settings, including rules, data sources, evaluators, and execution status.
-
#update_policy(params = {}) ⇒ Types::UpdatePolicyResponse
Updates an existing policy within the AgentCore Policy system.
-
#update_policy_engine(params = {}) ⇒ Types::UpdatePolicyEngineResponse
Updates an existing policy engine within the AgentCore Policy system.
-
#update_workload_identity(params = {}) ⇒ Types::UpdateWorkloadIdentityResponse
Updates an existing workload identity.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
473 474 475 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 473 def initialize(*args) super end |
Instance Method Details
#create_agent_runtime(params = {}) ⇒ Types::CreateAgentRuntimeResponse
Creates an Amazon Bedrock AgentCore Runtime.
616 617 618 619 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 616 def create_agent_runtime(params = {}, = {}) req = build_request(:create_agent_runtime, params) req.send_request() end |
#create_agent_runtime_endpoint(params = {}) ⇒ Types::CreateAgentRuntimeEndpointResponse
Creates an AgentCore Runtime endpoint.
685 686 687 688 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 685 def create_agent_runtime_endpoint(params = {}, = {}) req = build_request(:create_agent_runtime_endpoint, params) req.send_request() end |
#create_api_key_credential_provider(params = {}) ⇒ Types::CreateApiKeyCredentialProviderResponse
Creates a new API key credential provider.
731 732 733 734 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 731 def create_api_key_credential_provider(params = {}, = {}) req = build_request(:create_api_key_credential_provider, params) req.send_request() end |
#create_browser(params = {}) ⇒ Types::CreateBrowserResponse
Creates a custom browser.
823 824 825 826 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 823 def create_browser(params = {}, = {}) req = build_request(:create_browser, params) req.send_request() end |
#create_code_interpreter(params = {}) ⇒ Types::CreateCodeInterpreterResponse
Creates a custom code interpreter.
897 898 899 900 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 897 def create_code_interpreter(params = {}, = {}) req = build_request(:create_code_interpreter, params) req.send_request() end |
#create_evaluator(params = {}) ⇒ Types::CreateEvaluatorResponse
Creates a custom evaluator for agent quality assessment. Custom evaluators use LLM-as-a-Judge configurations with user-defined prompts, rating scales, and model settings to evaluate agent performance at tool call, trace, or session levels.
998 999 1000 1001 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 998 def create_evaluator(params = {}, = {}) req = build_request(:create_evaluator, params) req.send_request() end |
#create_gateway(params = {}) ⇒ Types::CreateGatewayResponse
Creates a gateway for Amazon Bedrock Agent. A gateway serves as an integration point between your agent and external services.
If you specify CUSTOM_JWT as the authorizerType, you must provide
an authorizerConfiguration.
1214 1215 1216 1217 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 1214 def create_gateway(params = {}, = {}) req = build_request(:create_gateway, params) req.send_request() end |
#create_gateway_target(params = {}) ⇒ Types::CreateGatewayTargetResponse
Creates a target for a gateway. A target defines an endpoint that the gateway can connect to.
1466 1467 1468 1469 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 1466 def create_gateway_target(params = {}, = {}) req = build_request(:create_gateway_target, params) req.send_request() end |
#create_memory(params = {}) ⇒ Types::CreateMemoryOutput
Creates a new Amazon Bedrock AgentCore Memory resource.
1678 1679 1680 1681 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 1678 def create_memory(params = {}, = {}) req = build_request(:create_memory, params) req.send_request() end |
#create_oauth_2_credential_provider(params = {}) ⇒ Types::CreateOauth2CredentialProviderResponse
Creates a new OAuth2 credential provider.
1864 1865 1866 1867 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 1864 def create_oauth_2_credential_provider(params = {}, = {}) req = build_request(:create_oauth_2_credential_provider, params) req.send_request() end |
#create_online_evaluation_config(params = {}) ⇒ Types::CreateOnlineEvaluationConfigResponse
Creates an online evaluation configuration for continuous monitoring of agent performance. Online evaluation automatically samples live traffic from CloudWatch logs at specified rates and applies evaluators to assess agent quality in production.
1982 1983 1984 1985 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 1982 def create_online_evaluation_config(params = {}, = {}) req = build_request(:create_online_evaluation_config, params) req.send_request() end |
#create_policy(params = {}) ⇒ Types::CreatePolicyResponse
Creates a policy within the AgentCore Policy system. Policies provide
real-time, deterministic control over agentic interactions with
AgentCore Gateway. Using the Cedar policy language, you can define
fine-grained policies that specify which interactions with Gateway
tools are permitted based on input parameters and OAuth claims,
ensuring agents operate within defined boundaries and business rules.
The policy is validated during creation against the Cedar schema
generated from the Gateway's tools' input schemas, which defines the
available tools, their parameters, and expected data types. This is an
asynchronous operation. Use the GetPolicy operation to poll the
status field to track completion.
2097 2098 2099 2100 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2097 def create_policy(params = {}, = {}) req = build_request(:create_policy, params) req.send_request() end |
#create_policy_engine(params = {}) ⇒ Types::CreatePolicyEngineResponse
Creates a new policy engine within the AgentCore Policy system. A
policy engine is a collection of policies that evaluates and
authorizes agent tool calls. When associated with Gateways (each
Gateway can be associated with at most one policy engine, but multiple
Gateways can be associated with the same engine), the policy engine
intercepts all agent requests and determines whether to allow or deny
each action based on the defined policies. This is an asynchronous
operation. Use the GetPolicyEngine operation to poll the status
field to track completion.
2173 2174 2175 2176 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2173 def create_policy_engine(params = {}, = {}) req = build_request(:create_policy_engine, params) req.send_request() end |
#create_workload_identity(params = {}) ⇒ Types::CreateWorkloadIdentityResponse
Creates a new workload identity.
2220 2221 2222 2223 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2220 def create_workload_identity(params = {}, = {}) req = build_request(:create_workload_identity, params) req.send_request() end |
#delete_agent_runtime(params = {}) ⇒ Types::DeleteAgentRuntimeResponse
Deletes an Amazon Bedrock AgentCore Runtime.
2259 2260 2261 2262 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2259 def delete_agent_runtime(params = {}, = {}) req = build_request(:delete_agent_runtime, params) req.send_request() end |
#delete_agent_runtime_endpoint(params = {}) ⇒ Types::DeleteAgentRuntimeEndpointResponse
Deletes an AAgentCore Runtime endpoint.
2304 2305 2306 2307 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2304 def delete_agent_runtime_endpoint(params = {}, = {}) req = build_request(:delete_agent_runtime_endpoint, params) req.send_request() end |
#delete_api_key_credential_provider(params = {}) ⇒ Struct
Deletes an API key credential provider.
2326 2327 2328 2329 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2326 def delete_api_key_credential_provider(params = {}, = {}) req = build_request(:delete_api_key_credential_provider, params) req.send_request() end |
#delete_browser(params = {}) ⇒ Types::DeleteBrowserResponse
Deletes a custom browser.
2366 2367 2368 2369 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2366 def delete_browser(params = {}, = {}) req = build_request(:delete_browser, params) req.send_request() end |
#delete_code_interpreter(params = {}) ⇒ Types::DeleteCodeInterpreterResponse
Deletes a custom code interpreter.
2406 2407 2408 2409 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2406 def delete_code_interpreter(params = {}, = {}) req = build_request(:delete_code_interpreter, params) req.send_request() end |
#delete_evaluator(params = {}) ⇒ Types::DeleteEvaluatorResponse
Deletes a custom evaluator. Builtin evaluators cannot be deleted. The evaluator must not be referenced by any active online evaluation configurations.
2440 2441 2442 2443 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2440 def delete_evaluator(params = {}, = {}) req = build_request(:delete_evaluator, params) req.send_request() end |
#delete_gateway(params = {}) ⇒ Types::DeleteGatewayResponse
Deletes a gateway.
2473 2474 2475 2476 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2473 def delete_gateway(params = {}, = {}) req = build_request(:delete_gateway, params) req.send_request() end |
#delete_gateway_target(params = {}) ⇒ Types::DeleteGatewayTargetResponse
Deletes a gateway target.
2512 2513 2514 2515 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2512 def delete_gateway_target(params = {}, = {}) req = build_request(:delete_gateway_target, params) req.send_request() end |
#delete_memory(params = {}) ⇒ Types::DeleteMemoryOutput
Deletes an Amazon Bedrock AgentCore Memory resource.
2551 2552 2553 2554 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2551 def delete_memory(params = {}, = {}) req = build_request(:delete_memory, params) req.send_request() end |
#delete_oauth_2_credential_provider(params = {}) ⇒ Struct
Deletes an OAuth2 credential provider.
2573 2574 2575 2576 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2573 def delete_oauth_2_credential_provider(params = {}, = {}) req = build_request(:delete_oauth_2_credential_provider, params) req.send_request() end |
#delete_online_evaluation_config(params = {}) ⇒ Types::DeleteOnlineEvaluationConfigResponse
Deletes an online evaluation configuration and stops any ongoing evaluation processes associated with it.
2607 2608 2609 2610 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2607 def delete_online_evaluation_config(params = {}, = {}) req = build_request(:delete_online_evaluation_config, params) req.send_request() end |
#delete_policy(params = {}) ⇒ Types::DeletePolicyResponse
Deletes an existing policy from the AgentCore Policy system. Once
deleted, the policy can no longer be used for agent behavior control
and all references to it become invalid. This is an asynchronous
operation. Use the GetPolicy operation to poll the status field to
track completion.
2665 2666 2667 2668 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2665 def delete_policy(params = {}, = {}) req = build_request(:delete_policy, params) req.send_request() end |
#delete_policy_engine(params = {}) ⇒ Types::DeletePolicyEngineResponse
Deletes an existing policy engine from the AgentCore Policy system.
The policy engine must not have any associated policies before
deletion. Once deleted, the policy engine and all its configurations
become unavailable for policy management and evaluation. This is an
asynchronous operation. Use the GetPolicyEngine operation to poll
the status field to track completion.
2714 2715 2716 2717 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2714 def delete_policy_engine(params = {}, = {}) req = build_request(:delete_policy_engine, params) req.send_request() end |
#delete_resource_policy(params = {}) ⇒ Struct
Deletes the resource-based policy for a specified resource.
2742 2743 2744 2745 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2742 def delete_resource_policy(params = {}, = {}) req = build_request(:delete_resource_policy, params) req.send_request() end |
#delete_workload_identity(params = {}) ⇒ Struct
Deletes a workload identity.
2764 2765 2766 2767 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2764 def delete_workload_identity(params = {}, = {}) req = build_request(:delete_workload_identity, params) req.send_request() end |
#get_agent_runtime(params = {}) ⇒ Types::GetAgentRuntimeResponse
Gets an Amazon Bedrock AgentCore Runtime.
2856 2857 2858 2859 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2856 def get_agent_runtime(params = {}, = {}) req = build_request(:get_agent_runtime, params) req.send_request() end |
#get_agent_runtime_endpoint(params = {}) ⇒ Types::GetAgentRuntimeEndpointResponse
Gets information about an Amazon Secure AgentEndpoint.
2909 2910 2911 2912 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2909 def get_agent_runtime_endpoint(params = {}, = {}) req = build_request(:get_agent_runtime_endpoint, params) req.send_request() end |
#get_api_key_credential_provider(params = {}) ⇒ Types::GetApiKeyCredentialProviderResponse
Retrieves information about an API key credential provider.
2945 2946 2947 2948 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 2945 def get_api_key_credential_provider(params = {}, = {}) req = build_request(:get_api_key_credential_provider, params) req.send_request() end |
#get_browser(params = {}) ⇒ Types::GetBrowserResponse
Gets information about a custom browser.
3002 3003 3004 3005 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3002 def get_browser(params = {}, = {}) req = build_request(:get_browser, params) req.send_request() end |
#get_code_interpreter(params = {}) ⇒ Types::GetCodeInterpreterResponse
Gets information about a custom code interpreter.
3052 3053 3054 3055 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3052 def get_code_interpreter(params = {}, = {}) req = build_request(:get_code_interpreter, params) req.send_request() end |
#get_evaluator(params = {}) ⇒ Types::GetEvaluatorResponse
Retrieves detailed information about an evaluator, including its configuration, status, and metadata. Works with both built-in and custom evaluators.
3114 3115 3116 3117 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3114 def get_evaluator(params = {}, = {}) req = build_request(:get_evaluator, params) req.send_request() end |
#get_gateway(params = {}) ⇒ Types::GetGatewayResponse
Retrieves information about a specific Gateway.
3200 3201 3202 3203 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3200 def get_gateway(params = {}, = {}) req = build_request(:get_gateway, params) req.send_request() end |
#get_gateway_target(params = {}) ⇒ Types::GetGatewayTargetResponse
Retrieves information about a specific gateway target.
3309 3310 3311 3312 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3309 def get_gateway_target(params = {}, = {}) req = build_request(:get_gateway_target, params) req.send_request() end |
#get_memory(params = {}) ⇒ Types::GetMemoryOutput
Retrieve an existing Amazon Bedrock AgentCore Memory resource.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- memory_created
3394 3395 3396 3397 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3394 def get_memory(params = {}, = {}) req = build_request(:get_memory, params) req.send_request() end |
#get_oauth_2_credential_provider(params = {}) ⇒ Types::GetOauth2CredentialProviderResponse
Retrieves information about an OAuth2 credential provider.
3516 3517 3518 3519 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3516 def get_oauth_2_credential_provider(params = {}, = {}) req = build_request(:get_oauth_2_credential_provider, params) req.send_request() end |
#get_online_evaluation_config(params = {}) ⇒ Types::GetOnlineEvaluationConfigResponse
Retrieves detailed information about an online evaluation configuration, including its rules, data sources, evaluators, and execution status.
3584 3585 3586 3587 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3584 def get_online_evaluation_config(params = {}, = {}) req = build_request(:get_online_evaluation_config, params) req.send_request() end |
#get_policy(params = {}) ⇒ Types::GetPolicyResponse
Retrieves detailed information about a specific policy within the AgentCore Policy system. This operation returns the complete policy definition, metadata, and current status, allowing administrators to review and manage policy configurations.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- policy_active
- policy_deleted
3646 3647 3648 3649 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3646 def get_policy(params = {}, = {}) req = build_request(:get_policy, params) req.send_request() end |
#get_policy_engine(params = {}) ⇒ Types::GetPolicyEngineResponse
Retrieves detailed information about a specific policy engine within the AgentCore Policy system. This operation returns the complete policy engine configuration, metadata, and current status, allowing administrators to review and manage policy engine settings.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- policy_engine_active
- policy_engine_deleted
3699 3700 3701 3702 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3699 def get_policy_engine(params = {}, = {}) req = build_request(:get_policy_engine, params) req.send_request() end |
#get_policy_generation(params = {}) ⇒ Types::GetPolicyGenerationResponse
Retrieves information about a policy generation request within the AgentCore Policy system. Policy generation converts natural language descriptions into Cedar policy statements using AI-powered translation, enabling non-technical users to create policies.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- policy_generation_completed
3766 3767 3768 3769 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3766 def get_policy_generation(params = {}, = {}) req = build_request(:get_policy_generation, params) req.send_request() end |
#get_resource_policy(params = {}) ⇒ Types::GetResourcePolicyResponse
Retrieves the resource-based policy for a specified resource.
3800 3801 3802 3803 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3800 def get_resource_policy(params = {}, = {}) req = build_request(:get_resource_policy, params) req.send_request() end |
#get_token_vault(params = {}) ⇒ Types::GetTokenVaultResponse
Retrieves information about a token vault.
3833 3834 3835 3836 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3833 def get_token_vault(params = {}, = {}) req = build_request(:get_token_vault, params) req.send_request() end |
#get_workload_identity(params = {}) ⇒ Types::GetWorkloadIdentityResponse
Retrieves information about a workload identity.
3870 3871 3872 3873 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3870 def get_workload_identity(params = {}, = {}) req = build_request(:get_workload_identity, params) req.send_request() end |
#list_agent_runtime_endpoints(params = {}) ⇒ Types::ListAgentRuntimeEndpointsResponse
Lists all endpoints for a specific Amazon Secure Agent.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3920 3921 3922 3923 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3920 def list_agent_runtime_endpoints(params = {}, = {}) req = build_request(:list_agent_runtime_endpoints, params) req.send_request() end |
#list_agent_runtime_versions(params = {}) ⇒ Types::ListAgentRuntimeVersionsResponse
Lists all versions of a specific Amazon Secure Agent.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3967 3968 3969 3970 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 3967 def list_agent_runtime_versions(params = {}, = {}) req = build_request(:list_agent_runtime_versions, params) req.send_request() end |
#list_agent_runtimes(params = {}) ⇒ Types::ListAgentRuntimesResponse
Lists all Amazon Secure Agents in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4010 4011 4012 4013 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4010 def list_agent_runtimes(params = {}, = {}) req = build_request(:list_agent_runtimes, params) req.send_request() end |
#list_api_key_credential_providers(params = {}) ⇒ Types::ListApiKeyCredentialProvidersResponse
Lists all API key credential providers in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4050 4051 4052 4053 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4050 def list_api_key_credential_providers(params = {}, = {}) req = build_request(:list_api_key_credential_providers, params) req.send_request() end |
#list_browsers(params = {}) ⇒ Types::ListBrowsersResponse
Lists all custom browsers in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4101 4102 4103 4104 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4101 def list_browsers(params = {}, = {}) req = build_request(:list_browsers, params) req.send_request() end |
#list_code_interpreters(params = {}) ⇒ Types::ListCodeInterpretersResponse
Lists all custom code interpreters in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4148 4149 4150 4151 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4148 def list_code_interpreters(params = {}, = {}) req = build_request(:list_code_interpreters, params) req.send_request() end |
#list_evaluators(params = {}) ⇒ Types::ListEvaluatorsResponse
Lists all available evaluators, including both builtin evaluators provided by the service and custom evaluators created by the user.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4196 4197 4198 4199 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4196 def list_evaluators(params = {}, = {}) req = build_request(:list_evaluators, params) req.send_request() end |
#list_gateway_targets(params = {}) ⇒ Types::ListGatewayTargetsResponse
Lists all targets for a specific gateway.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4248 4249 4250 4251 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4248 def list_gateway_targets(params = {}, = {}) req = build_request(:list_gateway_targets, params) req.send_request() end |
#list_gateways(params = {}) ⇒ Types::ListGatewaysResponse
Lists all gateways in the account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4298 4299 4300 4301 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4298 def list_gateways(params = {}, = {}) req = build_request(:list_gateways, params) req.send_request() end |
#list_memories(params = {}) ⇒ Types::ListMemoriesOutput
Lists the available Amazon Bedrock AgentCore Memory resources in the current Amazon Web Services Region.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4343 4344 4345 4346 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4343 def list_memories(params = {}, = {}) req = build_request(:list_memories, params) req.send_request() end |
#list_oauth_2_credential_providers(params = {}) ⇒ Types::ListOauth2CredentialProvidersResponse
Lists all OAuth2 credential providers in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4384 4385 4386 4387 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4384 def list_oauth_2_credential_providers(params = {}, = {}) req = build_request(:list_oauth_2_credential_providers, params) req.send_request() end |
#list_online_evaluation_configs(params = {}) ⇒ Types::ListOnlineEvaluationConfigsResponse
Lists all online evaluation configurations in the account, providing summary information about each configuration's status and settings.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4432 4433 4434 4435 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4432 def list_online_evaluation_configs(params = {}, = {}) req = build_request(:list_online_evaluation_configs, params) req.send_request() end |
#list_policies(params = {}) ⇒ Types::ListPoliciesResponse
Retrieves a list of policies within the AgentCore Policy engine. This operation supports pagination and filtering to help administrators manage and discover policies across policy engines. Results can be filtered by policy engine or resource associations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4501 4502 4503 4504 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4501 def list_policies(params = {}, = {}) req = build_request(:list_policies, params) req.send_request() end |
#list_policy_engines(params = {}) ⇒ Types::ListPolicyEnginesResponse
Retrieves a list of policy engines within the AgentCore Policy system. This operation supports pagination to help administrators discover and manage policy engines across their account. Each policy engine serves as a container for related policies.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4557 4558 4559 4560 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4557 def list_policy_engines(params = {}, = {}) req = build_request(:list_policy_engines, params) req.send_request() end |
#list_policy_generation_assets(params = {}) ⇒ Types::ListPolicyGenerationAssetsResponse
Retrieves a list of generated policy assets from a policy generation request within the AgentCore Policy system. This operation returns the actual Cedar policies and related artifacts produced by the AI-powered policy generation process, allowing users to review and select from multiple generated policy options.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4631 4632 4633 4634 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4631 def list_policy_generation_assets(params = {}, = {}) req = build_request(:list_policy_generation_assets, params) req.send_request() end |
#list_policy_generations(params = {}) ⇒ Types::ListPolicyGenerationsResponse
Retrieves a list of policy generation requests within the AgentCore Policy system. This operation supports pagination and filtering to help track and manage AI-powered policy generation operations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4687 4688 4689 4690 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4687 def list_policy_generations(params = {}, = {}) req = build_request(:list_policy_generations, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Lists the tags associated with the specified resource.
4722 4723 4724 4725 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4722 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_workload_identities(params = {}) ⇒ Types::ListWorkloadIdentitiesResponse
Lists all workload identities in your account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4760 4761 4762 4763 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4760 def list_workload_identities(params = {}, = {}) req = build_request(:list_workload_identities, params) req.send_request() end |
#put_resource_policy(params = {}) ⇒ Types::PutResourcePolicyResponse
Creates or updates a resource-based policy for a resource with the specified resourceArn.
4799 4800 4801 4802 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4799 def put_resource_policy(params = {}, = {}) req = build_request(:put_resource_policy, params) req.send_request() end |
#set_token_vault_cmk(params = {}) ⇒ Types::SetTokenVaultCMKResponse
Sets the customer master key (CMK) for a token vault.
4840 4841 4842 4843 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4840 def set_token_vault_cmk(params = {}, = {}) req = build_request(:set_token_vault_cmk, params) req.send_request() end |
#start_policy_generation(params = {}) ⇒ Types::StartPolicyGenerationResponse
Initiates the AI-powered generation of Cedar policies from natural language descriptions within the AgentCore Policy system. This feature enables both technical and non-technical users to create policies by describing their authorization requirements in plain English, which is then automatically translated into formal Cedar policy statements. The generation process analyzes the natural language input along with the Gateway's tool context to produce validated policy options. Generated policy assets are automatically deleted after 7 days, so you should review and create policies from the generated assets within this timeframe. Once created, policies are permanent and not subject to this expiration. Generated policies should be reviewed and tested in log-only mode before deploying to production. Use this when you want to describe policy intent naturally rather than learning Cedar syntax, though generated policies may require refinement for complex scenarios.
4936 4937 4938 4939 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 4936 def start_policy_generation(params = {}, = {}) req = build_request(:start_policy_generation, params) req.send_request() end |
#synchronize_gateway_targets(params = {}) ⇒ Types::SynchronizeGatewayTargetsResponse
The gateway targets.
5035 5036 5037 5038 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5035 def synchronize_gateway_targets(params = {}, = {}) req = build_request(:synchronize_gateway_targets, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.
5071 5072 5073 5074 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5071 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes the specified tags from the specified resource.
5102 5103 5104 5105 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5102 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_agent_runtime(params = {}) ⇒ Types::UpdateAgentRuntimeResponse
Updates an existing Amazon Secure Agent.
5240 5241 5242 5243 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5240 def update_agent_runtime(params = {}, = {}) req = build_request(:update_agent_runtime, params) req.send_request() end |
#update_agent_runtime_endpoint(params = {}) ⇒ Types::UpdateAgentRuntimeEndpointResponse
Updates an existing Amazon Bedrock AgentCore Runtime endpoint.
5301 5302 5303 5304 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5301 def update_agent_runtime_endpoint(params = {}, = {}) req = build_request(:update_agent_runtime_endpoint, params) req.send_request() end |
#update_api_key_credential_provider(params = {}) ⇒ Types::UpdateApiKeyCredentialProviderResponse
Updates an existing API key credential provider.
5342 5343 5344 5345 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5342 def update_api_key_credential_provider(params = {}, = {}) req = build_request(:update_api_key_credential_provider, params) req.send_request() end |
#update_evaluator(params = {}) ⇒ Types::UpdateEvaluatorResponse
Updates a custom evaluator's configuration, description, or evaluation level. Built-in evaluators cannot be updated. The evaluator must not be locked for modification.
5439 5440 5441 5442 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5439 def update_evaluator(params = {}, = {}) req = build_request(:update_evaluator, params) req.send_request() end |
#update_gateway(params = {}) ⇒ Types::UpdateGatewayResponse
Updates an existing gateway.
5623 5624 5625 5626 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5623 def update_gateway(params = {}, = {}) req = build_request(:update_gateway, params) req.send_request() end |
#update_gateway_target(params = {}) ⇒ Types::UpdateGatewayTargetResponse
Updates an existing gateway target.
5860 5861 5862 5863 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 5860 def update_gateway_target(params = {}, = {}) req = build_request(:update_gateway_target, params) req.send_request() end |
#update_memory(params = {}) ⇒ Types::UpdateMemoryOutput
Update an Amazon Bedrock AgentCore Memory resource memory.
6141 6142 6143 6144 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6141 def update_memory(params = {}, = {}) req = build_request(:update_memory, params) req.send_request() end |
#update_oauth_2_credential_provider(params = {}) ⇒ Types::UpdateOauth2CredentialProviderResponse
Updates an existing OAuth2 credential provider.
6322 6323 6324 6325 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6322 def update_oauth_2_credential_provider(params = {}, = {}) req = build_request(:update_oauth_2_credential_provider, params) req.send_request() end |
#update_online_evaluation_config(params = {}) ⇒ Types::UpdateOnlineEvaluationConfigResponse
Updates an online evaluation configuration's settings, including rules, data sources, evaluators, and execution status. Changes take effect immediately for ongoing evaluations.
6433 6434 6435 6436 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6433 def update_online_evaluation_config(params = {}, = {}) req = build_request(:update_online_evaluation_config, params) req.send_request() end |
#update_policy(params = {}) ⇒ Types::UpdatePolicyResponse
Updates an existing policy within the AgentCore Policy system. This
operation allows modification of the policy description and definition
while maintaining the policy's identity. The updated policy is
validated against the Cedar schema before being applied. This is an
asynchronous operation. Use the GetPolicy operation to poll the
status field to track completion.
6519 6520 6521 6522 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6519 def update_policy(params = {}, = {}) req = build_request(:update_policy, params) req.send_request() end |
#update_policy_engine(params = {}) ⇒ Types::UpdatePolicyEngineResponse
Updates an existing policy engine within the AgentCore Policy system.
This operation allows modification of the policy engine description
while maintaining its identity. This is an asynchronous operation. Use
the GetPolicyEngine operation to poll the status field to track
completion.
6570 6571 6572 6573 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6570 def update_policy_engine(params = {}, = {}) req = build_request(:update_policy_engine, params) req.send_request() end |
#update_workload_identity(params = {}) ⇒ Types::UpdateWorkloadIdentityResponse
Updates an existing workload identity.
6612 6613 6614 6615 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6612 def update_workload_identity(params = {}, = {}) req = build_request(:update_workload_identity, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| memory_created | #get_memory | 2 | 60 |
| policy_active | #get_policy | 2 | 60 |
| policy_deleted | #get_policy | 2 | 60 |
| policy_engine_active | #get_policy_engine | 2 | 60 |
| policy_engine_deleted | #get_policy_engine | 2 | 60 |
| policy_generation_completed | #get_policy_generation | 2 | 60 |
6732 6733 6734 6735 6736 |
# File 'gems/aws-sdk-bedrockagentcorecontrol/lib/aws-sdk-bedrockagentcorecontrol/client.rb', line 6732 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |