BedrockModelOptions
Namespace: E2E
public sealed class BedrockModelOptionsInheritance: object
Properties
Section titled “Properties”ApiKey
Section titled “ApiKey”public string? ApiKey { get; init; }A Bedrock API key, sent as a bearer token instead of signing.
Value: string
ApiKeyEnv
Section titled “ApiKeyEnv”public string ApiKeyEnv { get; init; }Environment variable read when ApiKey is empty. Defaults to AWS_BEARER_TOKEN_BEDROCK.
Value: string
BaseUrl
Section titled “BaseUrl”public string? BaseUrl { get; init; }The runtime endpoint. Unset, it is https://bedrock-runtime.{region}.amazonaws.com.
Value: string
Credentials
Section titled “Credentials”public AwsCredentials? Credentials { get; init; }Signing credentials. Unset, they come from AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN and, with those unset too, from the AWS credential chain (AWS_PROFILE or the default profile, SSO, container and instance roles).
Value: AwsCredentials
MaxTokens
Section titled “MaxTokens”public int MaxTokens { get; init; }Value: int
public required string Model { get; init; }A Bedrock model id or inference profile, such as us.anthropic.claude-sonnet-4-5-20250929-v1:0.
Value: string
Provider
Section titled “Provider”public string Provider { get; init; }The key this client reads in ProviderOptions. Its fields are added to the body as given.
Value: string
Region
Section titled “Region”public string? Region { get; init; }The AWS region. Unset, it is AWS_REGION, then AWS_DEFAULT_REGION, then us-east-1.
Value: string
Methods
Section titled “Methods”ResolveApiKey()
Section titled “ResolveApiKey()”public string? ResolveApiKey()Returns: string
ResolveCredentials()
Section titled “ResolveCredentials()”public AwsCredentials? ResolveCredentials()Returns: AwsCredentials
ResolveRegion()
Section titled “ResolveRegion()”public string ResolveRegion()Returns: string