Module aws_lambda_powertools.utilities.idempotency.serialization.no_op

Classes

class NoOpSerializer

Abstract Base Class for Idempotency serialization layer, supporting dict operations.

Parameters

Default serializer, does not transform data

Expand source code
class NoOpSerializer(BaseIdempotencySerializer):
    def __init__(self):
        """
        Parameters
        ----------
        Default serializer, does not transform data
        """

    def to_dict(self, data: Dict) -> Dict:
        return data

    def from_dict(self, data: Dict) -> Dict:
        return data

Ancestors

Methods

def from_dict(self, data: Dict) ‑> Dict
def to_dict(self, data: Dict) ‑> Dict