title: How to integrate API Gateway with SQS
body: <p>Just like in the title. I try to integrate API Gateway method with a SQS using cloud formation. What I am missing is the correct URI for the SQS. If any of you already did that, what should the URI look like?</p>
  
  <p>I came up with something like that, but have no idea where to put the SQS ARN</p>
  
  <pre><code>"arn:aws:apigateway:${AWS::Region}:sqs:action/SendMessage"
  </code></pre>
  
  <p>Here is the full configuration for the method:</p>
  
  <pre><code>PostMethod:
      Type: "AWS::ApiGateway::Method"
      Properties:
        ApiKeyRequired: "true"
        HttpMethod: "POST"
        ResourceId: !Ref "SomeResource"
        RestApiId: !Ref "SomeRestApi"
        Integration:
          IntegrationHttpMethod: "POST"
          IntegrationResponses:
          - StatusCode: 200
          Type: "AWS"
          Uri: "arn:aws:apigateway:${AWS::Region}:sqs:action/SendMessage"
  </code></pre>
  
  <p>And here is an example of URI if you integrate with a lambda function:</p>
  
  <pre><code>arn:aws:apigateway:us-west-2:lambda:path//2015-03-31/functions/arn:aws:lambda:us-west-2:123412341234:function:function_name/invocations
  -
  </code></pre>