-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implementation of memorydb api (#8108)
- Loading branch information
1 parent
c636d01
commit b195554
Showing
12 changed files
with
1,750 additions
and
130 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.. _implementedservice_memorydb: | ||
|
||
.. |start-h3| raw:: html | ||
|
||
<h3> | ||
|
||
.. |end-h3| raw:: html | ||
|
||
</h3> | ||
|
||
======== | ||
memorydb | ||
======== | ||
|
||
.. autoclass:: moto.memorydb.models.MemoryDBBackend | ||
|
||
|start-h3| Implemented features for this service |end-h3| | ||
|
||
- [ ] batch_update_cluster | ||
- [ ] copy_snapshot | ||
- [ ] create_acl | ||
- [X] create_cluster | ||
- [ ] create_parameter_group | ||
- [X] create_snapshot | ||
- [X] create_subnet_group | ||
- [ ] create_user | ||
- [ ] delete_acl | ||
- [X] delete_cluster | ||
- [ ] delete_parameter_group | ||
- [X] delete_snapshot | ||
- [X] delete_subnet_group | ||
- [ ] delete_user | ||
- [ ] describe_acls | ||
- [X] describe_clusters | ||
- [ ] describe_engine_versions | ||
- [ ] describe_events | ||
- [ ] describe_parameter_groups | ||
- [ ] describe_parameters | ||
- [ ] describe_reserved_nodes | ||
- [ ] describe_reserved_nodes_offerings | ||
- [ ] describe_service_updates | ||
- [X] describe_snapshots | ||
- [X] describe_subnet_groups | ||
- [ ] describe_users | ||
- [ ] failover_shard | ||
- [ ] list_allowed_node_type_updates | ||
- [X] list_tags | ||
- [ ] purchase_reserved_nodes_offering | ||
- [ ] reset_parameter_group | ||
- [X] tag_resource | ||
- [X] untag_resource | ||
- [ ] update_acl | ||
- [X] update_cluster | ||
- [ ] update_parameter_group | ||
- [ ] update_subnet_group | ||
- [ ] update_user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .models import memorydb_backends # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
"""Exceptions raised by the memorydb service.""" | ||
|
||
from typing import List | ||
|
||
from moto.core.exceptions import JsonRESTError | ||
|
||
|
||
class MemoryDBClientError(JsonRESTError): | ||
code = 400 | ||
|
||
|
||
class ClusterAlreadyExistsFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("ClusterAlreadyExistsFault", msg) | ||
|
||
|
||
class InvalidSubnetError(MemoryDBClientError): | ||
def __init__(self, subnet_identifier: List[str]): | ||
super().__init__("InvalidSubnetError", f"Subnet {subnet_identifier} not found.") | ||
|
||
|
||
class SubnetGroupAlreadyExistsFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("SubnetGroupAlreadyExistsFault", msg) | ||
|
||
|
||
class ClusterNotFoundFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("ClusterNotFoundFault", msg) | ||
|
||
|
||
class SnapshotAlreadyExistsFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("SnapshotAlreadyExistsFault", msg) | ||
|
||
|
||
class SnapshotNotFoundFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("SnapshotNotFoundFault", msg) | ||
|
||
|
||
class SubnetGroupNotFoundFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("SubnetGroupNotFoundFault", msg) | ||
|
||
|
||
class TagNotFoundFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("TagNotFoundFault", msg) | ||
|
||
|
||
class InvalidParameterValueException(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("InvalidParameterValueException", msg) | ||
|
||
|
||
class SubnetGroupInUseFault(MemoryDBClientError): | ||
def __init__(self, msg: str): | ||
super().__init__("SubnetGroupInUseFault", msg) |
Oops, something went wrong.