AmazonBedrockApiKeyFetch
Namespace: Vercel.AI.AmazonBedrock
public sealed class AmazonBedrockApiKeyFetchAPI-key fetch wrapper. The transport is read when the call is sent, not when the wrapper is created.
Inheritance: object
Constructors
Section titled “Constructors”AmazonBedrockApiKeyFetch(string)
Section titled “AmazonBedrockApiKeyFetch(string)”public AmazonBedrockApiKeyFetch(string apiKey)Creates a wrapper for <code class=“paramref”>apiKey</code>.
Parameters
| Name | Type | Description |
|---|---|---|
apiKey |
string |
Properties
Section titled “Properties”Transport
Section titled “Transport”public Func<AmazonBedrockPreparedCall, AmazonBedrockPreparedCall>? Transport { get; set; }Optional transport. When unset, the prepared call is returned directly.
Value: Func<AmazonBedrockPreparedCall, AmazonBedrockPreparedCall>
Methods
Section titled “Methods”Send(string, string?, string?, IReadOnlyDictionary<string, string?>?)
Section titled “Send(string, string?, string?, IReadOnlyDictionary<string, string?>?)”public AmazonBedrockPreparedCall Send(string url, string? method, string? body, IReadOnlyDictionary<string, string?>? headers)Applies the API key and user-agent, then invokes Transport if one is set.
Parameters
| Name | Type | Description |
|---|---|---|
url |
string | |
method |
string | |
body |
string | |
headers |
IReadOnlyDictionary<string, string> |
Returns: AmazonBedrockPreparedCall
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product