Skip to content

Commit 2f06e36

Browse files
Merge pull request #1447 from aws/staging/505221ed-0a31-4c56-93b5-090186f497d9
Pull request: release <- staging/505221ed-0a31-4c56-93b5-090186f497d9
2 parents d095bca + 1529419 commit 2f06e36

File tree

330 files changed

+717
-409
lines changed

Some content is hidden

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

330 files changed

+717
-409
lines changed

.changes/2.16.78.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.16.78",
3+
"date": "2021-06-04",
4+
"entries": [
5+
{
6+
"type": "feature",
7+
"category": "Auto Scaling",
8+
"contributor": "",
9+
"description": "Documentation updates for Amazon EC2 Auto Scaling"
10+
},
11+
{
12+
"type": "feature",
13+
"category": "Amazon QLDB",
14+
"contributor": "",
15+
"description": "Documentation updates for Amazon QLDB"
16+
},
17+
{
18+
"type": "feature",
19+
"category": "AWS Performance Insights",
20+
"contributor": "",
21+
"description": "The new GetDimensionKeyDetails action retrieves the attributes of the specified dimension group for a DB instance or data source."
22+
},
23+
{
24+
"type": "feature",
25+
"category": "Amazon Relational Database Service",
26+
"contributor": "",
27+
"description": "Documentation updates for RDS: fixing an outdated link to the RDS documentation in DBInstance$DBInstanceStatus"
28+
},
29+
{
30+
"type": "feature",
31+
"category": "AWS CloudTrail",
32+
"contributor": "",
33+
"description": "AWS CloudTrail supports data events on new service resources, including Amazon DynamoDB tables and S3 Object Lambda access points."
34+
},
35+
{
36+
"type": "feature",
37+
"category": "AWS Elemental MediaLive",
38+
"contributor": "",
39+
"description": "Add support for automatically setting the H.264 adaptive quantization and GOP B-frame fields."
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.16.78__ __2021-06-04__
2+
## __AWS CloudTrail__
3+
- ### Features
4+
- AWS CloudTrail supports data events on new service resources, including Amazon DynamoDB tables and S3 Object Lambda access points.
5+
6+
## __AWS Elemental MediaLive__
7+
- ### Features
8+
- Add support for automatically setting the H.264 adaptive quantization and GOP B-frame fields.
9+
10+
## __AWS Performance Insights__
11+
- ### Features
12+
- The new GetDimensionKeyDetails action retrieves the attributes of the specified dimension group for a DB instance or data source.
13+
14+
## __Amazon QLDB__
15+
- ### Features
16+
- Documentation updates for Amazon QLDB
17+
18+
## __Amazon Relational Database Service__
19+
- ### Features
20+
- Documentation updates for RDS: fixing an outdated link to the RDS documentation in DBInstance$DBInstanceStatus
21+
22+
## __Auto Scaling__
23+
- ### Features
24+
- Documentation updates for Amazon EC2 Auto Scaling
25+
126
# __2.16.77__ __2021-06-03__
227
## __AWS S3 Control__
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.16.77</version>
55+
<version>2.16.78</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.16.77</version>
89+
<version>2.16.78</version>
9090
</dependency>
9191
<dependency>
9292
<groupId>software.amazon.awssdk</groupId>
9393
<artifactId>s3</artifactId>
94-
<version>2.16.77</version>
94+
<version>2.16.78</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.16.77</version>
106+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</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.16.77</version>
20+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</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.16.77</version>
20+
<version>2.16.78</version>
2121
<relativePath>../pom.xml</relativePath>
2222
</parent>
2323
<artifactId>bom</artifactId>
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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.buildtools.checkstyle;
17+
18+
import com.puppycrawl.tools.checkstyle.api.AbstractCheck;
19+
import com.puppycrawl.tools.checkstyle.api.DetailAST;
20+
import com.puppycrawl.tools.checkstyle.api.FullIdent;
21+
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
22+
import com.puppycrawl.tools.checkstyle.utils.CommonUtil;
23+
import java.util.ArrayList;
24+
import java.util.Arrays;
25+
import java.util.List;
26+
import java.util.regex.Pattern;
27+
28+
/**
29+
* Checks if a class has illegal imports
30+
*/
31+
public class SdkIllegalImportCheck extends AbstractCheck {
32+
33+
private final List<Pattern> illegalPackagesRegexps = new ArrayList<>();
34+
private final List<String> illegalPackages = new ArrayList<>();
35+
36+
private String classNameToCheck;
37+
private boolean containsIllegalImport = false;
38+
private boolean checkImport = false;
39+
40+
public void setClassNameToCheck(String classNameToCheck) {
41+
this.classNameToCheck = classNameToCheck;
42+
}
43+
44+
public final void setIllegalPkgs(String... from) {
45+
illegalPackages.clear();
46+
illegalPackages.addAll(Arrays.asList(from));
47+
illegalPackagesRegexps.clear();
48+
for (String illegalPkg : illegalPackages) {
49+
illegalPackagesRegexps.add(CommonUtil.createPattern("^" + illegalPkg + "\\..*"));
50+
}
51+
}
52+
53+
@Override
54+
public int[] getDefaultTokens() {
55+
return getRequiredTokens();
56+
}
57+
58+
@Override
59+
public int[] getAcceptableTokens() {
60+
return getRequiredTokens();
61+
}
62+
63+
@Override
64+
public int[] getRequiredTokens() {
65+
return new int[] {TokenTypes.CLASS_DEF, TokenTypes.IMPORT, TokenTypes.STATIC_IMPORT};
66+
}
67+
68+
@Override
69+
public void beginTree(DetailAST rootAST) {
70+
containsIllegalImport = false;
71+
checkImport = false;
72+
}
73+
74+
@Override
75+
public void finishTree(DetailAST rootAST) {
76+
if (containsIllegalImport && checkImport) {
77+
log(rootAST, "Illegal imports found " + illegalPackagesRegexps);
78+
}
79+
}
80+
81+
@Override
82+
public void visitToken(DetailAST ast) {
83+
84+
FullIdent importedPackage = null;
85+
86+
switch (ast.getType()) {
87+
case TokenTypes.CLASS_DEF:
88+
String className = ast.findFirstToken(TokenTypes.IDENT).getText();
89+
if (className.equals(classNameToCheck)) {
90+
checkImport = true;
91+
}
92+
break;
93+
case TokenTypes.IMPORT:
94+
importedPackage = FullIdent.createFullIdentBelow(ast);
95+
break;
96+
case TokenTypes.STATIC_IMPORT:
97+
importedPackage = FullIdent.createFullIdent(ast.getFirstChild().getNextSibling());
98+
break;
99+
}
100+
101+
if (importedPackage!= null && isIllegalImport(importedPackage.getText())) {
102+
containsIllegalImport = true;
103+
}
104+
}
105+
106+
private boolean isIllegalImport(String importText) {
107+
for (Pattern pattern : illegalPackagesRegexps) {
108+
if (pattern.matcher(importText).matches()) {
109+
return true;
110+
}
111+
}
112+
return false;
113+
}
114+
}

build-tools/src/main/resources/software/amazon/awssdk/checkstyle.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,16 @@
405405

406406
<!-- Checks that no 'final' are added on local variables -->
407407
<module name="software.amazon.awssdk.buildtools.checkstyle.UnnecessaryFinalOnLocalVariableCheck" />
408+
409+
<module name="software.amazon.awssdk.buildtools.checkstyle.SdkIllegalImportCheck">
410+
<property name="classNameToCheck" value="StaticTableSchema"/>
411+
<property name="illegalPkgs" value="java.lang.reflect"/>
412+
</module>
413+
414+
<module name="software.amazon.awssdk.buildtools.checkstyle.SdkIllegalImportCheck">
415+
<property name="classNameToCheck" value="StaticImmutableTableSchema"/>
416+
<property name="illegalPkgs" value="java.lang.reflect"/>
417+
</module>
408418
</module>
409419

410420
<!-- Enforce maximum line lengths. -->

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.16.77</version>
24+
<version>2.16.78</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.16.77</version>
25+
<version>2.16.78</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.16.77</version>
24+
<version>2.16.78</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.16.77</version>
25+
<version>2.16.78</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.16.77</version>
24+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</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.16.77</version>
23+
<version>2.16.78</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626

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

2828
<artifactId>aws-core</artifactId>

core/metrics-spi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>core</artifactId>
77
<groupId>software.amazon.awssdk</groupId>
8-
<version>2.16.77</version>
8+
<version>2.16.78</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<parent>
2222
<artifactId>aws-sdk-java-pom</artifactId>
2323
<groupId>software.amazon.awssdk</groupId>
24-
<version>2.16.77</version>
24+
<version>2.16.78</version>
2525
</parent>
2626

2727
<artifactId>core</artifactId>

0 commit comments

Comments
 (0)