Skip to content

Commit 5c6bbb6

Browse files
Merge pull request #2664 from aws/staging/c38bff8a-3e2b-4588-989c-5f85ba5b698e
Pull request: release <- staging/c38bff8a-3e2b-4588-989c-5f85ba5b698e
2 parents 46b9306 + 82feff3 commit 5c6bbb6

File tree

517 files changed

+1215
-1125
lines changed

Some content is hidden

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

517 files changed

+1215
-1125
lines changed

.changes/2.20.129.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "2.20.129",
3+
"date": "2023-08-17",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "AWS SDK for Java v2",
8+
"contributor": "",
9+
"description": "Sends final checksum chunk and trailer when only onComplete() is called by upstream (empty content)"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "Amazon Elastic Compute Cloud",
14+
"contributor": "",
15+
"description": "Adds support for SubnetConfigurations to allow users to select their own IPv4 and IPv6 addresses for Interface VPC endpoints"
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon GameLift",
20+
"contributor": "",
21+
"description": "Amazon GameLift updates its instance types support."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "AWS SDK for Java v2",
26+
"contributor": "",
27+
"description": "Updated endpoint and partition metadata."
28+
}
29+
]
30+
}

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# __2.20.129__ __2023-08-17__
2+
## __AWS SDK for Java v2__
3+
- ### Features
4+
- Updated endpoint and partition metadata.
5+
6+
- ### Bugfixes
7+
- Sends final checksum chunk and trailer when only onComplete() is called by upstream (empty content)
8+
9+
## __Amazon Elastic Compute Cloud__
10+
- ### Features
11+
- Adds support for SubnetConfigurations to allow users to select their own IPv4 and IPv6 addresses for Interface VPC endpoints
12+
13+
## __Amazon GameLift__
14+
- ### Features
15+
- Amazon GameLift updates its instance types support.
16+
117
# __2.20.128__ __2023-08-16__
218
## __AWS SDK for Java v2__
319
- ### Bugfixes
@@ -1243,7 +1259,7 @@ Special thanks to the following contributors to this release:
12431259
## __Contributors__
12441260
Special thanks to the following contributors to this release:
12451261

1246-
[@bmaizels](https://github.com/bmaizels), [@breader124](https://github.com/breader124)
1262+
[@breader124](https://github.com/breader124), [@bmaizels](https://github.com/bmaizels)
12471263
# __2.20.85__ __2023-06-13__
12481264
## __AWS CloudTrail__
12491265
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To automatically manage module versions (currently all modules have the same ver
5252
<dependency>
5353
<groupId>software.amazon.awssdk</groupId>
5454
<artifactId>bom</artifactId>
55-
<version>2.20.128</version>
55+
<version>2.20.129</version>
5656
<type>pom</type>
5757
<scope>import</scope>
5858
</dependency>
@@ -86,12 +86,12 @@ Alternatively you can add dependencies for the specific services you use only:
8686
<dependency>
8787
<groupId>software.amazon.awssdk</groupId>
8888
<artifactId>ec2</artifactId>
89-
<version>2.20.128</version>
89+
<version>2.20.129</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.20.128</version>
94+
<version>2.20.129</version>
9595
</dependency>
9696
```
9797

@@ -103,7 +103,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
103103
<dependency>
104104
<groupId>software.amazon.awssdk</groupId>
105105
<artifactId>aws-sdk-java</artifactId>
106-
<version>2.20.128</version>
106+
<version>2.20.129</version>
107107
</dependency>
108108
```
109109

archetypes/archetype-app-quickstart/pom.xml

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

archetypes/archetype-lambda/pom.xml

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

archetypes/archetype-tools/pom.xml

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

archetypes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>aws-sdk-java-pom</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.20.128</version>
23+
<version>2.20.129</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetypes</artifactId>

aws-sdk-java/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>software.amazon.awssdk</groupId>
1919
<artifactId>aws-sdk-java-pom</artifactId>
20-
<version>2.20.128</version>
20+
<version>2.20.129</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>aws-sdk-java</artifactId>

bom-internal/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>aws-sdk-java-pom</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.20.128</version>
23+
<version>2.20.129</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>software.amazon.awssdk</groupId>
1919
<artifactId>aws-sdk-java-pom</artifactId>
20-
<version>2.20.128</version>
20+
<version>2.20.129</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<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.20.128</version>
24+
<version>2.20.129</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
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>software.amazon.awssdk</groupId>
2424
<artifactId>aws-sdk-java-pom</artifactId>
25-
<version>2.20.128</version>
25+
<version>2.20.129</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-lite-maven-plugin</artifactId>

codegen-lite/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.20.128</version>
24+
<version>2.20.129</version>
2525
</parent>
2626
<artifactId>codegen-lite</artifactId>
2727
<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.20.128</version>
25+
<version>2.20.129</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.20.128</version>
24+
<version>2.20.129</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

codegen/src/main/java/software/amazon/awssdk/codegen/IntermediateModelBuilder.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,16 @@ private void setSimpleMethods(IntermediateModel model) {
253253
} else {
254254
inputShape.setSimpleMethod(false);
255255

256-
boolean methodIsNotBlacklisted = !config.getBlacklistedSimpleMethods().contains(methodName) ||
257-
config.getBlacklistedSimpleMethods().stream().noneMatch(m -> m.equals("*"));
256+
boolean methodIsNotExcluded = !config.getExcludedSimpleMethods().contains(methodName) ||
257+
config.getExcludedSimpleMethods().stream().noneMatch(m -> m.equals("*")) ||
258+
!config.getBlacklistedSimpleMethods().contains(methodName) ||
259+
config.getBlacklistedSimpleMethods().stream().noneMatch(m -> m.equals("*"));
258260
boolean methodHasNoRequiredMembers = !CollectionUtils.isNullOrEmpty(inputShape.getRequired());
259261
boolean methodIsNotStreaming = !operation.isStreaming();
260262
boolean methodHasSimpleMethodVerb = methodName.matches(Constant.APPROVED_SIMPLE_METHOD_VERBS);
261263

262-
if (methodIsNotBlacklisted && methodHasNoRequiredMembers && methodIsNotStreaming && methodHasSimpleMethodVerb) {
263-
log.warn("A potential simple method exists that isn't whitelisted or blacklisted: " + methodName);
264+
if (methodIsNotExcluded && methodHasNoRequiredMembers && methodIsNotStreaming && methodHasSimpleMethodVerb) {
265+
log.warn("A potential simple method exists that isn't explicitly excluded or included: " + methodName);
264266
}
265267
}
266268
});

codegen/src/main/java/software/amazon/awssdk/codegen/docs/OperationDocProvider.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import static software.amazon.awssdk.codegen.internal.DocumentationUtils.createLinkToServiceDocumentation;
1919
import static software.amazon.awssdk.codegen.internal.DocumentationUtils.stripHtmlTags;
2020

21+
import com.squareup.javapoet.ClassName;
2122
import java.util.Collections;
2223
import java.util.List;
2324
import java.util.stream.Collectors;
@@ -171,10 +172,13 @@ final List<Pair<String, String>> getThrows() {
171172
final void emitRequestParm(DocumentationBuilder docBuilder) {
172173
String parameterDocs = stripHtmlTags(opModel.getInput().getDocumentation());
173174

175+
String shapeName = opModel.getInputShape().getShapeName();
176+
ClassName fcqn = ClassName.get(model.getMetadata().getFullModelPackageName(), shapeName);
177+
174178
if (config.isConsumerBuilder()) {
175179
docBuilder.param(opModel.getInput().getVariableName(),
176180
"A {@link Consumer} that will call methods on {@link %s.Builder} to create a request. %s",
177-
opModel.getInputShape().getC2jName(),
181+
fcqn.toString(),
178182
parameterDocs);
179183
} else {
180184
docBuilder.param(opModel.getInput().getVariableName(), parameterDocs);

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ public class CustomizationConfig {
103103
/**
104104
* APIs that have no required arguments in their model but can't be called via a simple method
105105
*/
106+
private List<String> excludedSimpleMethods = new ArrayList<>();
107+
108+
/**
109+
* APIs that have no required arguments in their model but can't be called via a simple method.
110+
* Superseded by {@link #excludedSimpleMethods}
111+
*/
112+
@Deprecated
106113
private List<String> blacklistedSimpleMethods = new ArrayList<>();
107114

108115
/**
@@ -373,10 +380,26 @@ public void setServiceSpecificHttpConfig(String serviceSpecificHttpConfig) {
373380
this.serviceSpecificHttpConfig = serviceSpecificHttpConfig;
374381
}
375382

383+
public List<String> getExcludedSimpleMethods() {
384+
return excludedSimpleMethods;
385+
}
386+
387+
public void setExcludedSimpleMethods(List<String> excludedSimpleMethods) {
388+
this.excludedSimpleMethods = excludedSimpleMethods;
389+
}
390+
391+
/**
392+
* Use {@link #getExcludedSimpleMethods()}
393+
*/
394+
@Deprecated
376395
public List<String> getBlacklistedSimpleMethods() {
377396
return blacklistedSimpleMethods;
378397
}
379398

399+
/**
400+
* Use {@link #setExcludedSimpleMethods(List)}
401+
*/
402+
@Deprecated
380403
public void setBlacklistedSimpleMethods(List<String> blackListedSimpleMethods) {
381404
this.blacklistedSimpleMethods = blackListedSimpleMethods;
382405
}

codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/c2j/json/customization.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"customRetryPolicy": "software.amazon.MyServiceRetryPolicy",
1313
"verifiedSimpleMethods" : ["paginatedOperationWithResultKey"],
14-
"blacklistedSimpleMethods" : [
14+
"excludedSimpleMethods" : [
1515
"eventStreamOperation"
1616
],
1717
"utilitiesMethod": {

codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/c2j/rest-json/customization.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"customRetryPolicy": "software.amazon.MyServiceRetryPolicy",
1717
"verifiedSimpleMethods" : ["paginatedOperationWithResultKey"],
18-
"blacklistedSimpleMethods" : [
18+
"excludedSimpleMethods" : [
1919
"eventStreamOperation"
2020
],
2121
"utilitiesMethod": {

0 commit comments

Comments
 (0)