Optional
cacheOptional
callbackOptional
callbacksOptional
configThe path at which to locate the ini config file. Defaults to the value of
the AWS_CONFIG_FILE
environment variable (if defined) or
~/.aws/config
otherwise.
Optional
credentialsAWS Credentials.
If no credentials are provided, the default credentials from @aws-sdk/credential-provider-node
will be used.
Optional
endpointOverride the default endpoint hostname.
Optional
endpointOptional
fetchA custom fetch function for low-level access to AWS API. Defaults to fetch().
Optional
init: RequestInitOptional
filepathThe path at which to locate the ini credentials file. Defaults to the
value of the AWS_SHARED_CREDENTIALS_FILE
environment variable (if
defined) or ~/.aws/credentials
otherwise.
Optional
guardrailRequired when Guardrail is in use.
Optional
guardrailIdentifier for the guardrail configuration.
Optional
guardrailVersion for the guardrail configuration.
Optional
ignoreConfiguration files are normally cached after the first time they are loaded. When this property is set, the provider will always reload any configuration files loaded before.
Optional
loggerOptional
maxThe maximum number of concurrent calls that can be made.
Defaults to Infinity
, which means no limit.
Optional
maxThe maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
Optional
maxMax tokens.
Optional
metadataOptional
mfaA function that returns a promise fulfilled with an MFA token code for
the provided MFA Serial code. If a profile requires an MFA code and
mfaCodeProvider
is not a valid function, the credential provider
promise will be rejected.
The serial code of the MFA device specified.
Optional
modelModel to use. For example, "amazon.titan-tg1-large", this is equivalent to the modelId property in the list-foundation-models api.
Optional
modelAdditional kwargs to pass to the model.
Optional
onCustom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.
Optional
profileThe configuration profile to use.
Optional
regionThe AWS region e.g. us-west-2
.
Fallback to AWS_DEFAULT_REGION env variable or region specified in ~/.aws/config in case it is not provided here.
Optional
roleA function that assumes a role and returns a promise fulfilled with credentials for the assumed role.
The credentials with which to assume a role.
Optional
roleA function that assumes a role with web identity and returns a promise fulfilled with credentials for the assumed role.
Optional
roleThe IAM session name used to distinguish sessions.
Optional
ssoOptional
stopOptional additional stop sequences to pass to the model. Currently only supported for Anthropic and AI21.
Optional
streamingWhether or not to stream responses
Optional
tagsOptional
temperatureTemperature.
Optional
timeoutThe connection timeout (in milliseconds)
Optional
traceTrace settings for the Bedrock Guardrails.
Optional
verboseOptional
webFile location of where the OIDC
token is stored.
Deprecated
Use
callbacks
instead