Skip to content

Commit

Permalink
Adds VPCEndpoint resource type
Browse files Browse the repository at this point in the history
  • Loading branch information
kalefranz committed Aug 31, 2015
1 parent c48dd96 commit a9ba183
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

from . import AWSHelperFn, AWSObject, AWSProperty, FindInMap, Ref
from .validators import boolean, integer, integer_range, network_port
try:
from awacs.aws import Policy
policytypes = (dict, Policy)
except ImportError:
policytypes = dict,


class Tag(AWSHelperFn):
Expand Down Expand Up @@ -371,6 +376,17 @@ class VPCDHCPOptionsAssociation(AWSObject):
}


class VPCEndpoint(AWSObject):
resource_type = "AWS::EC2::VPCEndpoint"

props = {
'PolicyDocument': (policytypes, False),
'RouteTableIds': ([basestring, Ref], False),
'ServiceName': (basestring, True),
'VpcId': (basestring, True),
}


class VPCGatewayAttachment(AWSObject):
resource_type = "AWS::EC2::VPCGatewayAttachment"

Expand Down

0 comments on commit a9ba183

Please sign in to comment.