in aws-core-server/src/main/java/jetbrains/buildServer/clouds/amazon/connector/impl/BaseAwsCredentialsBuilder.java [21:39]
public AwsCredentialsHolder constructSpecificCredentialsProvider(@NotNull final SProjectFeatureDescriptor featureDescriptor) throws AwsConnectorException {
List<InvalidProperty> invalidProperties = validateProperties(featureDescriptor.getParameters());
if (!invalidProperties.isEmpty()) {
InvalidProperty lastInvalidProperty = invalidProperties.get(invalidProperties.size() - 1);
String errorDescription = StringUtil.emptyIfNull(lastInvalidProperty.getInvalidReason());
throw new AwsConnectorException(
errorDescription,
lastInvalidProperty.getPropertyName()
);
}
try {
return IOGuard.allowNetworkCall(() -> constructSpecificCredentialsProviderImpl(featureDescriptor));
} catch (Exception e) {
if (isAmazonServiceException(e)) {
throw new AwsConnectorException(e);
}
throw e;
}
}