0
0
llucycodes42
The code defines a resource called MyDemoResource and sets the id to be theRest_API_Gateway_Rest_API.id value. It also specifies the http_method, which is set to be MyDemoMethod.http_method. Finally, the status_code is set to be 200.
Shortcut: tf_aws_api_gateway_method_response
resource "aws_api_gateway_method_response" "${200}" {
rest_api_id = "\${aws_api_gateway_rest_api.MyDemoAPI.id}"
resource_id = "\${aws_api_gateway_resource.MyDemoResource.id}"
http_method = "\${aws_api_gateway_method.MyDemoMethod.http_method}"
status_code = "\${200}"
}