{% for method in resources -%}
# This defines the HTTP verb (GET, POST, etc.) for a specific API path.
resource "aws_api_gateway_method" "method_{{ method.rest_api_id }}_{{ method.resource_id }}_{{ method.http_method | lower }}" {
  rest_api_id   = "{{ method.rest_api_id }}"
  resource_id   = "{{ method.resource_id }}"
  http_method   = "{{ method.http_method }}"
  authorization = "{{ method.authorizationType }}"
}
{% endfor %}
