public static interface S3ClientConfiguration.Builder extends CopyableBuilder<S3ClientConfiguration.Builder,S3ClientConfiguration>
S3ClientConfiguration.| Modifier and Type | Method and Description |
|---|---|
S3ClientConfiguration.Builder |
asyncConfiguration(ClientAsyncConfiguration asyncConfiguration)
Specify overrides to the default SDK async configuration that should be used for clients created by this builder.
|
default S3ClientConfiguration.Builder |
asyncConfiguration(Consumer<ClientAsyncConfiguration.Builder> configuration)
Similar to
asyncConfiguration(ClientAsyncConfiguration), but takes a lambda to configure a new
ClientAsyncConfiguration.Builder. |
S3ClientConfiguration.Builder |
credentialsProvider(AwsCredentialsProvider credentialsProvider)
Configure the credentials that should be used to authenticate with S3.
|
S3ClientConfiguration.Builder |
maxConcurrency(Integer maxConcurrency)
Specifies the maximum number of S3 connections that should be established during
a transfer.
|
S3ClientConfiguration.Builder |
minimumPartSizeInBytes(Long partSizeBytes)
Sets the minimum part size for transfer parts.
|
S3ClientConfiguration.Builder |
region(Region region)
Configure the region with which the SDK should communicate.
|
S3ClientConfiguration.Builder |
targetThroughputInGbps(Double targetThroughputInGbps)
The target throughput for transfer requests.
|
copyapplyMutation, buildS3ClientConfiguration.Builder credentialsProvider(AwsCredentialsProvider credentialsProvider)
The default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId and aws.secretKeyAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEYIf the credentials are not found in any of the locations above, an exception will be thrown at SdkBuilder.build()
time.
credentialsProvider - the credentials to useS3ClientConfiguration.Builder region(Region region)
If this is not specified, the SDK will attempt to identify the endpoint automatically using the following logic:
region - the region to be usedS3ClientConfiguration.Builder minimumPartSizeInBytes(Long partSizeBytes)
By default, it is 8MB
partSizeBytes - The minimum part size for transfer parts.S3ClientConfiguration.Builder targetThroughputInGbps(Double targetThroughputInGbps)
maxConcurrency(java.lang.Integer).
By default, it is 5Gbps
targetThroughputInGbps - the target throughput in GbpsmaxConcurrency(Integer)S3ClientConfiguration.Builder maxConcurrency(Integer maxConcurrency)
If not provided, the TransferManager will calculate the optional number of connections
based on targetThroughputInGbps(java.lang.Double). If the value is too low, the S3TransferManager
might not achieve the specified target throughput.
maxConcurrency - the max number of concurrent requeststargetThroughputInGbps(Double)S3ClientConfiguration.Builder asyncConfiguration(ClientAsyncConfiguration asyncConfiguration)
asyncConfiguration - the async configurationasyncConfiguration(Consumer)default S3ClientConfiguration.Builder asyncConfiguration(Consumer<ClientAsyncConfiguration.Builder> configuration)
asyncConfiguration(ClientAsyncConfiguration), but takes a lambda to configure a new
ClientAsyncConfiguration.Builder. This removes the need to call ClientAsyncConfiguration.builder()
and ClientAsyncConfiguration.Builder#build().configuration - the async configurationasyncConfiguration(ClientAsyncConfiguration)Copyright © 2021. All rights reserved.