Class RequestValidator
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
public class RequestValidator : Resource, IRequestValidator, IResource, IConstruct, IConstruct, IDependable
- Inheritance
-
RequestValidator
- Implements
-
IResourceIConstructIConstructIDependable
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.APIGateway;
RestApi restApi;
var requestValidator = new RequestValidator(this, "MyRequestValidator", new RequestValidatorProps {
RestApi = restApi,
// the properties below are optional
RequestValidatorName = "requestValidatorName",
ValidateRequestBody = false,
ValidateRequestParameters = false
});
Remarks
ExampleMetadata: fixture=_generated
Constructors
RequestValidator(Construct, string, IRequestValidatorProps)
public RequestValidator(Construct scope, string id, IRequestValidatorProps props)
Parameters
scope
Constructid
stringprops
IRequestValidatorProps
Properties
RequestValidatorId
ID of the request validator, such as abc123.
public virtual string RequestValidatorId { get; }
Property Value
Remarks
Attribute: true
Methods
FromRequestValidatorId(Construct, string, string)
public static IRequestValidator FromRequestValidatorId(Construct scope, string id, string requestValidatorId)