Skip to content

Commit 3e4ef31

Browse files
Merge pull request #2584 from aws/staging/9b93d421-92ad-4cd2-8f93-60743c4dcdea
Pull request: release <- staging/9b93d421-92ad-4cd2-8f93-60743c4dcdea
2 parents 0b57db7 + 8708536 commit 3e4ef31

File tree

422 files changed

+1632
-2002
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

+1632
-2002
lines changed

.changes/2.20.81.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.20.81",
3+
"date": "2023-06-07",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "AWS CloudFormation",
8+
"contributor": "",
9+
"description": "AWS CloudFormation StackSets is updating the deployment experience for all stackset operations to skip suspended AWS accounts during deployments. StackSets will skip target AWS accounts that are suspended and set the Detailed Status of the corresponding stack instances as SKIPPED_SUSPENDED_ACCOUNT"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "AWS Direct Connect",
14+
"contributor": "",
15+
"description": "This update corrects the jumbo frames mtu values from 9100 to 8500 for transit virtual interfaces."
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS IoT Core Device Advisor",
20+
"contributor": "",
21+
"description": "AWS IoT Core Device Advisor now supports new Qualification Suite test case list. With this update, customers can more easily create new qualification test suite with an empty rootGroup input."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon CloudWatch Logs",
26+
"contributor": "",
27+
"description": "This change adds support for account level data protection policies using 3 new APIs, PutAccountPolicy, DeleteAccountPolicy and DescribeAccountPolicy. DescribeLogGroup API has been modified to indicate if account level policy is applied to the LogGroup via \"inheritedProperties\" list in the response."
28+
},
29+
{
30+
"type": "feature",
31+
"category": "Amazon Connect Customer Profiles",
32+
"contributor": "",
33+
"description": "This release introduces event stream related APIs."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "Amazon EMR Containers",
38+
"contributor": "",
39+
"description": "EMR on EKS adds support for log rotation of Spark container logs with EMR-6.11.0 onwards, to the StartJobRun API."
40+
}
41+
]
42+
}

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# __2.20.81__ __2023-06-07__
2+
## __AWS CloudFormation__
3+
- ### Features
4+
- AWS CloudFormation StackSets is updating the deployment experience for all stackset operations to skip suspended AWS accounts during deployments. StackSets will skip target AWS accounts that are suspended and set the Detailed Status of the corresponding stack instances as SKIPPED_SUSPENDED_ACCOUNT
5+
6+
## __AWS Direct Connect__
7+
- ### Features
8+
- This update corrects the jumbo frames mtu values from 9100 to 8500 for transit virtual interfaces.
9+
10+
## __AWS IoT Core Device Advisor__
11+
- ### Features
12+
- AWS IoT Core Device Advisor now supports new Qualification Suite test case list. With this update, customers can more easily create new qualification test suite with an empty rootGroup input.
13+
14+
## __Amazon CloudWatch Logs__
15+
- ### Features
16+
- This change adds support for account level data protection policies using 3 new APIs, PutAccountPolicy, DeleteAccountPolicy and DescribeAccountPolicy. DescribeLogGroup API has been modified to indicate if account level policy is applied to the LogGroup via "inheritedProperties" list in the response.
17+
18+
## __Amazon Connect Customer Profiles__
19+
- ### Features
20+
- This release introduces event stream related APIs.
21+
22+
## __Amazon EMR Containers__
23+
- ### Features
24+
- EMR on EKS adds support for log rotation of Spark container logs with EMR-6.11.0 onwards, to the StartJobRun API.
25+
126
# __2.20.80__ __2023-06-06__
227
## __AWS Identity and Access Management__
328
- ### 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.80</version>
55+
<version>2.20.81</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.80</version>
89+
<version>2.20.81</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.20.80</version>
94+
<version>2.20.81</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.80</version>
106+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
20+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
20+
<version>2.20.81</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.80</version>
24+
<version>2.20.81</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.80</version>
25+
<version>2.20.81</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.80</version>
24+
<version>2.20.81</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.80</version>
25+
<version>2.20.81</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.80</version>
24+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
23+
<version>2.20.81</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.80</version>
25+
<version>2.20.81</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.80</version>
25+
<version>2.20.81</version>
2626
</parent>
2727

2828
<artifactId>auth</artifactId>

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.20.80</version>
25+
<version>2.20.81</version>
2626
</parent>
2727

2828
<artifactId>aws-core</artifactId>

core/aws-core/src/main/java/software/amazon/awssdk/awscore/interceptor/TraceIdExecutionInterceptor.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@
1717

1818
import java.util.Optional;
1919
import software.amazon.awssdk.annotations.SdkInternalApi;
20+
import software.amazon.awssdk.awscore.internal.interceptor.TracingSystemSetting;
2021
import software.amazon.awssdk.core.interceptor.Context;
2122
import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
2223
import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
2324
import software.amazon.awssdk.http.SdkHttpRequest;
2425
import software.amazon.awssdk.utils.SystemSetting;
2526

2627
/**
27-
* The {@code TraceIdExecutionInterceptor} copies the {@link #TRACE_ID_ENVIRONMENT_VARIABLE} value to the
28-
* {@link #TRACE_ID_HEADER} header, assuming we seem to be running in a lambda environment.
28+
* The {@code TraceIdExecutionInterceptor} copies the trace details to the {@link #TRACE_ID_HEADER} header, assuming we seem to
29+
* be running in a lambda environment.
2930
*/
3031
@SdkInternalApi
3132
public class TraceIdExecutionInterceptor implements ExecutionInterceptor {
3233
private static final String TRACE_ID_HEADER = "X-Amzn-Trace-Id";
33-
private static final String TRACE_ID_ENVIRONMENT_VARIABLE = "_X_AMZN_TRACE_ID";
3434
private static final String LAMBDA_FUNCTION_NAME_ENVIRONMENT_VARIABLE = "AWS_LAMBDA_FUNCTION_NAME";
3535

3636
@Override
3737
public SdkHttpRequest modifyHttpRequest(Context.ModifyHttpRequest context, ExecutionAttributes executionAttributes) {
3838
Optional<String> traceIdHeader = traceIdHeader(context);
3939
if (!traceIdHeader.isPresent()) {
4040
Optional<String> lambdafunctionName = lambdaFunctionNameEnvironmentVariable();
41-
Optional<String> traceId = traceIdEnvironmentVariable();
41+
Optional<String> traceId = traceId();
4242

4343
if (lambdafunctionName.isPresent() && traceId.isPresent()) {
4444
return context.httpRequest().copy(r -> r.putHeader(TRACE_ID_HEADER, traceId.get()));
@@ -52,10 +52,8 @@ private Optional<String> traceIdHeader(Context.ModifyHttpRequest context) {
5252
return context.httpRequest().firstMatchingHeader(TRACE_ID_HEADER);
5353
}
5454

55-
private Optional<String> traceIdEnvironmentVariable() {
56-
// CHECKSTYLE:OFF - This is not configured by the customer, so it should not be configurable by system property
57-
return SystemSetting.getStringValueFromEnvironmentVariable(TRACE_ID_ENVIRONMENT_VARIABLE);
58-
// CHECKSTYLE:ON
55+
private Optional<String> traceId() {
56+
return TracingSystemSetting._X_AMZN_TRACE_ID.getStringValue();
5957
}
6058

6159
private Optional<String> lambdaFunctionNameEnvironmentVariable() {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package software.amazon.awssdk.awscore.internal.interceptor;
17+
18+
import software.amazon.awssdk.annotations.SdkInternalApi;
19+
import software.amazon.awssdk.utils.SystemSetting;
20+
21+
/**
22+
* Tracing specific System Setting.
23+
*/
24+
@SdkInternalApi
25+
public enum TracingSystemSetting implements SystemSetting {
26+
// See: https://github.com/aws/aws-xray-sdk-java/issues/251
27+
_X_AMZN_TRACE_ID("com.amazonaws.xray.traceHeader", null);
28+
29+
private final String systemProperty;
30+
private final String defaultValue;
31+
32+
TracingSystemSetting(String systemProperty, String defaultValue) {
33+
this.systemProperty = systemProperty;
34+
this.defaultValue = defaultValue;
35+
}
36+
37+
@Override
38+
public String property() {
39+
return systemProperty;
40+
}
41+
42+
@Override
43+
public String environmentVariable() {
44+
return name();
45+
}
46+
47+
@Override
48+
public String defaultValue() {
49+
return defaultValue;
50+
}
51+
}

core/aws-core/src/test/java/software/amazon/awssdk/awscore/interceptor/TraceIdExecutionInterceptorTest.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import static org.assertj.core.api.Assertions.assertThat;
1919

2020
import java.net.URI;
21+
import java.util.Properties;
2122
import org.junit.jupiter.api.Test;
2223
import org.mockito.Mockito;
2324
import software.amazon.awssdk.core.SdkRequest;
@@ -49,6 +50,32 @@ public void headerAddedWithEnvSettings() {
4950
});
5051
}
5152

53+
54+
@Test
55+
public void headerAddedWithSysPropWhenNoEnvSettings() {
56+
EnvironmentVariableHelper.run(env -> {
57+
resetRelevantEnvVars(env);
58+
env.set("AWS_LAMBDA_FUNCTION_NAME", "foo");
59+
Properties props = System.getProperties();
60+
props.setProperty("com.amazonaws.xray.traceHeader", "sys-prop");
61+
Context.ModifyHttpRequest context = context();
62+
assertThat(modifyHttpRequest(context).firstMatchingHeader("X-Amzn-Trace-Id")).hasValue("sys-prop");
63+
});
64+
}
65+
66+
@Test
67+
public void headerAddedWithEnvVariableValueWhenBothEnvAndSysPropAreSet() {
68+
EnvironmentVariableHelper.run(env -> {
69+
resetRelevantEnvVars(env);
70+
env.set("AWS_LAMBDA_FUNCTION_NAME", "foo");
71+
env.set("_X_AMZN_TRACE_ID", "bar");
72+
Properties props = System.getProperties();
73+
props.setProperty("com.amazonaws.xray.traceHeader", "sys-prop");
74+
Context.ModifyHttpRequest context = context();
75+
assertThat(modifyHttpRequest(context).firstMatchingHeader("X-Amzn-Trace-Id")).hasValue("sys-prop");
76+
});
77+
}
78+
5279
@Test
5380
public void headerNotAddedIfHeaderAlreadyExists() {
5481
EnvironmentVariableHelper.run(env -> {

0 commit comments

Comments
 (0)