Skip to content

Commit

Permalink
Add VpcConfig to AWS::Lambda::Function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Bastida authored and markpeek committed Apr 2, 2016
1 parent 6d524d4 commit 175a76b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions troposphere/awslambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -54,6 +62,7 @@ class Function(AWSObject):
'Role': (basestring, True),
'Runtime': (basestring, True),
'Timeout': (positive_integer, False),
'VpcConfig': (VPCConfig, False),
}


Expand Down

0 comments on commit 175a76b

Please sign in to comment.