diff --git a/example/HelloWorldFunction/build.gradle b/example/HelloWorldFunction/build.gradle
deleted file mode 100644
index 18166b5f3..000000000
--- a/example/HelloWorldFunction/build.gradle
+++ /dev/null
@@ -1,25 +0,0 @@
-plugins{
- id 'java'
- id 'io.freefair.aspectj.post-compile-weaving' version '6.3.0'
-}
-
-repositories {
- mavenLocal()
- mavenCentral()
-}
-
-dependencies {
- aspect 'software.amazon.lambda:powertools-parameters:1.11.0'
- aspect 'software.amazon.lambda:powertools-validation:1.11.0'
-
- implementation 'com.amazonaws:aws-lambda-java-core:1.2.1'
- implementation 'com.amazonaws:aws-lambda-java-events:3.11.0'
-
- implementation 'org.apache.logging.log4j:log4j-api:2.16.0'
- implementation 'org.apache.logging.log4j:log4j-core:2.16.0'
-
- testImplementation 'junit:junit:4.13.2'
-}
-
-sourceCompatibility = 11
-targetCompatibility = 11
diff --git a/example/HelloWorldFunction/gradle.properties b/example/HelloWorldFunction/gradle.properties
deleted file mode 100644
index c84ec451a..000000000
--- a/example/HelloWorldFunction/gradle.properties
+++ /dev/null
@@ -1 +0,0 @@
-aspectjVersion=1.9.6
\ No newline at end of file
diff --git a/example/HelloWorldFunction/gradle/wrapper/gradle-wrapper.jar b/example/HelloWorldFunction/gradle/wrapper/gradle-wrapper.jar
deleted file mode 100644
index 62d4c0535..000000000
Binary files a/example/HelloWorldFunction/gradle/wrapper/gradle-wrapper.jar and /dev/null differ
diff --git a/example/HelloWorldFunction/gradle/wrapper/gradle-wrapper.properties b/example/HelloWorldFunction/gradle/wrapper/gradle-wrapper.properties
deleted file mode 100644
index 2e6e5897b..000000000
--- a/example/HelloWorldFunction/gradle/wrapper/gradle-wrapper.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-distributionBase=GRADLE_USER_HOME
-distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
-zipStoreBase=GRADLE_USER_HOME
-zipStorePath=wrapper/dists
diff --git a/example/HelloWorldFunction/gradlew b/example/HelloWorldFunction/gradlew
deleted file mode 100755
index 3a163de71..000000000
--- a/example/HelloWorldFunction/gradlew
+++ /dev/null
@@ -1,185 +0,0 @@
-#!/usr/bin/env sh
-
-#
-# Copyright 2015 the original author or authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-##############################################################################
-##
-## Gradle start up script for UN*X
-##
-##############################################################################
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
- ls=`ls -ld "$PRG"`
- link=`expr "$ls" : '.*-> \(.*\)$'`
- if expr "$link" : '/.*' > /dev/null; then
- PRG="$link"
- else
- PRG=`dirname "$PRG"`"/$link"
- fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn () {
- echo "$*"
-}
-
-die () {
- echo
- echo "$*"
- echo
- exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "`uname`" in
- CYGWIN* )
- cygwin=true
- ;;
- Darwin* )
- darwin=true
- ;;
- MINGW* )
- msys=true
- ;;
- NONSTOP* )
- nonstop=true
- ;;
-esac
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
- # IBM's JDK on AIX uses strange locations for the executables
- JAVACMD="$JAVA_HOME/jre/sh/java"
- else
- JAVACMD="$JAVA_HOME/bin/java"
- fi
- if [ ! -x "$JAVACMD" ] ; then
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
- fi
-else
- JAVACMD="java"
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
- MAX_FD_LIMIT=`ulimit -H -n`
- if [ $? -eq 0 ] ; then
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
- MAX_FD="$MAX_FD_LIMIT"
- fi
- ulimit -n $MAX_FD
- if [ $? -ne 0 ] ; then
- warn "Could not set maximum file descriptor limit: $MAX_FD"
- fi
- else
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
- fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin or MSYS, switch paths to Windows format before running java
-if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
-
- JAVACMD=`cygpath --unix "$JAVACMD"`
-
- # We build the pattern for arguments to be converted via cygpath
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
- SEP=""
- for dir in $ROOTDIRSRAW ; do
- ROOTDIRS="$ROOTDIRS$SEP$dir"
- SEP="|"
- done
- OURCYGPATTERN="(^($ROOTDIRS))"
- # Add a user-defined pattern to the cygpath arguments
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
- fi
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
- i=0
- for arg in "$@" ; do
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
-
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
- else
- eval `echo args$i`="\"$arg\""
- fi
- i=`expr $i + 1`
- done
- case $i in
- 0) set -- ;;
- 1) set -- "$args0" ;;
- 2) set -- "$args0" "$args1" ;;
- 3) set -- "$args0" "$args1" "$args2" ;;
- 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
- 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
- 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
- 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
- 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
- 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
- esac
-fi
-
-# Escape application args
-save () {
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
- echo " "
-}
-APP_ARGS=`save "$@"`
-
-# Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
-
-exec "$JAVACMD" "$@"
\ No newline at end of file
diff --git a/example/HelloWorldFunction/gradlew.bat b/example/HelloWorldFunction/gradlew.bat
deleted file mode 100644
index 9b30e1557..000000000
--- a/example/HelloWorldFunction/gradlew.bat
+++ /dev/null
@@ -1,104 +0,0 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto init
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto init
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:init
-@rem Get command-line arguments, handling Windows variants
-
-if not "%OS%" == "Windows_NT" goto win9xME_args
-
-:win9xME_args
-@rem Slurp the command line arguments.
-set CMD_LINE_ARGS=
-set _SKIP=2
-
-:win9xME_args_slurp
-if "x%~1" == "x" goto execute
-
-set CMD_LINE_ARGS=%*
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
\ No newline at end of file
diff --git a/example/HelloWorldFunction/pom.xml b/example/HelloWorldFunction/pom.xml
deleted file mode 100644
index 51a6a765d..000000000
--- a/example/HelloWorldFunction/pom.xml
+++ /dev/null
@@ -1,102 +0,0 @@
-
- 4.0.0
- helloworld
- HelloWorld
- 1.0
- jar
- A sample Hello World created for SAM CLI.
-
- 11
- 11
- 2.17.1
-
-
-
-
- software.amazon.lambda
- powertools-parameters
- 1.11.0
-
-
- software.amazon.lambda
- powertools-validation
- 1.11.0
-
-
- com.amazonaws
- aws-lambda-java-core
- 1.2.1
-
-
- com.amazonaws
- aws-lambda-java-events
- 3.11.0
-
-
- org.apache.logging.log4j
- log4j-core
- ${log4j.version}
-
-
- org.apache.logging.log4j
- log4j-api
- ${log4j.version}
-
-
- com.fasterxml.jackson.core
- jackson-databind
- 2.11.2
-
-
-
- junit
- junit
- 4.13.2
- test
-
-
-
-
-
-
- org.codehaus.mojo
- aspectj-maven-plugin
- 1.14.0
-
- ${maven.compiler.source}
- ${maven.compiler.target}
- ${maven.compiler.target}
-
-
- software.amazon.lambda
- powertools-validation
-
-
-
-
-
-
- compile
-
-
-
-
-
- org.apache.maven.plugins
- maven-shade-plugin
- 3.2.4
-
-
-
-
- package
-
- shade
-
-
-
-
-
-
-
diff --git a/example/HelloWorldFunction/settings.gradle b/example/HelloWorldFunction/settings.gradle
deleted file mode 100644
index 94df0a3e5..000000000
--- a/example/HelloWorldFunction/settings.gradle
+++ /dev/null
@@ -1 +0,0 @@
-rootProject.name = 'HelloWorldFunction'
diff --git a/example/HelloWorldFunction/src/main/java/helloworld/AppParams.java b/example/HelloWorldFunction/src/main/java/helloworld/AppParams.java
deleted file mode 100644
index 5a2ea5d0f..000000000
--- a/example/HelloWorldFunction/src/main/java/helloworld/AppParams.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package helloworld;
-
-import com.amazonaws.services.lambda.runtime.Context;
-import com.amazonaws.services.lambda.runtime.RequestHandler;
-import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
-import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import software.amazon.lambda.powertools.parameters.ParamManager;
-import software.amazon.lambda.powertools.parameters.SSMProvider;
-import software.amazon.lambda.powertools.parameters.SecretsProvider;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-import static java.time.temporal.ChronoUnit.SECONDS;
-import static software.amazon.lambda.powertools.parameters.transform.Transformer.base64;
-import static software.amazon.lambda.powertools.parameters.transform.Transformer.json;
-
-public class AppParams implements RequestHandler {
- private final static Logger log = LogManager.getLogger();
-
- SSMProvider ssmProvider = ParamManager.getSsmProvider();
- SecretsProvider secretsProvider = ParamManager.getSecretsProvider();
-
- String simplevalue = ssmProvider.defaultMaxAge(30, SECONDS).get("/powertools-java/sample/simplekey");
- String listvalue = ssmProvider.withMaxAge(60, SECONDS).get("/powertools-java/sample/keylist");
- MyObject jsonobj = ssmProvider.withTransformation(json).get("/powertools-java/sample/keyjson", MyObject.class);
- Map allvalues = ssmProvider.getMultiple("/powertools-java/sample");
- String b64value = ssmProvider.withTransformation(base64).get("/powertools-java/sample/keybase64");
-
- Map secretjson = secretsProvider.withTransformation(json).get("/powertools-java/userpwd", Map.class);
- MyObject secretjsonobj = secretsProvider.withMaxAge(42, SECONDS).withTransformation(json).get("/powertools-java/secretcode", MyObject.class);
-
- @Override
- public APIGatewayProxyResponseEvent handleRequest(APIGatewayProxyRequestEvent input, Context context) {
-
- log.info("\n=============== SSM Parameter Store ===============");
- log.info("simplevalue={}, listvalue={}, b64value={}\n", simplevalue, listvalue, b64value);
- log.info("jsonobj={}\n", jsonobj);
-
- log.info("allvalues (multiple):");
- allvalues.forEach((key, value) -> log.info("- {}={}\n", key, value));
-
- log.info("\n=============== Secrets Manager ===============");
- log.info("secretjson:");
- secretjson.forEach((key, value) -> log.info("- {}={}\n", key, value));
- log.info("secretjsonobj={}\n", secretjsonobj);
-
- Map headers = new HashMap<>();
- headers.put("Content-Type", "application/json");
- headers.put("X-Custom-Header", "application/json");
-
- APIGatewayProxyResponseEvent response = new APIGatewayProxyResponseEvent()
- .withHeaders(headers);
- try {
- final String pageContents = this.getPageContents("https://checkip.amazonaws.com");
- String output = String.format("{ \"message\": \"hello world\", \"location\": \"%s\" }", pageContents);
-
- return response
- .withStatusCode(200)
- .withBody(output);
- } catch (IOException e) {
- return response
- .withBody("{}")
- .withStatusCode(500);
- }
- }
-
- private String getPageContents(String address) throws IOException{
- URL url = new URL(address);
- try(BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()))) {
- return br.lines().collect(Collectors.joining(System.lineSeparator()));
- }
- }
-}
diff --git a/example/HelloWorldFunction/src/main/java/helloworld/AppValidation.java b/example/HelloWorldFunction/src/main/java/helloworld/AppValidation.java
deleted file mode 100644
index b66a0f864..000000000
--- a/example/HelloWorldFunction/src/main/java/helloworld/AppValidation.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package helloworld;
-
-import com.amazonaws.services.lambda.runtime.Context;
-import com.amazonaws.services.lambda.runtime.RequestHandler;
-import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent;
-import com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent;
-import software.amazon.lambda.powertools.validation.Validation;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.stream.Collectors;
-
-/**
- * Handler for requests to Lambda function.
- */
-public class AppValidation implements RequestHandler {
-
- @Validation(inboundSchema = "classpath:/schema.json")
- public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
- Map headers = new HashMap<>();
-
- headers.put("Content-Type", "application/json");
- headers.put("X-Custom-Header", "application/json");
-
- APIGatewayProxyResponseEvent response = new APIGatewayProxyResponseEvent()
- .withHeaders(headers);
- try {
- final String pageContents = this.getPageContents("https://checkip.amazonaws.com");
- String output = String.format("{ \"message\": \"hello world\", \"location\": \"%s\" }", pageContents);
-
- return response
- .withStatusCode(200)
- .withBody(output);
- } catch (IOException e) {
- return response
- .withBody("{}")
- .withStatusCode(500);
- }
- }
-
- private String getPageContents(String address) throws IOException {
- URL url = new URL(address);
- try (BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()))) {
- return br.lines().collect(Collectors.joining(System.lineSeparator()));
- }
- }
-}
diff --git a/example/HelloWorldFunction/src/main/java/helloworld/MyObject.java b/example/HelloWorldFunction/src/main/java/helloworld/MyObject.java
deleted file mode 100644
index 3c416971e..000000000
--- a/example/HelloWorldFunction/src/main/java/helloworld/MyObject.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package helloworld;
-
-public class MyObject {
-
- private long id;
- private String code;
-
- public MyObject() {
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getCode() {
- return code;
- }
-
- public void setCode(String code) {
- this.code = code;
- }
-
- @Override
- public String toString() {
- return "MyObject{" +
- "id=" + id +
- ", code='" + code + '\'' +
- '}';
- }
-}
diff --git a/example/HelloWorldFunction/src/main/resources/log4j2.xml b/example/HelloWorldFunction/src/main/resources/log4j2.xml
deleted file mode 100644
index 033da8a11..000000000
--- a/example/HelloWorldFunction/src/main/resources/log4j2.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/example/HelloWorldFunction/src/main/resources/schema.json b/example/HelloWorldFunction/src/main/resources/schema.json
deleted file mode 100644
index f38272f2d..000000000
--- a/example/HelloWorldFunction/src/main/resources/schema.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "$schema": "http://json-schema.org/draft-07/schema",
- "$id": "http://example.com/product.json",
- "type": "object",
- "title": "Product schema",
- "description": "JSON schema to validate Products",
- "default": {},
- "examples": [
- {
- "id": 43242,
- "name": "FooBar XY",
- "price": 258
- }
- ],
- "required": [
- "id",
- "name",
- "price"
- ],
- "properties": {
- "id": {
- "$id": "#/properties/id",
- "type": "integer",
- "title": "Id of the product",
- "description": "Unique identifier of the product",
- "default": 0,
- "examples": [
- 43242
- ]
- },
- "name": {
- "$id": "#/properties/name",
- "type": "string",
- "title": "Name of the product",
- "description": "Explicit name of the product",
- "minLength": 5,
- "default": "",
- "examples": [
- "FooBar XY"
- ]
- },
- "price": {
- "$id": "#/properties/price",
- "type": "number",
- "title": "Price of the product",
- "description": "Positive price of the product",
- "default": 0,
- "exclusiveMinimum": 0,
- "examples": [
- 258.99
- ]
- }
- },
- "additionalProperties": true
-}
\ No newline at end of file
diff --git a/example/README.md b/example/README.md
deleted file mode 100644
index 56af61c73..000000000
--- a/example/README.md
+++ /dev/null
@@ -1,121 +0,0 @@
-# example
-
-This project contains source code and supporting files for a serverless application that you can deploy with the SAM CLI. It includes the following files and folders.
-
-- HelloWorldFunction/src/main - Code for the application's Lambda function.
-- events - Invocation events that you can use to invoke the function.
-- HelloWorldFunction/src/test - Unit tests for the application code.
-- template.yaml - A template that defines the application's AWS resources.
-
-The application uses several AWS resources, including Lambda functions and an API Gateway API. These resources are defined in the `template.yaml` file in this project. You can update the template to add AWS resources through the same deployment process that updates your application code.
-
-If you prefer to use an integrated development environment (IDE) to build and test your application, you can use the AWS Toolkit.
-The AWS Toolkit is an open source plug-in for popular IDEs that uses the SAM CLI to build and deploy serverless applications on AWS. The AWS Toolkit also adds a simplified step-through debugging experience for Lambda function code. See the following links to get started.
-
-* [PyCharm](https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/welcome.html)
-* [IntelliJ](https://docs.aws.amazon.com/toolkit-for-jetbrains/latest/userguide/welcome.html)
-* [VS Code](https://docs.aws.amazon.com/toolkit-for-vscode/latest/userguide/welcome.html)
-* [Visual Studio](https://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/welcome.html)
-
-## Deploy the sample application
-
-The Serverless Application Model Command Line Interface (SAM CLI) is an extension of the AWS CLI that adds functionality for building and testing Lambda applications. It uses Docker to run your functions in an Amazon Linux environment that matches Lambda. It can also emulate your application's build environment and API.
-
-To use the SAM CLI, you need the following tools.
-
-* SAM CLI - [Install the SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html)
-* Java8 - [Install the Java SE Development Kit 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
-* Maven - [Install Maven](https://maven.apache.org/install.html) or
-* Gradle - [Install Gradle](https://gradle.org/install/)
-* Docker - [Install Docker community edition](https://hub.docker.com/search/?type=edition&offering=community)
-
-To build and deploy your application for the first time, run the following in your shell:
-
-```bash
-sam build
-sam deploy --guided
-```
-
-The first command will build the source of your application. The second command will package and deploy your application to AWS, with a series of prompts:
-
-* **Stack Name**: The name of the stack to deploy to CloudFormation. This should be unique to your account and region, and a good starting point would be something matching your project name.
-* **AWS Region**: The AWS region you want to deploy your app to.
-* **Confirm changes before deploy**: If set to yes, any change sets will be shown to you before execution for manual review. If set to no, the AWS SAM CLI will automatically deploy application changes.
-* **Allow SAM CLI IAM role creation**: Many AWS SAM templates, including this example, create AWS IAM roles required for the AWS Lambda function(s) included to access AWS services. By default, these are scoped down to minimum required permissions. To deploy an AWS CloudFormation stack which creates or modified IAM roles, the `CAPABILITY_IAM` value for `capabilities` must be provided. If permission isn't provided through this prompt, to deploy this example you must explicitly pass `--capabilities CAPABILITY_IAM` to the `sam deploy` command.
-* **Save arguments to samconfig.toml**: If set to yes, your choices will be saved to a configuration file inside the project, so that in the future you can just re-run `sam deploy` without parameters to deploy changes to your application.
-
-You can find your API Gateway Endpoint URL in the output values displayed after deployment.
-
-## Use the SAM CLI to build and test locally
-
-Build your application with the `sam build` command.
-
-```bash
-example$ sam build
-```
-
-The SAM CLI installs dependencies defined in `HelloWorldFunction/build.gradle`, creates a deployment package, and saves it in the `.aws-sam/build` folder.
-
-Test a single function by invoking it directly with a test event. An event is a JSON document that represents the input that the function receives from the event source. Test events are included in the `events` folder in this project.
-
-Run functions locally and invoke them with the `sam local invoke` command.
-
-```bash
-example$ sam local invoke HelloWorldFunction --event events/event.json
-```
-
-The SAM CLI can also emulate your application's API. Use the `sam local start-api` to run the API locally on port 3000.
-
-```bash
-example$ sam local start-api
-example$ curl http://localhost:3000/
-```
-
-The SAM CLI reads the application template to determine the API's routes and the functions that they invoke. The `Events` property on each function's definition includes the route and method for each path.
-
-```yaml
- Events:
- HelloWorld:
- Type: Api
- Properties:
- Path: /hello
- Method: get
-```
-
-## Add a resource to your application
-The application template uses AWS Serverless Application Model (AWS SAM) to define application resources. AWS SAM is an extension of AWS CloudFormation with a simpler syntax for configuring common serverless application resources such as functions, triggers, and APIs. For resources not included in [the SAM specification](https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md), you can use standard [AWS CloudFormation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) resource types.
-
-## Fetch, tail, and filter Lambda function logs
-
-To simplify troubleshooting, SAM CLI has a command called `sam logs`. `sam logs` lets you fetch logs generated by your deployed Lambda function from the command line. In addition to printing the logs on the terminal, this command has several nifty features to help you quickly find the bug.
-
-`NOTE`: This command works for all AWS Lambda functions; not just the ones you deploy using SAM.
-
-```bash
-example$ sam logs -n HelloWorldFunction --stack-name sam-app --tail
-```
-
-You can find more information and examples about filtering Lambda function logs in the [SAM CLI Documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-logging.html).
-
-## Unit tests
-
-Tests are defined in the `HelloWorldFunction/src/test` folder in this project.
-
-```bash
-example$ cd HelloWorldFunction
-HelloWorldFunction$ gradle test
-```
-
-## Cleanup
-
-To delete the sample application that you created, use the AWS CLI. Assuming you used your project name for the stack name, you can run the following:
-
-```bash
-aws cloudformation delete-stack --stack-name example
-```
-
-## Resources
-
-See the [AWS SAM developer guide](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) for an introduction to SAM specification, the SAM CLI, and serverless application concepts.
-
-Next, you can use AWS Serverless Application Repository to deploy ready to use Apps that go beyond hello world samples and learn how authors developed their applications: [AWS Serverless Application Repository main page](https://aws.amazon.com/serverless/serverlessrepo/)
diff --git a/example/events/event.json b/example/events/event.json
deleted file mode 100644
index 3822fadaa..000000000
--- a/example/events/event.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "body": "{\"message\": \"hello world\"}",
- "resource": "/{proxy+}",
- "path": "/path/to/resource",
- "httpMethod": "POST",
- "isBase64Encoded": false,
- "queryStringParameters": {
- "foo": "bar"
- },
- "pathParameters": {
- "proxy": "/path/to/resource"
- },
- "stageVariables": {
- "baz": "qux"
- },
- "headers": {
- "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
- "Accept-Encoding": "gzip, deflate, sdch",
- "Accept-Language": "en-US,en;q=0.8",
- "Cache-Control": "max-age=0",
- "CloudFront-Forwarded-Proto": "https",
- "CloudFront-Is-Desktop-Viewer": "true",
- "CloudFront-Is-Mobile-Viewer": "false",
- "CloudFront-Is-SmartTV-Viewer": "false",
- "CloudFront-Is-Tablet-Viewer": "false",
- "CloudFront-Viewer-Country": "US",
- "Host": "1234567890.execute-api.us-east-1.amazonaws.com",
- "Upgrade-Insecure-Requests": "1",
- "User-Agent": "Custom User Agent String",
- "Via": "1.1 08f323deadbeefa7af34d5feb414ce27.cloudfront.net (CloudFront)",
- "X-Amz-Cf-Id": "cDehVQoZnx43VYQb9j2-nvCh-9z396Uhbp027Y2JvkCPNLmGJHqlaA==",
- "X-Forwarded-For": "127.0.0.1, 127.0.0.2",
- "X-Forwarded-Port": "443",
- "X-Forwarded-Proto": "https"
- },
- "requestContext": {
- "accountId": "123456789012",
- "resourceId": "123456",
- "stage": "prod",
- "requestId": "c6af9ac6-7b61-11e6-9a41-93e8deadbeef",
- "requestTime": "09/Apr/2015:12:34:56 +0000",
- "requestTimeEpoch": 1428582896000,
- "identity": {
- "cognitoIdentityPoolId": null,
- "accountId": null,
- "cognitoIdentityId": null,
- "caller": null,
- "accessKey": null,
- "sourceIp": "127.0.0.1",
- "cognitoAuthenticationType": null,
- "cognitoAuthenticationProvider": null,
- "userArn": null,
- "userAgent": "Custom User Agent String",
- "user": null
- },
- "path": "/prod/path/to/resource",
- "resourcePath": "/{proxy+}",
- "httpMethod": "POST",
- "apiId": "1234567890",
- "protocol": "HTTP/1.1"
- }
- }
-
\ No newline at end of file
diff --git a/example/events/eventSqs.json b/example/events/eventSqs.json
deleted file mode 100644
index 37a29c4dd..000000000
--- a/example/events/eventSqs.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "Records": [
- {
- "messageId": "19dd0b57-b21e-4ac1-bd88-01bbb068cb99",
- "receiptHandle": "MessageReceiptHandle",
- "body": "Hello from SQS!",
- "attributes": {
- "ApproximateReceiveCount": "1",
- "SentTimestamp": "1523232000000",
- "SenderId": "123456789012",
- "ApproximateFirstReceiveTimestamp": "1523232000001"
- },
- "messageAttributes": {},
- "md5OfBody": "7b270e59b47ff90a553787216d55d999",
- "eventSource": "aws:sqs",
- "eventSourceARN": "arn:aws:sqs:eu-west-1:123456789:powertools-example-TestSqsQueue-1JW5W8N9",
- "awsRegion": "eu-west-1"
- },
- {
- "messageId": "19dd0b57-b21e-4ac1-bd88-01bbb068cb78",
- "receiptHandle": "MessageReceiptHandle",
- "body": "Hello from SQS!",
- "attributes": {
- "ApproximateReceiveCount": "1",
- "SentTimestamp": "1523232000000",
- "SenderId": "123456789012",
- "ApproximateFirstReceiveTimestamp": "1523232000001"
- },
- "messageAttributes": {},
- "md5OfBody": "7b270e59b47ff90a553787216d55d91d",
- "eventSource": "aws:sqs",
- "eventSourceARN": "arn:aws:sqs:eu-west-1:123456789:powertools-example-TestSqsQueue-1JW5W8N9",
- "awsRegion": "eu-west-1"
- }
- ]
-}
\ No newline at end of file
diff --git a/example/template.yaml b/example/template.yaml
deleted file mode 100644
index 907ae13b1..000000000
--- a/example/template.yaml
+++ /dev/null
@@ -1,131 +0,0 @@
-AWSTemplateFormatVersion: '2010-09-09'
-Transform: AWS::Serverless-2016-10-31
-Description: >
- sam-app
-
- Sample SAM Template for sam-app
-
-# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
-Globals:
- Function:
- Timeout: 20
- Runtime: java11
-
-Resources:
- HelloWorldValidationFunction:
- Type: AWS::Serverless::Function # More info about Function Resource: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction
- Properties:
- CodeUri: HelloWorldFunction
- Handler: helloworld.AppValidation::handleRequest
- MemorySize: 512
- Tracing: Active
- Events:
- HelloWorld:
- Type: Api # More info about API Event Source: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#api
- Properties:
- Path: /hello
- Method: post
-
- HelloWorldParamsFunction:
- Type: AWS::Serverless::Function
- Properties:
- CodeUri: HelloWorldFunction
- Handler: helloworld.AppParams::handleRequest
- MemorySize: 512
- Tracing: Active
- Policies:
- - AWSSecretsManagerGetSecretValuePolicy:
- SecretArn: !Ref UserPwd
- - AWSSecretsManagerGetSecretValuePolicy:
- SecretArn: !Ref SecretConfig
- - Statement:
- - Sid: SSMGetParameterPolicy
- Effect: Allow
- Action:
- - ssm:GetParameter
- - ssm:GetParameters
- - ssm:GetParametersByPath
- Resource: '*'
- Events:
- HelloWorld:
- Type: Api
- Properties:
- Path: /helloparams
- Method: get
-
- IdempotencyTable:
- Type: AWS::Serverless::SimpleTable
- Properties:
- TableName: idempotency_table
- PrimaryKey:
- Name: id
- Type: String
-
- UserPwd:
- Type: AWS::SecretsManager::Secret
- Properties:
- Name: /powertools-java/userpwd
- Description: Generated secret for lambda-powertools-java powertools-parameters
- module
- GenerateSecretString:
- SecretStringTemplate: '{"username": "test-user"}'
- GenerateStringKey: password
- PasswordLength: 15
- ExcludeCharacters: '"@/\'
- SecretConfig:
- Type: AWS::SecretsManager::Secret
- Properties:
- Name: /powertools-java/secretcode
- Description: Json secret for lambda-powertools-java powertools-parameters module
- SecretString: '{"id":23443,"code":"hk38543oj24kn796kp67bkb234gkj679l68"}'
- BasicParameter:
- Type: AWS::SSM::Parameter
- Properties:
- Name: /powertools-java/sample/simplekey
- Type: String
- Value: simplevalue
- Description: Simple SSM Parameter for lambda-powertools-java powertools-parameters
- module
- ParameterList:
- Type: AWS::SSM::Parameter
- Properties:
- Name: /powertools-java/sample/keylist
- Type: StringList
- Value: value1,value2,value3
- Description: SSM Parameter List for lambda-powertools-java powertools-parameters
- module
- JsonParameter:
- Type: AWS::SSM::Parameter
- Properties:
- Name: /powertools-java/sample/keyjson
- Type: String
- Value: '{"id":23443,"code":"hk38543oj24kn796kp67bkb234gkj679l68"}'
- Description: Json SSM Parameter for lambda-powertools-java powertools-parameters
- module
- Base64Parameter:
- Type: AWS::SSM::Parameter
- Properties:
- Name: /powertools-java/sample/keybase64
- Type: String
- Value: aGVsbG8gd29ybGQ=
- Description: Base64 SSM Parameter for lambda-powertools-java powertools-parameters module
-
-
-Outputs:
- # ServerlessRestApi is an implicit API created out of Events key under Serverless::Function
- # Find out more about other implicit resources you can reference within SAM
- # https://github.com/awslabs/serverless-application-model/blob/master/docs/internals/generated_resources.rst#api
- HelloWorldApi:
- Description: "API Gateway endpoint URL for Prod stage for Hello World function"
- Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hello/"
-
- HelloWorldStreamApi:
- Description: "API Gateway endpoint URL for Prod stage for Hello World stream function"
- Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/hellostream/"
-
- HelloWorldParamsApi:
- Description: "API Gateway endpoint URL for Prod stage for Hello World params function"
- Value: !Sub "https://${ServerlessRestApi}.execute-api.${AWS::Region}.amazonaws.com/Prod/helloparams/"
- HelloWorldParamsFunction:
- Description: "Hello World Params Lambda Function ARN"
- Value: !GetAtt HelloWorldParamsFunction.Arn
\ No newline at end of file