Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e8df792
feat(paymentcrypto): init
algobarb Jul 10, 2026
2b87700
feat(paymentcrypto): fix backend url
algobarb Jul 12, 2026
45b1f97
feat(payment-crypto): add tests
algobarb Jul 13, 2026
05c63fd
feat(payment-crypto): add key class to model
algobarb Jul 13, 2026
46b50c7
feat(payment-crypto): scaffold add create_key, list_keys, list_tags_f…
algobarb Jul 14, 2026
7cb1a84
feat(payment-crypto): update create_key and test
algobarb Jul 14, 2026
7315db8
feat(payment-crypto): fix models and responses for create_key
algobarb Jul 14, 2026
da41e0a
feat(paymentcrypto): add create_key and get_key implementation and tests
algobarb Jul 20, 2026
f99cfd8
feat(paymentcrypto): update test
algobarb Jul 21, 2026
5bcf618
feat(paymentcrypto): fix get_key test and response
algobarb Jul 21, 2026
dcb806d
feat(paymentcrypto): single region list_key
algobarb Jul 21, 2026
431a874
feat(paymentcrypto): add list_tags_for_resource
algobarb Jul 21, 2026
914178a
feat(paymentcrypto): add tag and untag resource
algobarb Jul 21, 2026
8d631cb
feat(paymentcrypto): add delete_key
algobarb Jul 21, 2026
50f2f20
feat(paymentcrypto): add resource_policy actions
algobarb Jul 21, 2026
e4f7f01
feat(paymentcrypto): add replicaiton region
algobarb Jul 22, 2026
8c3cdac
feat(paymentcrypto): update the way replicas are created
algobarb Jul 22, 2026
759b808
feat(paymentcrypto): add enable_default_key_replication_regions
algobarb Jul 22, 2026
a855136
feat(paymentcrypto): add get_default_key_replication_regions
algobarb Jul 22, 2026
ea92617
feat(paymentcrypto): add disable_default_key_replicaiton_regions
algobarb Jul 22, 2026
253b6d4
feat(paymentcrypto): add alias commands
algobarb Jul 22, 2026
f3c955a
feat(paymnentcrypto): add start_key_usage and stop_key_usage
algobarb Jul 24, 2026
1ed97e3
feat(paymentcrypto): lint and format
algobarb Jul 24, 2026
1c0a559
feat(paymentcrypto): update docs
algobarb Jul 24, 2026
3cdb0c9
feat(paymentcrypto): add remove_key_replication_regions
algobarb Jul 24, 2026
cbdf75a
Merge branch 'master' into feature/paymentcrypto
algobarb Jul 24, 2026
2e3c6c3
feat(paymentcrypto): remove commented out tests
algobarb Jul 24, 2026
7e1f340
feat(paymentcrypto): fix remove statement add test_server.py
algobarb Jul 24, 2026
2117d88
feat(paymentcrypto): fix alias signing backend
algobarb Jul 24, 2026
216b8e4
feat(paymentcrypto): empty commit
algobarb Jul 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions docs/docs/services/payment-cryptography.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.. _implementedservice_payment-cryptography:

.. |start-h3| raw:: html

<h3>

.. |end-h3| raw:: html

</h3>

====================
payment-cryptography
====================

.. autoclass:: moto.paymentcryptography.models.PaymentCryptographyControlPlaneBackend

|start-h3| Implemented features for this service |end-h3|

- [X] add_key_replication_regions
- [ ] associate_mpa_team
- [X] create_alias
- [X] create_key
- [X] delete_alias
- [X] delete_key
- [X] delete_resource_policy
- [X] disable_default_key_replication_regions
- [ ] disassociate_mpa_team
- [X] enable_default_key_replication_regions
- [ ] export_key
- [X] get_alias
- [ ] get_certificate_signing_request
- [X] get_default_key_replication_regions
- [X] get_key
- [ ] get_mpa_team_association
- [ ] get_parameters_for_export
- [ ] get_parameters_for_import
- [ ] get_public_key_certificate
- [X] get_resource_policy
- [ ] import_key
- [X] list_aliases
- [X] list_keys
- [X] list_tags_for_resource
- [X] put_resource_policy
- [X] remove_key_replication_regions
- [ ] restore_key
- [X] start_key_usage
- [X] stop_key_usage
- [X] tag_resource
- [X] untag_resource
- [X] update_alias

6 changes: 6 additions & 0 deletions moto/backend_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
("opensearchserverless", re.compile("https?://aoss\\.(.+)\\.amazonaws\\.com")),
("organizations", re.compile("https?://organizations\\.(.+)\\.amazonaws\\.com")),
("osis", re.compile("https?://osis\\.(.+)\\.amazonaws\\.com")),
(
"paymentcryptography",
re.compile(
"https?://controlplane\\.payment-cryptography\\.(.+)\\.amazonaws\\.com"
),
),
("personalize", re.compile("https?://personalize\\.(.+)\\.amazonaws\\.com")),
("pinpoint", re.compile("https?://pinpoint\\.(.+)\\.amazonaws\\.com")),
("pipes", re.compile("https?://pipes\\.(.+)\\.amazonaws\\.com")),
Expand Down
1 change: 1 addition & 0 deletions moto/moto_server/werkzeug_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"execute-api": "iot",
"iotdata": "data.iot",
"mobiletargeting": "pinpoint",
"payment-cryptography": "controlplane.payment-cryptography",
}

# Some services are only recognizable by the version
Expand Down
1 change: 1 addition & 0 deletions moto/paymentcryptography/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .models import paymentcryptography_backends # noqa: F401
17 changes: 17 additions & 0 deletions moto/paymentcryptography/exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""Exceptions raised by the paymentcryptography service."""

from moto.core.exceptions import JsonRESTError


class ResourceNotFoundException(JsonRESTError):
code = 404

def __init__(self, msg: str):
super().__init__("ResourceNotFoundException", f"{msg}")


class ConflictException(JsonRESTError):
code = 409

def __init__(self, msg: str):
super().__init__("ConflictException", f"{msg}")
Loading
Loading