Skip to content

Resource: awsApiGatewayRequestValidator

Manages an API Gateway Request Validator.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.apiGatewayRequestValidator.ApiGatewayRequestValidator(this, "example", {
  name: "example",
  restApiId: "${aws_api_gateway_rest_api.example.id}",
  validateRequestBody: true,
  validateRequestParameters: true,
});

Argument Reference

The following argument is supported:

  • name - (Required) Name of the request validator
  • restApiId - (Required) ID of the associated Rest API
  • validateRequestBody - (Optional) Boolean whether to validate request body. Defaults to false.
  • validateRequestParameters - (Optional) Boolean whether to validate request parameters. Defaults to false.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Unique ID of the request validator

Import

awsApiGatewayRequestValidator can be imported using restApiId/requestValidatorId, e.g.,

$ terraform import aws_api_gateway_request_validator.example 12345abcde/67890fghij