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