OptionalconfigOptionalcredentialsAWS Credentials.
If no credentials are provided, the default credentials from @aws-sdk/credential-provider-node will be used.
OptionalendpointOverride the default endpoint hostname.
OptionalendpointOptionalfetchA custom fetch function for low-level access to AWS API. Defaults to fetch().
Optionalinit: RequestInitOptionalinit: RequestInitOptionalfilepathThe 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.
OptionalguardrailRequired when Guardrail is in use.
OptionalguardrailIdentifier for the guardrail configuration.
OptionalguardrailVersion for the guardrail configuration.
OptionalignoreConfiguration 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.
OptionalloggerOptionalmaxThe maximum number of times the HTTP connection should be retried
OptionalmaxMax tokens.
OptionalmfaA 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.
OptionalmodelModel to use. For example, "amazon.titan-tg1-large", this is equivalent to the modelId property in the list-foundation-models api.
OptionalmodelAdditional kwargs to pass to the model.
OptionalprofileThe configuration profile to use.
OptionalregionThe 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.
OptionalroleA function that assumes a role and returns a promise fulfilled with credentials for the assumed role.
The credentials with which to assume a role.
OptionalroleA function that assumes a role with web identity and returns a promise fulfilled with credentials for the assumed role.
OptionalroleThe IAM session name used to distinguish sessions.
OptionalssoOptionalstopOptional additional stop sequences to pass to the model. Currently only supported for Anthropic and AI21.
OptionalstreamingWhether or not to stream responses
OptionaltemperatureTemperature.
OptionaltimeoutThe connection timeout (in milliseconds)
OptionaltraceTrace settings for the Bedrock Guardrails.
OptionalwebFile 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_FILEenvironment variable (if defined) or~/.aws/configotherwise.