Module aws_lambda_powertools.utilities.idempotency.hook
Expand source code
from typing import Any
from aws_lambda_powertools.shared.types import Protocol
from aws_lambda_powertools.utilities.idempotency.persistence.datarecord import DataRecord
class IdempotentHookFunction(Protocol):
"""
The IdempotentHookFunction.
This class defines the calling signature for IdempotentHookFunction callbacks.
"""
def __call__(self, response: Any, idempotent_data: DataRecord) -> Any: ...
Classes
class IdempotentHookFunction (*args, **kwargs)
-
The IdempotentHookFunction. This class defines the calling signature for IdempotentHookFunction callbacks.
Expand source code
class IdempotentHookFunction(Protocol): """ The IdempotentHookFunction. This class defines the calling signature for IdempotentHookFunction callbacks. """ def __call__(self, response: Any, idempotent_data: DataRecord) -> Any: ...
Ancestors
- typing.Protocol
- typing.Generic