def to_cloudformation(self):
rest_api = self._construct_rest_api()<EOL>deployment = self._construct_deployment(rest_api)<EOL>swagger = None<EOL>if rest_api.Body is not None:<EOL><INDENT>swagger = rest_api.Body<EOL><DEDENT>elif rest_api.BodyS3Location is not None:<EOL><INDENT>swagger = rest_api.BodyS3Location<EOL><DEDENT>stage = self._construct_stage(deployment, swagger)<EOL>permissions = self._construct_authorizer_lambda_permission()<EOL>return rest_api, deployment, stage, permissions<EOL>
Generates CloudFormation resources from a SAM API resource

        :returns: a tuple containing the RestApi, Deployment, and Stage for an empty Api.
        :rtype: tuple