Optional
configOptional
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
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 times the HTTP connection should be retried
Optional
maxMax tokens.
Optional
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
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
temperatureTemperature.
Optional
timeoutThe connection timeout (in milliseconds)
Optional
traceTrace settings for the Bedrock Guardrails.
Optional
webFile location of where the OIDC
token is stored.
The 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.