Skip to content

Commit 7e51693

Browse files
Merge pull request #543 from aws/staging/66c3a79a-c1fa-4328-af74-9b46b727c9d3
Pull request: release <- staging/66c3a79a-c1fa-4328-af74-9b46b727c9d3
2 parents 0716ae3 + 76703e5 commit 7e51693

File tree

235 files changed

+1478
-338
lines changed

Some content is hidden

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

235 files changed

+1478
-338
lines changed

.changes/2.5.71.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "2.5.71",
3+
"date": "2019-06-25",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "AWS SDK for Java v2",
8+
"description": "Only allows a single execution interceptor with the same class name to be included in loaded execution interceptors."
9+
},
10+
{
11+
"type": "bugfix",
12+
"category": "Amazon S3",
13+
"description": "Fixes [#1196](https://github.com/aws/aws-sdk-java-v2/issues/1196) by changing S3 FilterRule enums to correctly model each enum as capitalized"
14+
},
15+
{
16+
"type": "feature",
17+
"category": "Amazon Elastic Compute Cloud",
18+
"description": "Starting today, you can use Traffic Mirroring to copy network traffic from an elastic network interface of Amazon EC2 instances and then send it to out-of-band security and monitoring appliances for content inspection, threat monitoring, and troubleshooting. These appliances can be deployed as individual instances, or as a fleet of instances behind a Network Load Balancer with a User Datagram Protocol (UDP) listener. Traffic Mirroring supports filters and packet truncation, so that you only extract the traffic of interest to monitor by using monitoring tools of your choice."
19+
},
20+
{
21+
"type": "feature",
22+
"category": "Amazon Elastic Kubernetes Service",
23+
"description": "Changing Amazon EKS full service name to Amazon Elastic Kubernetes Service."
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.5.71__ __2019-06-25__
2+
## __AWS SDK for Java v2__
3+
- ### Bugfixes
4+
- Only allows a single execution interceptor with the same class name to be included in loaded execution interceptors.
5+
6+
## __Amazon Elastic Compute Cloud__
7+
- ### Features
8+
- Starting today, you can use Traffic Mirroring to copy network traffic from an elastic network interface of Amazon EC2 instances and then send it to out-of-band security and monitoring appliances for content inspection, threat monitoring, and troubleshooting. These appliances can be deployed as individual instances, or as a fleet of instances behind a Network Load Balancer with a User Datagram Protocol (UDP) listener. Traffic Mirroring supports filters and packet truncation, so that you only extract the traffic of interest to monitor by using monitoring tools of your choice.
9+
10+
## __Amazon Elastic Kubernetes Service__
11+
- ### Features
12+
- Changing Amazon EKS full service name to Amazon Elastic Kubernetes Service.
13+
14+
## __Amazon S3__
15+
- ### Bugfixes
16+
- Fixes [#1196](https://github.com/aws/aws-sdk-java-v2/issues/1196) by changing S3 FilterRule enums to correctly model each enum as capitalized
17+
118
# __2.5.70__ __2019-06-24__
219
## __AWS Resource Groups Tagging API__
320
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ You can import the whole SDK into your project (includes all services) as follow
4646
<dependency>
4747
<groupId>software.amazon.awssdk</groupId>
4848
<artifactId>aws-sdk-java</artifactId>
49-
<version>2.5.70</version>
49+
<version>2.5.71</version>
5050
</dependency>
5151
```
5252

@@ -58,12 +58,12 @@ Alternatively you can add dependencies for the specific services you use only:
5858
<dependency>
5959
<groupId>software.amazon.awssdk</groupId>
6060
<artifactId>ec2</artifactId>
61-
<version>2.5.70</version>
61+
<version>2.5.71</version>
6262
</dependency>
6363
<dependency>
6464
<groupId>software.amazon.awssdk</groupId>
6565
<artifactId>s3</artifactId>
66-
<version>2.5.70</version>
66+
<version>2.5.71</version>
6767
</dependency>
6868
```
6969

@@ -77,7 +77,7 @@ To automatically manage module versions (currently all modules have the same ver
7777
<dependency>
7878
<groupId>software.amazon.awssdk</groupId>
7979
<artifactId>bom</artifactId>
80-
<version>2.5.70</version>
80+
<version>2.5.71</version>
8181
<type>pom</type>
8282
<scope>import</scope>
8383
</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.5.70</version>
7+
<version>2.5.71</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>aws-sdk-java</artifactId>

bom-internal/pom.xml

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

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.5.70</version>
7+
<version>2.5.71</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.5.70</version>
24+
<version>2.5.71</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.5.70</version>
10+
<version>2.5.71</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.5.70</version>
9+
<version>2.5.71</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.5.70</version>
25+
<version>2.5.71</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.5.70</version>
24+
<version>2.5.71</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

codegen/src/main/java/software/amazon/awssdk/codegen/customization/processors/ShapeModifiersProcessor.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ private void postprocessModifyMemberProperty(ShapeModel shapeModel, String membe
139139
enumModel.setName(modifyModel.getEmitEnumName());
140140
}
141141

142+
if (modifyModel.getEmitEnumValue() != null) {
143+
EnumModel enumModel = shapeModel.findEnumModelByValue(memberName);
144+
if (enumModel == null) {
145+
throw new IllegalStateException(
146+
String.format("Cannot find enum [%s] in the intermediate model when processing "
147+
+ "customization config shapeModifiers.%s", memberName, memberName));
148+
}
149+
enumModel.setValue(modifyModel.getEmitEnumValue());
150+
}
151+
142152
if (modifyModel.getMarshallLocationName() != null) {
143153
MemberModel memberModel = shapeModel.findMemberModelByC2jName(memberName);
144154
memberModel.getHttp().setMarshallLocationName(modifyModel.getMarshallLocationName());

codegen/src/main/java/software/amazon/awssdk/codegen/model/config/customization/ModifyModelShapeModifier.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ public class ModifyModelShapeModifier {
2525
*/
2626
private String emitEnumName;
2727

28+
/**
29+
* The value for the enum to be used in the java class. This overrides the
30+
* values computed by the code generator for the enum.
31+
*/
32+
private String emitEnumValue;
33+
2834
/**
2935
* Emit as a different primitive type. Used by AWS Budget Service to change string
3036
* to BigDecimal (see API-433).
@@ -51,6 +57,14 @@ public void setEmitEnumName(String emitEnumName) {
5157
this.emitEnumName = emitEnumName;
5258
}
5359

60+
public String getEmitEnumValue() {
61+
return emitEnumValue;
62+
}
63+
64+
public void setEmitEnumValue(String emitEnumValue) {
65+
this.emitEnumValue = emitEnumValue;
66+
}
67+
5468
public String getMarshallLocationName() {
5569
return marshallLocationName;
5670
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/intermediate/EnumModel.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
public class EnumModel {
2424

2525
/** The value for the enum field.*/
26-
private final String value;
26+
private String value;
2727
/** The name of the enum field. */
2828
private String name;
2929

@@ -42,6 +42,10 @@ public void setName(String name) {
4242
this.name = name;
4343
}
4444

45+
public void setValue(String value) {
46+
this.value = value;
47+
}
48+
4549
public String getValue() {
4650
return value;
4751
}

codegen/src/main/java/software/amazon/awssdk/codegen/naming/DefaultNamingStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public String getResponseClassName(String operationName) {
216216
public String getVariableName(String name) {
217217
// Exclude keywords because they will not compile, and exclude reserved method names because they're frequently
218218
// used for local variable names.
219-
if (RESERVED_KEYWORDS.contains(name) ||
219+
if (isJavaKeyword(name) ||
220220
RESERVED_STRUCTURE_METHOD_NAMES.contains(name) ||
221221
RESERVED_EXCEPTION_METHOD_NAMES.contains(name)) {
222222
return unCapitalize(name + CONFLICTING_NAME_SUFFIX);

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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
10+
<version>2.5.71</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.5.70</version>
10+
<version>2.5.71</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.5.70</version>
24+
<version>2.5.71</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.5.70</version>
25+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
8+
<version>2.5.71</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.5.70</version>
25+
<version>2.5.71</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.5.70</version>
24+
<version>2.5.71</version>
2525
</parent>
2626
<artifactId>sdk-core</artifactId>
2727
<name>AWS Java SDK :: SDK Core</name>

core/sdk-core/src/main/java/software/amazon/awssdk/core/interceptor/ClasspathInterceptorChainFactory.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import java.net.URL;
2323
import java.nio.charset.StandardCharsets;
2424
import java.util.ArrayList;
25+
import java.util.Collection;
2526
import java.util.Collections;
2627
import java.util.Enumeration;
2728
import java.util.List;
@@ -47,19 +48,20 @@ public final class ClasspathInterceptorChainFactory {
4748
* @return A list of request handlers based on the handlers referenced in the specified resource.
4849
*/
4950
public List<ExecutionInterceptor> getInterceptors(String resource) {
50-
return createExecutionInterceptorsFromClasspath(resource);
51+
return new ArrayList<>(createExecutionInterceptorsFromClasspath(resource));
5152
}
5253

5354
/**
5455
* Load the global handlers by reading the global execution interceptors resource.
5556
*/
5657
public List<ExecutionInterceptor> getGlobalInterceptors() {
57-
return createExecutionInterceptorsFromClasspath(GLOBAL_INTERCEPTOR_PATH);
58+
return new ArrayList<>(createExecutionInterceptorsFromClasspath(GLOBAL_INTERCEPTOR_PATH));
5859
}
5960

60-
private List<ExecutionInterceptor> createExecutionInterceptorsFromClasspath(String path) {
61+
private Collection<ExecutionInterceptor> createExecutionInterceptorsFromClasspath(String path) {
6162
try {
62-
return createExecutionInterceptorsFromResources(classLoader().getResources(path)).collect(Collectors.toList());
63+
return createExecutionInterceptorsFromResources(classLoader().getResources(path))
64+
.collect(Collectors.toMap(p -> p.getClass().getSimpleName(), p -> p, (p1, p2) -> p1)).values();
6365
} catch (IOException e) {
6466
throw SdkClientException.builder()
6567
.message("Unable to instantiate execution interceptor chain.")

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.5.70</version>
25+
<version>2.5.71</version>
2626
</parent>
2727
<artifactId>http-client-spi</artifactId>
2828
<name>AWS Java SDK :: HTTP Client Interface</name>

0 commit comments

Comments
 (0)