From 8336112772d3e4d41b26a311e076d460f1b9ea31 Mon Sep 17 00:00:00 2001 From: Edward Rousseau Date: Wed, 4 Jul 2018 16:50:50 +1000 Subject: [PATCH] Add basestring to allowed types for Code property of Function class --- troposphere/awslambda.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py index 09abde410..663e39858 100644 --- a/troposphere/awslambda.py +++ b/troposphere/awslambda.py @@ -90,6 +90,9 @@ def validate(self): ) +codetypes = Code, basestring + + class VPCConfig(AWSProperty): props = { @@ -135,7 +138,7 @@ class Function(AWSObject): resource_type = "AWS::Lambda::Function" props = { - 'Code': (Code, True), + 'Code': (codetypes, True), 'Description': (basestring, False), 'DeadLetterConfig': (DeadLetterConfig, False), 'Environment': (Environment, False),