in gremlin-client/src/main/java/software/amazon/neptune/cluster/GetEndpointsFromLambdaProxy.java [99:114]
private GetEndpointsFromLambdaProxy(String lambdaName,
String region,
String iamProfile,
AwsCredentialsProvider credentials,
ClientOverrideConfiguration clientOverrideConfiguration,
SdkHttpClient.Builder<?> httpClientBuilder) {
this.innerStrategy = new CommonClusterEndpointsFetchStrategy(this);
this.lambdaName = lambdaName;
this.lambdaClient = createLambdaClient(region, iamProfile, credentials, clientOverrideConfiguration, httpClientBuilder);
this.retryConfig = new RetryConfigBuilder()
.retryOnSpecificExceptions(TooManyRequestsException.class, TimeoutException.class)
.withMaxNumberOfTries(5)
.withDelayBetweenTries(100, ChronoUnit.MILLIS)
.withExponentialBackoff()
.build();
}