Skip to content

Commit

Permalink
Merge pull request #2397 from aws/staging/34060778-53d5-4c69-b9a7-2c7…
Browse files Browse the repository at this point in the history
…5d5f5142e

Pull request: release <- staging/34060778-53d5-4c69-b9a7-2c75d5f5142e
  • Loading branch information
aws-sdk-java-automation committed Feb 21, 2023
2 parents 88d75b4 + 80fdba3 commit 7277a3f
Show file tree
Hide file tree
Showing 420 changed files with 6,402 additions and 2,152 deletions.
42 changes: 42 additions & 0 deletions .changes/2.20.9.json
@@ -0,0 +1,42 @@
{
"version": "2.20.9",
"date": "2023-02-21",
"entries": [
{
"type": "bugfix",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Fix race condition that could cause a NullPointerException to be raised from ProfileCredentialsProvider."
},
{
"type": "feature",
"category": "AWS Resilience Hub",
"contributor": "",
"description": "In this release we improved resilience hub application creation and maintenance by introducing new resource and app component crud APIs, improving visibility and maintenance of application input sources and added support for additional information attributes to be provided by customers."
},
{
"type": "feature",
"category": "AWS SecurityHub",
"contributor": "",
"description": "Documentation updates for AWS Security Hub"
},
{
"type": "feature",
"category": "AWS Telco Network Builder",
"contributor": "",
"description": "This is the initial SDK release for AWS Telco Network Builder (TNB). AWS Telco Network Builder is a network automation service that helps you deploy and manage telecom networks."
},
{
"type": "feature",
"category": "Amazon QuickSight",
"contributor": "",
"description": "S3 data sources now accept a custom IAM role."
},
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "Updated endpoint and partition metadata."
}
]
}
24 changes: 24 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,27 @@
# __2.20.9__ __2023-02-21__
## __AWS Resilience Hub__
- ### Features
- In this release we improved resilience hub application creation and maintenance by introducing new resource and app component crud APIs, improving visibility and maintenance of application input sources and added support for additional information attributes to be provided by customers.

## __AWS SDK for Java v2__
- ### Features
- Updated endpoint and partition metadata.

- ### Bugfixes
- Fix race condition that could cause a NullPointerException to be raised from ProfileCredentialsProvider.

## __AWS SecurityHub__
- ### Features
- Documentation updates for AWS Security Hub

## __AWS Telco Network Builder__
- ### Features
- This is the initial SDK release for AWS Telco Network Builder (TNB). AWS Telco Network Builder is a network automation service that helps you deploy and manage telecom networks.

## __Amazon QuickSight__
- ### Features
- S3 data sources now accept a custom IAM role.

# __2.20.8__ __2023-02-20__
## __AWS Audit Manager__
- ### Features
Expand Down
8 changes: 4 additions & 4 deletions README.md
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.20.8</version>
<version>2.20.9</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.20.8</version>
<version>2.20.9</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.20.8</version>
<version>2.20.9</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.20.8</version>
<version>2.20.9</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-app-quickstart/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-lambda/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetype-lambda</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion archetypes/archetype-tools/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>archetypes</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion archetypes/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetypes</artifactId>
Expand Down
7 changes: 6 additions & 1 deletion aws-sdk-java/pom.xml
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>aws-sdk-java</artifactId>
Expand Down Expand Up @@ -1713,6 +1713,11 @@ Amazon AutoScaling, etc).</description>
<artifactId>cloudtraildata</artifactId>
<version>${awsjavasdk.version}</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>tnb</artifactId>
<version>${awsjavasdk.version}</version>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
Expand Down
2 changes: 1 addition & 1 deletion bom-internal/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
7 changes: 6 additions & 1 deletion bom/pom.xml
Expand Up @@ -17,7 +17,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bom</artifactId>
Expand Down Expand Up @@ -1863,6 +1863,11 @@
<artifactId>imds</artifactId>
<version>${awsjavasdk.version}</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>tnb</artifactId>
<version>${awsjavasdk.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
</project>
2 changes: 1 addition & 1 deletion bundle/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<artifactId>bundle</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion codegen-lite-maven-plugin/pom.xml
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>codegen-lite-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codegen-lite/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</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
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>codegen-maven-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion codegen/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>aws-sdk-java-pom</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<artifactId>codegen</artifactId>
<name>AWS Java SDK :: Code Generator</name>
Expand Down
2 changes: 1 addition & 1 deletion core/annotations/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/arns/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/auth-crt/pom.xml
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>core</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>

<artifactId>auth-crt</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/auth/pom.xml
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>core</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>

<artifactId>auth</artifactId>
Expand Down
Expand Up @@ -56,6 +56,8 @@ public final class ProfileCredentialsProvider
private final String profileName;
private final Supplier<ProfileFile> defaultProfileFileLoader;

private final Object credentialsProviderLock = new Object();

/**
* @see #builder()
*/
Expand Down Expand Up @@ -117,9 +119,9 @@ public AwsCredentials resolveCredentials() {
}

ProfileFile cachedOrRefreshedProfileFile = refreshProfileFile();
if (isNewProfileFile(cachedOrRefreshedProfileFile)) {
synchronized (this) {
if (isNewProfileFile(cachedOrRefreshedProfileFile)) {
if (shouldUpdateCredentialsProvider(cachedOrRefreshedProfileFile)) {
synchronized (credentialsProviderLock) {
if (shouldUpdateCredentialsProvider(cachedOrRefreshedProfileFile)) {
currentProfileFile = cachedOrRefreshedProfileFile;
handleProfileFileReload(cachedOrRefreshedProfileFile);
}
Expand All @@ -137,8 +139,8 @@ private ProfileFile refreshProfileFile() {
return profileFile.get();
}

private boolean isNewProfileFile(ProfileFile profileFile) {
return !Objects.equals(currentProfileFile, profileFile);
private boolean shouldUpdateCredentialsProvider(ProfileFile profileFile) {
return credentialsProvider == null || !Objects.equals(currentProfileFile, profileFile);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion core/aws-core/pom.xml
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>core</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>

<artifactId>aws-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/endpoints-spi/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/imds/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>imds</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/json-utils/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/metrics-spi/pom.xml
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>core</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Expand Up @@ -21,7 +21,7 @@
<parent>
<artifactId>aws-sdk-java-pom</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>

<artifactId>core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/profiles/pom.xml
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>software.amazon.awssdk</groupId>
<artifactId>core</artifactId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>

<artifactId>profiles</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/protocols/aws-cbor-protocol/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>protocols</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/protocols/aws-json-protocol/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>protocols</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion core/protocols/aws-query-protocol/pom.xml
Expand Up @@ -20,7 +20,7 @@
<parent>
<artifactId>protocols</artifactId>
<groupId>software.amazon.awssdk</groupId>
<version>2.20.8</version>
<version>2.20.9</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit 7277a3f

Please sign in to comment.