public abstract class ClientConfiguration
extends java.lang.Object
implements java.io.Serializable
AWS clients for all AWS IOs can be configured using AwsOptions
, which provides reasonable defaults based on
default providers of the AWS SDK.
ClientConfiguration
is meant to override defaults for a specific IO, including RetryConfiguration
. Retries are handled by the AWS SDK unless there's partial success. The SDK
uses a backoff strategy with equal jitter for computing the delay before the next retry.
Modifier and Type | Class and Description |
---|---|
static class |
ClientConfiguration.Builder |
Constructor and Description |
---|
ClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
static ClientConfiguration.Builder |
builder() |
static ClientConfiguration |
create(AwsCredentialsProvider credentials,
Region region,
java.net.URI endpoint) |
AwsCredentialsProvider |
credentialsProvider()
Optional
AwsCredentialsProvider . |
abstract java.net.URI |
endpoint()
Optional service endpoint to use AWS compatible services instead, e.g.
|
Region |
region()
Optional
Region . |
abstract RetryConfiguration |
retry()
Optional
RetryConfiguration for AWS clients. |
abstract ClientConfiguration.Builder |
toBuilder() |
@Memoized @Nullable @Pure public AwsCredentialsProvider credentialsProvider()
AwsCredentialsProvider
. If set, this overwrites the default in AwsOptions.getAwsCredentialsProvider()
.@Memoized @Nullable @Pure public Region region()
Region
. If set, this overwrites the default in AwsOptions.getAwsRegion()
.@Nullable @Pure public abstract java.net.URI endpoint()
AwsOptions.getEndpoint()
.@Nullable @Pure public abstract RetryConfiguration retry()
RetryConfiguration
for AWS clients. If unset, retry behavior will be unchanged
and use SDK defaults.public abstract ClientConfiguration.Builder toBuilder()
public static ClientConfiguration.Builder builder()
public static ClientConfiguration create(AwsCredentialsProvider credentials, Region region, @Nullable java.net.URI endpoint)