moto/scripts/template/lib/models.py.j2
2024-02-01 20:08:30 -01:00

17 lines
503 B
Django/Jinja

"""{{ service_class }}Backend class with methods for supported APIs."""
from moto.core.base_backend import BaseBackend, BackendDict
from moto.core.common_models import BaseModel
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 }}")