io.burkard.cdk.services.ec2.CfnTransitGatewayVpcAttachment.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnTransitGatewayVpcAttachment {
def apply(
internalResourceId: String,
subnetIds: List[String],
vpcId: String,
transitGatewayId: String,
removeSubnetIds: Option[List[String]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
options: Option[AnyRef] = None,
addSubnetIds: Option[List[String]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachment =
software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachment.Builder
.create(stackCtx, internalResourceId)
.subnetIds(subnetIds.asJava)
.vpcId(vpcId)
.transitGatewayId(transitGatewayId)
.removeSubnetIds(removeSubnetIds.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.options(options.orNull)
.addSubnetIds(addSubnetIds.map(_.asJava).orNull)
.build()
}