Skip to content

Commit b685d72

Browse files
davidh44aws-sdk-java-automationzoewanggmillemsjoviegas
authored
Merge from master (#4906)
* AWS Glue Update: Introduce Catalog Encryption Role within Glue Data Catalog Settings. Introduce SASL/PLAIN as an authentication method for Glue Kafka connections * Amazon WorkSpaces Update: Added definitions of various WorkSpace states * Release 2.23.18. Updated CHANGELOG.md, README.md and all pom.xml. * update aws-sdk-java pom to add imds and dyanmodb-enhanced (#4890) * Performance improvement for sigv4 signing. (#4891) This is a reintroduction of the reverted commit #4867. This includes a fix to the issue that caused the revert: improper handling of empty header values. * Update to next snapshot version: 2.23.19-SNAPSHOT * Delete CloudSearchv2IntegrationTest (#4888) * Fix tag deletion command (#4892) * including S3 Access Grants Plugin as part of Java SDK Bundle (#4881) * including S3 Access Grants Plugin as part of Java SDK Bundle --------- Co-authored-by: Shiva Kumar Mukkapati <[email protected]> * Archive old changelog entries (< 2.23.0) (#4873) - .json files files for each version are grouped under minor versions in .changes - Markdown files for each minor version are created in changelogs/ directory - Changelog scripts updated to add a link to older version in the generated changelog * Changing indentation of config files to 4 spaces (#4889) * Amazon EC2 Container Service Update: This release is a documentation only update to address customer issues. * AWS WAFV2 Update: You can now delete an API key that you've created for use with your CAPTCHA JavaScript integration API. * Amazon OpenSearch Service Update: This release adds clear visibility to the customers on the changes that they make on the domain. * AWS AppSync Update: Support for environment variables in AppSync GraphQL APIs * Amazon CloudWatch Logs Update: This release adds a new field, logGroupArn, to the response of the logs:DescribeLogGroups action. * Amazon Elasticsearch Service Update: This release adds clear visibility to the customers on the changes that they make on the domain. * Release 2.23.19. Updated CHANGELOG.md, README.md and all pom.xml. * Update to next snapshot version: 2.23.20-SNAPSHOT * Bump CRT version and expose setting memory limits for S3 calls (#4885) * Bump aws-crt version to 0.29.9 * Exposes a setting to set the memory limit when making asynchronous calls with the CRT-based S3 client * Activating SRA for this service (#4896) * Fix request cancellation logic in the AWS CRT Sync HTTP client (#4887) * Fix request cancellation logic in the AWS CRT Sync HTTP client * Address feedback * AWS DataSync Update: AWS DataSync now supports manifests for specifying files or objects to transfer. * Amazon Redshift Update: LisRecommendations API to fetch Amazon Redshift Advisor recommendations. * Amazon Lex Model Building V2 Update: This release introduces a new bot replication feature as part of Lex Global Resiliency offering. This feature leverages a new set of APIs that allow customers to create bot replicas and replicate changes to bots across regions. * Updated endpoints.json and partitions.json. * Release 2.23.20. Updated CHANGELOG.md, README.md and all pom.xml. * Update to next snapshot version: 2.23.21-SNAPSHOT * Amazon QuickSight Update: General Interactions for Visuals; Waterfall Chart Color Configuration; Documentation Update * AWS CodePipeline Update: Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths. * Amazon WorkSpaces Update: This release introduces User-Decoupling feature. This feature allows Workspaces Core customers to provision workspaces without providing users. CreateWorkspaces and DescribeWorkspaces APIs will now take a new optional parameter "WorkspaceName". * Release 2.23.21. Updated CHANGELOG.md, README.md and all pom.xml. * Update to next snapshot version: 2.23.22-SNAPSHOT * S3 should configure signer properties (#4856) * Configure modeled signer properties for endpoint based auth scheme resolver * Refactor the logic to use Knowledge Indexes * Enable CRC32 for PUT for MultipartS3AsyncClient (#4898) * Fix bug to allow MpuS3Client to PUT COPY with SSE-C and Checksum * Enable CRC32 for Multipart PUT COPY * Address comments * add changelog and update checksum check * Address comments * update javadocs * Add unit tests --------- Co-authored-by: AWS <> Co-authored-by: aws-sdk-java-automation <[email protected]> Co-authored-by: Zoe Wang <[email protected]> Co-authored-by: Matthew Miller <[email protected]> Co-authored-by: John Viegas <[email protected]> Co-authored-by: Dongie Agnir <[email protected]> Co-authored-by: shiva kumar <[email protected]> Co-authored-by: Shiva Kumar Mukkapati <[email protected]> Co-authored-by: Anna-Karin Salander <[email protected]> Co-authored-by: Manuel Sugawara <[email protected]>
1 parent 8829622 commit b685d72

File tree

515 files changed

+4088
-963
lines changed

Some content is hidden

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

515 files changed

+4088
-963
lines changed

.changes/2.23.20.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"version": "2.23.20",
3+
"date": "2024-02-07",
4+
"entries": [
5+
{
6+
"type": "bugfix",
7+
"category": "AWS CRT Sync HTTP Client",
8+
"contributor": "",
9+
"description": "Fixed an issue where `CancellationException` was thrown incorrectly from AWS CRT Sync HTTP client when execution time exceeded the total configured API call attempt timeout or API call timeout. Now it throws `ApiCallAttemptTimeoutException`/`ApiCallTimeoutException` accordingly. See [#4820](https://github.com/aws/aws-sdk-java-v2/issues/4820)"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS SDK for Java v2",
14+
"contributor": "",
15+
"description": "Bump `aws-crt` version to `0.29.9`"
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS DataSync",
20+
"contributor": "",
21+
"description": "AWS DataSync now supports manifests for specifying files or objects to transfer."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon CloudFront KeyValueStore",
26+
"contributor": "",
27+
"description": "Switching CloudFront KeyValueStore onto the new SRA (Smithy Reference Architecture) identity and auth logic that was released in v2.21.0."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon Lex Model Building V2",
32+
"contributor": "",
33+
"description": "This release introduces a new bot replication feature as part of Lex Global Resiliency offering. This feature leverages a new set of APIs that allow customers to create bot replicas and replicate changes to bots across regions."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "Amazon Redshift",
38+
"contributor": "",
39+
"description": "LisRecommendations API to fetch Amazon Redshift Advisor recommendations."
40+
},
41+
{
42+
"type": "feature",
43+
"category": "AWS CRT-based S3 Client",
44+
"contributor": "",
45+
"description": "Exposes a setting to set the memory limit when making asynchronous calls with the CRT-based S3 client"
46+
},
47+
{
48+
"type": "feature",
49+
"category": "AWS SDK for Java v2",
50+
"contributor": "",
51+
"description": "Updated endpoint and partition metadata."
52+
}
53+
]
54+
}

.changes/2.23.21.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "2.23.21",
3+
"date": "2024-02-08",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS CodePipeline",
8+
"contributor": "",
9+
"description": "Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "Amazon QuickSight",
14+
"contributor": "",
15+
"description": "General Interactions for Visuals; Waterfall Chart Color Configuration; Documentation Update"
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon WorkSpaces",
20+
"contributor": "",
21+
"description": "This release introduces User-Decoupling feature. This feature allows Workspaces Core customers to provision workspaces without providing users. CreateWorkspaces and DescribeWorkspaces APIs will now take a new optional parameter \"WorkspaceName\"."
22+
}
23+
]
24+
}

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.23.21__ __2024-02-08__
3+
## __AWS CodePipeline__
4+
- ### Features
5+
- Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths.
6+
7+
## __Amazon QuickSight__
8+
- ### Features
9+
- General Interactions for Visuals; Waterfall Chart Color Configuration; Documentation Update
10+
11+
## __Amazon WorkSpaces__
12+
- ### Features
13+
- This release introduces User-Decoupling feature. This feature allows Workspaces Core customers to provision workspaces without providing users. CreateWorkspaces and DescribeWorkspaces APIs will now take a new optional parameter "WorkspaceName".
14+
15+
# __2.23.20__ __2024-02-07__
16+
## __AWS CRT Sync HTTP Client__
17+
- ### Bugfixes
18+
- Fixed an issue where `CancellationException` was thrown incorrectly from AWS CRT Sync HTTP client when execution time exceeded the total configured API call attempt timeout or API call timeout. Now it throws `ApiCallAttemptTimeoutException`/`ApiCallTimeoutException` accordingly. See [#4820](https://github.com/aws/aws-sdk-java-v2/issues/4820)
19+
20+
## __AWS CRT-based S3 Client__
21+
- ### Features
22+
- Exposes a setting to set the memory limit when making asynchronous calls with the CRT-based S3 client
23+
24+
## __AWS DataSync__
25+
- ### Features
26+
- AWS DataSync now supports manifests for specifying files or objects to transfer.
27+
28+
## __AWS SDK for Java v2__
29+
- ### Features
30+
- Bump `aws-crt` version to `0.29.9`
31+
- Updated endpoint and partition metadata.
32+
33+
## __Amazon CloudFront KeyValueStore__
34+
- ### Features
35+
- Switching CloudFront KeyValueStore onto the new SRA (Smithy Reference Architecture) identity and auth logic that was released in v2.21.0.
36+
37+
## __Amazon Lex Model Building V2__
38+
- ### Features
39+
- This release introduces a new bot replication feature as part of Lex Global Resiliency offering. This feature leverages a new set of APIs that allow customers to create bot replicas and replicate changes to bots across regions.
40+
41+
## __Amazon Redshift__
42+
- ### Features
43+
- LisRecommendations API to fetch Amazon Redshift Advisor recommendations.
44+
245
# __2.23.19__ __2024-02-06__
346
## __AWS AppSync__
447
- ### 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.19</version>
55+
<version>2.23.21</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.19</version>
89+
<version>2.23.21</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.23.19</version>
94+
<version>2.23.21</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.19</version>
106+
<version>2.23.21</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.20-SNAPSHOT</version>
23+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
23+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
23+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
23+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
20+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
23+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
20+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
24+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
24+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
24+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
25+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
24+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
25+
<version>2.23.22-SNAPSHOT</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.20-SNAPSHOT</version>
24+
<version>2.23.22-SNAPSHOT</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)