title: Amazon::SQS::Simple MessageGroupId on a FIFO Queue
body: <p>I need help on how to pass the MessageGroupId as parameter using the CPAN Module </p>
  
  <p><a href="https://metacpan.org/pod/Amazon::SQS::Simple" rel="nofollow noreferrer">Amazon::SQS::Simple</a></p>
  
  <p>I tried the following :</p>
  
  <pre><code>my $messageGroupId = 1;
  my $q = $sqs-&gt;GetQueue('http://queue.amazonaws.com/' . $queue_name);
  $q-&gt;{MessageGroupId} = $messageGroupId;
  $q-&gt;SendMessage($message);
  </code></pre>
  
  <p>I also tried putting the MessageGroupId in the $message variable : </p>
  
  <pre><code>my $messageGroupId = 1;
  my $q = $sqs-&gt;GetQueue('http://queue.amazonaws.com/' . $queue_name);
  $q-&gt;{MessageGroupId} = $messageGroupId;
  $q-&gt;SendMessage({ MessageGroupId =&gt; 1 });
  </code></pre>
  
  <p>But SQS always gives this error : </p>
  
  <pre><code>ERROR [try ]: On calling SendMessage: 400 Bad Request (The request must contain the parameter MessageGroupId.)
  </code></pre>