io.burkard.cdk.services.sam.cfnHttpApi.RouteSettingsProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.sam.cfnHttpApi
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object RouteSettingsProperty {
def apply(
throttlingBurstLimit: Option[Number] = None,
detailedMetricsEnabled: Option[Boolean] = None,
dataTraceEnabled: Option[Boolean] = None,
loggingLevel: Option[String] = None,
throttlingRateLimit: Option[Number] = None
): software.amazon.awscdk.services.sam.CfnHttpApi.RouteSettingsProperty =
(new software.amazon.awscdk.services.sam.CfnHttpApi.RouteSettingsProperty.Builder)
.throttlingBurstLimit(throttlingBurstLimit.orNull)
.detailedMetricsEnabled(detailedMetricsEnabled.map(Boolean.box).orNull)
.dataTraceEnabled(dataTraceEnabled.map(Boolean.box).orNull)
.loggingLevel(loggingLevel.orNull)
.throttlingRateLimit(throttlingRateLimit.orNull)
.build()
}