Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/core/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ You can also override log level by setting **`POWERTOOLS_LOG_LEVEL`** env var. H
Type: AWS::Serverless::Function
Properties:
...
Runtime: java8
Runtime: java11
Environment:
Variables:
POWERTOOLS_LOG_LEVEL: DEBUG
Expand Down Expand Up @@ -590,7 +590,7 @@ via `samplingRate` attribute on annotation.
Type: AWS::Serverless::Function
Properties:
...
Runtime: java8
Runtime: java11
Environment:
Variables:
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.5
Expand Down
2 changes: 1 addition & 1 deletion docs/core/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Setting | Description | Environment variable | Constructor parameter
Type: AWS::Serverless::Function
Properties:
...
Runtime: java8
Runtime: java11
Environment:
Variables:
POWERTOOLS_SERVICE_NAME: payment
Expand Down
4 changes: 2 additions & 2 deletions docs/core/tracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Before your use this utility, your AWS Lambda function [must have permissions](h
Type: AWS::Serverless::Function
Properties:
...
Runtime: java8
Runtime: java11

Tracing: Active
Environment:
Expand Down Expand Up @@ -250,7 +250,7 @@ different supported `captureMode` to record response, exception or both.
Type: AWS::Serverless::Function
Properties:
...
Runtime: java8
Runtime: java11

Tracing: Active
Environment:
Expand Down
4 changes: 2 additions & 2 deletions examples/powertools-examples-core/gradle/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Resources:
Properties:
CodeUri: .
Handler: helloworld.App::handleRequest
Runtime: java8
Runtime: java8.al2
MemorySize: 512
Environment: # More info about Env Vars: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#environment-object
Variables:
Expand All @@ -43,7 +43,7 @@ Resources:
Properties:
CodeUri: .
Handler: helloworld.AppStream::handleRequest
Runtime: java8
Runtime: java8.al2
MemorySize: 512
Tracing: Active
Environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private Builder() {

private JavaRuntime mapRuntimeVersion(String environmentVariableName) {
String javaVersion = System.getenv(environmentVariableName); // must be set in GitHub actions
JavaRuntime ret = null;
JavaRuntime ret;
if (javaVersion == null) {
throw new IllegalArgumentException(environmentVariableName + " is not set");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import software.amazon.awscdk.services.lambda.Runtime;

public enum JavaRuntime {
JAVA8("java8", Runtime.JAVA_8, "1.8"),
JAVA8AL2("java8.al2", Runtime.JAVA_8_CORRETTO, "1.8"),
JAVA11("java11", Runtime.JAVA_11, "11"),
JAVA17("java17", Runtime.JAVA_17, "17"),
Expand Down