Skip to content

Commit 4238d33

Browse files
authored
Merge pull request #2072 from dagnir/master-update
Merge waiters change to master
2 parents 1eb232b + acf00fc commit 4238d33

File tree

419 files changed

+12200
-530
lines changed

Some content is hidden

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

419 files changed

+12200
-530
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2",
4+
"description": "This release introduces Waiters for the AWS SDK for Java v2! Waiters make it easier for customers to wait for a resource to transition into a desired state. It comes handy when customers are interacting with operations that are eventually consistent on the service side. For more information on Waiters, head on over to the [AWS Developer Blog](https://aws.amazon.com/blogs/developer/category/developer-tools/aws-sdk-for-java/) and check out the [Developer Guide](http://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/welcome.html)."
5+
}

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.14.29-SNAPSHOT</version>
23+
<version>2.15.0-SNAPSHOT</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetype-lambda</artifactId>

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.14.29-SNAPSHOT</version>
23+
<version>2.15.0-SNAPSHOT</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.14.29-SNAPSHOT</version>
20+
<version>2.15.0-SNAPSHOT</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.14.29-SNAPSHOT</version>
23+
<version>2.15.0-SNAPSHOT</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.14.29-SNAPSHOT</version>
20+
<version>2.15.0-SNAPSHOT</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

build-tools/src/main/resources/software/amazon/awssdk/spotbugs-suppressions.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,11 @@
189189
</Not>
190190
</Match>
191191

192+
<Match>
193+
<Class name="software.amazon.awssdk.core.internal.waiters.ResponseOrException"/>
194+
<Bug pattern="NM_CLASS_NOT_EXCEPTION"/>
195+
</Match>
196+
192197
<Match>
193198
<Package name="~software.amazon.awssdk.http.*"/>
194199
<Bug pattern="URF_UNREAD_FIELD, RV_RETURN_VALUE_IGNORED"/>

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public static Metadata constructMetadata(ServiceModel serviceModel,
6868
.withTransformPackageName(namingStrategy.getTransformPackageName(serviceName))
6969
.withRequestTransformPackageName(namingStrategy.getRequestTransformPackageName(serviceName))
7070
.withPaginatorsPackageName(namingStrategy.getPaginatorsPackageName(serviceName))
71+
.withWaitersPackageName(namingStrategy.getWaitersPackageName(serviceName))
7172
.withServiceAbbreviation(serviceMetadata.getServiceAbbreviation())
7273
.withServiceFullName(serviceMetadata.getServiceFullName())
7374
.withServiceName(serviceName)

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import software.amazon.awssdk.codegen.model.service.Operation;
4343
import software.amazon.awssdk.codegen.model.service.Paginators;
4444
import software.amazon.awssdk.codegen.model.service.ServiceModel;
45+
import software.amazon.awssdk.codegen.model.service.Waiters;
4546
import software.amazon.awssdk.codegen.naming.DefaultNamingStrategy;
4647
import software.amazon.awssdk.codegen.naming.NamingStrategy;
4748
import software.amazon.awssdk.utils.CollectionUtils;
@@ -59,6 +60,7 @@ public class IntermediateModelBuilder {
5960
private final TypeUtils typeUtils;
6061
private final List<IntermediateModelShapeProcessor> shapeProcessors;
6162
private final Paginators paginators;
63+
private final Waiters waiters;
6264

6365
public IntermediateModelBuilder(C2jModels models) {
6466
this.customConfig = models.customizationConfig();
@@ -67,6 +69,7 @@ public IntermediateModelBuilder(C2jModels models) {
6769
this.typeUtils = new TypeUtils(namingStrategy);
6870
this.shapeProcessors = createShapeProcessors();
6971
this.paginators = models.paginatorsModel();
72+
this.waiters = models.waitersModel();
7073
}
7174

7275

@@ -130,7 +133,8 @@ public IntermediateModel build() {
130133

131134
IntermediateModel fullModel = new IntermediateModel(
132135
constructMetadata(service, customConfig), operations, shapes,
133-
customConfig, endpointOperation, authorizers, paginators.getPagination(), namingStrategy);
136+
customConfig, endpointOperation, authorizers, paginators.getPagination(), namingStrategy,
137+
waiters.getWaiters());
134138

135139
customization.postprocess(fullModel);
136140

@@ -149,7 +153,8 @@ public IntermediateModel build() {
149153
endpointOperation,
150154
fullModel.getCustomAuthorizers(),
151155
fullModel.getPaginators(),
152-
namingStrategy);
156+
namingStrategy,
157+
fullModel.getWaiters());
153158

154159
linkMembersToShapes(trimmedModel);
155160
linkOperationsToInputOutputShapes(trimmedModel);

0 commit comments

Comments
 (0)