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