IpPermission

public struct IpPermission : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

    Declaration

    Swift

    public let fromPort: Int?
  • The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers). [VPC only] 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.

    Declaration

    Swift

    public let ipProtocol: String?
  • The IPv4 ranges.

    Declaration

    Swift

    public let ipRanges: [IpRange]?
  • [VPC only] The IPv6 ranges.

    Declaration

    Swift

    public let ipv6Ranges: [Ipv6Range]?
  • [VPC only] The prefix list IDs.

    Declaration

    Swift

    public let prefixListIds: [PrefixListId]?
  • The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

    Declaration

    Swift

    public let toPort: Int?
  • The security group and AWS account ID pairs.

    Declaration

    Swift

    public let userIdGroupPairs: [UserIdGroupPair]?
  • Undocumented

    Declaration

    Swift

    public init(fromPort: Int? = nil, ipProtocol: String? = nil, ipRanges: [IpRange]? = nil, ipv6Ranges: [Ipv6Range]? = nil, prefixListIds: [PrefixListId]? = nil, toPort: Int? = nil, userIdGroupPairs: [UserIdGroupPair]? = nil)