':type action_name: str
:param action_name: The name of the action to inject, e.g.
\'delete_tags\'
:type action_model: dict
:param action_model: A JSON definition of the action, as if it were
part of the resource model.
:type function: function
:param function: The function to perform when the action is called.
The first argument should be \'self\', which will be the resource
the function is to be called on.
:type event_emitter: :py:class:`botocore.hooks.BaseEventHooks`
:param event_emitter: The session event emitter.'

def __init__(self, action_name, action_model, function, event_emitter):

    self.name = action_name
    self.model = action_model
    self.function = function
    self.emitter = event_emitter
