Table of Contents

Class CfnRequestValidatorProps

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

Properties for defining a CfnRequestValidator.

public class CfnRequestValidatorProps : ICfnRequestValidatorProps
Inheritance
CfnRequestValidatorProps
Implements
Inherited Members

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

Constructors

CfnRequestValidatorProps()

public CfnRequestValidatorProps()

Properties

Name

The name of this RequestValidator.

public string? Name { get; set; }

Property Value

string

Remarks

RestApiId

The string identifier of the associated RestApi.

public string RestApiId { get; set; }

Property Value

string

Remarks

ValidateRequestBody

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

public object? ValidateRequestBody { get; set; }

Property Value

object

Remarks

ValidateRequestParameters

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

public object? ValidateRequestParameters { get; set; }

Property Value

object

Remarks