AWS::ApiGateway::RequestValidatorThe `AWS::ApiGateway::RequestValidator` resource sets up basic validation rules for incoming requests to your API. For more information, see [Enable Basic Request Validation for an API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-request-validation.html) in the *API Gateway Developer Guide* .
import { CfnRequestValidator } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnRequestValidatorConfiguration passed to the constructor as CfnRequestValidatorProps.
restApiIdRequiredstring | IRestApiRefThe string identifier of the associated RestApi.
nameOptionalstringThe name of this RequestValidator.
validateRequestBodyOptionalboolean | IResolvableA Boolean flag to indicate whether to validate a request body according to the configured Model schema.
validateRequestParametersOptionalboolean | IResolvableA Boolean flag to indicate whether to validate request parameters ( `true` ) or not ( `false` ).
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigatewayAWS::ApiGateway::RequestValidator