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.SecurityGroupEgressArgs.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 this egress rule.
* @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.
* @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. The supported values are defined in the `IpProtocol` argument in the [IpPermission](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IpPermission.html) API reference.
* @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`).
* The following arguments are optional:
* > **Note** Although `cidr_blocks`, `ipv6_cidr_blocks`, `prefix_list_ids`, and `security_groups` are all marked as optional, you _must_ provide one of them in order to configure the destination of the traffic.
*/
public data class SecurityGroupEgressArgs(
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.SecurityGroupEgressArgs =
com.pulumi.aws.ec2.inputs.SecurityGroupEgressArgs.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 [SecurityGroupEgressArgs].
*/
@PulumiTagMarker
public class SecurityGroupEgressArgsBuilder 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("eepkbgumrchgecki")
public suspend fun cidrBlocks(`value`: Output>) {
this.cidrBlocks = value
}
@JvmName("focnawcoyatksocr")
public suspend fun cidrBlocks(vararg values: Output) {
this.cidrBlocks = Output.all(values.asList())
}
/**
* @param values List of CIDR blocks.
*/
@JvmName("cnnlbgwaffpwplpi")
public suspend fun cidrBlocks(values: List