Interface CfnRequestValidatorProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRequestValidatorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.109.0 (build c221850)",
date="2025-03-14T03:24:51.565Z")
@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 class
A builder forCfnRequestValidatorProps
static final class
An implementation forCfnRequestValidatorProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
getName()
The name of this RequestValidator.The string identifier of the associated RestApi.default Object
A Boolean flag to indicate whether to validate a request body according to the configured Model schema.default Object
A 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.- See Also:
-
getValidateRequestParameters
A Boolean flag to indicate whether to validate request parameters (true
) or not (false
).- See Also:
-
builder
- Returns:
- a
CfnRequestValidatorProps.Builder
ofCfnRequestValidatorProps
-