Interface CfnRequestValidatorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRequestValidatorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.857Z")
@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();
-
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. -
getName
The name of this RequestValidator. -
getValidateRequestBody
A Boolean flag to indicate whether to validate a request body according to the configured Model schema. -
getValidateRequestParameters
A Boolean flag to indicate whether to validate request parameters (true) or not (false). -
builder
- Returns:
- a
CfnRequestValidatorProps.BuilderofCfnRequestValidatorProps
-