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();
 
  • Method Details

    • getRestApiId

      @Stability(Stable) @NotNull String getRestApiId()
      The string identifier of the associated RestApi.
    • getName

      @Stability(Stable) @Nullable default String getName()
      The name of this RequestValidator.
    • getValidateRequestBody

      @Stability(Stable) @Nullable default Object getValidateRequestBody()
      A Boolean flag to indicate whether to validate a request body according to the configured Model schema.
    • getValidateRequestParameters

      @Stability(Stable) @Nullable default Object getValidateRequestParameters()
      A Boolean flag to indicate whether to validate request parameters ( true ) or not ( false ).
    • builder

      @Stability(Stable) static CfnRequestValidatorProps.Builder builder()
      Returns:
      a CfnRequestValidatorProps.Builder of CfnRequestValidatorProps