Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cannot find proxy setting to S3Client #2890

Closed
xenogew opened this issue Dec 5, 2021 · 1 comment
Closed

I cannot find proxy setting to S3Client #2890

xenogew opened this issue Dec 5, 2021 · 1 comment
Labels
closed-for-staleness guidance Question that needs advice or information.

Comments

@xenogew
Copy link

xenogew commented Dec 5, 2021

Describe the issue

I tried Google how to set proxy but found only example of SDK version 1, and searched inside Java Dev guide of AWS and didn't find any related for what I'm searching.

Steps to Reproduce

include dependencies of
software.amazon.awssdk:bom-2.17.91
software.amazon.awssdk:s3-2.17.91

Current behavior

Couldn't find ClientConfigutation class or ProxyConfiguration.Builder class

AWS Java SDK version used

software.amazon.awssdk:2.17.91

JDK version used

11

Operating System and version

Windows 10 Update 21H1

@xenogew xenogew added guidance Question that needs advice or information. needs-triage This issue or PR still needs to be triaged. labels Dec 5, 2021
@debora-ito debora-ito removed the needs-triage This issue or PR still needs to be triaged. label Dec 6, 2021
@debora-ito
Copy link
Member

Hi @xenogew,

Proxy configuration is now done in the httpClientBuilder:

        ProxyConfiguration.Builder proxyConfig =
                ProxyConfiguration.builder()
                        .endpoint(ENDPOINT)
                        .username(USERNAME)
                        .password(PASSWORD);
        
        DynamoDbClient client = DynamoDbClient.builder()
                        .httpClientBuilder(ApacheHttpClient.builder()
                                            .proxyConfiguration(proxyConfig.build()))
                        .build();

If you are migrating from SDK 1.x to 2.x, this changelog page will help, it shows the changes made from version 1.x and the equivalent operations in 2.x:
https://github.com/aws/aws-sdk-java-v2/blob/master/docs/LaunchChangelog.md

Good callout on the missing examples in the Developer Guide, I will pass this to our documentation team.

Let us know if you have any other question.

@debora-ito debora-ito added the closing-soon This issue will close in 4 days unless further comments are made. label Dec 6, 2021
@github-actions github-actions bot added closed-for-staleness and removed closing-soon This issue will close in 4 days unless further comments are made. labels Dec 9, 2021
@github-actions github-actions bot closed this as completed Dec 9, 2021
aws-sdk-java-automation added a commit that referenced this issue Feb 5, 2024
…edf75047e

Pull request: release <- staging/96e1b8b2-3a37-418d-b480-f27edf75047e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-for-staleness guidance Question that needs advice or information.
Projects
None yet
Development

No branches or pull requests

2 participants