def to_cloudformation(self, **kwargs):
resources = []<EOL>api_generator = ApiGenerator(self.logical_id,<EOL>self.CacheClusterEnabled,<EOL>self.CacheClusterSize,<EOL>self.Variables,<EOL>self.depends_on,<EOL>self.DefinitionBody,<EOL>self.DefinitionUri,<EOL>self.Name,<EOL>self.StageName,<EOL>endpoint_configuration=self.EndpointConfiguration,<EOL>method_settings=self.MethodSettings,<EOL>binary_media=self.BinaryMediaTypes,<EOL>minimum_compression_size=self.MinimumCompressionSize,<EOL>cors=self.Cors,<EOL>auth=self.Auth,<EOL>gateway_responses=self.GatewayResponses,<EOL>access_log_setting=self.AccessLogSetting,<EOL>canary_setting=self.CanarySetting,<EOL>tracing_enabled=self.TracingEnabled,<EOL>resource_attributes=self.resource_attributes,<EOL>passthrough_resource_attributes=self.get_passthrough_resource_attributes())<EOL>rest_api, deployment, stage, permissions = api_generator.to_cloudformation()<EOL>resources.extend([rest_api, deployment, stage])<EOL>resources.extend(permissions)<EOL>return resources<EOL>
Returns the API Gateway RestApi, Deployment, and Stage to which this SAM Api corresponds.

        :param dict kwargs: already-converted resources that may need to be modified when converting this \
        macro to pure CloudFormation
        :returns: a list of vanilla CloudFormation Resources, to which this Function expands
        :rtype: list