def __init__(self, prefix, data_obj=None):
data_str = "<STR_LIT>"<EOL>if data_obj:<EOL><INDENT>data_str = self._stringify(data_obj)<EOL><DEDENT>self._prefix = prefix<EOL>self.data_str = data_str<EOL>
Generate logical IDs for resources that are stable, deterministic and platform independent

:param prefix: Prefix for the logicalId
:param data_obj: Data object to trigger new changes on. If set to None, this is ignored