aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.12k stars 802 forks source link

Support HTTP settings mapping #5308

Closed zoewangg closed 1 week ago

zoewangg commented 1 week ago

Motivation and Context

Support HTTP settings mapping


         ClientConfiguration clientConfiguration = new ClientConfiguration()
             .withMaxConnections(100)
             .withTcpKeepAlive(true);

         AmazonSQS sqs = AmazonSQSClient.builder()
                                        .withClientConfiguration(clientConfiguration)
                                        .build();

to

         ClientOverrideConfiguration  clientConfiguration = ClientOverrideConfiguration.builder().build();

         SqsClient sqs = SqsClient.builder()
                         .overrideConfiguration(clientConfiguration)
                         .httpClientBuilder(ApacheHttpClient.builder()
                                             .maxConnections(100)
                                             .tcpKeepAlive(true))
                         .build();

Testing

Screenshots (if appropriate)

Types of changes

Checklist

License

sonarcloud[bot] commented 1 week ago

Quality Gate Failed Quality Gate failed

Failed conditions
39.2% Coverage on New Code (required ≥ 80%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint