Skip to content

Commit c60160f

Browse files
authored
Merge pull request #1112 from aws/staging/0e6dd94a-3bd9-40aa-a91e-77f3363cff76
Pull request: release <- staging/0e6dd94a-3bd9-40aa-a91e-77f3363cff76
2 parents 33d5835 + 6c23d6a commit c60160f

File tree

429 files changed

+15492
-3189
lines changed

Some content is hidden

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

429 files changed

+15492
-3189
lines changed

.changes/2.15.49.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"version": "2.15.49",
3+
"date": "2020-12-17",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS SDK for Java v2",
8+
"contributor": "",
9+
"description": "Updated service endpoint metadata."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "Amazon Route 53 Resolver",
14+
"contributor": "",
15+
"description": "Route 53 Resolver adds support for enabling resolver DNSSEC validation in virtual private cloud (VPC)."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS Config",
20+
"contributor": "",
21+
"description": "Adding PutExternalEvaluation API which grants permission to deliver evaluation result to AWS Config"
22+
},
23+
{
24+
"type": "feature",
25+
"category": "EC2 Image Builder",
26+
"contributor": "",
27+
"description": "This release adds support for building and distributing container images within EC2 Image Builder."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon Route 53",
32+
"contributor": "",
33+
"description": "This release adds support for DNSSEC signing in Amazon Route 53."
34+
},
35+
{
36+
"type": "bugfix",
37+
"category": "AWS SDK for Java v2",
38+
"contributor": "",
39+
"description": "This change fixes a bug in the code generation related to eventstreams that prevents multiple events to share the same shape."
40+
},
41+
{
42+
"type": "feature",
43+
"category": "AWS Service Catalog",
44+
"contributor": "",
45+
"description": "Support TagOptions sharing with Service Catalog portfolio sharing."
46+
},
47+
{
48+
"type": "feature",
49+
"category": "Amazon Elastic Compute Cloud",
50+
"contributor": "",
51+
"description": "C6gn instances are powered by AWS Graviton2 processors and offer 100 Gbps networking bandwidth. These instances deliver up to 40% better price-performance benefit versus comparable x86-based instances"
52+
},
53+
{
54+
"type": "feature",
55+
"category": "Amazon Data Lifecycle Manager",
56+
"contributor": "",
57+
"description": "Provide Cross-account copy event based policy support in DataLifecycleManager (DLM)"
58+
},
59+
{
60+
"type": "feature",
61+
"category": "Amazon Simple Queue Service",
62+
"contributor": "",
63+
"description": "Amazon SQS adds queue attributes to enable high throughput FIFO."
64+
},
65+
{
66+
"type": "feature",
67+
"category": "AWS Key Management Service",
68+
"contributor": "",
69+
"description": "Added CreationDate and LastUpdatedDate timestamps to ListAliases API response"
70+
}
71+
]
72+
}

CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
# __2.15.49__ __2020-12-17__
2+
## __AWS Config__
3+
- ### Features
4+
- Adding PutExternalEvaluation API which grants permission to deliver evaluation result to AWS Config
5+
6+
## __AWS Key Management Service__
7+
- ### Features
8+
- Added CreationDate and LastUpdatedDate timestamps to ListAliases API response
9+
10+
## __AWS SDK for Java v2__
11+
- ### Features
12+
- Updated service endpoint metadata.
13+
14+
- ### Bugfixes
15+
- This change fixes a bug in the code generation related to eventstreams that prevents multiple events to share the same shape.
16+
17+
## __AWS Service Catalog__
18+
- ### Features
19+
- Support TagOptions sharing with Service Catalog portfolio sharing.
20+
21+
## __Amazon Data Lifecycle Manager__
22+
- ### Features
23+
- Provide Cross-account copy event based policy support in DataLifecycleManager (DLM)
24+
25+
## __Amazon Elastic Compute Cloud__
26+
- ### Features
27+
- C6gn instances are powered by AWS Graviton2 processors and offer 100 Gbps networking bandwidth. These instances deliver up to 40% better price-performance benefit versus comparable x86-based instances
28+
29+
## __Amazon Route 53__
30+
- ### Features
31+
- This release adds support for DNSSEC signing in Amazon Route 53.
32+
33+
## __Amazon Route 53 Resolver__
34+
- ### Features
35+
- Route 53 Resolver adds support for enabling resolver DNSSEC validation in virtual private cloud (VPC).
36+
37+
## __Amazon Simple Queue Service__
38+
- ### Features
39+
- Amazon SQS adds queue attributes to enable high throughput FIFO.
40+
41+
## __EC2 Image Builder__
42+
- ### Features
43+
- This release adds support for building and distributing container images within EC2 Image Builder.
44+
145
# __2.15.48__ __2020-12-16__
246
## __AWS Cost Explorer Service__
347
- ### 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.48</version>
52+
<version>2.15.49</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.48</version>
86+
<version>2.15.49</version>
8787
</dependency>
8888
<dependency>
8989
<groupId>software.amazon.awssdk</groupId>
9090
<artifactId>s3</artifactId>
91-
<version>2.15.48</version>
91+
<version>2.15.49</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.48</version>
103+
<version>2.15.49</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.48</version>
23+
<version>2.15.49</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.48</version>
23+
<version>2.15.49</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.48</version>
20+
<version>2.15.49</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.48</version>
23+
<version>2.15.49</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.48</version>
20+
<version>2.15.49</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

buildspecs/release-javadoc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ phases:
2222
- aws s3 sync $DOC_PATH/$RELEASE_VERSION/ $DOC_PATH/latest/ --acl=public-read --delete
2323
- jar cf aws-java-sdk-v2-docs.jar -C target/site/apidocs .
2424
- aws s3 cp aws-java-sdk-v2-docs.jar $DOC_PATH/ --acl="public-read"
25+
- python ./scripts/doc_crosslinks/generate_cross_link_data.py --apiDefinitionsBasePath ./services/ --apiDefinitionsRelativeFilePath src/main/resources/codegen-resources/service-2.json --templateFilePath ./scripts/doc_crosslinks/crosslink_redirect.html --outputFilePath ./scripts/crosslink_redirect.html
26+
- aws s3 cp ./scripts/crosslink_redirect.html $DOC_PATH/latest/ --acl="public-read"

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.48</version>
24+
<version>2.15.49</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.48</version>
25+
<version>2.15.49</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.48</version>
24+
<version>2.15.49</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.48</version>
25+
<version>2.15.49</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.48</version>
24+
<version>2.15.49</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/DefaultCustomizationProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public static CodegenCustomizationProcessor getProcessorFor(
3333
new ShapeModifiersProcessor(config.getShapeModifiers()),
3434
new ShapeSubstitutionsProcessor(config.getShapeSubstitutions()),
3535
new OperationModifiersProcessor(config.getOperationModifiers()),
36-
new RemoveExceptionMessagePropertyProcessor()
36+
new RemoveExceptionMessagePropertyProcessor(),
37+
new UseLegacyEventGenerationSchemeProcessor(),
38+
new NewAndLegacyEventStreamProcessor()
3739
);
3840
}
3941
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
/*
2+
* Copyright 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.codegen.customization.processors;
17+
18+
import java.util.Arrays;
19+
import java.util.Collections;
20+
import java.util.HashMap;
21+
import java.util.HashSet;
22+
import java.util.Map;
23+
import java.util.Set;
24+
import software.amazon.awssdk.codegen.customization.CodegenCustomizationProcessor;
25+
import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;
26+
import software.amazon.awssdk.codegen.model.service.ServiceModel;
27+
28+
/**
29+
* Services that have "legacy" streams, Kinesis and Transcribe Streaming builds should fail if there is a new
30+
* evenstream added, that codegen doesn't know about. This is so we can decide if we want to generate the new stream in
31+
* the legacy style so they look like the existing streams, or if we use the new style (e.g. because it won't work with
32+
* the old style).
33+
*/
34+
public final class NewAndLegacyEventStreamProcessor implements CodegenCustomizationProcessor {
35+
// Map from service ID -> list of event streams we know about and approve
36+
private static final Map<String, Set<String>> APPROVED_EVENT_STREAMS;
37+
38+
static {
39+
Map<String, Set<String>> approvedEventStreams = new HashMap<>();
40+
41+
approvedEventStreams.put("Kinesis", new HashSet<>(Arrays.asList("SubscribeToShardEventStream")));
42+
approvedEventStreams.put("Transcribe Streaming",
43+
new HashSet<>(Arrays.asList("AudioStream", "TranscriptResultStream", "MedicalTranscriptResultStream")));
44+
45+
APPROVED_EVENT_STREAMS = Collections.unmodifiableMap(approvedEventStreams);
46+
}
47+
48+
49+
@Override
50+
public void preprocess(ServiceModel serviceModel) {
51+
String serviceId = serviceModel.getMetadata().getServiceId();
52+
if (!APPROVED_EVENT_STREAMS.containsKey(serviceId)) {
53+
return;
54+
}
55+
56+
Set<String> approvedStreams = APPROVED_EVENT_STREAMS.get(serviceId);
57+
58+
serviceModel.getShapes().entrySet().stream()
59+
.filter(e -> e.getValue().isEventstream())
60+
.forEach(e -> {
61+
String name = e.getKey();
62+
if (!approvedStreams.contains(name)) {
63+
throw unknownStreamError(serviceId, name);
64+
}
65+
});
66+
}
67+
68+
@Override
69+
public void postprocess(IntermediateModel intermediateModel) {
70+
// no-op
71+
}
72+
73+
private static RuntimeException unknownStreamError(String serviceId, String evenstreamName) {
74+
String msg = String.format("Encountered a new eventstream for service %s: %s. This service contains " +
75+
"evenstreams that are code generated using an older style that requires a customization. Please " +
76+
"contact the Java SDK maintainers for assistance.", serviceId, evenstreamName);
77+
78+
return new RuntimeException(msg);
79+
}
80+
}

0 commit comments

Comments
 (0)