Skip to content

Commit 9e36de6

Browse files
authored
Merge pull request #402 from aws/staging/9e20f076-9332-4cde-9ef8-c28b47cefc16
Pull request: release <- staging/9e20f076-9332-4cde-9ef8-c28b47cefc16
2 parents a00cbc6 + b3e64b8 commit 9e36de6

File tree

218 files changed

+358
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+358
-253
lines changed

.changes/2.4.1.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"date": "2019-02-05",
3+
"version": "2.4.1",
4+
"entries": [
5+
{
6+
"category": "AWS SDK for Java v2",
7+
"type": "bugfix",
8+
"description": "Fix an issue where an exception could be raised when configuring the idle connection reaper in the apache HTTP client [#1059](https://github.com/aws/aws-sdk-java-v2/issues/1059)."
9+
},
10+
{
11+
"category": "AWS Service Catalog",
12+
"type": "feature",
13+
"description": "Service Catalog Documentation Update for ProvisionedProductDetail"
14+
},
15+
{
16+
"category": "Amazon Elastic Compute Cloud",
17+
"type": "feature",
18+
"description": "ec2.DescribeVpcPeeringConnections pagination support"
19+
},
20+
{
21+
"category": "AWS Shield",
22+
"type": "feature",
23+
"description": "The DescribeProtection request now accepts resource ARN as valid parameter."
24+
}
25+
]
26+
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# __2.4.1__ __2019-02-05__
2+
## __AWS SDK for Java v2__
3+
- ### Bugfixes
4+
- Fix an issue where an exception could be raised when configuring the idle connection reaper in the apache HTTP client [#1059](https://github.com/aws/aws-sdk-java-v2/issues/1059).
5+
6+
## __AWS Service Catalog__
7+
- ### Features
8+
- Service Catalog Documentation Update for ProvisionedProductDetail
9+
10+
## __AWS Shield__
11+
- ### Features
12+
- The DescribeProtection request now accepts resource ARN as valid parameter.
13+
14+
## __Amazon Elastic Compute Cloud__
15+
- ### Features
16+
- ec2.DescribeVpcPeeringConnections pagination support
17+
118
# __2.4.0__ __2019-02-04__
219
## __AWS CodeCommit__
320
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You can import the whole SDK into your project (includes all services) as follow
4444
<dependency>
4545
<groupId>software.amazon.awssdk</groupId>
4646
<artifactId>aws-sdk-java</artifactId>
47-
<version>2.4.0</version>
47+
<version>2.4.1</version>
4848
</dependency>
4949
```
5050

@@ -56,12 +56,12 @@ Alternatively you can add dependencies for the specific services you use only:
5656
<dependency>
5757
<groupId>software.amazon.awssdk</groupId>
5858
<artifactId>ec2</artifactId>
59-
<version>2.4.0</version>
59+
<version>2.4.1</version>
6060
</dependency>
6161
<dependency>
6262
<groupId>software.amazon.awssdk</groupId>
6363
<artifactId>s3</artifactId>
64-
<version>2.4.0</version>
64+
<version>2.4.1</version>
6565
</dependency>
6666
```
6767

@@ -75,7 +75,7 @@ To automatically manage module versions (currently all modules have the same ver
7575
<dependency>
7676
<groupId>software.amazon.awssdk</groupId>
7777
<artifactId>bom</artifactId>
78-
<version>2.4.0</version>
78+
<version>2.4.1</version>
7979
<type>pom</type>
8080
<scope>import</scope>
8181
</dependency>

aws-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>software.amazon.awssdk</groupId>
66
<artifactId>aws-sdk-java-pom</artifactId>
7-
<version>2.4.0</version>
7+
<version>2.4.1</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>aws-sdk-java</artifactId>

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>software.amazon.awssdk</groupId>
66
<artifactId>aws-sdk-java-pom</artifactId>
7-
<version>2.4.0</version>
7+
<version>2.4.1</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>bom</artifactId>

bundle/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.4.0</version>
24+
<version>2.4.1</version>
2525
</parent>
2626
<artifactId>bundle</artifactId>
2727
<packaging>jar</packaging>

codegen-lite-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.awssdk</groupId>
99
<artifactId>aws-sdk-java-pom</artifactId>
10-
<version>2.4.0</version>
10+
<version>2.4.1</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313
<artifactId>codegen-lite-maven-plugin</artifactId>

codegen-lite/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>software.amazon.awssdk</groupId>
88
<artifactId>aws-sdk-java-pom</artifactId>
9-
<version>2.4.0</version>
9+
<version>2.4.1</version>
1010
</parent>
1111
<artifactId>codegen-lite</artifactId>
1212
<name>AWS Java SDK :: Code Generator Lite</name>

codegen-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>aws-sdk-java-pom</artifactId>
25-
<version>2.4.0</version>
25+
<version>2.4.1</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-maven-plugin</artifactId>

codegen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>aws-sdk-java-pom</artifactId>
24-
<version>2.4.0</version>
24+
<version>2.4.1</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

core/annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>core</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/auth/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.awssdk</groupId>
99
<artifactId>core</artifactId>
10-
<version>2.4.0</version>
10+
<version>2.4.1</version>
1111
</parent>
1212

1313
<artifactId>auth</artifactId>

core/aws-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>software.amazon.awssdk</groupId>
99
<artifactId>core</artifactId>
10-
<version>2.4.0</version>
10+
<version>2.4.1</version>
1111
</parent>
1212

1313
<artifactId>aws-core</artifactId>

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>aws-sdk-java-pom</artifactId>
2323
<groupId>software.amazon.awssdk</groupId>
24-
<version>2.4.0</version>
24+
<version>2.4.1</version>
2525
</parent>
2626

2727
<artifactId>core</artifactId>

core/profiles/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.4.0</version>
25+
<version>2.4.1</version>
2626
</parent>
2727

2828
<artifactId>profiles</artifactId>

core/protocols/aws-cbor-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-ion-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-json-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-query-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/aws-xml-protocol/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>core</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/protocols/protocol-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>protocols</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.4.0</version>
8+
<version>2.4.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/regions/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>core</artifactId>
25-
<version>2.4.0</version>
25+
<version>2.4.1</version>
2626
</parent>
2727

2828
<artifactId>regions</artifactId>

core/sdk-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<groupId>software.amazon.awssdk</groupId>
2323
<artifactId>core</artifactId>
24-
<version>2.4.0</version>
24+
<version>2.4.1</version>
2525
</parent>
2626
<artifactId>sdk-core</artifactId>
2727
<name>AWS Java SDK :: SDK Core</name>

http-client-spi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>aws-sdk-java-pom</artifactId>
2424
<groupId>software.amazon.awssdk</groupId>
25-
<version>2.4.0</version>
25+
<version>2.4.1</version>
2626
</parent>
2727
<artifactId>http-client-spi</artifactId>
2828
<name>AWS Java SDK :: HTTP Client Interface</name>

http-client-spi/src/main/java/software/amazon/awssdk/http/SdkHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface SdkHttpClient extends SdkAutoCloseable {
4545
@FunctionalInterface
4646
interface Builder<T extends SdkHttpClient.Builder<T>> extends SdkBuilder<T, SdkHttpClient> {
4747
/**
48-
* Create a {@link SdkHttpClient} without defaults applied. This is useful for reusing an HTTP client across multiple
48+
* Create a {@link SdkHttpClient} with global defaults applied. This is useful for reusing an HTTP client across multiple
4949
* services.
5050
*/
5151
default SdkHttpClient build() {

http-client-spi/src/main/java/software/amazon/awssdk/http/async/SdkAsyncHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public interface SdkAsyncHttpClient extends SdkAutoCloseable {
4747
@FunctionalInterface
4848
interface Builder<T extends SdkAsyncHttpClient.Builder<T>> extends SdkBuilder<T, SdkAsyncHttpClient> {
4949
/**
50-
* Create a {@link SdkAsyncHttpClient} without defaults applied. This is useful for reusing an HTTP client across
50+
* Create a {@link SdkAsyncHttpClient} with global defaults applied. This is useful for reusing an HTTP client across
5151
* multiple services.
5252
*/
5353
default SdkAsyncHttpClient build() {

http-clients/apache-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>http-clients</artifactId>
2323
<groupId>software.amazon.awssdk</groupId>
24-
<version>2.4.0</version>
24+
<version>2.4.1</version>
2525
</parent>
2626

2727
<artifactId>apache-client</artifactId>

http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import static software.amazon.awssdk.http.SdkHttpConfigurationOption.GLOBAL_HTTP_DEFAULTS;
2626
import static software.amazon.awssdk.http.SdkHttpConfigurationOption.MAX_CONNECTIONS;
2727
import static software.amazon.awssdk.http.SdkHttpConfigurationOption.READ_TIMEOUT;
28+
import static software.amazon.awssdk.http.SdkHttpConfigurationOption.REAP_IDLE_CONNECTIONS;
2829
import static software.amazon.awssdk.utils.NumericUtils.saturatedCast;
2930

3031
import java.io.IOException;
@@ -144,9 +145,9 @@ private ConnectionManagerAwareHttpClient createClient(ApacheHttpClient.DefaultBu
144145

145146
addProxyConfig(builder, configuration.proxyConfiguration);
146147

147-
if (useIdleConnectionReaper(configuration)) {
148+
if (useIdleConnectionReaper(standardOptions)) {
148149
IdleConnectionReaper.getInstance().registerConnectionManager(
149-
cm, resolvedOptions.get(SdkHttpConfigurationOption.CONNECTION_MAX_IDLE_TIMEOUT).toMillis());
150+
cm, standardOptions.get(SdkHttpConfigurationOption.CONNECTION_MAX_IDLE_TIMEOUT).toMillis());
150151
}
151152

152153
return new ApacheSdkHttpClient(builder.build(), cm);
@@ -174,8 +175,8 @@ private ConnectionKeepAliveStrategy buildKeepAliveStrategy(AttributeMap standard
174175
return maxIdle > 0 ? new SdkConnectionKeepAliveStrategy(maxIdle) : null;
175176
}
176177

177-
private boolean useIdleConnectionReaper(DefaultBuilder configuration) {
178-
return Boolean.TRUE.equals(configuration.useIdleConnectionReaper);
178+
private boolean useIdleConnectionReaper(AttributeMap standardOptions) {
179+
return Boolean.TRUE.equals(standardOptions.get(REAP_IDLE_CONNECTIONS));
179180
}
180181

181182
private boolean isAuthenticatedProxy(ProxyConfiguration proxyConfiguration) {
@@ -343,7 +344,6 @@ private static final class DefaultBuilder implements Builder {
343344
private ProxyConfiguration proxyConfiguration = ProxyConfiguration.builder().build();
344345
private InetAddress localAddress;
345346
private Boolean expectContinueEnabled;
346-
private Boolean useIdleConnectionReaper;
347347

348348
private DefaultBuilder() {
349349
}
@@ -446,7 +446,7 @@ public void setConnectionMaxIdleTime(Duration connectionMaxIdleTime) {
446446

447447
@Override
448448
public Builder useIdleConnectionReaper(Boolean useIdleConnectionReaper) {
449-
this.useIdleConnectionReaper = useIdleConnectionReaper;
449+
standardOptions.put(REAP_IDLE_CONNECTIONS, useIdleConnectionReaper);
450450
return this;
451451
}
452452

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package software.amazon.awssdk.http.apache;
17+
18+
import org.junit.Test;
19+
20+
/**
21+
* @see ApacheHttpClientWireMockTest
22+
*/
23+
public class ApacheHttpClientTest {
24+
@Test
25+
public void connectionReaperCanBeManuallyEnabled() {
26+
ApacheHttpClient.builder()
27+
.useIdleConnectionReaper(true)
28+
.build()
29+
.close();
30+
}
31+
}

http-clients/netty-nio-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>http-clients</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.4.0</version>
23+
<version>2.4.1</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

0 commit comments

Comments
 (0)