moto/scripts/template/lib/models.py.j2
2022-06-04 11:30:16 +00:00

17 lines
482 B
Django/Jinja

"""{{ service_class }}Backend class with methods for supported APIs."""
from moto.core import BaseBackend, BaseModel
from moto.core.utils import BackendDict
class {{ service_class }}Backend(BaseBackend):
"""Implementation of {{ service_class }} APIs."""
def __init__(self, region_name, account_id):
super().__init__(region_name, account_id)
# add methods from here
{{ escaped_service }}_backends = BackendDict({{ service_class }}Backend, "{{ service }}")