Skip to content

Commit 918968d

Browse files
Merge pull request #2598 from aws/staging/b2dc3d1b-6d99-4121-894f-b5d3ff93b859
Pull request: release <- staging/b2dc3d1b-6d99-4121-894f-b5d3ff93b859
2 parents 6614777 + 80923be commit 918968d

File tree

434 files changed

+2481
-1965
lines changed

Some content is hidden

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

434 files changed

+2481
-1965
lines changed

.changes/2.20.90.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"version": "2.20.90",
3+
"date": "2023-06-21",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS Elemental MediaConvert",
8+
"contributor": "",
9+
"description": "This release introduces the bandwidth reduction filter for the HEVC encoder, increases the limits of outputs per job, and updates support for the Nagra SDK to version 1.14.7."
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS Transfer Family",
14+
"contributor": "",
15+
"description": "This release adds a new parameter StructuredLogDestinations to CreateServer, UpdateServer APIs."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "Amazon DynamoDB",
20+
"contributor": "",
21+
"description": "Documentation updates for DynamoDB"
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon EMR",
26+
"contributor": "",
27+
"description": "This release introduces a new Amazon EMR EPI called ListSupportedInstanceTypes that returns a list of all instance types supported by a given EMR release."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "AmazonMQ",
32+
"contributor": "",
33+
"description": "The Cross Region Disaster Recovery feature allows to replicate a brokers state from one region to another in order to provide customers with multi-region resiliency in the event of a regional outage."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "Amazon SageMaker Service",
38+
"contributor": "",
39+
"description": "This release provides support in SageMaker for output files in training jobs to be uploaded without compression and enable customer to deploy uncompressed model from S3 to real-time inference Endpoints. In addition, ml.trn1n.32xlarge is added to supported instance type list in training job."
40+
},
41+
{
42+
"type": "feature",
43+
"category": "Inspector2",
44+
"contributor": "",
45+
"description": "This release adds support for Software Bill of Materials (SBOM) export and the general availability of code scanning for AWS Lambda functions."
46+
}
47+
]
48+
}

CHANGELOG.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# __2.20.90__ __2023-06-21__
2+
## __AWS Elemental MediaConvert__
3+
- ### Features
4+
- This release introduces the bandwidth reduction filter for the HEVC encoder, increases the limits of outputs per job, and updates support for the Nagra SDK to version 1.14.7.
5+
6+
## __AWS Transfer Family__
7+
- ### Features
8+
- This release adds a new parameter StructuredLogDestinations to CreateServer, UpdateServer APIs.
9+
10+
## __Amazon DynamoDB__
11+
- ### Features
12+
- Documentation updates for DynamoDB
13+
14+
## __Amazon EMR__
15+
- ### Features
16+
- This release introduces a new Amazon EMR EPI called ListSupportedInstanceTypes that returns a list of all instance types supported by a given EMR release.
17+
18+
## __Amazon SageMaker Service__
19+
- ### Features
20+
- This release provides support in SageMaker for output files in training jobs to be uploaded without compression and enable customer to deploy uncompressed model from S3 to real-time inference Endpoints. In addition, ml.trn1n.32xlarge is added to supported instance type list in training job.
21+
22+
## __AmazonMQ__
23+
- ### Features
24+
- The Cross Region Disaster Recovery feature allows to replicate a brokers state from one region to another in order to provide customers with multi-region resiliency in the event of a regional outage.
25+
26+
## __Inspector2__
27+
- ### Features
28+
- This release adds support for Software Bill of Materials (SBOM) export and the general availability of code scanning for AWS Lambda functions.
29+
130
# __2.20.89__ __2023-06-20__
231
## __AWS Config__
332
- ### Features
@@ -129,7 +158,7 @@ Special thanks to the following contributors to this release:
129158
## __Contributors__
130159
Special thanks to the following contributors to this release:
131160

132-
[@breader124](https://github.com/breader124), [@bmaizels](https://github.com/bmaizels)
161+
[@bmaizels](https://github.com/bmaizels), [@breader124](https://github.com/breader124)
133162
# __2.20.85__ __2023-06-13__
134163
## __AWS CloudTrail__
135164
- ### 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.89</version>
55+
<version>2.20.90</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.89</version>
89+
<version>2.20.90</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.20.89</version>
94+
<version>2.20.90</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.89</version>
106+
<version>2.20.90</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.89</version>
23+
<version>2.20.90</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.89</version>
23+
<version>2.20.90</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.89</version>
23+
<version>2.20.90</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.89</version>
23+
<version>2.20.90</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.89</version>
20+
<version>2.20.90</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.89</version>
23+
<version>2.20.90</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.89</version>
20+
<version>2.20.90</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.89</version>
24+
<version>2.20.90</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.89</version>
25+
<version>2.20.90</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.89</version>
24+
<version>2.20.90</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.89</version>
25+
<version>2.20.90</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.89</version>
24+
<version>2.20.90</version>
2525
</parent>
2626
<artifactId>codegen</artifactId>
2727
<name>AWS Java SDK :: Code Generator</name>

codegen/src/main/java/software/amazon/awssdk/codegen/poet/builder/AsyncClientBuilderClass.java

Lines changed: 54 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
1818
import com.squareup.javapoet.ClassName;
1919
import com.squareup.javapoet.MethodSpec;
2020
import com.squareup.javapoet.ParameterizedTypeName;
21+
import com.squareup.javapoet.TypeName;
2122
import com.squareup.javapoet.TypeSpec;
2223
import java.net.URI;
24+
import java.util.ArrayList;
25+
import java.util.Collections;
26+
import java.util.List;
2327
import javax.lang.model.element.Modifier;
2428
import software.amazon.awssdk.annotations.SdkInternalApi;
2529
import software.amazon.awssdk.auth.token.credentials.SdkTokenProvider;
@@ -32,6 +36,9 @@
3236
import software.amazon.awssdk.codegen.utils.AuthUtils;
3337
import software.amazon.awssdk.core.client.config.SdkClientConfiguration;
3438
import software.amazon.awssdk.core.client.config.SdkClientOption;
39+
import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
40+
import software.amazon.awssdk.protocols.query.interceptor.QueryParametersToBodyInterceptor;
41+
import software.amazon.awssdk.utils.CollectionUtils;
3542

3643
public class AsyncClientBuilderClass implements ClassSpec {
3744
private final IntermediateModel model;
@@ -119,26 +126,53 @@ private MethodSpec endpointProviderMethod() {
119126
}
120127

121128
private MethodSpec buildClientMethod() {
122-
return MethodSpec.methodBuilder("buildClient")
123-
.addAnnotation(Override.class)
124-
.addModifiers(Modifier.PROTECTED, Modifier.FINAL)
125-
.returns(clientInterfaceName)
126-
.addStatement("$T clientConfiguration = super.asyncClientConfiguration()", SdkClientConfiguration.class)
127-
.addStatement("this.validateClientOptions(clientConfiguration)")
128-
.addStatement("$T endpointOverride = null", URI.class)
129-
.addCode("if (clientConfiguration.option($T.ENDPOINT_OVERRIDDEN) != null"
130-
+ "&& $T.TRUE.equals(clientConfiguration.option($T.ENDPOINT_OVERRIDDEN))) {"
131-
+ "endpointOverride = clientConfiguration.option($T.ENDPOINT);"
132-
+ "}",
133-
SdkClientOption.class, Boolean.class, SdkClientOption.class, SdkClientOption.class)
134-
.addStatement("$T serviceClientConfiguration = $T.builder()"
135-
+ ".overrideConfiguration(overrideConfiguration())"
136-
+ ".region(clientConfiguration.option($T.AWS_REGION))"
137-
+ ".endpointOverride(endpointOverride)"
138-
+ ".build()",
139-
serviceConfigClassName, serviceConfigClassName, AwsClientOption.class)
140-
.addStatement("return new $T(serviceClientConfiguration, clientConfiguration)", clientClassName)
141-
.build();
129+
MethodSpec.Builder b = MethodSpec.methodBuilder("buildClient")
130+
.addAnnotation(Override.class)
131+
.addModifiers(Modifier.PROTECTED, Modifier.FINAL)
132+
.returns(clientInterfaceName)
133+
.addStatement("$T clientConfiguration = super.asyncClientConfiguration()",
134+
SdkClientConfiguration.class);
135+
136+
addQueryProtocolInterceptors(b);
137+
138+
return b.addStatement("this.validateClientOptions(clientConfiguration)")
139+
.addStatement("$T endpointOverride = null", URI.class)
140+
.addCode("if (clientConfiguration.option($T.ENDPOINT_OVERRIDDEN) != null"
141+
+ "&& $T.TRUE.equals(clientConfiguration.option($T.ENDPOINT_OVERRIDDEN))) {"
142+
+ "endpointOverride = clientConfiguration.option($T.ENDPOINT);"
143+
+ "}",
144+
SdkClientOption.class, Boolean.class, SdkClientOption.class, SdkClientOption.class)
145+
.addStatement("$T serviceClientConfiguration = $T.builder()"
146+
+ ".overrideConfiguration(overrideConfiguration())"
147+
+ ".region(clientConfiguration.option($T.AWS_REGION))"
148+
+ ".endpointOverride(endpointOverride)"
149+
+ ".build()",
150+
serviceConfigClassName, serviceConfigClassName, AwsClientOption.class)
151+
.addStatement("return new $T(serviceClientConfiguration, clientConfiguration)", clientClassName)
152+
.build();
153+
}
154+
155+
private MethodSpec.Builder addQueryProtocolInterceptors(MethodSpec.Builder b) {
156+
if (!model.getMetadata().isQueryProtocol()) {
157+
return b;
158+
}
159+
160+
TypeName listType = ParameterizedTypeName.get(List.class, ExecutionInterceptor.class);
161+
162+
b.addStatement("$T interceptors = clientConfiguration.option($T.EXECUTION_INTERCEPTORS)",
163+
listType, SdkClientOption.class)
164+
.addStatement("$T queryParamsToBodyInterceptor = $T.singletonList(new $T())",
165+
listType, Collections.class, QueryParametersToBodyInterceptor.class)
166+
.addStatement("$T customizationInterceptors = new $T<>()", listType, ArrayList.class);
167+
168+
List<String> customInterceptors = model.getCustomizationConfig().getInterceptors();
169+
customInterceptors.forEach(i -> b.addStatement("customizationInterceptors.add(new $T())", ClassName.bestGuess(i)));
170+
171+
b.addStatement("interceptors = $T.mergeLists(queryParamsToBodyInterceptor, interceptors)", CollectionUtils.class)
172+
.addStatement("interceptors = $T.mergeLists(customizationInterceptors, interceptors)", CollectionUtils.class);
173+
174+
return b.addStatement("clientConfiguration = clientConfiguration.toBuilder().option($T.EXECUTION_INTERCEPTORS, "
175+
+ "interceptors).build()", SdkClientOption.class);
142176
}
143177

144178
private MethodSpec bearerTokenProviderMethod() {

codegen/src/main/java/software/amazon/awssdk/codegen/poet/builder/BaseClientBuilderClass.java

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import com.squareup.javapoet.TypeSpec;
2929
import com.squareup.javapoet.TypeVariableName;
3030
import java.util.ArrayList;
31-
import java.util.Collections;
3231
import java.util.List;
3332
import java.util.Map;
3433
import java.util.Optional;
@@ -59,7 +58,6 @@
5958
import software.amazon.awssdk.core.signer.Signer;
6059
import software.amazon.awssdk.http.Protocol;
6160
import software.amazon.awssdk.http.SdkHttpConfigurationOption;
62-
import software.amazon.awssdk.protocols.query.interceptor.QueryParametersToBodyInterceptor;
6361
import software.amazon.awssdk.utils.AttributeMap;
6462
import software.amazon.awssdk.utils.CollectionUtils;
6563
import software.amazon.awssdk.utils.StringUtils;
@@ -262,8 +260,10 @@ private MethodSpec finalizeServiceConfigurationMethod() {
262260
builtInInterceptors.add(endpointRulesSpecUtils.authSchemesInterceptorName());
263261
builtInInterceptors.add(endpointRulesSpecUtils.requestModifierInterceptorName());
264262

265-
for (String interceptor : model.getCustomizationConfig().getInterceptors()) {
266-
builtInInterceptors.add(ClassName.bestGuess(interceptor));
263+
if (!model.getMetadata().isQueryProtocol()) {
264+
for (String interceptor : model.getCustomizationConfig().getInterceptors()) {
265+
builtInInterceptors.add(ClassName.bestGuess(interceptor));
266+
}
267267
}
268268

269269
for (ClassName interceptor : builtInInterceptors) {
@@ -288,16 +288,6 @@ private MethodSpec finalizeServiceConfigurationMethod() {
288288
builder.addCode("interceptors = $T.mergeLists(interceptors, config.option($T.EXECUTION_INTERCEPTORS));\n",
289289
CollectionUtils.class, SdkClientOption.class);
290290

291-
if (model.getMetadata().isQueryProtocol()) {
292-
TypeName listType = ParameterizedTypeName.get(List.class, ExecutionInterceptor.class);
293-
builder.addStatement("$T protocolInterceptors = $T.singletonList(new $T())",
294-
listType,
295-
Collections.class,
296-
QueryParametersToBodyInterceptor.class);
297-
builder.addStatement("interceptors = $T.mergeLists(interceptors, protocolInterceptors)",
298-
CollectionUtils.class);
299-
}
300-
301291
if (model.getEndpointOperation().isPresent()) {
302292
builder.beginControlFlow("if (!endpointDiscoveryEnabled)")
303293
.addStatement("$1T chain = new $1T(config)", DefaultEndpointDiscoveryProviderChain.class)

0 commit comments

Comments
 (0)