AWSEC2IpPermission

Objective-C

@interface AWSEC2IpPermission

Swift

class AWSEC2IpPermission

Describes a set of permissions for a security group rule.

  • 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

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable fromPort;

    Swift

    var fromPort: NSNumber? { get set }
  • 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

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable ipProtocol;

    Swift

    var ipProtocol: String? { get set }
  • The IPv4 ranges.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2IpRange *> *_Nullable ipRanges;

    Swift

    var ipRanges: [AWSEC2IpRange]? { get set }
  • [VPC only] The IPv6 ranges.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Ipv6Range *> *_Nullable ipv6Ranges;

    Swift

    var ipv6Ranges: [AWSEC2Ipv6Range]? { get set }
  • [VPC only] The prefix list IDs for an AWS service. With outbound rules, this is the AWS service to access through a VPC endpoint from instances associated with the security group.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2PrefixListId *> *_Nullable prefixListIds;

    Swift

    var prefixListIds: [AWSEC2PrefixListId]? { get set }
  • 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

    Objective-C

    @property (nonatomic, strong) NSNumber *_Nullable toPort;

    Swift

    var toPort: NSNumber? { get set }
  • The security group and AWS account ID pairs.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2UserIdGroupPair *> *_Nullable userIdGroupPairs;

    Swift

    var userIdGroupPairs: [AWSEC2UserIdGroupPair]? { get set }