2021-08-24 15:49:45 +00:00
|
|
|
"""{{ service_class }}Backend class with methods for supported APIs."""
|
|
|
|
|
2017-09-19 18:14:14 +00:00
|
|
|
from moto.core import BaseBackend, BaseModel
|
2021-12-24 21:02:45 +00:00
|
|
|
from moto.core.utils import BackendDict
|
2017-09-19 18:14:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
class {{ service_class }}Backend(BaseBackend):
|
2021-08-24 15:49:45 +00:00
|
|
|
"""Implementation of {{ service_class }} APIs."""
|
|
|
|
|
2017-09-19 18:14:14 +00:00
|
|
|
def __init__(self, region_name=None):
|
|
|
|
self.region_name = region_name
|
|
|
|
|
|
|
|
def reset(self):
|
2021-08-24 15:49:45 +00:00
|
|
|
"""Re-initialize all attributes for this instance."""
|
2017-09-19 18:14:14 +00:00
|
|
|
region_name = self.region_name
|
|
|
|
self.__dict__ = {}
|
|
|
|
self.__init__(region_name)
|
|
|
|
|
|
|
|
# add methods from here
|
|
|
|
|
|
|
|
|
2021-12-24 21:02:45 +00:00
|
|
|
{{ escaped_service }}_backends = BackendDict({{ service_class }}Backend, "{{ service }}")
|