Available on crate feature
bedrock only.Expand description
AWS Bedrock support: a RequestSigner that signs HTTP requests
with sigv4.
claude-api is the Anthropic API client; this module exposes the
signing primitive only. Users who want to talk to Bedrock Anthropic
models still need to:
- Set
Client::builder().base_url("https://bedrock-runtime.{region}.amazonaws.com"), - Use Bedrock’s URL shape (
/model/{model_id}/invoke), - Inject
anthropic_version: "bedrock-2023-05-31"and remove themodelfield from the body (Bedrock takes the model in the URL).
Mixing those concerns into the typed namespace handles is a v0.5+ design discussion; for now this module’s job is just to make the request signable.
Gated on the bedrock feature.
Structs§
- Bedrock
Credentials - AWS access credentials. Carries the same fields as
aws_credential_types::Credentialsbut is owned,Clone, and kept opaque – the underlying secret is moved into a freshCredentialsper call so this type is safe to share viaArc. - Bedrock
Signer - AWS sigv4 signer for the
bedrockservice.