title: How to specify JSON-formatted string in Cloudformation?
body: <p>I have the following resource on my CloudFormation template to create a rule to run a Lambda function, from the AWS documentation:</p>
  
  <pre><code>  "ScheduledRule": {
      "Type": "AWS::Events::Rule",
      "Properties": {
      "Description": "ScheduledRule",
      "ScheduleExpression": "rate(5 minutes)",
      "State": "ENABLED",
      "Targets": [{
        "Arn": { "Fn::GetAtt": ["myLambda", "Arn"] },
        "Id": "TargetFunctionV1"
      }]
      }
    }
  </code></pre>
  
  <p>I would like to specify the Input:</p>
  
  <pre><code>{
    "Arn" : String,
    "Id" : String,
    "Input" : String,
    "InputPath" : String
  }
  </code></pre>
  
  <p>and Input is a JSON-formatted text string that is passed to the target. This value overrides the matched event.</p>
  
  <p>I would like my JSON formatted text to be:</p>
  
  <pre><code>{
    "mykey1": "Some Value"
  }
  </code></pre>
  
  <p>I do not know how to specify it in the Input, when I put:</p>
  
  <pre><code>  "ScheduledRule": {
      "Type": "AWS::Events::Rule",
      "Properties": {
      "Description": "ScheduledRule",
      "ScheduleExpression": "rate(5 minutes)",
      "State": "ENABLED",
      "Targets": [{
        "Arn": { "Fn::GetAtt": ["myLambda", "Arn"] },
        "Id": "TargetFunctionV1",
        "Input": { "mykey1": "Some Value" }
      }]
      }
    }
  </code></pre>
  
  <p>I will get error:</p>
  
  <pre><code>Value of property Input must be of type String
  </code></pre>
  
  <p>How should I specify it correctly?</p>