Show / Hide Table of Contents

Interface IRequestValidatorProps

Inherited Members
IRequestValidatorOptions.RequestValidatorName
IRequestValidatorOptions.ValidateRequestBody
IRequestValidatorOptions.ValidateRequestParameters
Namespace: Amazon.CDK.AWS.APIGateway
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IRequestValidatorProps : IRequestValidatorOptions
Syntax (vb)
Public Interface IRequestValidatorProps
    Inherits IRequestValidatorOptions
Remarks

ExampleMetadata: fixture=_generated

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 requestValidatorProps = new RequestValidatorProps {
    RestApi = restApi,

    // the properties below are optional
    RequestValidatorName = "requestValidatorName",
    ValidateRequestBody = false,
    ValidateRequestParameters = false
};

Synopsis

Properties

RestApi

The rest API that this model is part of.

Properties

RestApi

The rest API that this model is part of.

IRestApi RestApi { get; }
Property Value

IRestApi

Remarks

The reason we need the RestApi object itself and not just the ID is because the model is being tracked by the top-level RestApi object for the purpose of calculating it's hash to determine the ID of the deployment. This allows us to automatically update the deployment when the model of the REST API changes.

Back to top Generated by DocFX