File tree 2 files changed +5
-5
lines changed
aws_lambda_powertools/utilities/idempotency
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def __init__(
30
30
self ,
31
31
function : Callable ,
32
32
function_payload : Any ,
33
- idempotency_config : IdempotencyConfig ,
33
+ config : IdempotencyConfig ,
34
34
persistence_store : BasePersistenceLayer ,
35
35
function_args : Optional [Tuple ] = None ,
36
36
function_kwargs : Optional [Dict ] = None ,
@@ -42,7 +42,7 @@ def __init__(
42
42
----------
43
43
function_payload: Any
44
44
JSON Serializable payload to be hashed
45
- idempotency_config : IdempotencyConfig
45
+ config : IdempotencyConfig
46
46
Idempotency Configuration
47
47
persistence_store : BasePersistenceLayer
48
48
Instance of persistence layer to store idempotency records
@@ -56,7 +56,7 @@ def __init__(
56
56
self .fn_args = function_args
57
57
self .fn_kwargs = function_kwargs
58
58
59
- persistence_store .configure (idempotency_config )
59
+ persistence_store .configure (config )
60
60
self .persistence_store = persistence_store
61
61
62
62
def handle (self ) -> Any :
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def idempotent(
61
61
idempotency_handler = IdempotencyHandler (
62
62
function = handler ,
63
63
function_payload = event ,
64
- idempotency_config = config ,
64
+ config = config ,
65
65
persistence_store = persistence_store ,
66
66
function_args = args ,
67
67
function_kwargs = kwargs ,
@@ -133,7 +133,7 @@ def decorate(*args, **kwargs):
133
133
idempotency_handler = IdempotencyHandler (
134
134
function = function ,
135
135
function_payload = payload ,
136
- idempotency_config = config ,
136
+ config = config ,
137
137
persistence_store = persistence_store ,
138
138
function_args = args ,
139
139
function_kwargs = kwargs ,
You can’t perform that action at this time.
0 commit comments