title: AWS CloudFormation for State machine definition: null is not allowed
body: <p>The AWS CloudFormation <a href="https://aws.amazon.com/about-aws/whats-new/2021/03/aws-step-functions-adds-tooling-support-for-yaml/" rel="nofollow noreferrer">supports YAML for state machine defintion</a>, but my CloudFormation cannot deployed if it contains <code>null</code> values in YAML documents.</p>
  <p>On the other hand, the <code>ResultPath</code> must be <code>null</code> <a href="https://aws.amazon.com/about-aws/whats-new/2021/03/aws-step-functions-adds-tooling-support-for-yaml/" rel="nofollow noreferrer">to discard the result and keep the original input for any state</a>.</p>
  <p>Is there any way that I can use YAML for AWS CloudFormation while using <code>null</code> values in the YAML document?</p>
  <p>p.s. I found <a href="https://stackoverflow.com/q/66050056/1479078">a similar question</a> but this is about <a href="https://aws.amazon.com/cdk/" rel="nofollow noreferrer">CDK</a> not <a href="https://aws.amazon.com/cloudformation/" rel="nofollow noreferrer">CloudFormation</a>.</p>