io.burkard.cdk.services.sam.CfnApi.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.sam
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnApi {
def apply(
internalResourceId: String,
stageName: String,
openApiVersion: Option[String] = None,
name: Option[String] = None,
auth: Option[software.amazon.awscdk.services.sam.CfnApi.AuthProperty] = None,
description: Option[String] = None,
canarySetting: Option[software.amazon.awscdk.services.sam.CfnApi.CanarySettingProperty] = None,
tags: Option[Map[String, String]] = None,
domain: Option[software.amazon.awscdk.services.sam.CfnApi.DomainConfigurationProperty] = None,
tracingEnabled: Option[Boolean] = None,
binaryMediaTypes: Option[List[String]] = None,
variables: Option[Map[String, String]] = None,
gatewayResponses: Option[AnyRef] = None,
definitionBody: Option[AnyRef] = None,
cacheClusterEnabled: Option[Boolean] = None,
cors0: Option[String] = None,
cors1: Option[software.amazon.awscdk.services.sam.CfnApi.CorsConfigurationProperty] = None,
accessLogSetting: Option[software.amazon.awscdk.services.sam.CfnApi.AccessLogSettingProperty] = None,
endpointConfiguration0: Option[software.amazon.awscdk.services.sam.CfnApi.EndpointConfigurationProperty] = None,
endpointConfiguration1: Option[String] = None,
models: Option[AnyRef] = None,
methodSettings: Option[List[_]] = None,
definitionUri0: Option[String] = None,
definitionUri1: Option[software.amazon.awscdk.services.sam.CfnApi.S3LocationProperty] = None,
cacheClusterSize: Option[String] = None,
minimumCompressionSize: Option[Number] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.sam.CfnApi =
software.amazon.awscdk.services.sam.CfnApi.Builder
.create(stackCtx, internalResourceId)
.stageName(stageName)
.openApiVersion(openApiVersion.orNull)
.name(name.orNull)
.auth(auth.orNull)
.description(description.orNull)
.canarySetting(canarySetting.orNull)
.tags(tags.map(_.asJava).orNull)
.domain(domain.orNull)
.tracingEnabled(tracingEnabled.map(Boolean.box).orNull)
.binaryMediaTypes(binaryMediaTypes.map(_.asJava).orNull)
.variables(variables.map(_.asJava).orNull)
.gatewayResponses(gatewayResponses.orNull)
.definitionBody(definitionBody.orNull)
.cacheClusterEnabled(cacheClusterEnabled.map(Boolean.box).orNull)
.cors(cors0.orNull)
.cors(cors1.orNull)
.accessLogSetting(accessLogSetting.orNull)
.endpointConfiguration(endpointConfiguration0.orNull)
.endpointConfiguration(endpointConfiguration1.orNull)
.models(models.orNull)
.methodSettings(methodSettings.map(_.asJava).orNull)
.definitionUri(definitionUri0.orNull)
.definitionUri(definitionUri1.orNull)
.cacheClusterSize(cacheClusterSize.orNull)
.minimumCompressionSize(minimumCompressionSize.orNull)
.build()
}