Add resource IDs to ECS Cluster and Service models (#811)

This commit is contained in:
Hugo Lopes Tavares 2017-01-19 11:59:28 -05:00 committed by Steve Pulec
parent 51129f6ef3
commit 88d5e36ffe

View File

@ -40,6 +40,10 @@ class Cluster(BaseObject):
self.running_tasks_count = 0
self.status = 'ACTIVE'
@property
def physical_resource_id(self):
return self.name
@property
def response_object(self):
response_object = self.gen_response_object()
@ -154,6 +158,10 @@ class Service(BaseObject):
self.load_balancers = []
self.pending_count = 0
@property
def physical_resource_id(self):
return self.arn
@property
def response_object(self):
response_object = self.gen_response_object()