io.burkard.cdk.services.ec2.CfnTransitGateway.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 CfnTransitGateway {
def apply(
internalResourceId: String,
description: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
autoAcceptSharedAttachments: Option[String] = None,
defaultRouteTableAssociation: Option[String] = None,
associationDefaultRouteTableId: Option[String] = None,
multicastSupport: Option[String] = None,
vpnEcmpSupport: Option[String] = None,
defaultRouteTablePropagation: Option[String] = None,
amazonSideAsn: Option[Number] = None,
transitGatewayCidrBlocks: Option[List[String]] = None,
dnsSupport: Option[String] = None,
propagationDefaultRouteTableId: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.CfnTransitGateway =
software.amazon.awscdk.services.ec2.CfnTransitGateway.Builder
.create(stackCtx, internalResourceId)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.autoAcceptSharedAttachments(autoAcceptSharedAttachments.orNull)
.defaultRouteTableAssociation(defaultRouteTableAssociation.orNull)
.associationDefaultRouteTableId(associationDefaultRouteTableId.orNull)
.multicastSupport(multicastSupport.orNull)
.vpnEcmpSupport(vpnEcmpSupport.orNull)
.defaultRouteTablePropagation(defaultRouteTablePropagation.orNull)
.amazonSideAsn(amazonSideAsn.orNull)
.transitGatewayCidrBlocks(transitGatewayCidrBlocks.map(_.asJava).orNull)
.dnsSupport(dnsSupport.orNull)
.propagationDefaultRouteTableId(propagationDefaultRouteTableId.orNull)
.build()
}