in smdebug_rulesconfig/actions/actions.py [0:0]
def serialize(self):
"""
Serialize the action parameters as a string dictionary.
:return: Action parameters serialized as a string dictionary.
"""
return (
"{"
+ ", ".join(
[f'\\"{key}\\": \\"{value}\\"' for key, value in self.action_parameters.items()]
)
+ "}"
)