Use CodePipeline variable as State Machine input

0

Hi, I need to use CDK to put below variable as state machine input. However, CDK doesn't allow me, since StateMachineInput.literal() only accepts a json object. What should I do?

#{OutputVariableFromPreviousStage.OutputVariableKeyFromPreviousStage}