title: SAM Template for AWS Api Gateway Integration with S3 as AWS Service
body: <p>I am writing SAM templates and I want to create an API Gateway with the path as follows:-</p>
  
  <p>http:///userFlights/airlines/static/images/{airlineName}.</p>
  
  <p>This should be able to download the file from S3 bucket. The {airlineName} may have value like <strong>IndiGo.jpg</strong>. </p>
  
  <p>I am able to create this manually. Nevertheless, the problem is I am not able to find the appropriate Documentation for SAM templates. I need to automate my API Gateway with SAM. </p>
  
  <p>The values are as follows:-
  <strong>Integration type - AWS Service</strong></p>
  
  <p><strong>AWS Region- eu-west-3</strong></p>
  
  <p><strong>AWS Service - Simple Storage Service (S3</strong></p>
  
  <p><strong>Http Method - GET</strong></p>
  
  <p><strong>Path override- airlines/static/images/{airlineName}</strong></p>