Table of Contents

Interface ICfnRequestValidatorProps

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Properties for defining a CfnRequestValidator.

public interface ICfnRequestValidatorProps

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;

             var cfnRequestValidatorProps = new CfnRequestValidatorProps {
                 RestApiId = "restApiId",

                 // the properties below are optional
                 Name = "name",
                 ValidateRequestBody = false,
                 ValidateRequestParameters = false
             };

Remarks

Properties

Name

The name of this RequestValidator.

string? Name { get; }

Property Value

string

Remarks

RestApiId

The string identifier of the associated RestApi.

string RestApiId { get; }

Property Value

string

Remarks

ValidateRequestBody

A Boolean flag to indicate whether to validate a request body according to the configured Model schema.

object? ValidateRequestBody { get; }

Property Value

object

Remarks

ValidateRequestParameters

A Boolean flag to indicate whether to validate request parameters ( true ) or not ( false ).

object? ValidateRequestParameters { get; }

Property Value

object

Remarks