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 validatorrestApiId
- (Required) ID of the associated Rest APIvalidateRequestBody
- (Optional) Boolean whether to validate request body. Defaults tofalse
.validateRequestParameters
- (Optional) Boolean whether to validate request parameters. Defaults tofalse
.
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.,