IpPermissionArgs

data class IpPermissionArgs(val fromPort: Output<Int>? = null, val ipProtocol: Output<String>? = null, val ipRanges: Output<List<IpRangeArgs>>? = null, val ipv6Ranges: Output<List<Ipv6RangeArgs>>? = null, val prefixListIds: Output<List<PrefixListIdArgs>>? = null, val toPort: Output<Int>? = null, val userIdGroupPairs: Output<List<UserIdGroupPairArgs>>? = null) : ConvertibleToJava<IpPermissionArgs>

Definition of IpPermission

Constructors

Link copied to clipboard
constructor(fromPort: Output<Int>? = null, ipProtocol: Output<String>? = null, ipRanges: Output<List<IpRangeArgs>>? = null, ipv6Ranges: Output<List<Ipv6RangeArgs>>? = null, prefixListIds: Output<List<PrefixListIdArgs>>? = null, toPort: Output<Int>? = null, userIdGroupPairs: Output<List<UserIdGroupPairArgs>>? = null)

Properties

Link copied to clipboard
val fromPort: Output<Int>? = null

If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).

Link copied to clipboard
val ipProtocol: Output<String>? = null

The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

Use -1 to specify all protocols. When authorizing security group rules, specifying -1 or a protocol number other than tcp, udp, icmp, or icmpv6 allows traffic on all ports, regardless of any port range you specify. For tcp, udp, and icmp, you must specify a port range. For icmpv6, the port range is optional; if you omit the port range, traffic for all types and codes is allowed.

Link copied to clipboard
val ipRanges: Output<List<IpRangeArgs>>? = null

The IPv4 address ranges.

Link copied to clipboard
val ipv6Ranges: Output<List<Ipv6RangeArgs>>? = null

The IPv6 address ranges.

Link copied to clipboard
val prefixListIds: Output<List<PrefixListIdArgs>>? = null

The prefix list IDs.

Link copied to clipboard
val toPort: Output<Int>? = null

If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).

Link copied to clipboard

The security group and Amazon Web Services account ID pairs.

Functions

Link copied to clipboard
open override fun toJava(): IpPermissionArgs