io.burkard.cdk.services.opensearchservice.CustomEndpointOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.opensearchservice
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CustomEndpointOptions {
def apply(
domainName: String,
hostedZone: Option[software.amazon.awscdk.services.route53.IHostedZone] = None,
certificate: Option[software.amazon.awscdk.services.certificatemanager.ICertificate] = None
): software.amazon.awscdk.services.opensearchservice.CustomEndpointOptions =
(new software.amazon.awscdk.services.opensearchservice.CustomEndpointOptions.Builder)
.domainName(domainName)
.hostedZone(hostedZone.orNull)
.certificate(certificate.orNull)
.build()
}