From 20a441e778050a093962b98f6a2bf49cb2e9ed43 Mon Sep 17 00:00:00 2001 From: theofilos Date: Fri, 2 Feb 2024 10:23:34 +0200 Subject: [PATCH] Fix valid canary runtime versions --- troposphere/validators/synthetics.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/troposphere/validators/synthetics.py b/troposphere/validators/synthetics.py index 7a979be7c..3bdcbbb9f 100644 --- a/troposphere/validators/synthetics.py +++ b/troposphere/validators/synthetics.py @@ -9,7 +9,13 @@ def canary_runtime_version(runtime_version): Property: Canary.RuntimeVersion """ - valid_runtime_versions = ["syn-nodejs-2.0", "syn-nodejs-2.0-beta", "syn-1.0"] + valid_runtime_versions = [ + "syn-nodejs-puppeteer-4.0", + "syn-nodejs-puppeteer-5.0", + "syn-nodejs-puppeteer-5.1", + "syn-nodejs-puppeteer-6.0", + "syn-nodejs-puppeteer-6.1", + ] if runtime_version not in valid_runtime_versions: raise ValueError( 'RuntimeVersion must be one of: "%s"' % (", ".join(valid_runtime_versions))