Skip to content

Commit

Permalink
Merge pull request #1984 from aws/staging/9370d83f-3e00-4034-a4bb-4b2…
Browse files Browse the repository at this point in the history
…0e5498e96

Pull request: release <- staging/9370d83f-3e00-4034-a4bb-4b20e5498e96
  • Loading branch information
dagnir committed Apr 7, 2022
2 parents 4d81e9f + 2784c19 commit 17b362b
Show file tree
Hide file tree
Showing 390 changed files with 2,311 additions and 594 deletions.
42 changes: 42 additions & 0 deletions .changes/2.17.166.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"version": "2.17.166",
"date": "2022-04-07",
"entries": [
{
"type": "feature",
"category": "Amazon EventBridge",
"contributor": "",
"description": "Adds new EventBridge Endpoint resources for disaster recovery, multi-region failover, and cross-region replication capabilities to help you build resilient event-driven applications."
},
{
"type": "feature",
"category": "Amazon API Gateway",
"contributor": "",
"description": "ApiGateway CLI command get-usage now includes usagePlanId, startDate, and endDate fields in the output to match documentation."
},
{
"type": "feature",
"category": "Amazon SageMaker Service",
"contributor": "",
"description": "Amazon Sagemaker Notebook Instances now supports G5 instance types"
},
{
"type": "feature",
"category": "AWS Performance Insights",
"contributor": "",
"description": "Adds support for DocumentDB to the Performance Insights API."
},
{
"type": "feature",
"category": "Amazon DocumentDB with MongoDB compatibility",
"contributor": "",
"description": "Added support to enable/disable performance insights when creating or modifying db instances"
},
{
"type": "feature",
"category": "Amazon Personalize",
"contributor": "",
"description": "This release provides tagging support in AWS Personalize."
}
]
}
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# __2.17.166__ __2022-04-07__
## __AWS Performance Insights__
- ### Features
- Adds support for DocumentDB to the Performance Insights API.

## __Amazon API Gateway__
- ### Features
- ApiGateway CLI command get-usage now includes usagePlanId, startDate, and endDate fields in the output to match documentation.

## __Amazon DocumentDB with MongoDB compatibility__
- ### Features
- Added support to enable/disable performance insights when creating or modifying db instances

## __Amazon EventBridge__
- ### Features
- Adds new EventBridge Endpoint resources for disaster recovery, multi-region failover, and cross-region replication capabilities to help you build resilient event-driven applications.

## __Amazon Personalize__
- ### Features
- This release provides tagging support in AWS Personalize.

## __Amazon SageMaker Service__
- ### Features
- Amazon Sagemaker Notebook Instances now supports G5 instance types

# __2.17.165__ __2022-04-06__
## __AWS Config__
- ### 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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bom</artifactId>
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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</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.17.165</version>
<version>2.17.166</version>
</parent>
<artifactId>codegen</artifactId>
<name>AWS Java SDK :: Code Generator</name>
Expand Down
2 changes: 1 addition & 1 deletion core/annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.165</version>
<version>2.17.166</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/arns/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.17.165</version>
<version>2.17.166</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/auth-crt/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>core</artifactId>
<version>2.17.165</version>
<version>2.17.166</version>
</parent>

<artifactId>auth-crt</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/auth/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>core</artifactId>
<version>2.17.165</version>
<version>2.17.166</version>
</parent>

<artifactId>auth</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* 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.auth.signer;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import software.amazon.awssdk.annotations.SdkProtectedApi;
import software.amazon.awssdk.core.internal.util.ClassLoaderHelper;
import software.amazon.awssdk.core.signer.Signer;

/**
* Utility class for instantiating signers only if they're available on the class path.
*/
@SdkProtectedApi
public final class SignerLoader {

private static final Map<String, Signer> SIGNERS = new ConcurrentHashMap<>();

private SignerLoader() {
}

public static Signer getSigV4aSigner() {
return get("software.amazon.awssdk.authcrt.signer.AwsCrtV4aSigner");
}

public static Signer getS3SigV4aSigner() {
return get("software.amazon.awssdk.authcrt.signer.AwsCrtS3V4aSigner");
}

private static Signer get(String fqcn) {
return SIGNERS.computeIfAbsent(fqcn, SignerLoader::initializeV4aSigner);
}

private static Signer initializeV4aSigner(String fqcn) {
try {
Class<?> signerClass = ClassLoaderHelper.loadClass(fqcn, false, (Class) null);
Method m = signerClass.getDeclaredMethod("create");
Object o = m.invoke(null);
return (Signer) o;
} catch (ClassNotFoundException e) {
throw new IllegalStateException("Cannot find the " + fqcn + " class."
+ " To invoke a request that requires a SigV4a signer, such as region independent " +
"signing, the 'auth-crt' core module must be on the class path. ", e);
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
throw new IllegalStateException("Failed to create " + fqcn, e);
}
}
}
2 changes: 1 addition & 1 deletion core/aws-core/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>core</artifactId>
<version>2.17.165</version>
<version>2.17.166</version>
</parent>

<artifactId>aws-core</artifactId>
Expand Down

0 comments on commit 17b362b

Please sign in to comment.