Skip to content

Commit

Permalink
Merge pull request #10015 from flemjame-at-amazon/lambda-corretto-8
Browse files Browse the repository at this point in the history
fix(lambda): Add Runtime support for Java 8 Corretto and Custom AL2
  • Loading branch information
NetaNir authored Aug 28, 2020
2 parents af41534 + 1ce3db3 commit d5e1cc6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/@aws-cdk/aws-lambda/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ export class Runtime {
*/
public static readonly JAVA_8 = new Runtime('java8', RuntimeFamily.JAVA);

/**
* The Java 8 Corretto runtime (java8.al2)
*/
public static readonly JAVA_8_CORRETTO = new Runtime('java8.al2', RuntimeFamily.JAVA);

/**
* The Java 11 runtime (java11)
*/
Expand Down Expand Up @@ -152,6 +157,11 @@ export class Runtime {
*/
public static readonly PROVIDED = new Runtime('provided', RuntimeFamily.OTHER);

/**
* The custom provided runtime (provided)
*/
public static readonly PROVIDED_AL2 = new Runtime('provided.al2', RuntimeFamily.OTHER);

/**
* The name of this runtime, as expected by the Lambda resource.
*/
Expand Down

0 comments on commit d5e1cc6

Please sign in to comment.