diff --git a/troposphere/awslambda.py b/troposphere/awslambda.py index ef3ec31ee..851d9e536 100644 --- a/troposphere/awslambda.py +++ b/troposphere/awslambda.py @@ -31,6 +31,14 @@ def validate(self): ) +class VPCConfig(AWSProperty): + + props = { + 'SecurityGroupIds': (list, True), + 'SubnetIds': (list, True), + } + + class EventSourceMapping(AWSObject): resource_type = "AWS::Lambda::EventSourceMapping" @@ -54,6 +62,7 @@ class Function(AWSObject): 'Role': (basestring, True), 'Runtime': (basestring, True), 'Timeout': (positive_integer, False), + 'VpcConfig': (VPCConfig, False), }