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
ExampleMetadata: fixture=_generated
Constructors
CfnRequestValidatorProps()
public CfnRequestValidatorProps()
Properties
Name
The name of this RequestValidator.
public string? Name { get; set; }
Property Value
Remarks
RestApiId
The string identifier of the associated RestApi.
public string RestApiId { get; set; }
Property Value
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
Remarks
ValidateRequestParameters
A Boolean flag to indicate whether to validate request parameters ( true
) or not ( false
).
public object? ValidateRequestParameters { get; set; }