Anthropic::Bedrock::SigV4
AWS Signature Version 4 signer for Bedrock Runtime.
Produces the headers needed for a signed request (Authorization,
x-amz-date, x-amz-content-sha256, and optional x-amz-security-token).
Constants
SERVICE = "bedrock"
Instance methods
sign(credentials : Credentials, method : String, url : String, headers : HTTP::Headers, body : String | Nil, now : Time = Time.utc, service : String = SERVICE) : Hash(String, String)
Sign an HTTP request and return headers to merge into the outbound request.
service defaults to "bedrock" (Bedrock Runtime). Mantle uses
"bedrock-mantle".