pub async fn build_aws_config(
profile: Option<String>,
region: String,
) -> Result<SdkConfig>
Expand description
Builds and returns an AWS SDK configuration based on the following priority:
- Specified AWS profile (if provided)
- AWS environment variables (if available)
- Interactive SSO login (if user confirms)
This function can be reused to create any AWS service client.