def getMatchingResources(self, aggSpec): """ Get the resources that match an aggregation specification. :param aggSpec: Autostack aggregation specification :type aggSpec: dict (see _AutostackDatasourceAdapter.createAutostack) :returns: sequence of matching resources """ resourceType = aggSpec["resourceType"] adapter = AWSResourceAdapterBase.getResourceAdapterClass(resourceType) return adapter.getMatchingResources(aggSpec)