def __iter__(self):
for logical_id, _ in self.by_resource.items():<EOL><INDENT>yield logical_id, self._get_apis_with_config(logical_id)<EOL><DEDENT>
Iterator to iterate through all the APIs stored in the collector. In each iteration, this yields the
LogicalId of the API resource and a list of APIs available in this resource.

Yields
-------
str
    LogicalID of the AWS::Serverless::Api resource
list samcli.commands.local.lib.provider.Api
    List of the API available in this resource along with additional configuration like binary media types.