title: How so send arguments to SSM using the JS SDK?
body: <p>So I am triggering a command remotely on an EC2 instance from a lambda function using SSM in Node Typescript.</p>
  <p>However, it is not working because I cannot pass an argument to the SSM Document in the invocation.</p>
  <p>This is what I am trying to do:</p>
  <pre class="lang-js prettyprint-override"><code>const SSM = new SSMClient({ region: &quot;us-east-1&quot; });
  const targetCD = target + &quot; prod&quot;;
  const sendCCParams = {
    DocumentName: 'deepblue_userflow_initiator',
    InstanceIds: ['i-0xxxxxxxxxxxxe'],
    Message: targetCD
  }
  const sendCC = new SendCommandCommand(sendCCParams);
  const sendCCResponse = await SSM.send(sendCC); 
  </code></pre>
  <p>but the <code>Message</code> is not an argument from <code>SendCommandCommandInput</code>.</p>
  <p>However parameters is <code>Parameters?: Record&lt;string, string[]&gt;;</code></p>
  <p>And my document specifies it as:</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;schemaVersion&quot;: &quot;2.2&quot;,
    &quot;description&quot;: &quot;Initiates the deepblue-userflow controller with audit parameters&quot;,
    &quot;parameters&quot;: {
      &quot;Message&quot;: {
        &quot;type&quot;: &quot;String&quot;,
        &quot;description&quot;: &quot;Example&quot;,
        &quot;default&quot;: &quot;https://deep-blue.io prod&quot;
      }
    },
    &quot;mainSteps&quot;: [
      {
        &quot;action&quot;: &quot;aws:runShellScript&quot;,
        &quot;name&quot;: &quot;example&quot;,
        &quot;inputs&quot;: {
          &quot;runCommand&quot;: [
            &quot;cd / &amp;&amp; cd home/ec2-user &amp;&amp; . .nvm/nvm.sh &amp;&amp; cd ufo &amp;&amp; node conductor {{Message}}&quot;
          ]
        }
      }
    ]
  }
  </code></pre>
  <p>Any time I try to pass parameters I get a <code>{&quot;message&quot;: &quot;Internal server error&quot;}</code> response</p>
  <p>and I can call it on the GUI
  <a href="https://i.stack.imgur.com/BUir5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BUir5.png" alt="enter image description here" /></a></p>
  <p>How can I pass the parameter like in the GUI using the AWS JS SSM SDK?</p>