Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.ec2.kotlin.inputs
import com.pulumi.aws.ec2.inputs.DefaultSecurityGroupIngressArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property cidrBlocks List of CIDR blocks.
* @property description Description of the security group.
* @property fromPort Start port (or ICMP type number if protocol is `icmp`)
* @property ipv6CidrBlocks List of IPv6 CIDR blocks.
* @property prefixListIds List of prefix list IDs (for allowing access to VPC endpoints)
* @property protocol Protocol. If you select a protocol of "-1" (semantically equivalent to `all`, which is not a valid value here), you must specify a `from_port` and `to_port` equal to `0`. If not `icmp`, `tcp`, `udp`, or `-1` use the [protocol number](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml).
* @property securityGroups List of security groups. A group name can be used relative to the default VPC. Otherwise, group ID.
* @property self Whether the security group itself will be added as a source to this egress rule.
* @property toPort End range port (or ICMP code if protocol is `icmp`).
*/
public data class DefaultSecurityGroupIngressArgs(
public val cidrBlocks: Output>? = null,
public val description: Output? = null,
public val fromPort: Output,
public val ipv6CidrBlocks: Output>? = null,
public val prefixListIds: Output>? = null,
public val protocol: Output,
public val securityGroups: Output>? = null,
public val self: Output? = null,
public val toPort: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.inputs.DefaultSecurityGroupIngressArgs =
com.pulumi.aws.ec2.inputs.DefaultSecurityGroupIngressArgs.builder()
.cidrBlocks(cidrBlocks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.description(description?.applyValue({ args0 -> args0 }))
.fromPort(fromPort.applyValue({ args0 -> args0 }))
.ipv6CidrBlocks(ipv6CidrBlocks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.prefixListIds(prefixListIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.protocol(protocol.applyValue({ args0 -> args0 }))
.securityGroups(securityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.self(self?.applyValue({ args0 -> args0 }))
.toPort(toPort.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DefaultSecurityGroupIngressArgs].
*/
@PulumiTagMarker
public class DefaultSecurityGroupIngressArgsBuilder internal constructor() {
private var cidrBlocks: Output>? = null
private var description: Output? = null
private var fromPort: Output? = null
private var ipv6CidrBlocks: Output>? = null
private var prefixListIds: Output>? = null
private var protocol: Output? = null
private var securityGroups: Output>? = null
private var self: Output? = null
private var toPort: Output? = null
/**
* @param value List of CIDR blocks.
*/
@JvmName("dmqygdeirwxgvugs")
public suspend fun cidrBlocks(`value`: Output>) {
this.cidrBlocks = value
}
@JvmName("pxcnmqgrimrymcpu")
public suspend fun cidrBlocks(vararg values: Output) {
this.cidrBlocks = Output.all(values.asList())
}
/**
* @param values List of CIDR blocks.
*/
@JvmName("xecgkvrcagboljtn")
public suspend fun cidrBlocks(values: List