Skip to content

Commit 32c20c0

Browse files
committed
fix(kms): update key specification validation error message to include all valid key specs
1 parent 698bf93 commit 32c20c0

File tree

1 file changed

+2
-1
lines changed
  • localstack-core/localstack/services/kms

1 file changed

+2
-1
lines changed

localstack-core/localstack/services/kms/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ def assert_valid(key_spec: str):
197197
raise ValidationException(
198198
f"1 validation error detected: Value '{key_spec}' at 'keySpec' "
199199
f"failed to satisfy constraint: Member must satisfy enum value set: "
200-
f"{valid_specs}"
200+
f"[RSA_2048, ECC_NIST_P384, ECC_NIST_P256, ECC_NIST_P521, HMAC_384, RSA_3072, "
201+
f"ECC_SECG_P256K1, RSA_4096, SYMMETRIC_DEFAULT, HMAC_256, HMAC_224, HMAC_512]"
201202
)
202203

203204
def __init__(self, key_spec: str, key_material: Optional[bytes] = None):

0 commit comments

Comments
 (0)