Resource: aws_api_gateway_request_validator

Manages an API Gateway Request Validator.

Example Usage

resource "aws_api_gateway_request_validator" "example" {
  name                        = "example"
  rest_api_id                 = aws_api_gateway_rest_api.example.id
  validate_request_body       = true
  validate_request_parameters = true
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_api_gateway_request_validator using REST-API-ID/REQUEST-VALIDATOR-ID. For example:

import {
  to = aws_api_gateway_request_validator.example
  id = "12345abcde/67890fghij"
}

Using terraform import, import aws_api_gateway_request_validator using REST-API-ID/REQUEST-VALIDATOR-ID. For example:

% terraform import aws_api_gateway_request_validator.example 12345abcde/67890fghij