We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1031f6e commit 6049d66Copy full SHA for 6049d66
src/aws_encryption_sdk/materials_managers/caching.py
@@ -108,6 +108,9 @@ def __attrs_post_init__(self):
108
if self.max_bytes_encrypted > MAX_BYTES_PER_KEY:
109
raise ValueError("max_bytes_encrypted cannot exceed {}".format(MAX_BYTES_PER_KEY))
110
111
+ if self.max_age <= 0:
112
+ raise ValueError("max_age cannot be less than or equal to 0")
113
+
114
if self.backing_materials_manager is None:
115
if self.master_key_provider is None:
116
raise TypeError("Either backing_materials_manager or master_key_provider must be defined")
0 commit comments