Add support for Launch Templates in Auto Scaling Groups (#3236)
* Add support for Launch Templates in Auto Scaling Groups * Use named parameters, simplify parameter validation
This commit is contained in:
parent
2a27e457bf
commit
55b02c6ee9
8 changed files with 774 additions and 42 deletions
|
|
@ -5386,6 +5386,22 @@ class LaunchTemplateVersion(object):
|
|||
self.description = description
|
||||
self.create_time = utc_date_and_time()
|
||||
|
||||
@property
|
||||
def image_id(self):
|
||||
return self.data.get("ImageId", "")
|
||||
|
||||
@property
|
||||
def instance_type(self):
|
||||
return self.data.get("InstanceType", "")
|
||||
|
||||
@property
|
||||
def security_groups(self):
|
||||
return self.data.get("SecurityGroups", [])
|
||||
|
||||
@property
|
||||
def user_data(self):
|
||||
return self.data.get("UserData", "")
|
||||
|
||||
|
||||
class LaunchTemplate(TaggedEC2Resource):
|
||||
def __init__(self, backend, name, template_data, version_description):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue