Skip to content

Commit

Permalink
fix(lambda): Add 'provided' runtime
Browse files Browse the repository at this point in the history
Provided runtime can be used for custom runtimes.

Fixes #1761.
  • Loading branch information
Rico Huijbers committed Feb 14, 2019
1 parent 726dacd commit 1c057ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@aws-cdk/aws-lambda/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export enum RuntimeFamily {
Python,
DotNetCore,
Go,
Ruby
Ruby,
Other
}

/**
Expand All @@ -38,6 +39,7 @@ export class Runtime {
public static readonly DotNetCore21 = new Runtime('dotnetcore2.1', RuntimeFamily.DotNetCore);
public static readonly Go1x = new Runtime('go1.x', RuntimeFamily.Go);
public static readonly Ruby25 = new Runtime('ruby2.5', RuntimeFamily.Ruby, { supportsInlineCode: true });
public static readonly Provided = new Runtime('provided', RuntimeFamily.Other);

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

0 comments on commit 1c057ab

Please sign in to comment.