Skip to content

Commit

Permalink
Merge pull request #3370 from aws/staging/3e3448e0-0743-482a-901f-376…
Browse files Browse the repository at this point in the history
…1ddec952f

Pull request: release <- staging/3e3448e0-0743-482a-901f-3761ddec952f
  • Loading branch information
aws-sdk-java-automation authored Oct 22, 2024
2 parents 98b50e9 + 1e12858 commit af50c71
Show file tree
Hide file tree
Showing 500 changed files with 5,896 additions and 910 deletions.
54 changes: 54 additions & 0 deletions .changes/2.28.28.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": "2.28.28",
"date": "2024-10-22",
"entries": [
{
"type": "bugfix",
"category": "Amazon Kinesis",
"contributor": "",
"description": "Fix an issue where errors that should be `400` are incorrectly classified as `500`."
},
{
"type": "feature",
"category": "AWSMainframeModernization",
"contributor": "",
"description": "Add AuthSecretsManagerArn optional parameter to batch job APIs, expand batch parameter limits, and introduce clientToken constraints."
},
{
"type": "feature",
"category": "AWS re:Post Private",
"contributor": "",
"description": "Adds the BatchAddRole and BatchRemoveRole APIs."
},
{
"type": "feature",
"category": "Amazon Bedrock Runtime",
"contributor": "",
"description": "Updating invoke regex to support imported models for converse API"
},
{
"type": "feature",
"category": "Amazon Relational Database Service",
"contributor": "",
"description": "Global clusters now expose the Endpoint attribute as one of its fields. It is a Read/Write endpoint for the global cluster which resolves to the Global Cluster writer instance."
},
{
"type": "feature",
"category": "Amazon Timestream Query",
"contributor": "",
"description": "This release adds support for Query Insights, a feature that provides details of query execution, enabling users to identify areas for improvement to optimize their queries, resulting in improved query performance and lower query costs."
},
{
"type": "feature",
"category": "EC2 Image Builder",
"contributor": "",
"description": "Add macOS platform and instance placement options"
},
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Updated endpoint and partition metadata."
}
]
}
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,37 @@
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
# __2.28.28__ __2024-10-22__
## __AWS SDK for Java v2__
- ### Features
- Updated endpoint and partition metadata.

## __AWS re:Post Private__
- ### Features
- Adds the BatchAddRole and BatchRemoveRole APIs.

## __AWSMainframeModernization__
- ### Features
- Add AuthSecretsManagerArn optional parameter to batch job APIs, expand batch parameter limits, and introduce clientToken constraints.

## __Amazon Bedrock Runtime__
- ### Features
- Updating invoke regex to support imported models for converse API

## __Amazon Kinesis__
- ### Bugfixes
- Fix an issue where errors that should be `400` are incorrectly classified as `500`.

## __Amazon Relational Database Service__
- ### Features
- Global clusters now expose the Endpoint attribute as one of its fields. It is a Read/Write endpoint for the global cluster which resolves to the Global Cluster writer instance.

## __Amazon Timestream Query__
- ### Features
- This release adds support for Query Insights, a feature that provides details of query execution, enabling users to identify areas for improvement to optimize their queries, resulting in improved query performance and lower query costs.

## __EC2 Image Builder__
- ### Features
- Add macOS platform and instance placement options

# __2.28.27__ __2024-10-21__
## __AWS Database Migration Service__
- ### Features
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To automatically manage module versions (currently all modules have the same ver
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -85,12 +85,12 @@ Alternatively you can add dependencies for the specific services you use only:
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>ec2</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</dependency>
```

Expand All @@ -102,7 +102,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-app-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-lambda/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetype-lambda</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetypes</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion aws-sdk-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>aws-sdk-java</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bom-internal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion bundle-logging-bridge/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<artifactId>bundle-logging-bridge</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion bundle-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<artifactId>bundle-sdk</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<artifactId>bundle</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion codegen-lite-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>codegen-lite-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codegen-lite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<artifactId>codegen-lite</artifactId>
<name>AWS Java SDK :: Code Generator Lite</name>
Expand Down
2 changes: 1 addition & 1 deletion codegen-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>codegen-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.28.27</version>
<version>2.28.28</version>
</parent>
<artifactId>codegen</artifactId>
<name>AWS Java SDK :: Code Generator</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ default List<CodeBlock> registerModeledExceptions(IntermediateModel model, PoetE
default String populateHttpStatusCode(ShapeModel shapeModel, IntermediateModel model) {
Integer statusCode = shapeModel.getHttpStatusCode();

if (statusCode == null && model.getMetadata().getProtocol() == Protocol.AWS_JSON) {
Protocol protocol = model.getMetadata().getProtocol();

if (statusCode == null
&& (protocol == Protocol.AWS_JSON || protocol == Protocol.CBOR)) {
if (shapeModel.isFault()) {
statusCode = 500;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ public static IntermediateModel awsJsonServiceModels() {
return new IntermediateModelBuilder(models).build();
}

public static IntermediateModel cborServiceModels() {
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/json/service-2.json").getFile());
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/cbor/customization.config").getFile());
File paginatorsModel = new File(ClientTestModels.class.getResource("client/c2j/json/paginators.json").getFile());
C2jModels models = C2jModels.builder()
.serviceModel(getServiceModel(serviceModel))
.customizationConfig(getCustomizationConfig(customizationModel))
.paginatorsModel(getPaginatorsModel(paginatorsModel))
.build();

return new IntermediateModelBuilder(models).build();
}

public static IntermediateModel awsQueryCompatibleJsonServiceModels() {
File serviceModel = new File(ClientTestModels.class.getResource("client/c2j/query-to-json-errorcode/service-2.json").getFile());
File customizationModel = new File(ClientTestModels.class.getResource("client/c2j/query-to-json-errorcode/customization.config").getFile());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static software.amazon.awssdk.codegen.poet.ClientTestModels.awsJsonServiceModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.awsQueryCompatibleJsonServiceModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.batchManagerModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.cborServiceModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.customContentTypeModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.customPackageModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.endpointDiscoveryModels;
Expand Down Expand Up @@ -61,6 +62,15 @@ public void asyncClientClassAwsJson() {
assertThat(sraAsyncClientClass, generatesTo("sra/test-aws-json-async-client-class.java"));
}

@Test
public void asyncClientClassCbor() {
AsyncClientClass asyncClientClass = createAsyncClientClass(cborServiceModels(), false);
assertThat(asyncClientClass, generatesTo("test-cbor-async-client-class.java"));

AsyncClientClass sraAsyncClientClass = createAsyncClientClass(cborServiceModels(), true);
assertThat(sraAsyncClientClass, generatesTo("sra/test-cbor-async-client-class.java"));
}

@Test
public void asyncClientClassAwsQueryCompatibleJson() {
AsyncClientClass asyncClientClass = createAsyncClientClass(awsQueryCompatibleJsonServiceModels());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import static org.hamcrest.MatcherAssert.assertThat;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.awsQueryCompatibleJsonServiceModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.cborServiceModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.customContentTypeModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.customPackageModels;
import static software.amazon.awssdk.codegen.poet.ClientTestModels.endpointDiscoveryModels;
Expand Down Expand Up @@ -89,6 +90,12 @@ public void syncClientClassRpcV2() {
assertThat(syncClientCustomServiceMetaData, generatesTo("test-rpcv2-sync.java"));
}

@Test
public void syncClientClassCbor() {
ClassSpec syncClientCustomServiceMetaData = createSyncClientClass(cborServiceModels(), true);
assertThat(syncClientCustomServiceMetaData, generatesTo("test-cbor-client-class.java"));
}

private SyncClientClass createSyncClientClass(IntermediateModel model) {
return new SyncClientClass(GeneratorTaskParams.create(model, "sources/", "tests/", "resources/"));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"authPolicyActions" : {
"skip" : true
},
"presignersFqcn": "software.amazon.awssdk.services.acm.presign.AcmClientPresigners",
"serviceSpecificHttpConfig": "software.amazon.MyServiceHttpConfig",
"serviceConfig": {
"className": "ServiceConfiguration",
"hasDualstackProperty": true,
"hasFipsProperty": true
},
"customRetryPolicy": "software.amazon.MyServiceRetryPolicy",
"customRetryStrategy": "software.amazon.MyServiceRetryStrategy",
"verifiedSimpleMethods" : ["paginatedOperationWithResultKey"],
"excludedSimpleMethods" : [
"eventStreamOperation"
],
"utilitiesMethod": {
"returnType": "software.amazon.awssdk.services.json.JsonUtilities",
"createMethodParams": ["param1", "param2", "param3"]
},
"useLegacyEventGenerationScheme": {
"EventStream": ["EventOne", "event-two", "eventThree"]
},
"customServiceMetadata": {
"protocol": "cbor"
}
}
Loading

0 comments on commit af50c71

Please sign in to comment.