Skip to content

Commit

Permalink
Merge pull request #680 from perfectsense/feature/Update-lambda-runtimes
Browse files Browse the repository at this point in the history
Update Lambda Function supported Runtimes
  • Loading branch information
deepanjan90 authored Nov 15, 2024
2 parents cdf0a6d + 41f51f8 commit e628e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/lambda/lambda-function.gyro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ end
aws::lambda-function lambda-function-example
name: "testFunction1"
handler: "index.handler"
runtime: "nodejs8.10"
runtime: "nodejs20.x"
role: $(aws::iam-role example-role-iam)
content-zip-path: "example-function-1.zip"

Expand Down Expand Up @@ -47,4 +47,4 @@ aws::lambda-layer lambda-layer-for-function-example-2
compatible-runtimes: [
"nodejs8.10"
]
end
end
5 changes: 2 additions & 3 deletions src/main/java/gyro/aws/lambda/FunctionResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
* aws::lambda-function lambda-function-example
* name: "testFunction"
* handler: "index.handler"
* runtime: "nodejs8.10"
* runtime: "nodejs20.x"
* role: "arn:aws:iam::242040583208:role/service-role/testFunctionRole"
* content-zip-path: "example-function.zip"
*
Expand Down Expand Up @@ -213,11 +213,10 @@ public void setRole(RoleResource role) {
}

/**
* The runtime language for this Lambda Function.
* The runtime language for this Lambda Function. See `Supported Runtimes for Lambda <https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html>`_.
*/
@Required
@Updatable
@ValidStrings({"nodejs", "nodejs4.3", "nodejs6.10", "nodejs8.10", "java8", "python2.7", "python3.6", "python3.7", "dotnetcore1.0", "dotnetcore2.0", "dotnetcore2.1", "nodejs4.3-edge", "go1.x", "ruby2.5", "provided"})
public String getRuntime() {
return runtime;
}
Expand Down

0 comments on commit e628e4b

Please sign in to comment.