def __init__()

in smdebug_rulesconfig/actions/actions.py [0:0]


    def __init__(self, **action_parameters: str):
        """
        Base class for action, which is to be invoked when a rule fires.. Offers `serialize` function to convert action
        parameters to a string dictionary. This class is not meant to be initialized directly. Accepts dictionary of
        action parameters and drops keys whose values are `None`.

        :param action_parameters: Dictionary of action parameters.
        """
        action_parameters["name"] = self.__class__.__name__.lower()
        self.action_parameters = {
            key: value for key, value in action_parameters.items() if value is not None
        }
        validate_action_str(
            self.serialize(), self.action_parameters
        )  # sanity check, not expected to error!