io.burkard.cdk.services.ec2.FlowLog.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 FlowLog {
def apply(
internalResourceId: String,
resourceType: software.amazon.awscdk.services.ec2.FlowLogResourceType,
trafficType: Option[software.amazon.awscdk.services.ec2.FlowLogTrafficType] = None,
flowLogName: Option[String] = None,
destination: Option[software.amazon.awscdk.services.ec2.FlowLogDestination] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.FlowLog =
software.amazon.awscdk.services.ec2.FlowLog.Builder
.create(stackCtx, internalResourceId)
.resourceType(resourceType)
.trafficType(trafficType.orNull)
.flowLogName(flowLogName.orNull)
.destination(destination.orNull)
.build()
}