io.burkard.cdk.services.appmesh.TlsClientPolicy.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.appmesh
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object TlsClientPolicy {
def apply(
validation: software.amazon.awscdk.services.appmesh.TlsValidation,
ports: Option[List[_ <: Number]] = None,
mutualTlsCertificate: Option[software.amazon.awscdk.services.appmesh.MutualTlsCertificate] = None,
enforce: Option[Boolean] = None
): software.amazon.awscdk.services.appmesh.TlsClientPolicy =
(new software.amazon.awscdk.services.appmesh.TlsClientPolicy.Builder)
.validation(validation)
.ports(ports.map(_.asJava).orNull)
.mutualTlsCertificate(mutualTlsCertificate.orNull)
.enforce(enforce.map(Boolean.box).orNull)
.build()
}