Skip to content

Commit 8da736c

Browse files
Merge pull request #2553 from aws/staging/edf479cc-a010-4e53-a02a-779ee30e6824
Pull request: release <- staging/edf479cc-a010-4e53-a02a-779ee30e6824
2 parents 28f8904 + 2e195ce commit 8da736c

File tree

422 files changed

+1697
-2716
lines changed

Some content is hidden

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

422 files changed

+1697
-2716
lines changed

.changes/2.20.62.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.20.62",
3+
"date": "2023-05-08",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Glue",
8+
"contributor": "",
9+
"description": "We don't do release notes https://w.amazon.com/bin/view/AWSDocs/common-tasks/release-notes"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS IoT SiteWise",
14+
"contributor": "",
15+
"description": "Provide support for 20,000 max results for GetAssetPropertyValueHistory/BatchGetAssetPropertyValueHistory and 15 minute aggregate resolution for GetAssetPropertyAggregates/BatchGetAssetPropertyAggregates"
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS SDK for Java v2, AWS STS",
20+
"contributor": "paulolieuthier",
21+
"description": "Respect async credentials update flag from DefaultCredentialsProvider for WebIdentityTokenFileCredentialProvider, potentially avoiding latency spikes on credentials expiration"
22+
},
23+
{
24+
"type": "feature",
25+
"category": "AWS Security Token Service",
26+
"contributor": "",
27+
"description": "Documentation updates for AWS Security Token Service."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon GuardDuty",
32+
"contributor": "",
33+
"description": "Add AccessDeniedException 403 Error message code to support 3 Tagging related APIs"
34+
},
35+
{
36+
"type": "feature",
37+
"category": "AWS SDK for Java v2",
38+
"contributor": "",
39+
"description": "Updated endpoint and partition metadata."
40+
}
41+
]
42+
}

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
# __2.20.62__ __2023-05-08__
2+
## __AWS Glue__
3+
- ### Features
4+
- We don't do release notes https://w.amazon.com/bin/view/AWSDocs/common-tasks/release-notes
5+
6+
## __AWS IoT SiteWise__
7+
- ### Features
8+
- Provide support for 20,000 max results for GetAssetPropertyValueHistory/BatchGetAssetPropertyValueHistory and 15 minute aggregate resolution for GetAssetPropertyAggregates/BatchGetAssetPropertyAggregates
9+
10+
## __AWS SDK for Java v2__
11+
- ### Features
12+
- Updated endpoint and partition metadata.
13+
14+
## __AWS SDK for Java v2, AWS STS__
15+
- ### Features
16+
- Respect async credentials update flag from DefaultCredentialsProvider for WebIdentityTokenFileCredentialProvider, potentially avoiding latency spikes on credentials expiration
17+
- Contributed by: [@paulolieuthier](https://github.com/paulolieuthier)
18+
19+
## __AWS Security Token Service__
20+
- ### Features
21+
- Documentation updates for AWS Security Token Service.
22+
23+
## __Amazon GuardDuty__
24+
- ### Features
25+
- Add AccessDeniedException 403 Error message code to support 3 Tagging related APIs
26+
27+
## __Contributors__
28+
Special thanks to the following contributors to this release:
29+
30+
[@paulolieuthier](https://github.com/paulolieuthier)
131
# __2.20.61__ __2023-05-05__
232
## __AWS MediaTailor__
333
- ### 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.20.61</version>
55+
<version>2.20.62</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.20.61</version>
89+
<version>2.20.62</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.20.61</version>
94+
<version>2.20.62</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.20.61</version>
106+
<version>2.20.62</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.20.61</version>
23+
<version>2.20.62</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.20.61</version>
23+
<version>2.20.62</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.20.61</version>
23+
<version>2.20.62</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.20.61</version>
23+
<version>2.20.62</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.20.61</version>
20+
<version>2.20.62</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.20.61</version>
23+
<version>2.20.62</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.20.61</version>
20+
<version>2.20.62</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>

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.20.61</version>
24+
<version>2.20.62</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.20.61</version>
25+
<version>2.20.62</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.20.61</version>
24+
<version>2.20.62</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.20.61</version>
25+
<version>2.20.62</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.20.61</version>
24+
<version>2.20.62</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

core/annotations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>core</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.20.61</version>
23+
<version>2.20.62</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/arns/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>core</artifactId>
2222
<groupId>software.amazon.awssdk</groupId>
23-
<version>2.20.61</version>
23+
<version>2.20.62</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

core/auth-crt/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>core</artifactId>
25-
<version>2.20.61</version>
25+
<version>2.20.62</version>
2626
</parent>
2727

2828
<artifactId>auth-crt</artifactId>

core/auth/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>core</artifactId>
25-
<version>2.20.61</version>
25+
<version>2.20.62</version>
2626
</parent>
2727

2828
<artifactId>auth</artifactId>

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/DefaultCredentialsProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ private static LazyAwsCredentialsProvider createChain(Builder builder) {
9292
AwsCredentialsProvider[] credentialsProviders = new AwsCredentialsProvider[] {
9393
SystemPropertyCredentialsProvider.create(),
9494
EnvironmentVariableCredentialsProvider.create(),
95-
WebIdentityTokenFileCredentialsProvider.create(),
95+
WebIdentityTokenFileCredentialsProvider.builder()
96+
.asyncCredentialUpdateEnabled(asyncCredentialUpdateEnabled)
97+
.build(),
9698
ProfileCredentialsProvider.builder()
9799
.profileFile(builder.profileFile)
98100
.profileName(builder.profileName)

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/WebIdentityTokenFileCredentialsProvider.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,15 @@ public class WebIdentityTokenFileCredentialsProvider
5858

5959
private final Path webIdentityTokenFile;
6060

61+
private final Boolean asyncCredentialUpdateEnabled;
62+
6163
private WebIdentityTokenFileCredentialsProvider(BuilderImpl builder) {
6264
AwsCredentialsProvider credentialsProvider = null;
6365
RuntimeException loadException = null;
6466
String roleArn = null;
6567
String roleSessionName = null;
6668
Path webIdentityTokenFile = null;
69+
Boolean asyncCredentialUpdateEnabled = null;
6770

6871
try {
6972
webIdentityTokenFile =
@@ -78,11 +81,15 @@ private WebIdentityTokenFileCredentialsProvider(BuilderImpl builder) {
7881
builder.roleSessionName != null ? builder.roleSessionName
7982
: SdkSystemSetting.AWS_ROLE_SESSION_NAME.getStringValue().orElse(null);
8083

84+
asyncCredentialUpdateEnabled =
85+
builder.asyncCredentialUpdateEnabled != null ? builder.asyncCredentialUpdateEnabled : false;
86+
8187
WebIdentityTokenCredentialProperties credentialProperties =
8288
WebIdentityTokenCredentialProperties.builder()
8389
.roleArn(roleArn)
8490
.roleSessionName(roleSessionName)
8591
.webIdentityTokenFile(webIdentityTokenFile)
92+
.asyncCredentialUpdateEnabled(asyncCredentialUpdateEnabled)
8693
.build();
8794

8895
credentialsProvider = WebIdentityCredentialsUtils.factory().create(credentialProperties);
@@ -98,6 +105,7 @@ private WebIdentityTokenFileCredentialsProvider(BuilderImpl builder) {
98105
this.roleArn = roleArn;
99106
this.roleSessionName = roleSessionName;
100107
this.webIdentityTokenFile = webIdentityTokenFile;
108+
this.asyncCredentialUpdateEnabled = asyncCredentialUpdateEnabled;
101109
}
102110

103111
public static WebIdentityTokenFileCredentialsProvider create() {
@@ -152,6 +160,12 @@ public interface Builder extends CopyableBuilder<Builder, WebIdentityTokenFileCr
152160
*/
153161
Builder webIdentityTokenFile(Path webIdentityTokenFile);
154162

163+
/**
164+
* Define whether the provider should fetch credentials asynchronously in the background.
165+
*/
166+
167+
Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled);
168+
155169
/**
156170
* Create a {@link WebIdentityTokenFileCredentialsProvider} using the configuration applied to this builder.
157171
*/
@@ -162,6 +176,7 @@ static final class BuilderImpl implements Builder {
162176
private String roleArn;
163177
private String roleSessionName;
164178
private Path webIdentityTokenFile;
179+
private Boolean asyncCredentialUpdateEnabled;
165180

166181
BuilderImpl() {
167182
}
@@ -170,6 +185,7 @@ private BuilderImpl(WebIdentityTokenFileCredentialsProvider provider) {
170185
this.roleArn = provider.roleArn;
171186
this.roleSessionName = provider.roleSessionName;
172187
this.webIdentityTokenFile = provider.webIdentityTokenFile;
188+
this.asyncCredentialUpdateEnabled = provider.asyncCredentialUpdateEnabled;
173189
}
174190

175191
@Override
@@ -202,6 +218,16 @@ public void setWebIdentityTokenFile(Path webIdentityTokenFile) {
202218
webIdentityTokenFile(webIdentityTokenFile);
203219
}
204220

221+
@Override
222+
public Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled) {
223+
this.asyncCredentialUpdateEnabled = asyncCredentialUpdateEnabled;
224+
return this;
225+
}
226+
227+
public void setAsyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled) {
228+
asyncCredentialUpdateEnabled(asyncCredentialUpdateEnabled);
229+
}
230+
205231
@Override
206232
public WebIdentityTokenFileCredentialsProvider build() {
207233
return new WebIdentityTokenFileCredentialsProvider(this);

core/auth/src/main/java/software/amazon/awssdk/auth/credentials/internal/WebIdentityTokenCredentialProperties.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ public class WebIdentityTokenCredentialProperties {
2727
private final String roleArn;
2828
private final String roleSessionName;
2929
private final Path webIdentityTokenFile;
30+
private final Boolean asyncCredentialUpdateEnabled;
3031

3132
private WebIdentityTokenCredentialProperties(Builder builder) {
3233
this.roleArn = builder.roleArn;
3334
this.roleSessionName = builder.roleSessionName;
3435
this.webIdentityTokenFile = builder.webIdentityTokenFile;
36+
this.asyncCredentialUpdateEnabled = builder.asyncCredentialUpdateEnabled;
3537
}
3638

3739
public String roleArn() {
@@ -46,6 +48,10 @@ public Path webIdentityTokenFile() {
4648
return webIdentityTokenFile;
4749
}
4850

51+
public Boolean asyncCredentialUpdateEnabled() {
52+
return asyncCredentialUpdateEnabled;
53+
}
54+
4955
public static Builder builder() {
5056
return new Builder();
5157
}
@@ -54,6 +60,7 @@ public static final class Builder {
5460
private String roleArn;
5561
private String roleSessionName;
5662
private Path webIdentityTokenFile;
63+
private Boolean asyncCredentialUpdateEnabled;
5764

5865
public Builder roleArn(String roleArn) {
5966
this.roleArn = roleArn;
@@ -70,6 +77,11 @@ public Builder webIdentityTokenFile(Path webIdentityTokenFile) {
7077
return this;
7178
}
7279

80+
public Builder asyncCredentialUpdateEnabled(Boolean asyncCredentialUpdateEnabled) {
81+
this.asyncCredentialUpdateEnabled = asyncCredentialUpdateEnabled;
82+
return this;
83+
}
84+
7385
public WebIdentityTokenCredentialProperties build() {
7486
return new WebIdentityTokenCredentialProperties(this);
7587
}

0 commit comments

Comments
 (0)