Skip to content

Commit 544a495

Browse files
authored
Merge pull request #2724 from aws/staging/4bdcd260-c4cf-463c-827b-cb8ade200a9c
Pull request: release <- staging/4bdcd260-c4cf-463c-827b-cb8ade200a9c
2 parents f96efdf + 349b030 commit 544a495

File tree

452 files changed

+1062
-676
lines changed

Some content is hidden

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

452 files changed

+1062
-676
lines changed

.changes/2.21.8.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"version": "2.21.8",
3+
"date": "2023-10-25",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Ground Station",
8+
"contributor": "",
9+
"description": "This release will allow KMS alias names to be used when creating Mission Profiles"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS Identity and Access Management",
14+
"contributor": "",
15+
"description": "Updates to GetAccessKeyLastUsed action to replace NoSuchEntity error with AccessDeniedException error."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon Connect Cases",
20+
"contributor": "",
21+
"description": "Increase maximum length of CommentBody to 3000, and increase maximum length of StringValue to 1500"
22+
},
23+
{
24+
"type": "bugfix",
25+
"category": "AWS SDK for Java v2",
26+
"contributor": "",
27+
"description": "Fixed concurrency bug with ResolvedChecksumSpecs execution-attribute and associated mappings https://github.com/aws/aws-sdk-java-v2/issues/4608"
28+
}
29+
]
30+
}

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# __2.21.8__ __2023-10-25__
2+
## __AWS Ground Station__
3+
- ### Features
4+
- This release will allow KMS alias names to be used when creating Mission Profiles
5+
6+
## __AWS Identity and Access Management__
7+
- ### Features
8+
- Updates to GetAccessKeyLastUsed action to replace NoSuchEntity error with AccessDeniedException error.
9+
10+
## __Amazon Connect Cases__
11+
- ### Features
12+
- Increase maximum length of CommentBody to 3000, and increase maximum length of StringValue to 1500
13+
114
# __2.21.7__ __2023-10-24__
215
## __AWS CodePipeline__
316
- ### Features
@@ -2630,7 +2643,7 @@ Special thanks to the following contributors to this release:
26302643
## __Contributors__
26312644
Special thanks to the following contributors to this release:
26322645

2633-
[@breader124](https://github.com/breader124), [@bmaizels](https://github.com/bmaizels)
2646+
[@bmaizels](https://github.com/bmaizels), [@breader124](https://github.com/breader124)
26342647
# __2.20.85__ __2023-06-13__
26352648
## __AWS CloudTrail__
26362649
- ### 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.21.7</version>
55+
<version>2.21.8</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.21.7</version>
89+
<version>2.21.8</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.21.7</version>
94+
<version>2.21.8</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.21.7</version>
106+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
20+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
20+
<version>2.21.8</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.21.7</version>
24+
<version>2.21.8</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.21.7</version>
25+
<version>2.21.8</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.21.7</version>
24+
<version>2.21.8</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.21.7</version>
25+
<version>2.21.8</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.21.7</version>
24+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
23+
<version>2.21.8</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.21.7</version>
25+
<version>2.21.8</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.21.7</version>
25+
<version>2.21.8</version>
2626
</parent>
2727

2828
<artifactId>auth</artifactId>

core/auth/src/test/java/software/amazon/awssdk/auth/signer/AwsSignerExecutionAttributeTest.java

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,25 @@
1717

1818
import static org.assertj.core.api.Assertions.assertThat;
1919
import static org.junit.jupiter.api.Assertions.assertThrows;
20+
import static software.amazon.awssdk.checksums.DefaultChecksumAlgorithm.CRC32;
21+
import static software.amazon.awssdk.checksums.DefaultChecksumAlgorithm.SHA256;
2022

2123
import java.time.Clock;
2224
import java.time.Duration;
2325
import java.time.Instant;
2426
import java.time.ZoneOffset;
27+
import java.util.Collections;
2528
import java.util.concurrent.CompletableFuture;
2629
import org.junit.jupiter.api.BeforeEach;
2730
import org.junit.jupiter.api.Test;
2831
import org.mockito.Mockito;
2932
import software.amazon.awssdk.auth.credentials.AwsCredentials;
3033
import software.amazon.awssdk.core.SelectedAuthScheme;
34+
import software.amazon.awssdk.core.checksums.Algorithm;
35+
import software.amazon.awssdk.core.checksums.ChecksumSpecs;
3136
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
3237
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
38+
import software.amazon.awssdk.core.interceptor.SdkExecutionAttribute;
3339
import software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute;
3440
import software.amazon.awssdk.http.auth.aws.signer.AwsV4FamilyHttpSigner;
3541
import software.amazon.awssdk.http.auth.aws.signer.AwsV4HttpSigner;
@@ -164,6 +170,94 @@ public void signingExpiration_oldAndNewAttributeAreMirrored() {
164170
Duration.ofSeconds(10));
165171
}
166172

173+
@Test
174+
public void checksum_AttributeWriteReflectedInProperty() {
175+
assertOldAttributeWrite_canBeReadFromNewAttributeCases(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS,
176+
AwsV4FamilyHttpSigner.CHECKSUM_ALGORITHM,
177+
ChecksumSpecs.builder()
178+
.isRequestChecksumRequired(true)
179+
.headerName("beepboop")
180+
.isRequestStreaming(true)
181+
.isValidationEnabled(true)
182+
.responseValidationAlgorithms(
183+
Collections.singletonList(Algorithm.CRC32))
184+
.algorithm(Algorithm.SHA256)
185+
.build(),
186+
SHA256);
187+
}
188+
189+
@Test
190+
public void checksum_PropertyWriteReflectedInAttribute() {
191+
ChecksumSpecs initialValue = ChecksumSpecs.builder()
192+
.isRequestChecksumRequired(true)
193+
.headerName("x-amz-checksum-sha256")
194+
.isRequestStreaming(true)
195+
.isValidationEnabled(true)
196+
.responseValidationAlgorithms(
197+
Collections.singletonList(Algorithm.CRC32))
198+
.algorithm(Algorithm.SHA256)
199+
.build();
200+
attributes.putAttribute(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS, initialValue);
201+
202+
assertNewPropertyWrite_canBeReadFromNewAttribute(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS,
203+
AwsV4FamilyHttpSigner.CHECKSUM_ALGORITHM, initialValue, SHA256);
204+
}
205+
206+
@Test
207+
public void checksum_NullPropertyWriteReflectedInAttribute() {
208+
ChecksumSpecs initialValue = ChecksumSpecs.builder()
209+
.isRequestChecksumRequired(true)
210+
.headerName("x-amz-checksum-sha256")
211+
.isRequestStreaming(true)
212+
.isValidationEnabled(true)
213+
.responseValidationAlgorithms(
214+
Collections.singletonList(Algorithm.CRC32))
215+
.algorithm(Algorithm.SHA256)
216+
.build();
217+
attributes.putAttribute(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS, initialValue);
218+
219+
ChecksumSpecs expectedValue = ChecksumSpecs.builder()
220+
.isRequestChecksumRequired(true)
221+
.isRequestStreaming(true)
222+
.isValidationEnabled(true)
223+
.responseValidationAlgorithms(
224+
Collections.singletonList(Algorithm.CRC32))
225+
.build();
226+
227+
assertNewPropertyWrite_canBeReadFromNewAttribute(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS,
228+
AwsV4FamilyHttpSigner.CHECKSUM_ALGORITHM, expectedValue, null);
229+
}
230+
231+
@Test
232+
public void checksum_PropertyWriteReflectedInAttributeAndHeaderName() {
233+
// We need to set up the attribute first, so that ChecksumSpecs information is not lost
234+
ChecksumSpecs valueToWrite = ChecksumSpecs.builder()
235+
.isRequestChecksumRequired(true)
236+
.headerName("x-amz-checksum-sha256")
237+
.isRequestStreaming(true)
238+
.isValidationEnabled(true)
239+
.responseValidationAlgorithms(
240+
Collections.singletonList(Algorithm.CRC32))
241+
.algorithm(Algorithm.SHA256)
242+
.build();
243+
attributes.putAttribute(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS, valueToWrite);
244+
245+
// The header name should be updated to reflect the change in algorithm
246+
ChecksumSpecs expectedValue = ChecksumSpecs.builder()
247+
.isRequestChecksumRequired(true)
248+
.headerName("x-amz-checksum-crc32")
249+
.isRequestStreaming(true)
250+
.isValidationEnabled(true)
251+
.responseValidationAlgorithms(
252+
Collections.singletonList(Algorithm.CRC32))
253+
.algorithm(Algorithm.CRC32)
254+
.build();
255+
256+
assertNewPropertyWrite_canBeReadFromNewAttribute(SdkExecutionAttribute.RESOLVED_CHECKSUM_SPECS,
257+
AwsV4FamilyHttpSigner.CHECKSUM_ALGORITHM, expectedValue, CRC32);
258+
259+
}
260+
167261
private void assertOldAndNewBooleanAttributesAreMirrored(ExecutionAttribute<Boolean> attribute,
168262
SignerProperty<Boolean> property) {
169263
assertOldAndNewAttributesAreMirrored(attribute, property, true);

core/aws-core/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.21.7</version>
25+
<version>2.21.8</version>
2626
</parent>
2727

2828
<artifactId>aws-core</artifactId>

0 commit comments

Comments
 (0)