[AWSMetrics][cdk] Add the athena work group as a dependency of named queries (#4354)

Signed-off-by: Junbo Liang <junbo@amazon.com>
This commit is contained in:
Junbo Liang
2021-09-27 13:36:35 -07:00
committed by GitHub
parent 549d3f4001
commit a3280afef3
@@ -122,6 +122,9 @@ class BatchAnalytics:
)
]
for named_query in self._named_queries:
named_query.node.add_dependency(self._athena_work_group)
@property
def athena_work_group_name(self) -> athena.CfnWorkGroup.name:
return self._athena_work_group.name