Skip to content

Merge from master #4906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2fa0d9e
AWS Glue Update: Introduce Catalog Encryption Role within Glue Data C…
Feb 5, 2024
4d17804
Amazon WorkSpaces Update: Added definitions of various WorkSpace states
Feb 5, 2024
fd010e4
Release 2.23.18. Updated CHANGELOG.md, README.md and all pom.xml.
Feb 5, 2024
069a00c
Merge pull request #2890 from aws/staging/96e1b8b2-3a37-418d-b480-f27…
aws-sdk-java-automation Feb 5, 2024
9aeba32
update aws-sdk-java pom to add imds and dyanmodb-enhanced (#4890)
zoewangg Feb 5, 2024
0fedea3
Performance improvement for sigv4 signing. (#4891)
millems Feb 5, 2024
1089532
Merge remote-tracking branch 'public/release'
Feb 5, 2024
fce9bf9
Update to next snapshot version: 2.23.19-SNAPSHOT
Feb 5, 2024
1d99321
Delete CloudSearchv2IntegrationTest (#4888)
joviegas Feb 5, 2024
6afc377
Fix tag deletion command (#4892)
dagnir Feb 5, 2024
007ee65
including S3 Access Grants Plugin as part of Java SDK Bundle (#4881)
shiva958 Feb 6, 2024
3212620
Archive old changelog entries (< 2.23.0) (#4873)
dagnir Feb 6, 2024
f323822
Changing indentation of config files to 4 spaces (#4889)
cenedhryn Feb 6, 2024
d10ddf6
Amazon EC2 Container Service Update: This release is a documentation …
Feb 6, 2024
cd207db
AWS WAFV2 Update: You can now delete an API key that you've created f…
Feb 6, 2024
ca9b69b
Amazon OpenSearch Service Update: This release adds clear visibility …
Feb 6, 2024
f92e9f3
AWS AppSync Update: Support for environment variables in AppSync Grap…
Feb 6, 2024
4275763
Amazon CloudWatch Logs Update: This release adds a new field, logGrou…
Feb 6, 2024
b020266
Amazon Elasticsearch Service Update: This release adds clear visibili…
Feb 6, 2024
9597393
Release 2.23.19. Updated CHANGELOG.md, README.md and all pom.xml.
Feb 6, 2024
9ab7d51
Merge pull request #2891 from aws/staging/6f43c303-a28b-4966-b004-d38…
aws-sdk-java-automation Feb 6, 2024
2336fed
Update to next snapshot version: 2.23.20-SNAPSHOT
Feb 6, 2024
cc06b46
Bump CRT version and expose setting memory limits for S3 calls (#4885)
cenedhryn Feb 7, 2024
bab7f24
Activating SRA for this service (#4896)
cenedhryn Feb 7, 2024
4580e26
Fix request cancellation logic in the AWS CRT Sync HTTP client (#4887)
zoewangg Feb 7, 2024
6a83122
AWS DataSync Update: AWS DataSync now supports manifests for specifyi…
Feb 7, 2024
7ab1028
Amazon Redshift Update: LisRecommendations API to fetch Amazon Redshi…
Feb 7, 2024
e16376e
Amazon Lex Model Building V2 Update: This release introduces a new bo…
Feb 7, 2024
9d8d4cf
Updated endpoints.json and partitions.json.
Feb 7, 2024
d182576
Release 2.23.20. Updated CHANGELOG.md, README.md and all pom.xml.
Feb 7, 2024
0c2d4eb
Merge pull request #2892 from aws/staging/1c0c8ade-7bcb-4158-8160-496…
aws-sdk-java-automation Feb 7, 2024
4a81f88
Update to next snapshot version: 2.23.21-SNAPSHOT
Feb 7, 2024
02e807c
Amazon QuickSight Update: General Interactions for Visuals; Waterfall…
Feb 8, 2024
ee01442
AWS CodePipeline Update: Add ability to execute pipelines with new pa…
Feb 8, 2024
ab6113b
Amazon WorkSpaces Update: This release introduces User-Decoupling fea…
Feb 8, 2024
4ef752f
Release 2.23.21. Updated CHANGELOG.md, README.md and all pom.xml.
Feb 8, 2024
1548dd5
Merge pull request #2893 from aws/staging/e358ef45-7969-4222-a98d-7fc…
aws-sdk-java-automation Feb 8, 2024
f3da726
Update to next snapshot version: 2.23.22-SNAPSHOT
Feb 8, 2024
2f2e6e1
S3 should configure signer properties (#4856)
sugmanue Feb 8, 2024
6411744
Enable CRC32 for PUT for MultipartS3AsyncClient (#4898)
davidh44 Feb 8, 2024
fe0de37
Merge branch 'master' into hdavidh/merge-from-master
davidh44 Feb 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions .changes/2.23.20.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": "2.23.20",
"date": "2024-02-07",
"entries": [
{
"type": "bugfix",
"category": "AWS CRT Sync HTTP Client",
"contributor": "",
"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)"
},
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Bump `aws-crt` version to `0.29.9`"
},
{
"type": "feature",
"category": "AWS DataSync",
"contributor": "",
"description": "AWS DataSync now supports manifests for specifying files or objects to transfer."
},
{
"type": "feature",
"category": "Amazon CloudFront KeyValueStore",
"contributor": "",
"description": "Switching CloudFront KeyValueStore onto the new SRA (Smithy Reference Architecture) identity and auth logic that was released in v2.21.0."
},
{
"type": "feature",
"category": "Amazon Lex Model Building V2",
"contributor": "",
"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."
},
{
"type": "feature",
"category": "Amazon Redshift",
"contributor": "",
"description": "LisRecommendations API to fetch Amazon Redshift Advisor recommendations."
},
{
"type": "feature",
"category": "AWS CRT-based S3 Client",
"contributor": "",
"description": "Exposes a setting to set the memory limit when making asynchronous calls with the CRT-based S3 client"
},
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Updated endpoint and partition metadata."
}
]
}
24 changes: 24 additions & 0 deletions .changes/2.23.21.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": "2.23.21",
"date": "2024-02-08",
"entries": [
{
"type": "feature",
"category": "AWS CodePipeline",
"contributor": "",
"description": "Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths."
},
{
"type": "feature",
"category": "Amazon QuickSight",
"contributor": "",
"description": "General Interactions for Visuals; Waterfall Chart Color Configuration; Documentation Update"
},
{
"type": "feature",
"category": "Amazon WorkSpaces",
"contributor": "",
"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\"."
}
]
}
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
# __2.23.21__ __2024-02-08__
## __AWS CodePipeline__
- ### Features
- Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths.

## __Amazon QuickSight__
- ### Features
- General Interactions for Visuals; Waterfall Chart Color Configuration; Documentation Update

## __Amazon WorkSpaces__
- ### Features
- 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".

# __2.23.20__ __2024-02-07__
## __AWS CRT Sync HTTP Client__
- ### Bugfixes
- 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)

## __AWS CRT-based S3 Client__
- ### Features
- Exposes a setting to set the memory limit when making asynchronous calls with the CRT-based S3 client

## __AWS DataSync__
- ### Features
- AWS DataSync now supports manifests for specifying files or objects to transfer.

## __AWS SDK for Java v2__
- ### Features
- Bump `aws-crt` version to `0.29.9`
- Updated endpoint and partition metadata.

## __Amazon CloudFront KeyValueStore__
- ### Features
- Switching CloudFront KeyValueStore onto the new SRA (Smithy Reference Architecture) identity and auth logic that was released in v2.21.0.

## __Amazon Lex Model Building V2__
- ### Features
- 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.

## __Amazon Redshift__
- ### Features
- LisRecommendations API to fetch Amazon Redshift Advisor recommendations.

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

Expand All @@ -103,7 +103,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.23.19</version>
<version>2.23.21</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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.23.20-SNAPSHOT</version>
<version>2.23.22-SNAPSHOT</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 @@ -36,6 +36,10 @@ public enum AuthType {
this.value = value;
}

public String value() {
return value;
}

public static AuthType fromValue(String value) {
String normalizedValue = StringUtils.lowerCase(value);
return Arrays.stream(values())
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

package software.amazon.awssdk.codegen.poet.auth.scheme;

import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.function.BiConsumer;
import software.amazon.awssdk.codegen.model.intermediate.IntermediateModel;

/**
* Knowledge index to get access to the configured service auth schemes and operations overrides. This index is optimized for
* code generation of switch statements therefore the data is grouped by operations that share the same auth schemes.
*/
public final class AuthSchemeCodegenKnowledgeIndex {
/**
* We delegate this value to {@link ModelAuthSchemeKnowledgeIndex#operationsToMetadata()}. We just wrap the results in an
* interface that easier to use for the layer that does the code generation.
*/
private final Map<List<String>, List<AuthSchemeCodegenMetadata>> operationsToAuthSchemes;

private AuthSchemeCodegenKnowledgeIndex(IntermediateModel intermediateModel) {
this.operationsToAuthSchemes = ModelAuthSchemeKnowledgeIndex.of(intermediateModel).operationsToMetadata();
}

/**
* Creates a new {@link AuthSchemeCodegenKnowledgeIndex} using the given {@code intermediateModel}..
*/
public static AuthSchemeCodegenKnowledgeIndex of(IntermediateModel intermediateModel) {
return new AuthSchemeCodegenKnowledgeIndex(intermediateModel);
}

/**
* Returns the service defaults auth schemes. These can be overridden by operation.
*
* @return the service defaults auth schemes.
*/
public List<AuthSchemeCodegenMetadata> serviceDefaultAuthSchemes() {
return operationsToAuthSchemes.get(Collections.emptyList());
}

/**
* Returns true if there are auth scheme overrides per operation.
*
* @return true if there are auth scheme overrides per operation
*/
public boolean hasPerOperationAuthSchemesOverrides() {
// The map at least contains one key-value pair (keyed with Collections.emptyList()).
// If we have more than that then we have at least one override.
return operationsToAuthSchemes.size() > 1;
}

/**
* Traverses each group of operations with the same set of auth schemes.
*
* @param consumer The consumer to call for each group of operations with the same set of auth schemes.
*/
public void forEachOperationsOverridesGroup(BiConsumer<List<String>, List<AuthSchemeCodegenMetadata>> consumer) {
for (Map.Entry<List<String>, List<AuthSchemeCodegenMetadata>> kvp : operationsToAuthSchemes.entrySet()) {
if (kvp.getKey().isEmpty()) {
// We are traversing operation groups, ignore service wide defaults.
continue;
}
consumer.accept(kvp.getKey(), kvp.getValue());
}
}
}
Loading