Add resource IDs to ECS Cluster and Service models (#811)
This commit is contained in:
parent
51129f6ef3
commit
88d5e36ffe
@ -40,6 +40,10 @@ class Cluster(BaseObject):
|
|||||||
self.running_tasks_count = 0
|
self.running_tasks_count = 0
|
||||||
self.status = 'ACTIVE'
|
self.status = 'ACTIVE'
|
||||||
|
|
||||||
|
@property
|
||||||
|
def physical_resource_id(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def response_object(self):
|
def response_object(self):
|
||||||
response_object = self.gen_response_object()
|
response_object = self.gen_response_object()
|
||||||
@ -154,6 +158,10 @@ class Service(BaseObject):
|
|||||||
self.load_balancers = []
|
self.load_balancers = []
|
||||||
self.pending_count = 0
|
self.pending_count = 0
|
||||||
|
|
||||||
|
@property
|
||||||
|
def physical_resource_id(self):
|
||||||
|
return self.arn
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def response_object(self):
|
def response_object(self):
|
||||||
response_object = self.gen_response_object()
|
response_object = self.gen_response_object()
|
||||||
|
Loading…
Reference in New Issue
Block a user