Configures API Gateway method settings to log errors only for a specific method.

Terraform Template

resource "aws_api_gateway_method_settings" "path_specific" {
  method_path = "path1/GET"
  rest_api_id = "aws_api_gateway_rest_api.example.id"

  settings {
    data_trace_enabled = false
    logging_level = "ERROR"
    metrics_enabled = true
  }
  stage_name = "aws_api_gateway_stage.example.stage_name"
}