All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.apigateway.DomainName.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.apigateway

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object DomainName {

  def apply(
    internalResourceId: String,
    certificate: Option[software.amazon.awscdk.services.certificatemanager.ICertificate] = None,
    mapping: Option[software.amazon.awscdk.services.apigateway.IRestApi] = None,
    domainName: Option[String] = None,
    mtls: Option[software.amazon.awscdk.services.apigateway.MTLSConfig] = None,
    basePath: Option[String] = None,
    endpointType: Option[software.amazon.awscdk.services.apigateway.EndpointType] = None,
    securityPolicy: Option[software.amazon.awscdk.services.apigateway.SecurityPolicy] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.apigateway.DomainName =
    software.amazon.awscdk.services.apigateway.DomainName.Builder
      .create(stackCtx, internalResourceId)
      .certificate(certificate.orNull)
      .mapping(mapping.orNull)
      .domainName(domainName.orNull)
      .mtls(mtls.orNull)
      .basePath(basePath.orNull)
      .endpointType(endpointType.orNull)
      .securityPolicy(securityPolicy.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy