Skip to content

Commit 7255c2f

Browse files
Merge pull request #3603 from aws/staging/6b51d928-ffb4-4e24-81c7-02a5fc6cf7b8
Pull request: release <- staging/6b51d928-ffb4-4e24-81c7-02a5fc6cf7b8
2 parents bdf9cf2 + 8aae7ac commit 7255c2f

File tree

503 files changed

+1236
-894
lines changed

Some content is hidden

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

503 files changed

+1236
-894
lines changed

.changes/2.30.7.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"version": "2.30.7",
3+
"date": "2025-01-27",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Elemental MediaConvert",
8+
"contributor": "",
9+
"description": "This release adds support for dynamic audio configuration and the ability to disable the deblocking filter for h265 encodes."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS IoT",
14+
"contributor": "",
15+
"description": "Raised the documentParameters size limit to 30 KB for AWS IoT Device Management - Jobs."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS S3 Control",
20+
"contributor": "",
21+
"description": "Minor fix to ARN validation for Lambda functions passed to S3 Batch Operations"
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Agents for Amazon Bedrock",
26+
"contributor": "",
27+
"description": "Add support for the prompt caching feature for Bedrock Prompt Management"
28+
},
29+
{
30+
"type": "feature",
31+
"category": "AWS SDK for Java v2",
32+
"contributor": "",
33+
"description": "Updated endpoint and partition metadata."
34+
}
35+
]
36+
}

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
#### 👋 _Looking for changelogs for older versions? You can find them in the [changelogs](./changelogs) directory._
2+
# __2.30.7__ __2025-01-27__
3+
## __AWS Elemental MediaConvert__
4+
- ### Features
5+
- This release adds support for dynamic audio configuration and the ability to disable the deblocking filter for h265 encodes.
6+
7+
## __AWS IoT__
8+
- ### Features
9+
- Raised the documentParameters size limit to 30 KB for AWS IoT Device Management - Jobs.
10+
11+
## __AWS S3 Control__
12+
- ### Features
13+
- Minor fix to ARN validation for Lambda functions passed to S3 Batch Operations
14+
15+
## __AWS SDK for Java v2__
16+
- ### Features
17+
- Updated endpoint and partition metadata.
18+
19+
## __Agents for Amazon Bedrock__
20+
- ### Features
21+
- Add support for the prompt caching feature for Bedrock Prompt Management
22+
223
# __2.30.6__ __2025-01-24__
324
## __AWS CloudTrail__
425
- ### Features

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To automatically manage module versions (currently all modules have the same ver
5151
<dependency>
5252
<groupId>software.amazon.awssdk</groupId>
5353
<artifactId>bom</artifactId>
54-
<version>2.30.6</version>
54+
<version>2.30.7</version>
5555
<type>pom</type>
5656
<scope>import</scope>
5757
</dependency>
@@ -85,12 +85,12 @@ Alternatively you can add dependencies for the specific services you use only:
8585
<dependency>
8686
<groupId>software.amazon.awssdk</groupId>
8787
<artifactId>ec2</artifactId>
88-
<version>2.30.6</version>
88+
<version>2.30.7</version>
8989
</dependency>
9090
<dependency>
9191
<groupId>software.amazon.awssdk</groupId>
9292
<artifactId>s3</artifactId>
93-
<version>2.30.6</version>
93+
<version>2.30.7</version>
9494
</dependency>
9595
```
9696

@@ -102,7 +102,7 @@ You can import the whole SDK into your project (includes *ALL* services). Please
102102
<dependency>
103103
<groupId>software.amazon.awssdk</groupId>
104104
<artifactId>aws-sdk-java</artifactId>
105-
<version>2.30.6</version>
105+
<version>2.30.7</version>
106106
</dependency>
107107
```
108108

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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
20+
<version>2.30.7</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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
20+
<version>2.30.7</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.30.6</version>
24+
<version>2.30.7</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.30.6</version>
24+
<version>2.30.7</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.30.6</version>
24+
<version>2.30.7</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.30.6</version>
25+
<version>2.30.7</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.30.6</version>
24+
<version>2.30.7</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.30.6</version>
25+
<version>2.30.7</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.30.6</version>
24+
<version>2.30.7</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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
23+
<version>2.30.7</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.30.6</version>
25+
<version>2.30.7</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.30.6</version>
25+
<version>2.30.7</version>
2626
</parent>
2727

2828
<artifactId>auth</artifactId>

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public final class InstanceProfileCredentialsProvider
8888

8989
private final String profileName;
9090

91+
private final Duration staleTime;
92+
9193
/**
9294
* @see #builder()
9395
*/
@@ -108,6 +110,8 @@ private InstanceProfileCredentialsProvider(BuilderImpl builder) {
108110
.profileName(profileName)
109111
.build();
110112

113+
this.staleTime = Validate.getOrDefault(builder.staleTime, () -> Duration.ofSeconds(1));
114+
111115
if (Boolean.TRUE.equals(builder.asyncCredentialUpdateEnabled)) {
112116
Validate.paramNotBlank(builder.asyncThreadName, "asyncThreadName");
113117
this.credentialsCache = CachedSupplier.builder(this::refreshCredentials)
@@ -174,7 +178,7 @@ private Instant staleTime(Instant expiration) {
174178
return null;
175179
}
176180

177-
return expiration.minusSeconds(1);
181+
return expiration.minus(staleTime);
178182
}
179183

180184
private Instant prefetchTime(Instant expiration) {
@@ -340,6 +344,18 @@ public interface Builder extends HttpCredentialsProvider.Builder<InstanceProfile
340344
*/
341345
Builder profileName(String profileName);
342346

347+
/**
348+
* Configure the amount of time before the moment of expiration of credentials for which to consider the credentials to
349+
* be stale. A higher value can lead to a higher rate of request being made to the Amazon EC2 Instance Metadata Service.
350+
* The default is 1 sec.
351+
* <p>Increasing this value to a higher value (10s or more) may help with situations where a higher load on the instance
352+
* metadata service causes it to return 503s error, for which the SDK may not be able to recover fast enough and
353+
* returns expired credentials.
354+
*
355+
* @param duration the amount of time before expiration for when to consider the credentials to be stale and need refresh
356+
*/
357+
Builder staleTime(Duration duration);
358+
343359
/**
344360
* Build a {@link InstanceProfileCredentialsProvider} from the provided configuration.
345361
*/
@@ -355,6 +371,7 @@ static final class BuilderImpl implements Builder {
355371
private String asyncThreadName;
356372
private Supplier<ProfileFile> profileFile;
357373
private String profileName;
374+
private Duration staleTime;
358375

359376
private BuilderImpl() {
360377
asyncThreadName("instance-profile-credentials-provider");
@@ -367,6 +384,7 @@ private BuilderImpl(InstanceProfileCredentialsProvider provider) {
367384
this.asyncThreadName = provider.asyncThreadName;
368385
this.profileFile = provider.profileFile;
369386
this.profileName = provider.profileName;
387+
this.staleTime = provider.staleTime;
370388
}
371389

372390
Builder clock(Clock clock) {
@@ -435,6 +453,16 @@ public void setProfileName(String profileName) {
435453
profileName(profileName);
436454
}
437455

456+
@Override
457+
public Builder staleTime(Duration duration) {
458+
this.staleTime = duration;
459+
return this;
460+
}
461+
462+
public void setStaleTime(Duration duration) {
463+
staleTime(duration);
464+
}
465+
438466
@Override
439467
public InstanceProfileCredentialsProvider build() {
440468
return new InstanceProfileCredentialsProvider(this);

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@
1717

1818
import java.io.IOException;
1919
import software.amazon.awssdk.annotations.SdkInternalApi;
20+
import software.amazon.awssdk.auth.credentials.ContainerCredentialsProvider;
21+
import software.amazon.awssdk.auth.credentials.InstanceProfileCredentialsProvider;
2022
import software.amazon.awssdk.http.HttpStatusFamily;
2123
import software.amazon.awssdk.regions.util.ResourcesEndpointRetryParameters;
2224
import software.amazon.awssdk.regions.util.ResourcesEndpointRetryPolicy;
2325

26+
/**
27+
* Retry policy shared by {@link InstanceProfileCredentialsProvider} and {@link ContainerCredentialsProvider#}.
28+
*/
2429
@SdkInternalApi
2530
public final class ContainerCredentialsRetryPolicy implements ResourcesEndpointRetryPolicy {
2631

0 commit comments

Comments
 (0)