io.burkard.cdk.services.ec2.CfnNetworkInterface.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 CfnNetworkInterface {
def apply(
internalResourceId: String,
subnetId: String,
interfaceType: Option[String] = None,
description: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
privateIpAddresses: Option[List[_]] = None,
ipv6Addresses: Option[List[_]] = None,
ipv6AddressCount: Option[Number] = None,
sourceDestCheck: Option[Boolean] = None,
groupSet: Option[List[String]] = None,
secondaryPrivateIpAddressCount: Option[Number] = None,
privateIpAddress: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.CfnNetworkInterface =
software.amazon.awscdk.services.ec2.CfnNetworkInterface.Builder
.create(stackCtx, internalResourceId)
.subnetId(subnetId)
.interfaceType(interfaceType.orNull)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.privateIpAddresses(privateIpAddresses.map(_.asJava).orNull)
.ipv6Addresses(ipv6Addresses.map(_.asJava).orNull)
.ipv6AddressCount(ipv6AddressCount.orNull)
.sourceDestCheck(sourceDestCheck.map(Boolean.box).orNull)
.groupSet(groupSet.map(_.asJava).orNull)
.secondaryPrivateIpAddressCount(secondaryPrivateIpAddressCount.orNull)
.privateIpAddress(privateIpAddress.orNull)
.build()
}