moto/scripts/template/lib/responses.py.j2

18 lines
410 B
Plaintext
Raw Normal View History

from __future__ import unicode_literals
from moto.core.responses import BaseResponse
from .models import {{ escaped_service }}_backends
import json
class {{ service_class }}Response(BaseResponse):
SERVICE_NAME = '{{ service }}'
@property
def {{ escaped_service }}_backend(self):
return {{ escaped_service }}_backends[self.region]
# add methods from here
2017-09-26 15:46:18 +00:00
# add templates from here