All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ec2.CfnSecurityGroupIngressProps.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 CfnSecurityGroupIngressProps {

  def apply(
    ipProtocol: String,
    sourceSecurityGroupName: Option[String] = None,
    sourcePrefixListId: Option[String] = None,
    sourceSecurityGroupId: Option[String] = None,
    toPort: Option[Number] = None,
    description: Option[String] = None,
    sourceSecurityGroupOwnerId: Option[String] = None,
    groupId: Option[String] = None,
    fromPort: Option[Number] = None,
    groupName: Option[String] = None,
    cidrIp: Option[String] = None,
    cidrIpv6: Option[String] = None
  ): software.amazon.awscdk.services.ec2.CfnSecurityGroupIngressProps =
    (new software.amazon.awscdk.services.ec2.CfnSecurityGroupIngressProps.Builder)
      .ipProtocol(ipProtocol)
      .sourceSecurityGroupName(sourceSecurityGroupName.orNull)
      .sourcePrefixListId(sourcePrefixListId.orNull)
      .sourceSecurityGroupId(sourceSecurityGroupId.orNull)
      .toPort(toPort.orNull)
      .description(description.orNull)
      .sourceSecurityGroupOwnerId(sourceSecurityGroupOwnerId.orNull)
      .groupId(groupId.orNull)
      .fromPort(fromPort.orNull)
      .groupName(groupName.orNull)
      .cidrIp(cidrIp.orNull)
      .cidrIpv6(cidrIpv6.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy