Skip to content

Commit bc1aad3

Browse files
Merge pull request #2295 from aws/staging/428d25ce-5ae9-4bda-ac92-4ecbea6dd355
Pull request: release <- staging/428d25ce-5ae9-4bda-ac92-4ecbea6dd355
2 parents 46f9321 + 14c47d5 commit bc1aad3

File tree

465 files changed

+2588
-1216
lines changed

Some content is hidden

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

465 files changed

+2588
-1216
lines changed

.changes/2.19.0.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"version": "2.19.0",
3+
"date": "2022-12-19",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "AWS SDK for Java v2",
8+
"contributor": "",
9+
"description": "Include the raw `partitions.json` data as a string within `DefaultPartitionDataProvider` so it doesn't need to be loaded at runtime as a classpath resource."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "Amazon Athena",
14+
"contributor": "",
15+
"description": "Add missed InvalidRequestException in GetCalculationExecutionCode,StopCalculationExecution APIs. Correct required parameters (Payload and Type) in UpdateNotebook API. Change Notebook size from 15 Mb to 10 Mb."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon EC2 Container Service",
20+
"contributor": "",
21+
"description": "This release adds support for alarm-based rollbacks in ECS, a new feature that allows customers to add automated safeguards for Amazon ECS service rolling updates."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon Kinesis Video Streams",
26+
"contributor": "",
27+
"description": "Amazon Kinesis Video Streams offers capabilities to stream video and audio in real-time via WebRTC to the cloud for storage, playback, and analytical processing. Customers can use our enhanced WebRTC SDK and cloud APIs to enable real-time streaming, as well as media ingestion to the cloud."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon Kinesis Video WebRTC Storage",
32+
"contributor": "",
33+
"description": "Amazon Kinesis Video Streams offers capabilities to stream video and audio in real-time via WebRTC to the cloud for storage, playback, and analytical processing. Customers can use our enhanced WebRTC SDK and cloud APIs to enable real-time streaming, as well as media ingestion to the cloud."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "Amazon Relational Database Service",
38+
"contributor": "",
39+
"description": "Add support for --enable-customer-owned-ip to RDS create-db-instance-read-replica API for RDS on Outposts."
40+
},
41+
{
42+
"type": "feature",
43+
"category": "Amazon S3 Transfer Manager",
44+
"contributor": "",
45+
"description": "The Amazon S3 Transfer Manager is now generally available. Visit [Dev Guide](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/transfer-manager.html) for more information,"
46+
},
47+
{
48+
"type": "feature",
49+
"category": "Amazon SageMaker Service",
50+
"contributor": "",
51+
"description": "AWS Sagemaker - Sagemaker Images now supports Aliases as secondary identifiers for ImageVersions. SageMaker Images now supports additional metadata for ImageVersions for better images management."
52+
},
53+
{
54+
"type": "feature",
55+
"category": "AWS SDK for Java v2",
56+
"contributor": "",
57+
"description": "Updated endpoint and partition metadata."
58+
}
59+
]
60+
}

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
# __2.19.0__ __2022-12-19__
2+
## __AWS SDK for Java v2__
3+
- ### Features
4+
- Updated endpoint and partition metadata.
5+
6+
- ### Bugfixes
7+
- Include the raw `partitions.json` data as a string within `DefaultPartitionDataProvider` so it doesn't need to be loaded at runtime as a classpath resource.
8+
9+
## __Amazon Athena__
10+
- ### Features
11+
- Add missed InvalidRequestException in GetCalculationExecutionCode,StopCalculationExecution APIs. Correct required parameters (Payload and Type) in UpdateNotebook API. Change Notebook size from 15 Mb to 10 Mb.
12+
13+
## __Amazon EC2 Container Service__
14+
- ### Features
15+
- This release adds support for alarm-based rollbacks in ECS, a new feature that allows customers to add automated safeguards for Amazon ECS service rolling updates.
16+
17+
## __Amazon Kinesis Video Streams__
18+
- ### Features
19+
- Amazon Kinesis Video Streams offers capabilities to stream video and audio in real-time via WebRTC to the cloud for storage, playback, and analytical processing. Customers can use our enhanced WebRTC SDK and cloud APIs to enable real-time streaming, as well as media ingestion to the cloud.
20+
21+
## __Amazon Kinesis Video WebRTC Storage__
22+
- ### Features
23+
- Amazon Kinesis Video Streams offers capabilities to stream video and audio in real-time via WebRTC to the cloud for storage, playback, and analytical processing. Customers can use our enhanced WebRTC SDK and cloud APIs to enable real-time streaming, as well as media ingestion to the cloud.
24+
25+
## __Amazon Relational Database Service__
26+
- ### Features
27+
- Add support for --enable-customer-owned-ip to RDS create-db-instance-read-replica API for RDS on Outposts.
28+
29+
## __Amazon S3 Transfer Manager__
30+
- ### Features
31+
- The Amazon S3 Transfer Manager is now generally available. Visit [Dev Guide](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/transfer-manager.html) for more information,
32+
33+
## __Amazon SageMaker Service__
34+
- ### Features
35+
- AWS Sagemaker - Sagemaker Images now supports Aliases as secondary identifiers for ImageVersions. SageMaker Images now supports additional metadata for ImageVersions for better images management.
36+
137
# __2.18.41__ __2022-12-16__
238
## __AWS DataSync__
339
- ### 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.18.41</version>
55+
<version>2.19.0</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.18.41</version>
89+
<version>2.19.0</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.18.41</version>
94+
<version>2.19.0</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.18.41</version>
106+
<version>2.19.0</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.18.41</version>
23+
<version>2.19.0</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.18.41</version>
23+
<version>2.19.0</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.18.41</version>
23+
<version>2.19.0</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.18.41</version>
23+
<version>2.19.0</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetypes</artifactId>

aws-sdk-java/pom.xml

Lines changed: 6 additions & 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.18.41</version>
20+
<version>2.19.0</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>aws-sdk-java</artifactId>
@@ -1683,6 +1683,11 @@ Amazon AutoScaling, etc).</description>
16831683
<artifactId>sagemakermetrics</artifactId>
16841684
<version>${awsjavasdk.version}</version>
16851685
</dependency>
1686+
<dependency>
1687+
<groupId>software.amazon.awssdk</groupId>
1688+
<artifactId>kinesisvideowebrtcstorage</artifactId>
1689+
<version>${awsjavasdk.version}</version>
1690+
</dependency>
16861691
</dependencies>
16871692
<build>
16881693
<finalName>${project.artifactId}-${project.version}</finalName>

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.18.41</version>
23+
<version>2.19.0</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

bom/pom.xml

Lines changed: 6 additions & 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.18.41</version>
20+
<version>2.19.0</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>
@@ -1823,6 +1823,11 @@
18231823
<artifactId>sagemakermetrics</artifactId>
18241824
<version>${awsjavasdk.version}</version>
18251825
</dependency>
1826+
<dependency>
1827+
<groupId>software.amazon.awssdk</groupId>
1828+
<artifactId>kinesisvideowebrtcstorage</artifactId>
1829+
<version>${awsjavasdk.version}</version>
1830+
</dependency>
18261831
</dependencies>
18271832
</dependencyManagement>
18281833
</project>

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.18.41</version>
24+
<version>2.19.0</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.18.41</version>
25+
<version>2.19.0</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.18.41</version>
24+
<version>2.19.0</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.18.41</version>
25+
<version>2.19.0</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-maven-plugin</artifactId>

codegen/pom.xml

Lines changed: 6 additions & 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.18.41</version>
24+
<version>2.19.0</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>
@@ -127,6 +127,11 @@
127127
<artifactId>ruleset-testing-core</artifactId>
128128
<version>${awsjavasdk.version}</version>
129129
</dependency>
130+
<dependency>
131+
<groupId>software.amazon.awssdk</groupId>
132+
<artifactId>json-utils</artifactId>
133+
<version>${awsjavasdk.version}</version>
134+
</dependency>
130135

131136
<dependency>
132137
<artifactId>org.eclipse.jdt.core</artifactId>

codegen/src/main/java/software/amazon/awssdk/codegen/emitters/tasks/EndpointProviderTasks.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import software.amazon.awssdk.codegen.model.config.customization.CustomizationConfig;
2727
import software.amazon.awssdk.codegen.model.service.ClientContextParam;
2828
import software.amazon.awssdk.codegen.poet.rules.ClientContextParamsClassSpec;
29+
import software.amazon.awssdk.codegen.poet.rules.DefaultPartitionDataProviderSpec;
2930
import software.amazon.awssdk.codegen.poet.rules.EndpointAuthSchemeInterceptorClassSpec;
3031
import software.amazon.awssdk.codegen.poet.rules.EndpointParametersClassSpec;
3132
import software.amazon.awssdk.codegen.poet.rules.EndpointProviderInterfaceSpec;
@@ -58,6 +59,7 @@ protected List<GeneratorTask> createTasks() throws Exception {
5859
tasks.add(generateClientContextParams());
5960
}
6061
tasks.add(new RulesEngineRuntimeGeneratorTask(generatorTaskParams));
62+
tasks.add(generateDefaultPartitionsProvider());
6163
return tasks;
6264
}
6365

@@ -73,6 +75,11 @@ private GeneratorTask generateDefaultProvider() {
7375
return new PoetGeneratorTask(endpointRulesInternalDir(), model.getFileHeader(), new EndpointProviderSpec(model));
7476
}
7577

78+
private GeneratorTask generateDefaultPartitionsProvider() {
79+
return new PoetGeneratorTask(endpointRulesInternalDir(), model.getFileHeader(),
80+
new DefaultPartitionDataProviderSpec(model));
81+
}
82+
7683
private Collection<GeneratorTask> generateInterceptors() {
7784
return Arrays.asList(
7885
new PoetGeneratorTask(endpointRulesInternalDir(), model.getFileHeader(), new EndpointResolverInterceptorSpec(model)),

codegen/src/main/java/software/amazon/awssdk/codegen/emitters/tasks/RulesEngineRuntimeGeneratorTask.java

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@
1818
import java.io.IOException;
1919
import java.io.InputStream;
2020
import java.io.UncheckedIOException;
21-
import java.net.URL;
2221
import java.util.ArrayList;
2322
import java.util.Collection;
2423
import java.util.List;
25-
import java.util.jar.JarFile;
2624
import java.util.stream.Collectors;
27-
import java.util.zip.ZipEntry;
2825
import software.amazon.awssdk.codegen.emitters.GeneratorTask;
2926
import software.amazon.awssdk.codegen.emitters.GeneratorTaskParams;
3027
import software.amazon.awssdk.codegen.emitters.SimpleGeneratorTask;
28+
import software.amazon.awssdk.codegen.poet.rules.EndpointRulesSpecUtils;
3129
import software.amazon.awssdk.utils.IoUtils;
3230
import software.amazon.awssdk.utils.StringUtils;
3331
import software.amazon.awssdk.utils.Validate;
@@ -39,20 +37,22 @@ public final class RulesEngineRuntimeGeneratorTask extends BaseGeneratorTasks {
3937
private final String engineInternalResourcesDir;
4038
private final String engineInternalPackageName;
4139
private final String fileHeader;
40+
private final EndpointRulesSpecUtils endpointRulesSpecUtils;
4241

4342
public RulesEngineRuntimeGeneratorTask(GeneratorTaskParams generatorTaskParams) {
4443
super(generatorTaskParams);
4544
this.engineInternalClassDir = generatorTaskParams.getPathProvider().getEndpointRulesInternalDirectory();
4645
this.engineInternalResourcesDir = generatorTaskParams.getPathProvider().getEndpointRulesInternalResourcesDirectory();
4746
this.engineInternalPackageName = generatorTaskParams.getModel().getMetadata().getFullInternalEndpointRulesPackageName();
4847
this.fileHeader = generatorTaskParams.getModel().getFileHeader();
48+
this.endpointRulesSpecUtils = new EndpointRulesSpecUtils(generatorTaskParams.getModel());
4949
}
5050

5151
@Override
5252
protected List<GeneratorTask> createTasks() throws Exception {
5353
List<GeneratorTask> copyTasks = new ArrayList<>();
5454

55-
List<String> rulesEngineFiles = rulesEngineResourceFiles();
55+
List<String> rulesEngineFiles = endpointRulesSpecUtils.rulesEngineResourceFiles();
5656

5757
for (String path : rulesEngineJavaFilePaths(rulesEngineFiles)) {
5858
String newFileName = computeNewName(path);
@@ -62,15 +62,6 @@ protected List<GeneratorTask> createTasks() throws Exception {
6262
() -> rulesEngineFileContent("/" + path)));
6363
}
6464

65-
for (String path : rulesEngineJsonFilePaths(rulesEngineFiles)) {
66-
String newFileName = computeNewName(path);
67-
copyTasks.add(new SimpleGeneratorTask(engineInternalResourcesDir,
68-
newFileName,
69-
".json",
70-
"",
71-
() -> loadResourceAsString("/" + path)));
72-
}
73-
7465
return copyTasks;
7566
}
7667

@@ -80,23 +71,6 @@ private List<String> rulesEngineJavaFilePaths(Collection<String> runtimeEngineFi
8071
.collect(Collectors.toList());
8172
}
8273

83-
private List<String> rulesEngineJsonFilePaths(Collection<String> runtimeEngineFiles) {
84-
return runtimeEngineFiles.stream()
85-
.filter(e -> e.endsWith(".json.resource"))
86-
.collect(Collectors.toList());
87-
}
88-
89-
private List<String> rulesEngineResourceFiles() {
90-
URL currentJarUrl = RulesEngineRuntimeGeneratorTask.class.getProtectionDomain().getCodeSource().getLocation();
91-
try (JarFile jarFile = new JarFile(currentJarUrl.getFile())) {
92-
return jarFile.stream()
93-
.map(ZipEntry::getName)
94-
.filter(e -> e.startsWith("software/amazon/awssdk/codegen/rules"))
95-
.collect(Collectors.toList());
96-
} catch (IOException e) {
97-
throw new UncheckedIOException(e);
98-
}
99-
}
10074

10175
private String rulesEngineFileContent(String path) {
10276
return "package " + engineInternalPackageName + ";\n" +

0 commit comments

Comments
 (0)