Interface CfnRequestValidatorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRequestValidatorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:31.438Z")
@Stability(Stable)
public interface CfnRequestValidatorProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnRequestValidator.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;
CfnRequestValidatorProps cfnRequestValidatorProps = CfnRequestValidatorProps.builder()
.restApiId("restApiId")
// the properties below are optional
.name("name")
.validateRequestBody(false)
.validateRequestParameters(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRequestValidatorPropsstatic final classAn implementation forCfnRequestValidatorProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetName()The name of this RequestValidator.The string identifier of the associated RestApi.default ObjectA Boolean flag to indicate whether to validate a request body according to the configured Model schema.default ObjectA Boolean flag to indicate whether to validate request parameters (true) or not (false).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRestApiId
The string identifier of the associated RestApi.- See Also:
-
getName
The name of this RequestValidator.- See Also:
-
getValidateRequestBody
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.Returns union: either
BooleanorIResolvable- See Also:
-
getValidateRequestParameters
A Boolean flag to indicate whether to validate request parameters (true) or not (false).Returns union: either
BooleanorIResolvable- See Also:
-
builder
- Returns:
- a
CfnRequestValidatorProps.BuilderofCfnRequestValidatorProps
-