Skip to content

Commit e37580f

Browse files
Merge pull request #1132 from aws/staging/e1f69a7c-1276-4d03-9ce2-6f3f5c07ff95
Pull request: release <- staging/e1f69a7c-1276-4d03-9ce2-6f3f5c07ff95
2 parents b2393a5 + d890372 commit e37580f

File tree

312 files changed

+533
-320
lines changed

Some content is hidden

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

312 files changed

+533
-320
lines changed

.changes/2.15.57.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"version": "2.15.57",
3+
"date": "2020-12-31",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Service Catalog",
8+
"contributor": "",
9+
"description": "Enhanced Service Catalog DescribeProvisioningParameters API to return new parameter constraints, i.e., MinLength, MaxLength, MinValue, MaxValue, ConstraintDescription and AllowedPattern"
10+
}
11+
]
12+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# __2.15.57__ __2020-12-31__
2+
## __AWS Service Catalog__
3+
- ### Features
4+
- Enhanced Service Catalog DescribeProvisioningParameters API to return new parameter constraints, i.e., MinLength, MaxLength, MinValue, MaxValue, ConstraintDescription and AllowedPattern
5+
16
# __2.15.56__ __2020-12-30__
27
## __AWS SDK for Java v2__
38
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To automatically manage module versions (currently all modules have the same ver
4949
<dependency>
5050
<groupId>software.amazon.awssdk</groupId>
5151
<artifactId>bom</artifactId>
52-
<version>2.15.56</version>
52+
<version>2.15.57</version>
5353
<type>pom</type>
5454
<scope>import</scope>
5555
</dependency>
@@ -83,12 +83,12 @@ Alternatively you can add dependencies for the specific services you use only:
8383
<dependency>
8484
<groupId>software.amazon.awssdk</groupId>
8585
<artifactId>ec2</artifactId>
86-
<version>2.15.56</version>
86+
<version>2.15.57</version>
8787
</dependency>
8888
<dependency>
8989
<groupId>software.amazon.awssdk</groupId>
9090
<artifactId>s3</artifactId>
91-
<version>2.15.56</version>
91+
<version>2.15.57</version>
9292
</dependency>
9393
```
9494

@@ -100,7 +100,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
100100
<dependency>
101101
<groupId>software.amazon.awssdk</groupId>
102102
<artifactId>aws-sdk-java</artifactId>
103-
<version>2.15.56</version>
103+
<version>2.15.57</version>
104104
</dependency>
105105
```
106106

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.15.56</version>
23+
<version>2.15.57</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.15.56</version>
23+
<version>2.15.57</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.15.56</version>
20+
<version>2.15.57</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.15.56</version>
23+
<version>2.15.57</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.15.56</version>
20+
<version>2.15.57</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.15.56</version>
24+
<version>2.15.57</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.15.56</version>
25+
<version>2.15.57</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.15.56</version>
24+
<version>2.15.57</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.15.56</version>
25+
<version>2.15.57</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.15.56</version>
24+
<version>2.15.57</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

codegen/src/main/java/software/amazon/awssdk/codegen/poet/client/AsyncClientClass.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import software.amazon.awssdk.codegen.emitters.GeneratorTaskParams;
5353
import software.amazon.awssdk.codegen.model.config.customization.UtilitiesMethod;
5454
import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;
55+
import software.amazon.awssdk.codegen.model.intermediate.MemberModel;
5556
import software.amazon.awssdk.codegen.model.intermediate.OperationModel;
5657
import software.amazon.awssdk.codegen.model.intermediate.ShapeModel;
5758
import software.amazon.awssdk.codegen.model.service.AuthType;
@@ -60,6 +61,7 @@
6061
import software.amazon.awssdk.codegen.poet.StaticImport;
6162
import software.amazon.awssdk.codegen.poet.client.specs.ProtocolSpec;
6263
import software.amazon.awssdk.codegen.poet.eventstream.EventStreamUtils;
64+
import software.amazon.awssdk.codegen.poet.model.EventStreamSpecHelper;
6365
import software.amazon.awssdk.core.RequestOverrideConfiguration;
6466
import software.amazon.awssdk.core.async.SdkPublisher;
6567
import software.amazon.awssdk.core.client.config.SdkAdvancedAsyncClientOption;
@@ -358,16 +360,17 @@ private CodeBlock eventToByteBufferPublisher(OperationModel opModel) {
358360
}
359361

360362
private CodeBlock createEventStreamTaggedUnionJsonMarshaller(ShapeModel eventStreamShape) {
363+
EventStreamSpecHelper specHelper = new EventStreamSpecHelper(eventStreamShape, model);
364+
361365
CodeBlock.Builder builder = CodeBlock.builder().add("$1T eventMarshaller = $1T.builder()",
362366
EventStreamTaggedUnionJsonMarshaller.class);
363367

364-
List<String> eventNames = EventStreamUtils.getEventMembers(eventStreamShape)
365-
.map(m -> m.getShape().getShapeName())
368+
List<MemberModel> eventMembers = EventStreamUtils.getEventMembers(eventStreamShape)
366369
.collect(Collectors.toList());
367370

368-
eventNames.forEach(event -> builder.add(".putMarshaller($T.class, new $T(protocolFactory))",
369-
poetExtensions.getModelClass(event),
370-
poetExtensions.getTransformClass(event + "Marshaller")));
371+
eventMembers.forEach(event -> builder.add(".putMarshaller($T.class, new $T(protocolFactory))",
372+
specHelper.eventClassName(event),
373+
poetExtensions.getTransformClass(event.getShape() + "Marshaller")));
371374

372375
builder.add(".build();");
373376
return builder.build();

codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/test-async-client-class.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@
6868
import software.amazon.awssdk.services.json.model.EventStreamOperationWithOnlyOutputResponseHandler;
6969
import software.amazon.awssdk.services.json.model.GetWithoutRequiredMembersRequest;
7070
import software.amazon.awssdk.services.json.model.GetWithoutRequiredMembersResponse;
71-
import software.amazon.awssdk.services.json.model.InputEvent;
7271
import software.amazon.awssdk.services.json.model.InputEventStream;
7372
import software.amazon.awssdk.services.json.model.InputEventStreamTwo;
74-
import software.amazon.awssdk.services.json.model.InputEventTwo;
7573
import software.amazon.awssdk.services.json.model.InvalidInputException;
7674
import software.amazon.awssdk.services.json.model.JsonException;
7775
import software.amazon.awssdk.services.json.model.JsonRequest;
@@ -87,6 +85,9 @@
8785
import software.amazon.awssdk.services.json.model.StreamingInputOutputOperationResponse;
8886
import software.amazon.awssdk.services.json.model.StreamingOutputOperationRequest;
8987
import software.amazon.awssdk.services.json.model.StreamingOutputOperationResponse;
88+
import software.amazon.awssdk.services.json.model.inputeventstream.DefaultInputEvent;
89+
import software.amazon.awssdk.services.json.model.inputeventstreamtwo.DefaultInputEventOne;
90+
import software.amazon.awssdk.services.json.model.inputeventstreamtwo.DefaultInputEventTwo;
9091
import software.amazon.awssdk.services.json.paginators.PaginatedOperationWithResultKeyPublisher;
9192
import software.amazon.awssdk.services.json.paginators.PaginatedOperationWithoutResultKeyPublisher;
9293
import software.amazon.awssdk.services.json.transform.APostOperationRequestMarshaller;
@@ -311,7 +312,7 @@ public CompletableFuture<Void> eventStreamOperation(EventStreamOperationRequest
311312
HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
312313
operationMetadata);
313314
EventStreamTaggedUnionJsonMarshaller eventMarshaller = EventStreamTaggedUnionJsonMarshaller.builder()
314-
.putMarshaller(InputEvent.class, new InputEventMarshaller(protocolFactory)).build();
315+
.putMarshaller(DefaultInputEvent.class, new InputEventMarshaller(protocolFactory)).build();
315316
SdkPublisher<InputEventStream> eventPublisher = SdkPublisher.adapt(requestStream);
316317
Publisher<ByteBuffer> adapted = eventPublisher.map(event -> eventMarshaller.marshall(event)).map(
317318
AwsClientHandlerUtils::encodeEventStreamRequestToByteBuffer);
@@ -398,8 +399,8 @@ public CompletableFuture<EventStreamOperationWithOnlyInputResponse> eventStreamO
398399
HttpResponseHandler<AwsServiceException> errorResponseHandler = createErrorResponseHandler(protocolFactory,
399400
operationMetadata);
400401
EventStreamTaggedUnionJsonMarshaller eventMarshaller = EventStreamTaggedUnionJsonMarshaller.builder()
401-
.putMarshaller(InputEvent.class, new InputEventMarshaller(protocolFactory))
402-
.putMarshaller(InputEventTwo.class, new InputEventTwoMarshaller(protocolFactory)).build();
402+
.putMarshaller(DefaultInputEventOne.class, new InputEventMarshaller(protocolFactory))
403+
.putMarshaller(DefaultInputEventTwo.class, new InputEventTwoMarshaller(protocolFactory)).build();
403404
SdkPublisher<InputEventStreamTwo> eventPublisher = SdkPublisher.adapt(requestStream);
404405
Publisher<ByteBuffer> adapted = eventPublisher.map(event -> eventMarshaller.marshall(event)).map(
405406
AwsClientHandlerUtils::encodeEventStreamRequestToByteBuffer);

core/annotations/pom.xml

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

core/arns/pom.xml

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

core/auth/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.15.56</version>
25+
<version>2.15.57</version>
2626
</parent>
2727

2828
<artifactId>auth</artifactId>

core/aws-core/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.15.56</version>
25+
<version>2.15.57</version>
2626
</parent>
2727

2828
<artifactId>aws-core</artifactId>

core/metrics-spi/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.15.56</version>
8+
<version>2.15.57</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

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.15.56</version>
24+
<version>2.15.57</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.15.56</version>
25+
<version>2.15.57</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
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>protocols</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.15.56</version>
23+
<version>2.15.57</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

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

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

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

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

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

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

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

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

core/protocols/pom.xml

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

core/protocols/protocol-core/pom.xml

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

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

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.15.56</version>
24+
<version>2.15.57</version>
2525
</parent>
2626

2727
<artifactId>apache-client</artifactId>

http-clients/aws-crt-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.15.56</version>
24+
<version>2.15.57</version>
2525
</parent>
2626
<modelVersion>4.0.0</modelVersion>
2727

0 commit comments

Comments
 (0)