Class ClientConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class ClientConfiguration
    extends java.lang.Object
    implements java.io.Serializable
    AWS client configuration.

    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.

    See Also:
    Serialized Form
    • Constructor Detail

      • ClientConfiguration

        public ClientConfiguration()
    • Method Detail

      • credentialsProvider

        @Memoized
        @Nullable
        @Pure
        public software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider()
        Optional AwsCredentialsProvider. If set, this overwrites the default in AwsOptions.getAwsCredentialsProvider().
      • region

        @Memoized
        @Nullable
        @Pure
        public software.amazon.awssdk.regions.Region region()
        Optional Region. If set, this overwrites the default in AwsOptions.getAwsRegion().
      • endpoint

        @Nullable
        @Pure
        public abstract java.net.URI endpoint()
        Optional service endpoint to use AWS compatible services instead, e.g. for testing. If set, this overwrites the default in AwsOptions.getEndpoint().
      • create

        public static ClientConfiguration create​(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials,
                                                 software.amazon.awssdk.regions.Region region,
                                                 @Nullable
                                                 java.net.URI endpoint)