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*.
4 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
RestApiId | string | RequiredCreate-only |
Name | string | Create-only |
ValidateRequestBody | boolean | |
ValidateRequestParameters | boolean |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
RequestValidatorId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::RequestValidator
Resources:
MyResource:
Type: AWS::ApiGateway::RequestValidator
Properties:
RestApiId: "my-restapiid"
Name: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:GETapigateway:PATCHapigateway:GETapigateway:DELETEapigateway:GETapigateway:GETEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicRestApiIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
NameRestApiId