Class ClientConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.aws2.common.ClientConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class ClientConfiguration extends java.lang.Object implements java.io.SerializableAWS 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.ClientConfigurationis meant to override defaults for a specific IO, includingRetryConfiguration. 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientConfiguration.Builder
-
Constructor Summary
Constructors Constructor Description ClientConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ClientConfiguration.Builderbuilder()static ClientConfigurationcreate(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, software.amazon.awssdk.regions.Region region, java.net.URI endpoint)software.amazon.awssdk.auth.credentials.AwsCredentialsProvidercredentialsProvider()OptionalAwsCredentialsProvider.abstract java.net.URIendpoint()Optional service endpoint to use AWS compatible services instead, e.g.software.amazon.awssdk.regions.Regionregion()OptionalRegion.abstract RetryConfigurationretry()OptionalRetryConfigurationfor AWS clients.abstract ClientConfiguration.BuildertoBuilder()
-
-
-
Method Detail
-
credentialsProvider
@Memoized @Nullable @Pure public software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider()
OptionalAwsCredentialsProvider. If set, this overwrites the default inAwsOptions.getAwsCredentialsProvider().
-
region
@Memoized @Nullable @Pure public software.amazon.awssdk.regions.Region region()
OptionalRegion. If set, this overwrites the default inAwsOptions.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 inAwsOptions.getEndpoint().
-
retry
@Nullable @Pure public abstract RetryConfiguration retry()
OptionalRetryConfigurationfor AWS clients. If unset, retry behavior will be unchanged and use SDK defaults.
-
toBuilder
public abstract ClientConfiguration.Builder toBuilder()
-
builder
public static ClientConfiguration.Builder builder()
-
create
public static ClientConfiguration create(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentials, software.amazon.awssdk.regions.Region region, @Nullable java.net.URI endpoint)
-
-