Skip to content

Commit 62bf212

Browse files
authored
Payment-Cryptography: New Service Methods (#10129)
1 parent 7ffce30 commit 62bf212

11 files changed

Lines changed: 1574 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.. _implementedservice_payment-cryptography:
2+
3+
.. |start-h3| raw:: html
4+
5+
<h3>
6+
7+
.. |end-h3| raw:: html
8+
9+
</h3>
10+
11+
====================
12+
payment-cryptography
13+
====================
14+
15+
.. autoclass:: moto.paymentcryptography.models.PaymentCryptographyControlPlaneBackend
16+
17+
|start-h3| Implemented features for this service |end-h3|
18+
19+
- [X] add_key_replication_regions
20+
- [ ] associate_mpa_team
21+
- [X] create_alias
22+
- [X] create_key
23+
- [X] delete_alias
24+
- [X] delete_key
25+
- [X] delete_resource_policy
26+
- [X] disable_default_key_replication_regions
27+
- [ ] disassociate_mpa_team
28+
- [X] enable_default_key_replication_regions
29+
- [ ] export_key
30+
- [X] get_alias
31+
- [ ] get_certificate_signing_request
32+
- [X] get_default_key_replication_regions
33+
- [X] get_key
34+
- [ ] get_mpa_team_association
35+
- [ ] get_parameters_for_export
36+
- [ ] get_parameters_for_import
37+
- [ ] get_public_key_certificate
38+
- [X] get_resource_policy
39+
- [ ] import_key
40+
- [X] list_aliases
41+
- [X] list_keys
42+
- [X] list_tags_for_resource
43+
- [X] put_resource_policy
44+
- [X] remove_key_replication_regions
45+
- [ ] restore_key
46+
- [X] start_key_usage
47+
- [X] stop_key_usage
48+
- [X] tag_resource
49+
- [X] untag_resource
50+
- [X] update_alias
51+

‎moto/backend_index.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@
168168
("opensearchserverless", re.compile("https?://aoss\\.(.+)\\.amazonaws\\.com")),
169169
("organizations", re.compile("https?://organizations\\.(.+)\\.amazonaws\\.com")),
170170
("osis", re.compile("https?://osis\\.(.+)\\.amazonaws\\.com")),
171+
(
172+
"paymentcryptography",
173+
re.compile(
174+
"https?://controlplane\\.payment-cryptography\\.(.+)\\.amazonaws\\.com"
175+
),
176+
),
171177
("personalize", re.compile("https?://personalize\\.(.+)\\.amazonaws\\.com")),
172178
("pinpoint", re.compile("https?://pinpoint\\.(.+)\\.amazonaws\\.com")),
173179
("pipes", re.compile("https?://pipes\\.(.+)\\.amazonaws\\.com")),

‎moto/moto_server/werkzeug_app.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"execute-api": "iot",
5050
"iotdata": "data.iot",
5151
"mobiletargeting": "pinpoint",
52+
"payment-cryptography": "controlplane.payment-cryptography",
5253
}
5354

5455
# Some services are only recognizable by the version
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .models import paymentcryptography_backends # noqa: F401
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""Exceptions raised by the paymentcryptography service."""
2+
3+
from moto.core.exceptions import JsonRESTError
4+
5+
6+
class ResourceNotFoundException(JsonRESTError):
7+
code = 404
8+
9+
def __init__(self, msg: str):
10+
super().__init__("ResourceNotFoundException", f"{msg}")
11+
12+
13+
class ConflictException(JsonRESTError):
14+
code = 409
15+
16+
def __init__(self, msg: str):
17+
super().__init__("ConflictException", f"{msg}")

0 commit comments

Comments
 (0)