-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-method-responses.tf
More file actions
52 lines (41 loc) · 1.58 KB
/
api-method-responses.tf
File metadata and controls
52 lines (41 loc) · 1.58 KB
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
43
44
45
46
47
48
49
50
51
52
resource "aws_api_gateway_method_response" "item_put_method_200_response" {
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
resource_id = aws_api_gateway_resource.item_resource.id
http_method = aws_api_gateway_method.item_put_method.http_method
status_code = "200"
response_models = {
"application/json" = "Empty"
}
response_parameters = {
"method.response.header.Access-Control-Allow-Origin" = true
}
depends_on = [aws_api_gateway_method.item_put_method]
}
resource "aws_api_gateway_method_response" "item_options_method_200_response" {
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
resource_id = aws_api_gateway_resource.item_resource.id
http_method = aws_api_gateway_method.item_options_method.http_method
status_code = "200"
response_models = {
"application/json" = "Empty"
}
response_parameters = {
"method.response.header.Access-Control-Allow-Headers" = true
"method.response.header.Access-Control-Allow-Methods" = true
"method.response.header.Access-Control-Allow-Origin" = true
}
depends_on = [aws_api_gateway_method.item_options_method]
}
resource "aws_api_gateway_method_response" "item_get_method_200_response" {
rest_api_id = aws_api_gateway_rest_api.api_gateway.id
resource_id = aws_api_gateway_resource.item_resource.id
http_method = aws_api_gateway_method.item_get_method.http_method
status_code = "200"
response_models = {
"application/json" = "Empty"
}
response_parameters = {
"method.response.header.Access-Control-Allow-Origin" = true
}
depends_on = [aws_api_gateway_method.item_get_method]
}