Skip to content

S3TransferManager dont have an option to override http configuration #3651

Answered by debora-ito
karthiknaren asked this question in Q&A
Discussion options

You must be logged in to vote

@karthiknaren I don't quite understand the question. Which HTTP client would you like to provide?

You can use S3AsyncClient.crtBuilder() to configure a custom CRT-based client (which is an async HTTP client) and then provide this client to the S3TransferManager. Here's an example from the Developer Guide:

    S3AsyncClient s3AsyncClient = S3AsyncClient.crtBuilder()
                .credentialsProvider(DefaultCredentialsProvider.create())
                .region(Region.US_EAST_1)
                .targetThroughputInGbps(20.0)
                .minimumPartSizeInBytes(8 * MB)
                .build();

    S3TransferManager transferManager = S3TransferManager.builder()
                .s3Clien…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@karthiknaren
Comment options

@debora-ito
Comment options

Answer selected by debora-ito
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants