add physical_resource_id support for Rule
This commit is contained in:
parent
c25f6a72da
commit
7591074453
1 changed files with 4 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ class Rule(BaseModel):
|
||||||
self.role_arn = kwargs.get("RoleArn")
|
self.role_arn = kwargs.get("RoleArn")
|
||||||
self.targets = []
|
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
|
# 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.
|
# with Python 2.6, so tracking it with an array it is.
|
||||||
def _check_target_exists(self, target_id):
|
def _check_target_exists(self, target_id):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue