Skip to content

Commit f614efe

Browse files
Merge pull request #3282 from aws/staging/c5e0a6eb-3c46-4806-a826-a5a5f6cbf5ef
Pull request: release <- staging/c5e0a6eb-3c46-4806-a826-a5a5f6cbf5ef
2 parents 555864f + 950b631 commit f614efe

File tree

647 files changed

+11877
-2372
lines changed

Some content is hidden

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

647 files changed

+11877
-2372
lines changed

.brazil.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"aws-json-protocol": { "packageName": "AwsJavaSdk-Core-AwsJsonProtocol" },
1515
"aws-query-protocol": { "packageName": "AwsJavaSdk-Core-AwsQueryProtocol" },
1616
"aws-xml-protocol": { "packageName": "AwsJavaSdk-Core-AwsXmlProtocol" },
17+
"smithy-rpcv2-protocol": { "packageName": "AwsJavaSdk-Core-SmithyRpcV2Protocol" },
1718
"cloudwatch-metric-publisher": { "packageName": "AwsJavaSdk-MetricPublisher-CloudWatch" },
1819
"codegen": { "packageName": "AwsJavaSdk-Codegen" },
1920
"dynamodb-enhanced": { "packageName": "AwsJavaSdk-DynamoDb-Enhanced" },

.changes/2.28.9.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "2.28.9",
3+
"date": "2024-09-25",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS CloudTrail",
8+
"contributor": "",
9+
"description": "Doc-only update for CloudTrail network activity events release (in preview)"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS SDK for Java v2",
14+
"contributor": "sugmanue",
15+
"description": "Added support for the Smithy RPCv2 CBOR protocol, a new RPC protocol with better performance characteristics than AWS Json."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon Elastic Compute Cloud",
20+
"contributor": "",
21+
"description": "Updates to documentation for the transit gateway security group referencing feature."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon FSx",
26+
"contributor": "",
27+
"description": "Doc-only update to address Lustre S3 hard-coded names."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "AWS SDK for Java v2",
32+
"contributor": "",
33+
"description": "Updated endpoint and partition metadata."
34+
}
35+
]
36+
}

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.28.9__ __2024-09-25__
3+
## __AWS CloudTrail__
4+
- ### Features
5+
- Doc-only update for CloudTrail network activity events release (in preview)
6+
7+
## __AWS SDK for Java v2__
8+
- ### Features
9+
- Added support for the Smithy RPCv2 CBOR protocol, a new RPC protocol with better performance characteristics than AWS Json.
10+
- Contributed by: [@sugmanue](https://github.com/sugmanue)
11+
- Updated endpoint and partition metadata.
12+
13+
## __Amazon Elastic Compute Cloud__
14+
- ### Features
15+
- Updates to documentation for the transit gateway security group referencing feature.
16+
17+
## __Amazon FSx__
18+
- ### Features
19+
- Doc-only update to address Lustre S3 hard-coded names.
20+
21+
## __Contributors__
22+
Special thanks to the following contributors to this release:
23+
24+
[@sugmanue](https://github.com/sugmanue)
225
# __2.28.8__ __2024-09-24__
326
## __AWS Budgets__
427
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.28.8</version>
54+
<version>2.28.9</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.28.8</version>
88+
<version>2.28.9</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>software.amazon.awssdk</groupId>
9292
<artifactId>s3</artifactId>
93-
<version>2.28.8</version>
93+
<version>2.28.9</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.28.8</version>
105+
<version>2.28.9</version>
106106
</dependency>
107107
```
108108

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.28.8</version>
23+
<version>2.28.9</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.28.8</version>
23+
<version>2.28.9</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.28.8</version>
23+
<version>2.28.9</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.28.8</version>
23+
<version>2.28.9</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.28.8</version>
20+
<version>2.28.9</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.28.8</version>
23+
<version>2.28.9</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.28.8</version>
20+
<version>2.28.9</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>
@@ -112,6 +112,11 @@
112112
<artifactId>aws-xml-protocol</artifactId>
113113
<version>${awsjavasdk.version}</version>
114114
</dependency>
115+
<dependency>
116+
<groupId>software.amazon.awssdk</groupId>
117+
<artifactId>smithy-rpcv2-protocol</artifactId>
118+
<version>${awsjavasdk.version}</version>
119+
</dependency>
115120
<dependency>
116121
<groupId>software.amazon.awssdk</groupId>
117122
<artifactId>protocol-core</artifactId>

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

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

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.28.8</version>
24+
<version>2.28.9</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.28.8</version>
25+
<version>2.28.9</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.28.8</version>
24+
<version>2.28.9</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.28.8</version>
25+
<version>2.28.9</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.28.8</version>
24+
<version>2.28.9</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>
@@ -142,6 +142,11 @@
142142
<artifactId>aws-xml-protocol</artifactId>
143143
<version>${awsjavasdk.version}</version>
144144
</dependency>
145+
<dependency>
146+
<groupId>software.amazon.awssdk</groupId>
147+
<artifactId>smithy-rpcv2-protocol</artifactId>
148+
<version>${awsjavasdk.version}</version>
149+
</dependency>
145150
<dependency>
146151
<groupId>software.amazon.awssdk</groupId>
147152
<artifactId>protocol-core</artifactId>

codegen/src/main/java/software/amazon/awssdk/codegen/AddEmptyInputShape.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
package software.amazon.awssdk.codegen;
1717

18-
import static software.amazon.awssdk.codegen.internal.Utils.createInputShapeMarshaller;
18+
import static software.amazon.awssdk.codegen.internal.Utils.createSyntheticInputShapeMarshaller;
1919
import static software.amazon.awssdk.codegen.internal.Utils.unCapitalize;
2020

2121
import java.util.HashMap;
@@ -75,7 +75,7 @@ private Map<String, ShapeModel> addEmptyInputShapes(
7575
shape.setVariable(inputVariable);
7676

7777
shape.setMarshaller(
78-
createInputShapeMarshaller(serviceModel.getMetadata(), operation));
78+
createSyntheticInputShapeMarshaller(serviceModel.getMetadata(), operation));
7979

8080
emptyInputShapes.put(inputShape, shape);
8181

codegen/src/main/java/software/amazon/awssdk/codegen/customization/processors/DefaultCustomizationProcessor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public static CodegenCustomizationProcessor getProcessorFor(
3434
new ShapeSubstitutionsProcessor(config.getShapeSubstitutions()),
3535
new CustomSdkShapesProcessor(config.getCustomSdkShapes()),
3636
new OperationModifiersProcessor(config.getOperationModifiers()),
37+
new SmithyRpcV2CborProtocolProcessor(),
3738
new RemoveExceptionMessagePropertyProcessor(),
3839
new UseLegacyEventGenerationSchemeProcessor(),
3940
new NewAndLegacyEventStreamProcessor(),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.Http;
21+
import software.amazon.awssdk.codegen.model.service.Operation;
22+
import software.amazon.awssdk.codegen.model.service.ServiceModel;
23+
import software.amazon.awssdk.utils.StringUtils;
24+
25+
/**
26+
* This processor only runs for services using the <code>smithy-rpc-v2-cbor</code> protocol.
27+
*
28+
* Adds a request URI that conform to the Smithy RPCv2 protocol to each operation in the model, if there's no URI already
29+
* defined.
30+
*/
31+
public class SmithyRpcV2CborProtocolProcessor implements CodegenCustomizationProcessor {
32+
@Override
33+
public void preprocess(ServiceModel serviceModel) {
34+
if (!"smithy-rpc-v2-cbor".equals(serviceModel.getMetadata().getProtocol())) {
35+
return;
36+
}
37+
serviceModel.getOperations().forEach((name, op) -> setRequestUri(serviceModel, name, op));
38+
}
39+
40+
private void setRequestUri(ServiceModel service, String name, Operation op) {
41+
Http http = op.getHttp();
42+
String requestUri = http.getRequestUri();
43+
if (StringUtils.isNotBlank(requestUri) && !"/".equals(requestUri)) {
44+
return;
45+
}
46+
String uri = String.format("/service/%s/operation/%s", service.getMetadata().getTargetPrefix(), op.getName());
47+
op.getHttp().setRequestUri(uri);
48+
}
49+
50+
@Override
51+
public void postprocess(IntermediateModel intermediateModel) {
52+
}
53+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.internal;
17+
18+
import java.util.AbstractMap;
19+
import java.util.LinkedHashSet;
20+
import java.util.List;
21+
import java.util.Map;
22+
import java.util.Set;
23+
import java.util.stream.Collectors;
24+
import software.amazon.awssdk.protocols.core.OperationMetadataAttribute;
25+
import software.amazon.awssdk.utils.AttributeMap;
26+
27+
/**
28+
* Default implementation of {@link ProtocolMetadataConstants}.
29+
*/
30+
public final class DefaultProtocolMetadataConstants implements ProtocolMetadataConstants {
31+
private final Set<Map.Entry<Class<?>, OperationMetadataAttribute<?>>> knownKeys = new LinkedHashSet<>();
32+
private final AttributeMap.Builder map = AttributeMap.builder();
33+
34+
@Override
35+
public List<Map.Entry<Class<?>, OperationMetadataAttribute<?>>> keys() {
36+
return knownKeys.stream().filter(x -> map.get(x.getValue()) != null).collect(Collectors.toList());
37+
}
38+
39+
@Override
40+
public <T> T put(Class<?> containingClass, OperationMetadataAttribute<T> key, T value) {
41+
knownKeys.add(new AbstractMap.SimpleEntry<>(containingClass, key));
42+
T oldValue = map.get(key);
43+
map.put(key, value);
44+
return oldValue;
45+
}
46+
47+
@Override
48+
public <T> T get(OperationMetadataAttribute<T> key) {
49+
return map.get(key);
50+
}
51+
}

0 commit comments

Comments
 (0)