Skip to content

Commit

Permalink
Added Placement class for the Placement property in LaunchSpecificati…
Browse files Browse the repository at this point in the history
…ons. (cloudtools#598)

* Added placement property.

* Removed whitespace before colons.
  • Loading branch information
pshucksmith authored and phobologic committed Oct 24, 2016
1 parent fb18f60 commit f61b5d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion troposphere/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ class MountPoint(AWSProperty):
}


class Placement(AWSProperty):
props = {
'AvailabilityZone': (basestring, False),
'GroupName': (basestring, False),
}


class PrivateIpAddressSpecification(AWSProperty):
props = {
'Primary': (boolean, True),
Expand Down Expand Up @@ -561,7 +568,7 @@ class LaunchSpecifications(AWSProperty):
'KeyName': (basestring, False),
'Monitoring': (Monitoring, False),
'NetworkInterfaces': ([NetworkInterfaces], False),
'Placement': (basestring, False),
'Placement': (Placement, False),
'RamdiskId': (basestring, False),
'SecurityGroups': ([SecurityGroups], False),
'SpotPrice': (basestring, False),
Expand Down

0 comments on commit f61b5d7

Please sign in to comment.