-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi-methods.tf
42 lines (36 loc) · 1.28 KB
/
api-methods.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
resource "aws_api_gateway_method" "item_put_method" {
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
resource_id = aws_api_gateway_resource.item_resource.id
http_method = "PUT"
authorization = "NONE"
api_key_required = true
request_parameters = {
"method.request.header.Accept" = false
"method.request.header.Content-Type" = false
"method.request.header.x-amz-meta-fileinfo" = false
"method.request.path.bucket" = true
"method.request.path.folder" = true
"method.request.path.item" = true
}
}
resource "aws_api_gateway_method" "item_options_method" {
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
resource_id = aws_api_gateway_resource.item_resource.id
http_method = "OPTIONS"
authorization = "NONE"
request_parameters = {
"method.request.header.x-amz-meta-fileinfo" = false
}
}
resource "aws_api_gateway_method" "item_get_method" {
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
resource_id = aws_api_gateway_resource.item_resource.id
http_method = "GET"
authorization = "NONE"
api_key_required = true
request_parameters = {
"method.request.path.bucket" = true
"method.request.path.folder" = true
"method.request.path.item" = true
}
}