add physical_resource_id support for Rule

This commit is contained in:
Guilherme Martins Crocetti 2020-04-01 22:12:17 -03:00
commit 7591074453

View file

@ -26,6 +26,10 @@ class Rule(BaseModel):
self.role_arn = kwargs.get("RoleArn")
self.targets = []
@property
def physical_resource_id(self):
return self.name
# This song and dance for targets is because we need order for Limits and NextTokens, but can't use OrderedDicts
# with Python 2.6, so tracking it with an array it is.
def _check_target_exists(self, target_id):