yera.cli.setup_handlers.aws
AWS Bedrock provider setup handler.
Symbols
AWSSetup
BaseProviderSetupHandler for configuring AWS Bedrock provider connections.
This class manages the lifecycle of AWS authentication setup, supporting automatic discovery of local ~/.aws/ profiles and manual interactive configuration of profiles and regions.
Methods
AWSSetup.detect_config
detect_config() → AWSConnection | NoneDetect AWS profile and region configuration interactively.
Returns
The selected complete AWS connection, or None when no complete connection candidates are available.
AWSSetup.ask_for_config
ask_for_config() → AWSConnection | NoneInteractively prompts the user to configure an AWS Bedrock connection.
Prompts the user for an AWS profile name (allowing for the default chain) and a target AWS region.
Returns
An AWSConnection instance containing the user-provided profile and region, or None if the user declines the setup.
AWSSetup.validate
validate(
config: AWSConnection,
) → NoneValidate an AWS connection through the reusable setup operation.
Parameters
AWS connection to validate.
Raises
If its credentials or connectivity cannot be validated.