Skip to content

Commit e5929f4

Browse files
Merge pull request #2895 from aws/staging/48375f82-0b20-4598-bb85-7b2a240f14b7
Pull request: release <- staging/48375f82-0b20-4598-bb85-7b2a240f14b7
2 parents 1548dd5 + 951c8b9 commit e5929f4

File tree

522 files changed

+3918
-1507
lines changed

Some content is hidden

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

522 files changed

+3918
-1507
lines changed

.changes/2.23.22.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"version": "2.23.22",
3+
"date": "2024-02-09",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "Amazon S3",
8+
"contributor": "",
9+
"description": "Fix bug where PUT fails when using SSE-C with Checksum when using S3AsyncClient with multipart enabled. Enable CRC32 for putObject when using multipart client if checksum validation is not disabled and checksum is not set by user"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS Batch",
14+
"contributor": "",
15+
"description": "This feature allows Batch to support configuration of repository credentials for jobs running on ECS"
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS IoT",
20+
"contributor": "",
21+
"description": "This release allows AWS IoT Core users to enable Online Certificate Status Protocol (OCSP) Stapling for TLS X.509 Server Certificates when creating and updating AWS IoT Domain Configurations with Custom Domain."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "AWS Price List Service",
26+
"contributor": "",
27+
"description": "Add Throttling Exception to all APIs."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon EC2 Container Service",
32+
"contributor": "",
33+
"description": "Documentation only update for Amazon ECS."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "Amazon Prometheus Service",
38+
"contributor": "",
39+
"description": "Overall documentation updates."
40+
},
41+
{
42+
"type": "feature",
43+
"category": "Braket",
44+
"contributor": "",
45+
"description": "Creating a job will result in DeviceOfflineException when using an offline device, and DeviceRetiredException when using a retired device."
46+
},
47+
{
48+
"type": "feature",
49+
"category": "Cost Optimization Hub",
50+
"contributor": "",
51+
"description": "Adding includeMemberAccounts field to the response of ListEnrollmentStatuses API."
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: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.23.22__ __2024-02-09__
3+
## __AWS Batch__
4+
- ### Features
5+
- This feature allows Batch to support configuration of repository credentials for jobs running on ECS
6+
7+
## __AWS IoT__
8+
- ### Features
9+
- This release allows AWS IoT Core users to enable Online Certificate Status Protocol (OCSP) Stapling for TLS X.509 Server Certificates when creating and updating AWS IoT Domain Configurations with Custom Domain.
10+
11+
## __AWS Price List Service__
12+
- ### Features
13+
- Add Throttling Exception to all APIs.
14+
15+
## __AWS SDK for Java v2__
16+
- ### Features
17+
- Updated endpoint and partition metadata.
18+
19+
## __Amazon EC2 Container Service__
20+
- ### Features
21+
- Documentation only update for Amazon ECS.
22+
23+
## __Amazon Prometheus Service__
24+
- ### Features
25+
- Overall documentation updates.
26+
27+
## __Amazon S3__
28+
- ### Bugfixes
29+
- Fix bug where PUT fails when using SSE-C with Checksum when using S3AsyncClient with multipart enabled. Enable CRC32 for putObject when using multipart client if checksum validation is not disabled and checksum is not set by user
30+
31+
## __Braket__
32+
- ### Features
33+
- Creating a job will result in DeviceOfflineException when using an offline device, and DeviceRetiredException when using a retired device.
34+
35+
## __Cost Optimization Hub__
36+
- ### Features
37+
- Adding includeMemberAccounts field to the response of ListEnrollmentStatuses API.
38+
239
# __2.23.21__ __2024-02-08__
340
## __AWS CodePipeline__
441
- ### 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.23.21</version>
55+
<version>2.23.22</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.23.21</version>
89+
<version>2.23.22</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.23.21</version>
94+
<version>2.23.22</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.23.21</version>
106+
<version>2.23.22</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.23.21</version>
23+
<version>2.23.22</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.23.21</version>
23+
<version>2.23.22</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.23.21</version>
23+
<version>2.23.22</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.23.21</version>
23+
<version>2.23.22</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.23.21</version>
20+
<version>2.23.22</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.23.21</version>
23+
<version>2.23.22</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.23.21</version>
20+
<version>2.23.22</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.23.21</version>
24+
<version>2.23.22</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.23.21</version>
24+
<version>2.23.22</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.23.21</version>
24+
<version>2.23.22</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.23.21</version>
25+
<version>2.23.22</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.23.21</version>
24+
<version>2.23.22</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.23.21</version>
25+
<version>2.23.22</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.23.21</version>
24+
<version>2.23.22</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public enum AuthType {
3636
this.value = value;
3737
}
3838

39+
public String value() {
40+
return value;
41+
}
42+
3943
public static AuthType fromValue(String value) {
4044
String normalizedValue = StringUtils.lowerCase(value);
4145
return Arrays.stream(values())
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
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.poet.auth.scheme;
17+
18+
import java.util.Collections;
19+
import java.util.List;
20+
import java.util.Map;
21+
import java.util.function.BiConsumer;
22+
import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;
23+
24+
/**
25+
* Knowledge index to get access to the configured service auth schemes and operations overrides. This index is optimized for
26+
* code generation of switch statements therefore the data is grouped by operations that share the same auth schemes.
27+
*/
28+
public final class AuthSchemeCodegenKnowledgeIndex {
29+
/**
30+
* We delegate this value to {@link ModelAuthSchemeKnowledgeIndex#operationsToMetadata()}. We just wrap the results in an
31+
* interface that easier to use for the layer that does the code generation.
32+
*/
33+
private final Map<List<String>, List<AuthSchemeCodegenMetadata>> operationsToAuthSchemes;
34+
35+
private AuthSchemeCodegenKnowledgeIndex(IntermediateModel intermediateModel) {
36+
this.operationsToAuthSchemes = ModelAuthSchemeKnowledgeIndex.of(intermediateModel).operationsToMetadata();
37+
}
38+
39+
/**
40+
* Creates a new {@link AuthSchemeCodegenKnowledgeIndex} using the given {@code intermediateModel}..
41+
*/
42+
public static AuthSchemeCodegenKnowledgeIndex of(IntermediateModel intermediateModel) {
43+
return new AuthSchemeCodegenKnowledgeIndex(intermediateModel);
44+
}
45+
46+
/**
47+
* Returns the service defaults auth schemes. These can be overridden by operation.
48+
*
49+
* @return the service defaults auth schemes.
50+
*/
51+
public List<AuthSchemeCodegenMetadata> serviceDefaultAuthSchemes() {
52+
return operationsToAuthSchemes.get(Collections.emptyList());
53+
}
54+
55+
/**
56+
* Returns true if there are auth scheme overrides per operation.
57+
*
58+
* @return true if there are auth scheme overrides per operation
59+
*/
60+
public boolean hasPerOperationAuthSchemesOverrides() {
61+
// The map at least contains one key-value pair (keyed with Collections.emptyList()).
62+
// If we have more than that then we have at least one override.
63+
return operationsToAuthSchemes.size() > 1;
64+
}
65+
66+
/**
67+
* Traverses each group of operations with the same set of auth schemes.
68+
*
69+
* @param consumer The consumer to call for each group of operations with the same set of auth schemes.
70+
*/
71+
public void forEachOperationsOverridesGroup(BiConsumer<List<String>, List<AuthSchemeCodegenMetadata>> consumer) {
72+
for (Map.Entry<List<String>, List<AuthSchemeCodegenMetadata>> kvp : operationsToAuthSchemes.entrySet()) {
73+
if (kvp.getKey().isEmpty()) {
74+
// We are traversing operation groups, ignore service wide defaults.
75+
continue;
76+
}
77+
consumer.accept(kvp.getKey(), kvp.getValue());
78+
}
79+
}
80+
}

0 commit comments

Comments
 (0)