def to_cloudformation(self, **kwargs):
function = kwargs.get('<STR_LIT>')<EOL>if not function:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>source_arn = self.get_source_arn()<EOL>permission = self._construct_permission(function, source_arn=source_arn)<EOL>subscription_filter = self.get_subscription_filter(function, permission)<EOL>resources = [permission, subscription_filter]<EOL>return resources<EOL>
Returns the CloudWatch Logs Subscription Filter and Lambda Permission to which this CloudWatch Logs event source
        corresponds.

        :param dict kwargs: no existing resources need to be modified
        :returns: a list of vanilla CloudFormation Resources, to which this push event expands
        :rtype: list