moto/scripts/template/lib/responses.py.j2
kbalk 180a48751d
Minor updates to scaffold.py (#4213)
Co-authored-by: Karri Balk <kbalk@users.noreply.github.com>
2021-08-24 16:49:45 +01:00

22 lines
559 B
Django/Jinja

"""Handles incoming {{ escaped_service }} requests, invokes methods, returns responses."""
import json
from moto.core.responses import BaseResponse
from .models import {{ escaped_service }}_backends
class {{ service_class }}Response(BaseResponse):
"""Handler for {{ service_class }} requests and responses."""
@property
def {{ escaped_service }}_backend(self):
"""Return backend instance specific for this region."""
return {{ escaped_service }}_backends[self.region]
# add methods from here
# add templates from here