| Name | Type | Description |
|---|---|---|
service_name* | str | The name of the AWS service to create a client for. |
region_name | Optional[str] | Default: NoneAWS region name. If not provided, try to get from env variables. |
credentials_profile_name | Optional[str] | Default: None |
aws_access_key_id | Optional[SecretStr] | Default: None |
aws_secret_access_key | Optional[SecretStr] | Default: None |
aws_session_token | Optional[SecretStr] | Default: None |
endpoint_url | Optional[str] | Default: None |
config | Any | Default: None |
api_key | Optional[SecretStr] | Default: None |
Helper function to validate AWS credentials and create an AWS client.
The name of the AWS credentials profile to use.
AWS access key ID.
AWS secret access key.
AWS session token.
The complete URL to use for the constructed client.
Advanced client configuration options.
Bedrock API key for bearer-token authentication. If provided, injects a static token provider into the botocore session to use HTTP Bearer authentication. This approach is compatible with multi-tenant deployments where different clients need different API keys.