yera.cli.setup_handlers.aws
AWS Bedrock provider setup handler.
Symbols
AWSSetup
Inherits:
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
detect_config — Detect AWS profile and region configuration interactively.
ask_for_config — Interactively prompts the user to configure an AWS Bedrock connection.
AWSSetup.detect_config
detect_config() → AWSConnection | NoneDetect AWS profile and region configuration interactively.
Returns
type: AWSConnection | None
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
type: AWSConnection | None
An AWSConnection instance containing the user-provided profile and region, or None if the user declines the setup.