Skip to content

Commit

Permalink
Merge pull request #2222 from aws/staging/68675c51-0991-4415-905c-f0d…
Browse files Browse the repository at this point in the history
…d8f72d583

Pull request: release <- staging/68675c51-0991-4415-905c-f0dd8f72d583
  • Loading branch information
aws-sdk-java-automation committed Oct 26, 2022
2 parents 4aa623c + 9c6cc2d commit ca81dba
Show file tree
Hide file tree
Showing 397 changed files with 1,796 additions and 922 deletions.
4 changes: 2 additions & 2 deletions .brazil.json
Expand Up @@ -120,7 +120,7 @@
"software.amazon:flow": { "packageName": "AwsFlowJava", "packageVersion": "1.0" },
"org.junit.jupiter:junit-jupiter": { "packageName": "JUnit5", "packageVersion": "5.x" },
"org.mockito:mockito-core": { "packageName": "Mockito", "packageVersion": "3.x" },
"io.reactivex.rxjava3:rxjava": { "packageName": "RxJava", ",packageVersion": "3.x" },
"org.assertj:assertj-core": { "packageName": "AssertJ", ",packageVersion": "3.22.x" }
"io.reactivex.rxjava3:rxjava": { "packageName": "RxJava", "packageVersion": "3.x" },
"org.assertj:assertj-core": { "packageName": "AssertJ", "packageVersion": "3.22.x" }
}
}
42 changes: 42 additions & 0 deletions .changes/2.18.4.json
@@ -0,0 +1,42 @@
{
"version": "2.18.4",
"date": "2022-10-26",
"entries": [
{
"type": "bugfix",
"category": "AWS SDK for Java v2",
"contributor": "",
"description": "HttpChecksumResolver.getResolvedChecksumSpecs() first attempts retrieval of checksum from ExecutionAttributes before resolving it"
},
{
"type": "feature",
"category": "AWS Identity and Access Management",
"contributor": "",
"description": "Doc only update that corrects instances of CLI not using an entity."
},
{
"type": "feature",
"category": "AWS SDK for Java v2",
"contributor": "L-Applin",
"description": "Update EnhancedAttributeValue to accept Collection"
},
{
"type": "feature",
"category": "Amazon Neptune",
"contributor": "",
"description": "Added a new cluster-level attribute to set the capacity range for Neptune Serverless instances."
},
{
"type": "feature",
"category": "Amazon SageMaker Service",
"contributor": "",
"description": "Amazon SageMaker Automatic Model Tuning now supports specifying Grid Search strategy for tuning jobs, which evaluates all hyperparameter combinations exhaustively based on the categorical hyperparameters provided."
},
{
"type": "feature",
"category": "Managed Streaming for Kafka",
"contributor": "",
"description": "This release adds support for Tiered Storage. UpdateStorage allows you to control the Storage Mode for supported storage tiers."
}
]
}
29 changes: 29 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,32 @@
# __2.18.4__ __2022-10-26__
## __AWS Identity and Access Management__
- ### Features
- Doc only update that corrects instances of CLI not using an entity.

## __AWS SDK for Java v2__
- ### Features
- Update EnhancedAttributeValue to accept Collection
- Contributed by: [@L-Applin](https://github.com/L-Applin)

- ### Bugfixes
- HttpChecksumResolver.getResolvedChecksumSpecs() first attempts retrieval of checksum from ExecutionAttributes before resolving it

## __Amazon Neptune__
- ### Features
- Added a new cluster-level attribute to set the capacity range for Neptune Serverless instances.

## __Amazon SageMaker Service__
- ### Features
- Amazon SageMaker Automatic Model Tuning now supports specifying Grid Search strategy for tuning jobs, which evaluates all hyperparameter combinations exhaustively based on the categorical hyperparameters provided.

## __Managed Streaming for Kafka__
- ### Features
- This release adds support for Tiered Storage. UpdateStorage allows you to control the Storage Mode for supported storage tiers.

## __Contributors__
Special thanks to the following contributors to this release:

[@L-Applin](https://github.com/L-Applin)
# __2.18.3__ __2022-10-25__
## __AWS MediaTailor__
- ### 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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>s3</artifactId>
<version>2.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>archetypes</artifactId>
Expand Down
2 changes: 1 addition & 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.18.3</version>
<version>2.18.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>aws-sdk-java</artifactId>
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.18.3</version>
<version>2.18.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 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.18.3</version>
<version>2.18.4</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>bom</artifactId>
Expand Down
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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</version>
</parent>

<artifactId>auth</artifactId>
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.18.3</version>
<version>2.18.4</version>
</parent>

<artifactId>aws-core</artifactId>
Expand Down
Expand Up @@ -99,7 +99,7 @@ private AwsExecutionContextBuilder() {
.putAttribute(SdkExecutionAttribute.SIGNER_OVERRIDDEN, clientConfig.option(SdkClientOption.SIGNER_OVERRIDDEN))
.putAttribute(AwsExecutionAttribute.USE_GLOBAL_ENDPOINT,
clientConfig.option(AwsClientOption.USE_GLOBAL_ENDPOINT))
.putAttribute(RESOLVED_CHECKSUM_SPECS, HttpChecksumResolver.getResolvedChecksumSpecs(executionAttributes));
.putAttribute(RESOLVED_CHECKSUM_SPECS, HttpChecksumResolver.resolveChecksumSpecs(executionAttributes));

ExecutionInterceptorChain executionInterceptorChain =
new ExecutionInterceptorChain(clientConfig.option(SdkClientOption.EXECUTION_INTERCEPTORS));
Expand Down
Expand Up @@ -31,21 +31,22 @@
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
import software.amazon.awssdk.auth.signer.AwsSignerExecutionAttribute;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.awscore.client.config.AwsClientOption;
import software.amazon.awssdk.awscore.internal.AwsExecutionContextBuilder;
import software.amazon.awssdk.core.SdkRequest;
import software.amazon.awssdk.core.SdkResponse;
import software.amazon.awssdk.core.checksums.ChecksumSpecs;
import software.amazon.awssdk.core.client.config.SdkAdvancedClientOption;
import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
import software.amazon.awssdk.core.client.config.SdkClientOption;
import software.amazon.awssdk.core.client.handler.ClientExecutionParams;
import software.amazon.awssdk.core.http.ExecutionContext;
import software.amazon.awssdk.core.interceptor.ExecutionAttribute;
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
import software.amazon.awssdk.core.interceptor.SdkExecutionAttribute;
import software.amazon.awssdk.core.interceptor.SdkInternalExecutionAttribute;
import software.amazon.awssdk.core.interceptor.trait.HttpChecksum;
import software.amazon.awssdk.core.internal.util.HttpChecksumUtils;
import software.amazon.awssdk.core.signer.Signer;

@RunWith(MockitoJUnitRunner.class)
Expand Down Expand Up @@ -120,6 +121,63 @@ public void signing_ifClientOverride_assignClientOverrideSigner() {

assertThat(executionContext.signer()).isEqualTo(clientOverrideSigner);
}

@Test
public void invokeInterceptorsAndCreateExecutionContext_noHttpChecksumTrait_resolvesChecksumSpecs() {
ExecutionContext executionContext =
AwsExecutionContextBuilder.invokeInterceptorsAndCreateExecutionContext(clientExecutionParams(),
testClientConfiguration().build());

ExecutionAttributes executionAttributes = executionContext.executionAttributes();
Optional<ChecksumSpecs> checksumSpecs1 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes);
Optional<ChecksumSpecs> checksumSpecs2 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes);

assertThat(checksumSpecs1).isNotPresent();
assertThat(checksumSpecs2).isNotPresent();
assertThat(checksumSpecs1).isSameAs(checksumSpecs2);
}

@Test
public void invokeInterceptorsAndCreateExecutionContext_singleExecutionContext_resolvesChecksumSpecsOnce() {
HttpChecksum httpCrc32Checksum =
HttpChecksum.builder().requestAlgorithm("crc32").isRequestStreaming(true).build();
ClientExecutionParams<SdkRequest, SdkResponse> executionParams = clientExecutionParams()
.putExecutionAttribute(SdkInternalExecutionAttribute.HTTP_CHECKSUM, httpCrc32Checksum);

ExecutionContext executionContext =
AwsExecutionContextBuilder.invokeInterceptorsAndCreateExecutionContext(executionParams,
testClientConfiguration().build());

ExecutionAttributes executionAttributes = executionContext.executionAttributes();
ChecksumSpecs checksumSpecs1 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes).get();
ChecksumSpecs checksumSpecs2 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes).get();

assertThat(checksumSpecs1).isSameAs(checksumSpecs2);
}

@Test
public void invokeInterceptorsAndCreateExecutionContext_multipleExecutionContexts_resolvesChecksumSpecsOncePerContext() {
HttpChecksum httpCrc32Checksum = HttpChecksum.builder().requestAlgorithm("crc32").isRequestStreaming(true).build();
ClientExecutionParams<SdkRequest, SdkResponse> executionParams = clientExecutionParams()
.putExecutionAttribute(SdkInternalExecutionAttribute.HTTP_CHECKSUM, httpCrc32Checksum);
SdkClientConfiguration clientConfig = testClientConfiguration().build();

ExecutionContext executionContext1 =
AwsExecutionContextBuilder.invokeInterceptorsAndCreateExecutionContext(executionParams,
clientConfig);
ExecutionAttributes executionAttributes1 = executionContext1.executionAttributes();
ChecksumSpecs checksumSpecs1 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes1).get();

ExecutionContext executionContext2 =
AwsExecutionContextBuilder.invokeInterceptorsAndCreateExecutionContext(executionParams,
clientConfig);
ExecutionAttributes executionAttributes2 = executionContext2.executionAttributes();
ChecksumSpecs checksumSpecs2 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes2).get();
ChecksumSpecs checksumSpecs3 = HttpChecksumUtils.checksumSpecWithRequestAlgorithm(executionAttributes2).get();

assertThat(checksumSpecs1).isNotSameAs(checksumSpecs2);
assertThat(checksumSpecs2).isSameAs(checksumSpecs3);
}

private ClientExecutionParams<SdkRequest, SdkResponse> clientExecutionParams() {
return new ClientExecutionParams<SdkRequest, SdkResponse>()
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.18.3</version>
<version>2.18.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

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.18.3</version>
<version>2.18.4</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.18.3</version>
<version>2.18.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit ca81dba

Please sign in to comment.