io.burkard.cdk.services.route53.HostedZone.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.route53
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object HostedZone {
def apply(
internalResourceId: String,
comment: Option[String] = None,
zoneName: Option[String] = None,
vpcs: Option[List[_ <: software.amazon.awscdk.services.ec2.IVpc]] = None,
queryLogsLogGroupArn: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.route53.HostedZone =
software.amazon.awscdk.services.route53.HostedZone.Builder
.create(stackCtx, internalResourceId)
.comment(comment.orNull)
.zoneName(zoneName.orNull)
.vpcs(vpcs.map(_.asJava).orNull)
.queryLogsLogGroupArn(queryLogsLogGroupArn.orNull)
.build()
}