@@ -61,20 +61,20 @@ def idempotent(
61
61
key_prefix: str | Optional
62
62
Custom prefix for idempotency key: key_prefix#hash
63
63
64
- Examples
64
+ Example
65
65
--------
66
66
**Processes Lambda's event in an idempotent manner**
67
67
68
- >>> from aws_lambda_powertools.utilities.idempotency import (
69
- >>> idempotent, DynamoDBPersistenceLayer, IdempotencyConfig
70
- >>> )
71
- >>>
72
- >>> idem_config=IdempotencyConfig(event_key_jmespath="body")
73
- >>> persistence_layer = DynamoDBPersistenceLayer(table_name="idempotency_store")
74
- >>>
75
- >>> @idempotent(config=idem_config, persistence_store=persistence_layer)
76
- >>> def handler(event, context):
77
- >>> return {"StatusCode": 200}
68
+ from aws_lambda_powertools.utilities.idempotency import (
69
+ idempotent, DynamoDBPersistenceLayer, IdempotencyConfig
70
+ )
71
+
72
+ idem_config=IdempotencyConfig(event_key_jmespath="body")
73
+ persistence_layer = DynamoDBPersistenceLayer(table_name="idempotency_store")
74
+
75
+ @idempotent(config=idem_config, persistence_store=persistence_layer)
76
+ def handler(event, context):
77
+ return {"StatusCode": 200}
78
78
"""
79
79
80
80
# Skip idempotency controls when POWERTOOLS_IDEMPOTENCY_DISABLED has a truthy value
@@ -136,7 +136,7 @@ def idempotent_function(
136
136
key_prefix: str | Optional
137
137
Custom prefix for idempotency key: key_prefix#hash
138
138
139
- Examples
139
+ Example
140
140
--------
141
141
**Processes an order in an idempotent manner**
142
142
0 commit comments