feat: make AWS credentials required in bedrock component (#5710)

1. Make aws_access_key_id field required
2. Make aws_secret_access_key field required
This commit is contained in:
Vinícios Batista da Silva 2025-01-16 15:41:22 -03:00 committed by GitHub
commit 39ef9ba1f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,7 @@ class AmazonBedrockComponent(LCModelComponent):
info="The access key for your AWS account."
"Usually set in Python code as the environment variable 'AWS_ACCESS_KEY_ID'.",
value="AWS_ACCESS_KEY_ID",
required=True,
),
SecretStrInput(
name="aws_secret_access_key",
@ -33,6 +34,7 @@ class AmazonBedrockComponent(LCModelComponent):
info="The secret key for your AWS account. "
"Usually set in Python code as the environment variable 'AWS_SECRET_ACCESS_KEY'.",
value="AWS_SECRET_ACCESS_KEY",
required=True,
),
SecretStrInput(
name="aws_session_token",