io.burkard.cdk.services.apigateway.ProxyResourceProps.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 ProxyResourceProps {
def apply(
parent: software.amazon.awscdk.services.apigateway.IResource,
defaultCorsPreflightOptions: Option[software.amazon.awscdk.services.apigateway.CorsOptions] = None,
defaultMethodOptions: Option[software.amazon.awscdk.services.apigateway.MethodOptions] = None,
anyMethod: Option[Boolean] = None,
defaultIntegration: Option[software.amazon.awscdk.services.apigateway.Integration] = None
): software.amazon.awscdk.services.apigateway.ProxyResourceProps =
(new software.amazon.awscdk.services.apigateway.ProxyResourceProps.Builder)
.parent(parent)
.defaultCorsPreflightOptions(defaultCorsPreflightOptions.orNull)
.defaultMethodOptions(defaultMethodOptions.orNull)
.anyMethod(anyMethod.map(Boolean.box).orNull)
.defaultIntegration(defaultIntegration.orNull)
.build()
}