Module: Aws::BedrockRuntime

Defined in:
lib/aws-sdk-bedrockruntime/endpoint_parameters.rb,
lib/aws-sdk-bedrockruntime/plugins/bearer_authorization.rb,
lib/aws-sdk-bedrockruntime/plugins/endpoints.rb,
lib/aws-sdk-bedrockruntime/endpoint_provider.rb,
lib/aws-sdk-bedrockruntime/event_streams.rb,
lib/aws-sdk-bedrockruntime/async_client.rb,
lib/aws-sdk-bedrockruntime/client_api.rb,
lib/aws-sdk-bedrockruntime/endpoints.rb,
lib/aws-sdk-bedrockruntime/resource.rb,
lib/aws-sdk-bedrockruntime/waiters.rb,
lib/aws-sdk-bedrockruntime/errors.rb,
lib/aws-sdk-bedrockruntime/client.rb,
lib/aws-sdk-bedrockruntime/types.rb,
lib/aws-sdk-bedrockruntime.rb

Overview

This module provides support for Amazon Bedrock Runtime. This module is available in the ‘aws-sdk-bedrockruntime` gem.

# Client

The Client class provides one method for each API operation. Operation methods each accept a hash of request parameters and return a response structure.

bedrock_runtime = Aws::BedrockRuntime::Client.new
resp = bedrock_runtime.apply_guardrail(params)

See Client for more information.

# Async Client

The AsyncClient class provides one asynchronous method for each API operation. Operation methods each accept a hash of request parameters and return an async response. For streaming operations, you can signal input events and register output event callbacks before waiting on the response.

bedrock_runtime = Aws::BedrockRuntime::AsyncClient.new
resp = bedrock_runtime.apply_guardrail(
  # params and input stream
 ) do |output_stream|
  # register callbacks for events
end

See AsyncClient for more information.

# Errors

Errors returned from Amazon Bedrock Runtime are defined in the Errors module and all extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::BedrockRuntime::Errors::ServiceError
  # rescues all Amazon Bedrock Runtime API errors
end

See Errors for more information.

Defined Under Namespace

Modules: ClientApi, Endpoints, Errors, EventStreams, Plugins, Types, Waiters Classes: AsyncClient, Client, EndpointParameters, EndpointProvider, Resource

service collapse

GEM_VERSION =
'1.66.0'