io.burkard.cdk.services.apigateway.CfnRequestValidatorProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.apigateway
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnRequestValidatorProps {
def apply(
restApiId: String,
name: Option[String] = None,
validateRequestBody: Option[Boolean] = None,
validateRequestParameters: Option[Boolean] = None
): software.amazon.awscdk.services.apigateway.CfnRequestValidatorProps =
(new software.amazon.awscdk.services.apigateway.CfnRequestValidatorProps.Builder)
.restApiId(restApiId)
.name(name.orNull)
.validateRequestBody(validateRequestBody.map(Boolean.box).orNull)
.validateRequestParameters(validateRequestParameters.map(Boolean.box).orNull)
.build()
}