io.burkard.cdk.services.ec2.SubnetAttributes.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object SubnetAttributes {
def apply(
subnetId: String,
availabilityZone: Option[String] = None,
routeTableId: Option[String] = None,
ipv4CidrBlock: Option[String] = None
): software.amazon.awscdk.services.ec2.SubnetAttributes =
(new software.amazon.awscdk.services.ec2.SubnetAttributes.Builder)
.subnetId(subnetId)
.availabilityZone(availabilityZone.orNull)
.routeTableId(routeTableId.orNull)
.ipv4CidrBlock(ipv4CidrBlock.orNull)
.build()
}