diff --git a/javav2/example_code/apigateway/pom.xml b/javav2/example_code/apigateway/pom.xml
index 84298bf6f2b..b18c9a5c197 100644
--- a/javav2/example_code/apigateway/pom.xml
+++ b/javav2/example_code/apigateway/pom.xml
@@ -3,15 +3,13 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
ApiGatewayV2
ApiGatewayV2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
-
@@ -23,6 +21,21 @@
${java.version}
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -30,7 +43,7 @@
software.amazon.awssdk
bom
- 2.19.14
+ 2.21.16
pom
import
diff --git a/javav2/example_code/apigateway/src/main/resources/checkstyle.xml b/javav2/example_code/apigateway/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/apigateway/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/appsync/pom.xml b/javav2/example_code/appsync/pom.xml
index 8c674c79637..c536c1fe6d3 100644
--- a/javav2/example_code/appsync/pom.xml
+++ b/javav2/example_code/appsync/pom.xml
@@ -7,8 +7,8 @@
AppSyncJ2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -29,6 +29,21 @@
${java.version}
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +51,7 @@
software.amazon.awssdk
bom
- 2.20.45
+ 2.21.16
pom
import
diff --git a/javav2/example_code/appsync/src/main/resources/checkstyle.xml b/javav2/example_code/appsync/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/appsync/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/athena/pom.xml b/javav2/example_code/athena/pom.xml
index 7697bff9ae4..f2014ba0198 100644
--- a/javav2/example_code/athena/pom.xml
+++ b/javav2/example_code/athena/pom.xml
@@ -7,8 +7,8 @@
athenaJ2Example
1.0-SNAPSHOT
- 1.8
- 1.8
+ 17
+ 17
@@ -17,6 +17,21 @@
maven-surefire-plugin
2.22.1
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -24,7 +39,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/athena/src/main/resources/checkstyle.xml b/javav2/example_code/athena/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/athena/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/autoscale/pom.xml b/javav2/example_code/autoscale/pom.xml
index 8d467460404..ae6ffa21c8a 100644
--- a/javav2/example_code/autoscale/pom.xml
+++ b/javav2/example_code/autoscale/pom.xml
@@ -7,8 +7,8 @@
AutoScalingV2
1.0-SNAPSHOT
- 1.8
- 1.8
+ 17
+ 17
@@ -17,6 +17,21 @@
maven-surefire-plugin
2.22.1
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -24,7 +39,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/autoscale/src/main/resources/checkstyle.xml b/javav2/example_code/autoscale/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/autoscale/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/cloudformation/pom.xml b/javav2/example_code/cloudformation/pom.xml
index b86b27d7879..db8bba3259a 100644
--- a/javav2/example_code/cloudformation/pom.xml
+++ b/javav2/example_code/cloudformation/pom.xml
@@ -7,8 +7,8 @@
CloudFormationV2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -29,6 +29,21 @@
IntegrationTest
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +51,7 @@
software.amazon.awssdk
bom
- 2.20.45
+ 2.21.16
pom
import
diff --git a/javav2/example_code/cloudformation/src/main/java/com/example/cloudformation/CreateStack.java b/javav2/example_code/cloudformation/src/main/java/com/example/cloudformation/CreateStack.java
index 045132bb67f..1c602e66e5c 100644
--- a/javav2/example_code/cloudformation/src/main/java/com/example/cloudformation/CreateStack.java
+++ b/javav2/example_code/cloudformation/src/main/java/com/example/cloudformation/CreateStack.java
@@ -85,7 +85,6 @@ public static void createCFStack(CloudFormationClient cfClient,
String value){
try {
- CloudFormationWaiter waiter = cfClient.waiter();
Parameter myParameter = Parameter.builder()
.parameterKey(key)
.parameterValue(value)
@@ -100,12 +99,6 @@ public static void createCFStack(CloudFormationClient cfClient,
.build();
cfClient.createStack(stackRequest);
- DescribeStacksRequest stacksRequest = DescribeStacksRequest.builder()
- .stackName(stackName)
- .build();
-
- WaiterResponse waiterResponse = waiter.waitUntilStackCreateComplete(stacksRequest);
- waiterResponse.matched().response().ifPresent(System.out::println);
System.out.println(stackName +" is ready");
} catch (CloudFormationException e) {
diff --git a/javav2/example_code/cloudformation/src/main/resources/checkstyle.xml b/javav2/example_code/cloudformation/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/cloudformation/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/cloudfront/checkstyle.xml b/javav2/example_code/cloudfront/checkstyle.xml
deleted file mode 100644
index 8e0601fd3d4..00000000000
--- a/javav2/example_code/cloudfront/checkstyle.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/javav2/example_code/cloudfront/pom.xml b/javav2/example_code/cloudfront/pom.xml
index 87d56cf702d..06be606fd0f 100644
--- a/javav2/example_code/cloudfront/pom.xml
+++ b/javav2/example_code/cloudfront/pom.xml
@@ -7,8 +7,8 @@
CloudFrontJ2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -29,6 +29,21 @@
IntegrationTest
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +51,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
@@ -69,6 +84,15 @@
junit-platform-commons
1.9.2
+
+ com.googlecode.json-simple
+ json-simple
+ 1.1
+
+
+ software.amazon.awssdk
+ s3
+
org.junit.platform
junit-platform-launcher
diff --git a/javav2/example_code/cloudfront/src/main/resources/checkstyle.xml b/javav2/example_code/cloudfront/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/cloudfront/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/cloudfront/src/test/java/CloudFrontTest.java b/javav2/example_code/cloudfront/src/test/java/CloudFrontTest.java
index dff2c7eeb51..126cd476880 100644
--- a/javav2/example_code/cloudfront/src/test/java/CloudFrontTest.java
+++ b/javav2/example_code/cloudfront/src/test/java/CloudFrontTest.java
@@ -80,7 +80,7 @@ public void CreateFunction() {
@Tag("IntegrationTest")
@Order(2)
public void DescribeFunction() {
- eTagVal = DescribeFunction.describeSinFunction(cloudFrontClient, functionName);
+ eTagVal = DescribeFunction.describeFunction(cloudFrontClient, functionName);
assertFalse(eTagVal.isEmpty());
System.out.println("Test 2 passed");
}
@@ -97,7 +97,7 @@ public void ListFunctions(){
@Tag("IntegrationTest")
@Order(4)
public void GetDistrubutions() {
- assertDoesNotThrow(() ->GetDistrubutions.getCFDistrubutions(cloudFrontClient));
+ assertDoesNotThrow(() ->GetDistributions.getCFDistributions(cloudFrontClient));
System.out.println("Test 4 passed");
}
diff --git a/javav2/example_code/cloudtrail/pom.xml b/javav2/example_code/cloudtrail/pom.xml
index dc573eaccd0..00d599483e1 100644
--- a/javav2/example_code/cloudtrail/pom.xml
+++ b/javav2/example_code/cloudtrail/pom.xml
@@ -7,8 +7,8 @@
CloudTrailJ2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -29,6 +29,21 @@
IntegrationTest
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +51,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/cloudtrail/src/main/resources/checkstyle.xml b/javav2/example_code/cloudtrail/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/cloudtrail/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/cloudwatch/pom.xml b/javav2/example_code/cloudwatch/pom.xml
index 5b062bb2e4d..9ba0b74b7c1 100755
--- a/javav2/example_code/cloudwatch/pom.xml
+++ b/javav2/example_code/cloudwatch/pom.xml
@@ -7,8 +7,8 @@
CloudwatchJ2Project
1.0-SNAPSHOT
- 1.8
- 1.8
+ 17
+ 17
@@ -20,6 +20,21 @@
IntegrationTest
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -27,7 +42,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/cloudwatch/src/main/resources/checkstyle.xml b/javav2/example_code/cloudwatch/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/cloudwatch/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/codecommit/pom.xml b/javav2/example_code/codecommit/pom.xml
index 0168cb854ec..e735aeac0b3 100644
--- a/javav2/example_code/codecommit/pom.xml
+++ b/javav2/example_code/codecommit/pom.xml
@@ -7,8 +7,8 @@
CodeCommitJ2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -26,6 +26,21 @@
maven-surefire-plugin
2.22.1
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -33,7 +48,7 @@
software.amazon.awssdk
bom
- 2.19.14
+ 2.21.16
pom
import
diff --git a/javav2/example_code/codecommit/src/main/resources/checkstyle.xml b/javav2/example_code/codecommit/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/codecommit/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/codedeploy/pom.xml b/javav2/example_code/codedeploy/pom.xml
index b5ded68ac9d..c54e4bcf779 100644
--- a/javav2/example_code/codedeploy/pom.xml
+++ b/javav2/example_code/codedeploy/pom.xml
@@ -7,8 +7,8 @@
CodeDeployJ2
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -29,6 +29,21 @@
IntegrationTest
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +51,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/codedeploy/src/main/resources/checkstyle.xml b/javav2/example_code/codedeploy/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/codedeploy/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/codepipeline/pom.xml b/javav2/example_code/codepipeline/pom.xml
index c2f743d8b3b..e32ec9e8745 100644
--- a/javav2/example_code/codepipeline/pom.xml
+++ b/javav2/example_code/codepipeline/pom.xml
@@ -3,16 +3,13 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
-
org.example
CodePipelineV2
1.0-SNAPSHOT
-
- UTF-8
- 1.8
+ 17
+ 17
-
@@ -29,6 +26,21 @@
maven-surefire-plugin
2.22.1
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +48,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/codepipeline/src/main/resources/checkstyle.xml b/javav2/example_code/codepipeline/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/codepipeline/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javav2/example_code/cognito/pom.xml b/javav2/example_code/cognito/pom.xml
index 26c30e615b2..7dc7c77ddcd 100644
--- a/javav2/example_code/cognito/pom.xml
+++ b/javav2/example_code/cognito/pom.xml
@@ -7,8 +7,8 @@
cognitoJ2Example
1.0-SNAPSHOT
- UTF-8
- 1.8
+ 17
+ 17
@@ -29,6 +29,21 @@
IntegrationTest
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 3.1.2
+
+ src/main/resources/checkstyle.xml
+
+
+
+
+ check
+
+
+
+
@@ -36,7 +51,7 @@
software.amazon.awssdk
bom
- 2.20.25
+ 2.21.16
pom
import
diff --git a/javav2/example_code/cognito/src/main/resources/checkstyle.xml b/javav2/example_code/cognito/src/main/resources/checkstyle.xml
new file mode 100644
index 00000000000..3f5f94269cb
--- /dev/null
+++ b/javav2/example_code/cognito/src/main/resources/checkstyle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file