Skip to content

Commit 7a85f88

Browse files
Merge pull request #3703 from aws/staging/fb210532-8b2d-4336-a5f9-bd387212cb4c
Pull request: release <- staging/fb210532-8b2d-4336-a5f9-bd387212cb4c
2 parents 984750f + a894373 commit 7a85f88

File tree

527 files changed

+2495
-1463
lines changed

Some content is hidden

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

527 files changed

+2495
-1463
lines changed

.all-contributorsrc

+18
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,24 @@
10211021
"contributions": [
10221022
"code"
10231023
]
1024+
},
1025+
{
1026+
"login": "S-Saranya1",
1027+
"name": "Saranya Somepalli",
1028+
"avatar_url": "https://avatars.githubusercontent.com/u/196712423?v=4",
1029+
"profile": "https://github.com/S-Saranya1",
1030+
"contributions": [
1031+
"code"
1032+
]
1033+
},
1034+
{
1035+
"login": "RanVaknin",
1036+
"name": "Ran Vaknin",
1037+
"avatar_url": "https://avatars.githubusercontent.com/u/50976344?v=4",
1038+
"profile": "https://github.com/RanVaknin",
1039+
"contributions": [
1040+
"code"
1041+
]
10241042
}
10251043
],
10261044
"contributorsPerLine": 7,

.changes/2.30.32.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"version": "2.30.32",
3+
"date": "2025-03-03",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "AWS SDK for Java v2",
8+
"contributor": "",
9+
"description": "Improving codegen error message when shapes have lowercased names."
10+
},
11+
{
12+
"type": "bugfix",
13+
"category": "Amazon DynamoDB Enhanced Client",
14+
"contributor": "",
15+
"description": "Fixed DynamoDbEnhancedClient TableSchema::itemToMap to return a map that contains a consistent representation of null top-level (non-flattened) attributes and flattened attributes when their enclosing member is null and ignoreNulls is set to false."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon Cognito Identity Provider",
20+
"contributor": "",
21+
"description": "Added the capacity to return available challenges in admin authentication and to set version 3 of the pre token generation event for M2M ATC."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon Elastic Compute Cloud",
26+
"contributor": "",
27+
"description": "Update the DescribeVpcs response"
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon SageMaker Service",
32+
"contributor": "",
33+
"description": "Add DomainId to CreateDomainResponse"
34+
},
35+
{
36+
"type": "feature",
37+
"category": "Amazon Transcribe Service",
38+
"contributor": "",
39+
"description": "Updating documentation for post call analytics job queueing."
40+
},
41+
{
42+
"type": "feature",
43+
"category": "CloudWatch RUM",
44+
"contributor": "",
45+
"description": "Add support for PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy to support resource based policies for AWS CloudWatch RUM"
46+
},
47+
{
48+
"type": "feature",
49+
"category": "QBusiness",
50+
"contributor": "",
51+
"description": "Adds support for the ingestion of audio and video files by Q Business, which can be configured with the mediaExtractionConfiguration parameter."
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

+40-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.30.32__ __2025-03-03__
3+
## __AWS SDK for Java v2__
4+
- ### Features
5+
- Updated endpoint and partition metadata.
6+
7+
- ### Bugfixes
8+
- Improving codegen error message when shapes have lowercased names.
9+
10+
## __Amazon Cognito Identity Provider__
11+
- ### Features
12+
- Added the capacity to return available challenges in admin authentication and to set version 3 of the pre token generation event for M2M ATC.
13+
14+
## __Amazon DynamoDB Enhanced Client__
15+
- ### Bugfixes
16+
- Fixed DynamoDbEnhancedClient TableSchema::itemToMap to return a map that contains a consistent representation of null top-level (non-flattened) attributes and flattened attributes when their enclosing member is null and ignoreNulls is set to false.
17+
18+
## __Amazon Elastic Compute Cloud__
19+
- ### Features
20+
- Update the DescribeVpcs response
21+
22+
## __Amazon SageMaker Service__
23+
- ### Features
24+
- Add DomainId to CreateDomainResponse
25+
26+
## __Amazon Transcribe Service__
27+
- ### Features
28+
- Updating documentation for post call analytics job queueing.
29+
30+
## __CloudWatch RUM__
31+
- ### Features
32+
- Add support for PutResourcePolicy, GetResourcePolicy and DeleteResourcePolicy to support resource based policies for AWS CloudWatch RUM
33+
34+
## __QBusiness__
35+
- ### Features
36+
- Adds support for the ingestion of audio and video files by Q Business, which can be configured with the mediaExtractionConfiguration parameter.
37+
238
# __2.30.31__ __2025-02-28__
339
## __AWS Database Migration Service__
440
- ### Features
@@ -24,6 +60,10 @@
2460
- ### Features
2561
- Adding licenses to EKS Anywhere Subscription operations response.
2662

63+
## __Amazon Simple Queue Service__
64+
- ### Bugfixes
65+
- Fixed memory leak in SqsBatch Manager: Resolved an issue where pendingResponses and pendingBatchResponses collections in RequestBatchManager retained references to completed futures, causing memory accumulation over time.
66+
2767
## __Amazon Simple Systems Manager (SSM)__
2868
- ### Features
2969
- Systems Manager doc-only updates for Feb. 2025.
@@ -36,10 +76,6 @@
3676
- ### Features
3777
- Added a mandatory parameter DataAutomationProfileArn to support for cross region inference for InvokeDataAutomationAsync API. Renamed DataAutomationArn to DataAutomationProjectArn. Added APIs to support tagging.
3878

39-
## __Amazon Simple Queue Service__
40-
- ### Bugfixes
41-
- Fixed memory leak in SqsBatchManager: Resolved an issue where pendingResponses and pendingBatchResponses collections in RequestBatchManager retained references to completed futures, causing memory accumulation over time.
42-
4379
# __2.30.30__ __2025-02-27__
4480
## __AWS SDK for Java v2__
4581
- ### Features

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Maven](https://img.shields.io/maven-central/v/software.amazon.awssdk/s3.svg?label=Maven)](https://search.maven.org/search?q=g:%22software.amazon.awssdk%22%20AND%20a:%22s3%22)
44
[![codecov](https://codecov.io/gh/aws/aws-sdk-java-v2/branch/master/graph/badge.svg)](https://codecov.io/gh/aws/aws-sdk-java-v2)
55
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
6-
[![All Contributors](https://img.shields.io/badge/all_contributors-112-orange.svg?style=flat-square)](#contributors-)
6+
[![All Contributors](https://img.shields.io/badge/all_contributors-114-orange.svg?style=flat-square)](#contributors-)
77
<!-- ALL-CONTRIBUTORS-BADGE:END -->
88

99
The **AWS SDK for Java 2.0** is a rewrite of 1.0 with some great new features. As with version 1.0,
@@ -51,7 +51,7 @@ To automatically manage module versions (currently all modules have the same ver
5151
<dependency>
5252
<groupId>software.amazon.awssdk</groupId>
5353
<artifactId>bom</artifactId>
54-
<version>2.30.31</version>
54+
<version>2.30.32</version>
5555
<type>pom</type>
5656
<scope>import</scope>
5757
</dependency>
@@ -85,12 +85,12 @@ Alternatively you can add dependencies for the specific services you use only:
8585
<dependency>
8686
<groupId>software.amazon.awssdk</groupId>
8787
<artifactId>ec2</artifactId>
88-
<version>2.30.31</version>
88+
<version>2.30.32</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>software.amazon.awssdk</groupId>
9292
<artifactId>s3</artifactId>
93-
<version>2.30.31</version>
93+
<version>2.30.32</version>
9494
</dependency>
9595
```
9696

@@ -102,7 +102,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
102102
<dependency>
103103
<groupId>software.amazon.awssdk</groupId>
104104
<artifactId>aws-sdk-java</artifactId>
105-
<version>2.30.31</version>
105+
<version>2.30.32</version>
106106
</dependency>
107107
```
108108

@@ -333,7 +333,11 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
333333
<td align="center" valign="top" width="14.28%"><a href="https://github.com/chaykin"><img src="https://avatars.githubusercontent.com/u/2480265?v=4?s=100" width="100px;" alt="Kirill Chaykin"/><br /><sub><b>Kirill Chaykin</b></sub></a><br /><a href="https://github.com/aws/aws-sdk-java-v2/commits?author=chaykin" title="Code">💻</a></td>
334334
<td align="center" valign="top" width="14.28%"><a href="https://github.com/prateek-vats"><img src="https://avatars.githubusercontent.com/u/177409977?v=4?s=100" width="100px;" alt="prateek-vats"/><br /><sub><b>prateek-vats</b></sub></a><br /><a href="https://github.com/aws/aws-sdk-java-v2/commits?author=prateek-vats" title="Code">💻</a></td>
335335
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Fred1155"><img src="https://avatars.githubusercontent.com/u/49867651?v=4?s=100" width="100px;" alt="Bole1155"/><br /><sub><b>Bole1155</b></sub></a><br /><a href="https://github.com/aws/aws-sdk-java-v2/commits?author=Fred1155" title="Code">💻</a></td>
336+
</tr>
337+
<tr>
336338
<td align="center" valign="top" width="14.28%"><a href="https://xtansia.com"><img src="https://avatars.githubusercontent.com/u/1222964?v=4?s=100" width="100px;" alt="Thomas Farr"/><br /><sub><b>Thomas Farr</b></sub></a><br /><a href="https://github.com/aws/aws-sdk-java-v2/commits?author=Xtansia" title="Code">💻</a></td>
339+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/S-Saranya1"><img src="https://avatars.githubusercontent.com/u/196712423?v=4?s=100" width="100px;" alt="Saranya Somepalli"/><br /><sub><b>Saranya Somepalli</b></sub></a><br /><a href="https://github.com/aws/aws-sdk-java-v2/commits?author=S-Saranya1" title="Code">💻</a></td>
340+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/RanVaknin"><img src="https://avatars.githubusercontent.com/u/50976344?v=4?s=100" width="100px;" alt="Ran Vaknin"/><br /><sub><b>Ran Vaknin</b></sub></a><br /><a href="https://github.com/aws/aws-sdk-java-v2/commits?author=RanVaknin" title="Code">💻</a></td>
337341
</tr>
338342
</tbody>
339343
</table>

archetypes/archetype-app-quickstart/pom.xml

+1-1
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.30.31</version>
23+
<version>2.30.32</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

archetypes/archetype-lambda/pom.xml

+1-1
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.30.31</version>
23+
<version>2.30.32</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetype-lambda</artifactId>

archetypes/archetype-tools/pom.xml

+1-1
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.30.31</version>
23+
<version>2.30.32</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

archetypes/pom.xml

+1-1
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.30.31</version>
23+
<version>2.30.32</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<artifactId>archetypes</artifactId>

aws-sdk-java/pom.xml

+1-1
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.30.31</version>
20+
<version>2.30.32</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>aws-sdk-java</artifactId>

bom-internal/pom.xml

+1-1
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.30.31</version>
23+
<version>2.30.32</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

bom/pom.xml

+1-1
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.30.31</version>
20+
<version>2.30.32</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

bundle-logging-bridge/pom.xml

+1-1
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.30.31</version>
24+
<version>2.30.32</version>
2525
</parent>
2626
<artifactId>bundle-logging-bridge</artifactId>
2727
<packaging>jar</packaging>

bundle-sdk/pom.xml

+1-1
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.30.31</version>
24+
<version>2.30.32</version>
2525
</parent>
2626
<artifactId>bundle-sdk</artifactId>
2727
<packaging>jar</packaging>

bundle/pom.xml

+1-1
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.30.31</version>
24+
<version>2.30.32</version>
2525
</parent>
2626
<artifactId>bundle</artifactId>
2727
<packaging>jar</packaging>

codegen-lite-maven-plugin/pom.xml

+1-1
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.30.31</version>
25+
<version>2.30.32</version>
2626
<relativePath>../pom.xml</relativePath>
2727
</parent>
2828
<artifactId>codegen-lite-maven-plugin</artifactId>

codegen-lite/pom.xml

+1-1
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.30.31</version>
24+
<version>2.30.32</version>
2525
</parent>
2626
<artifactId>codegen-lite</artifactId>
2727
<name>AWS Java SDK :: Code Generator Lite</name>

codegen-maven-plugin/pom.xml

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

codegen/pom.xml

+1-1
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.30.31</version>
24+
<version>2.30.32</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

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public static CodegenCustomizationProcessor getProcessorFor(
4040
new NewAndLegacyEventStreamProcessor(),
4141
new S3RemoveBucketFromUriProcessor(),
4242
new S3ControlRemoveAccountIdHostPrefixProcessor(),
43-
new ExplicitStringPayloadQueryProtocolProcessor()
43+
new ExplicitStringPayloadQueryProtocolProcessor(),
44+
new LowercaseShapeValidatorProcessor()
4445
);
4546
}
4647
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 software.amazon.awssdk.codegen.customization.CodegenCustomizationProcessor;
19+
import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;
20+
import software.amazon.awssdk.codegen.model.service.ServiceModel;
21+
22+
/**
23+
* A processor that validates shape names in service models to ensure they start with uppercase letters.
24+
* This validation is necessary because shapes of type "structure" are converted to Java classes,
25+
* which must start with uppercase letters according to Java naming conventions.
26+
*/
27+
public class LowercaseShapeValidatorProcessor implements CodegenCustomizationProcessor {
28+
29+
@Override
30+
public void preprocess(ServiceModel serviceModel) {
31+
32+
serviceModel.getShapes().forEach((shapeName, shape) -> {
33+
if ("structure".equals(shape.getType()) && Character.isLowerCase(shapeName.charAt(0))) {
34+
throw new IllegalStateException(
35+
String.format("Shape name '%s' starts with a lowercase character." +
36+
"Shape names must start with an uppercase character." +
37+
"Please update the shape name in your service model",
38+
shapeName));
39+
}
40+
});
41+
}
42+
43+
@Override
44+
public void postprocess(IntermediateModel intermediateModel) {
45+
// no-op
46+
}
47+
}

codegen/src/main/java/software/amazon/awssdk/codegen/emitters/CodeWriter.java

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public void flush() {
119119
if (fileSize(outputFile) == 0) {
120120
try (BufferedWriter writer = Files.newBufferedWriter(outputFile, StandardCharsets.UTF_8)) {
121121
writer.write(formattedContents);
122+
writer.flush();
122123
}
123124
} else {
124125
validateFileContentMatches(outputFile, formattedContents);

0 commit comments

Comments
 (0)