AmazonBedrockOptions
Namespace: Vercel.AI.AmazonBedrock
public sealed class AmazonBedrockOptionsAmazon Bedrock settings.
Inheritance: object
Properties
Section titled “Properties”AccessKeyId
Section titled “AccessKeyId”public string? AccessKeyId { get; set; }Access key. Falls back to AWS_ACCESS_KEY_ID.
Value: string
AgentRuntimeBaseUrl
Section titled “AgentRuntimeBaseUrl”public string? AgentRuntimeBaseUrl { get; set; }Agent Runtime origin for rerank. Falls back to AWS_ENDPOINT_URL_BEDROCK_AGENT_RUNTIME, then
AWS_ENDPOINT_URL. When none is set, the host is https://bedrock-agent-runtime.{region}.{suffix}.
Value: string
BaseUrl
Section titled “BaseUrl”public string? BaseUrl { get; set; }Bedrock Runtime origin. Falls back to AWS_ENDPOINT_URL_BEDROCK_RUNTIME, then AWS_ENDPOINT_URL.
When none is set, the host is https://bedrock-runtime.{region}.{suffix}.
Value: string
Headers
Section titled “Headers”public Dictionary<string, string?> Headers { get; set; }Headers sent with every request. Call headers override them.
Value: Dictionary<string, string>
HeadersProvider
Section titled “HeadersProvider”public Func<CancellationToken, Task<IReadOnlyDictionary<string, string?>>>? HeadersProvider { get; set; }Resolves extra headers on every call, like upstream’s resolvable headers. Its values win over
Headers, and a null value drops a header. Call headers still win over both.
Value: Func<CancellationToken, Task<IReadOnlyDictionary<string, string>>>
Region
Section titled “Region”public string Region { get; set; }AWS region. Falls back to AWS_REGION, then us-east-1.
Value: string
SecretAccessKey
Section titled “SecretAccessKey”public string? SecretAccessKey { get; set; }Secret key. Falls back to AWS_SECRET_ACCESS_KEY.
Value: string
SessionToken
Section titled “SessionToken”public string? SessionToken { get; set; }Session token. Falls back to AWS_SESSION_TOKEN.
Value: string
UtcNow
Section titled “UtcNow”public Func<DateTimeOffset>? UtcNow { get; set; }Clock used for signing. Tests can pin this.
Value: Func<DateTimeOffset>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product