Skip to content

Commit b489049

Browse files
Merge pull request #3669 from aws/staging/a3a7dd7b-35af-458a-8dc6-76cfc877de00
Pull request: release <- staging/a3a7dd7b-35af-458a-8dc6-76cfc877de00
2 parents 9a681a4 + 2d2bcaa commit b489049

File tree

580 files changed

+5805
-1039
lines changed

Some content is hidden

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

580 files changed

+5805
-1039
lines changed

.changes/2.30.23.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "2.30.23",
3+
"date": "2025-02-18",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "Amazon Cloudfront",
8+
"contributor": "",
9+
"description": "Decouple policy logic from resource url for getSignedUrlWithCustomPolicy"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS Batch",
14+
"contributor": "",
15+
"description": "This documentation-only update corrects some typos."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS Elemental MediaLive",
20+
"contributor": "",
21+
"description": "Adds support for creating CloudWatchAlarmTemplates for AWS Elemental MediaTailor Playback Configuration resources."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon EMR Containers",
26+
"contributor": "",
27+
"description": "EMR on EKS StartJobRun Api will be supporting the configuration of log storage in AWS by using \"managedLogs\" under \"MonitoringConfiguration\"."
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: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.30.23__ __2025-02-18__
3+
## __AWS Batch__
4+
- ### Features
5+
- This documentation-only update corrects some typos.
6+
7+
## __AWS Elemental MediaLive__
8+
- ### Features
9+
- Adds support for creating CloudWatchAlarmTemplates for AWS Elemental MediaTailor Playback Configuration resources.
10+
11+
## __AWS SDK for Java v2__
12+
- ### Features
13+
- Updated endpoint and partition metadata.
14+
15+
## __Amazon Cloudfront__
16+
- ### Bugfixes
17+
- Decouple policy logic from resource url for getSignedUrlWithCustomPolicy
18+
19+
## __Amazon EMR Containers__
20+
- ### Features
21+
- EMR on EKS StartJobRun Api will be supporting the configuration of log storage in AWS by using "managedLogs" under "MonitoringConfiguration".
22+
223
# __2.30.22__ __2025-02-17__
324
## __AWS Amplify__
425
- ### 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.30.22</version>
54+
<version>2.30.23</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.22</version>
88+
<version>2.30.23</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>software.amazon.awssdk</groupId>
9292
<artifactId>s3</artifactId>
93-
<version>2.30.22</version>
93+
<version>2.30.23</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.22</version>
105+
<version>2.30.23</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.30.22</version>
23+
<version>2.30.23</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.30.22</version>
23+
<version>2.30.23</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.30.22</version>
23+
<version>2.30.23</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.30.22</version>
23+
<version>2.30.23</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.30.22</version>
20+
<version>2.30.23</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.30.22</version>
23+
<version>2.30.23</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.30.22</version>
20+
<version>2.30.23</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</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.30.22</version>
24+
<version>2.30.23</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.30.22</version>
24+
<version>2.30.23</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.30.22</version>
24+
<version>2.30.23</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.30.22</version>
25+
<version>2.30.23</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.30.22</version>
24+
<version>2.30.23</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.30.22</version>
25+
<version>2.30.23</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.30.22</version>
24+
<version>2.30.23</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

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

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,14 @@ public static Metadata constructMetadata(ServiceModel serviceModel,
7474
.withJsonVersion(serviceMetadata.getJsonVersion())
7575
.withEndpointPrefix(serviceMetadata.getEndpointPrefix())
7676
.withSigningName(serviceMetadata.getSigningName())
77-
.withAuthType(AuthType.fromValue(serviceMetadata.getSignatureVersion()))
77+
.withAuthType(serviceMetadata.getSignatureVersion() != null ?
78+
AuthType.fromValue(serviceMetadata.getSignatureVersion()) : null)
7879
.withUid(serviceMetadata.getUid())
7980
.withServiceId(serviceMetadata.getServiceId())
8081
.withSupportsH2(supportsH2(serviceMetadata))
8182
.withJsonVersion(getJsonVersion(metadata, serviceMetadata))
8283
.withAwsQueryCompatible(serviceMetadata.getAwsQueryCompatible())
83-
.withAuth(getAuthFromServiceMetadata(serviceMetadata, customizationConfig.useMultiAuth()));
84+
.withAuth(getAuthFromServiceMetadata(serviceMetadata));
8485

8586
return metadata;
8687
}
@@ -136,18 +137,14 @@ private static String getJsonVersion(Metadata metadata, ServiceMetadata serviceM
136137
}
137138

138139
/**
139-
* Converts service metadata into a list of AuthTypes. If useMultiAuth is enabled, then
140-
* {@code metadata.auth} will be used in the conversion if present. Otherwise, use
141-
* {@code metadata.signatureVersion}.
140+
* Converts a list of authentication type strings from the given {@link ServiceMetadata} into a list of
141+
* {@link AuthType} objects.
142142
*/
143-
private static List<AuthType> getAuthFromServiceMetadata(ServiceMetadata serviceMetadata,
144-
boolean useMultiAuth) {
145-
if (useMultiAuth) {
146-
List<String> serviceAuth = serviceMetadata.getAuth();
147-
if (serviceAuth != null) {
148-
return serviceAuth.stream().map(AuthType::fromValue).collect(Collectors.toList());
149-
}
143+
private static List<AuthType> getAuthFromServiceMetadata(ServiceMetadata serviceMetadata) {
144+
List<String> serviceAuth = serviceMetadata.getAuth();
145+
if (serviceAuth != null) {
146+
return serviceAuth.stream().map(AuthType::fromValue).collect(Collectors.toList());
150147
}
151-
return Collections.singletonList(AuthType.fromValue(serviceMetadata.getSignatureVersion()));
148+
return Collections.emptyList();
152149
}
153150
}

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

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,12 @@ final class AddOperations {
4747
private final NamingStrategy namingStrategy;
4848
private final Map<String, PaginatorDefinition> paginators;
4949
private final List<String> deprecatedShapes;
50-
private final boolean useMultiAuth;
5150

5251
AddOperations(IntermediateModelBuilder builder) {
5352
this.serviceModel = builder.getService();
5453
this.namingStrategy = builder.getNamingStrategy();
5554
this.paginators = builder.getPaginators().getPagination();
5655
this.deprecatedShapes = builder.getCustomConfig().getDeprecatedShapes();
57-
this.useMultiAuth = builder.getCustomConfig().useMultiAuth();
5856
}
5957

6058
private static boolean isAuthenticated(Operation op) {
@@ -182,6 +180,7 @@ public Map<String, OperationModel> constructOperations() {
182180
operationModel.setStaticContextParams(op.getStaticContextParams());
183181
operationModel.setOperationContextParams(op.getOperationContextParams());
184182
operationModel.setAuth(getAuthFromOperation(op));
183+
operationModel.setUnsignedPayload(op.isUnsignedPayload());
185184

186185
Input input = op.getInput();
187186
if (input != null) {
@@ -237,21 +236,23 @@ public Map<String, OperationModel> constructOperations() {
237236
}
238237

239238
/**
240-
* Returns the list of authTypes defined for an operation. If useMultiAuth is enabled, then
241-
* {@code operation.auth} will be used in the conversion if present. Otherwise, use
242-
* {@code operation.authtype} if present.
239+
* Retrieves the list of {@link AuthType} for the given operation.
240+
* <p>
241+
* If {@link Operation#getAuth()}is available, it is converted to a list of {@link AuthType}.
242+
* Otherwise, {@link Operation#getAuthtype()} is returned as a single-element list if present.
243+
* If neither is available, an empty list is returned.
243244
*/
244245
private List<AuthType> getAuthFromOperation(Operation op) {
245-
if (useMultiAuth) {
246-
List<String> opAuth = op.getAuth();
247-
if (opAuth != null) {
248-
return opAuth.stream().map(AuthType::fromValue).collect(Collectors.toList());
249-
}
250-
}
246+
247+
// First we check for legacy AuthType to support backward compatibility
251248
AuthType legacyAuthType = op.getAuthtype();
252249
if (legacyAuthType != null) {
253250
return Collections.singletonList(legacyAuthType);
254251
}
252+
List<String> opAuth = op.getAuth();
253+
if (opAuth != null) {
254+
return opAuth.stream().map(AuthType::fromValue).collect(Collectors.toList());
255+
}
255256
return Collections.emptyList();
256257
}
257258

codegen/src/main/java/software/amazon/awssdk/codegen/model/config/customization/CustomizationConfig.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,6 @@ public class CustomizationConfig {
324324
*/
325325
private String rootPackageName;
326326

327-
/**
328-
* Set to true to read from c2j multi-auth values. Currently defaults to false.
329-
*
330-
* TODO(multi-auth): full multi-auth support is not implemented
331-
*/
332-
private boolean useMultiAuth;
333-
334327
/**
335328
* Special case for a service where model changes for endpoint params were not updated .
336329
* This should be removed once the service updates its models
@@ -891,14 +884,6 @@ public CustomizationConfig withRootPackageName(String packageName) {
891884
return this;
892885
}
893886

894-
public void setUseMultiAuth(boolean useMultiAuth) {
895-
this.useMultiAuth = useMultiAuth;
896-
}
897-
898-
public boolean useMultiAuth() {
899-
return useMultiAuth;
900-
}
901-
902887
public Map<String, ParameterModel> getEndpointParameters() {
903888
return endpointParameters;
904889
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/intermediate/OperationModel.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public class OperationModel extends DocumentationModel {
8787
@JsonIgnore
8888
private Map<String, OperationContextParam> operationContextParams;
8989

90+
private boolean unsignedPayload;
91+
9092
public String getOperationName() {
9193
return operationName;
9294
}
@@ -369,4 +371,12 @@ public Map<String, OperationContextParam> getOperationContextParams() {
369371
public void setOperationContextParams(Map<String, OperationContextParam> operationContextParams) {
370372
this.operationContextParams = operationContextParams;
371373
}
374+
375+
public boolean isUnsignedPayload() {
376+
return unsignedPayload;
377+
}
378+
379+
public void setUnsignedPayload(boolean unsignedPayload) {
380+
this.unsignedPayload = unsignedPayload;
381+
}
372382
}

codegen/src/main/java/software/amazon/awssdk/codegen/model/service/AuthType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public enum AuthType {
2424
CUSTOM("custom"),
2525
IAM("iam"),
2626
V4("v4"),
27+
V4A("v4a"),
2728
V4_UNSIGNED_BODY("v4-unsigned-body"),
2829
S3("s3"),
2930
S3V4("s3v4"),
@@ -49,6 +50,8 @@ public static AuthType fromValue(String value) {
4950
return NONE;
5051
case "aws.auth#sigv4":
5152
return V4;
53+
case "aws.auth#sigv4a":
54+
return V4A;
5255
default:
5356
String normalizedValue = StringUtils.lowerCase(value);
5457
return Arrays.stream(values())

0 commit comments

Comments
 (0)