@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:08.558Z") public interface RequestValidatorProps extends RequestValidatorOptions
// 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();
Modifier and Type | Interface and Description |
---|---|
static class |
RequestValidatorProps.Builder
A builder for
RequestValidatorProps |
static class |
RequestValidatorProps.Jsii$Proxy
An implementation for
RequestValidatorProps |
Modifier and Type | Method and Description |
---|---|
static RequestValidatorProps.Builder |
builder() |
IRestApi |
getRestApi()
The rest API that this model is part of.
|
getRequestValidatorName, getValidateRequestBody, getValidateRequestParameters
IRestApi getRestApi()
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.
static RequestValidatorProps.Builder builder()
builder
in interface RequestValidatorOptions
RequestValidatorProps.Builder
of RequestValidatorProps