io.burkard.cdk.services.ec2.SecurityGroupProps.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 SecurityGroupProps {
def apply(
vpc: software.amazon.awscdk.services.ec2.IVpc,
disableInlineRules: Option[Boolean] = None,
description: Option[String] = None,
securityGroupName: Option[String] = None,
allowAllOutbound: Option[Boolean] = None
): software.amazon.awscdk.services.ec2.SecurityGroupProps =
(new software.amazon.awscdk.services.ec2.SecurityGroupProps.Builder)
.vpc(vpc)
.disableInlineRules(disableInlineRules.map(Boolean.box).orNull)
.description(description.orNull)
.securityGroupName(securityGroupName.orNull)
.allowAllOutbound(allowAllOutbound.map(Boolean.box).orNull)
.build()
}