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

io.burkard.cdk.services.globalaccelerator.Accelerator.scala Maven / Gradle / Ivy

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

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

  def apply(
    internalResourceId: String,
    enabled: Option[Boolean] = None,
    acceleratorName: Option[String] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.globalaccelerator.Accelerator =
    software.amazon.awscdk.services.globalaccelerator.Accelerator.Builder
      .create(stackCtx, internalResourceId)
      .enabled(enabled.map(Boolean.box).orNull)
      .acceleratorName(acceleratorName.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy