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

io.burkard.cdk.services.elasticloadbalancingv2.ApplicationLoadBalancer.scala Maven / Gradle / Ivy

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

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

  def apply(
    internalResourceId: String,
    internetFacing: Option[Boolean] = None,
    idleTimeout: Option[software.amazon.awscdk.Duration] = None,
    vpcSubnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
    deletionProtection: Option[Boolean] = None,
    loadBalancerName: Option[String] = None,
    ipAddressType: Option[software.amazon.awscdk.services.elasticloadbalancingv2.IpAddressType] = None,
    vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = None,
    http2Enabled: Option[Boolean] = None,
    securityGroup: Option[software.amazon.awscdk.services.ec2.ISecurityGroup] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancer =
    software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancer.Builder
      .create(stackCtx, internalResourceId)
      .internetFacing(internetFacing.map(Boolean.box).orNull)
      .idleTimeout(idleTimeout.orNull)
      .vpcSubnets(vpcSubnets.orNull)
      .deletionProtection(deletionProtection.map(Boolean.box).orNull)
      .loadBalancerName(loadBalancerName.orNull)
      .ipAddressType(ipAddressType.orNull)
      .vpc(vpc.orNull)
      .http2Enabled(http2Enabled.map(Boolean.box).orNull)
      .securityGroup(securityGroup.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy