Skip to content

Commit

Permalink
Removed some extra 400 error resources
Browse files Browse the repository at this point in the history
  • Loading branch information
robg-nhs authored Jan 31, 2025
1 parent a600f3b commit 3bd6c0e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions infrastructure/nrl-sandbox-get-doc-ref.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,6 @@ resource "aws_api_gateway_integration_response" "get_document_reference_mock_200
}
}

resource "aws_api_gateway_method_response" "response_400" {
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
resource_id = aws_api_gateway_resource.sandbox_get_document_reference_path_parameter.id
http_method = aws_api_gateway_method.sandbox_get_document_reference.http_method
status_code = "400"
}

resource "aws_api_gateway_integration_response" "get_document_reference_mock_400_response" {
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
resource_id = aws_api_gateway_resource.sandbox_get_document_reference_path_parameter.id
http_method = aws_api_gateway_method.sandbox_get_document_reference.http_method
status_code = aws_api_gateway_method_response.response_400.status_code
selection_pattern = "400"
response_templates = {
"application/json" = local.mock_400_response
}
}

resource "aws_api_gateway_method_response" "response_401" {
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
resource_id = aws_api_gateway_resource.sandbox_get_document_reference_path_parameter.id
Expand Down

0 comments on commit 3bd6c0e

Please sign in to comment.