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