Interface RequestValidatorProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, RequestValidatorOptions
All Known Implementing Classes:
RequestValidatorProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:55:52.531Z") @Stability(Stable) public interface RequestValidatorProps extends software.amazon.jsii.JsiiSerializable, RequestValidatorOptions
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.*;
 RestApi restApi;
 RequestValidatorProps requestValidatorProps = RequestValidatorProps.builder()
         .restApi(restApi)
         // the properties below are optional
         .requestValidatorName("requestValidatorName")
         .validateRequestBody(false)
         .validateRequestParameters(false)
         .build();
 
  • Method Details

    • getRestApi

      @Stability(Stable) @NotNull IRestApi getRestApi()
      The rest API that this model is part of.

      The reason we need the RestApi object itself and not just the ID is because the model is being tracked by the top-level RestApi object for the purpose of calculating it's hash to determine the ID of the deployment. This allows us to automatically update the deployment when the model of the REST API changes.

    • builder

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