prefetchAwsCredentialsAndBedrockInfoIfSafe function
void
prefetchAwsCredentialsAndBedrockInfoIfSafe()
Prefetch AWS credentials if safe (trust already established).
Implementation
void prefetchAwsCredentialsAndBedrockInfoIfSafe() {
final awsAuthRefresh = getConfiguredAwsAuthRefresh();
final awsCredentialExport = getConfiguredAwsCredentialExport();
if (awsAuthRefresh == null && awsCredentialExport == null) return;
if (isAwsAuthRefreshFromProjectSettings() ||
isAwsCredentialExportFromProjectSettings()) {
return;
}
refreshAndGetAwsCredentials();
}