AWSEC2SecurityGroupRule

Objective-C

@interface AWSEC2SecurityGroupRule

Swift

class AWSEC2SecurityGroupRule

Describes a security group rule.

  • The IPv4 CIDR range.

    Declaration

    Objective-C

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

    Swift

    var cidrIpv4: String? { get set }
  • The IPv6 CIDR range.

    Declaration

    Objective-C

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

    Swift

    var cidrIpv6: String? { get set }
  • The security group rule description.

    Declaration

    Objective-C

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

    Swift

    var detail: String? { get set }
  • 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).

    Declaration

    Objective-C

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

    Swift

    var fromPort: NSNumber? { get set }
  • The ID of the security group.

    Declaration

    Objective-C

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

    Swift

    var groupId: String? { get set }
  • The ID of the Amazon Web Services account that owns the security group.

    Declaration

    Objective-C

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

    Swift

    var groupOwnerId: String? { get set }
  • The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers).

    Use -1 to specify all protocols.

    Declaration

    Objective-C

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

    Swift

    var ipProtocol: String? { get set }
  • Indicates whether the security group rule is an outbound rule.

    Declaration

    Objective-C

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

    Swift

    var isEgress: NSNumber? { get set }
  • The ID of the prefix list.

    Declaration

    Objective-C

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

    Swift

    var prefixListId: String? { get set }
  • Describes the security group that is referenced in the rule.

    Declaration

    Objective-C

    @property (nonatomic, strong) AWSEC2ReferencedSecurityGroup *_Nullable referencedGroupInfo;

    Swift

    var referencedGroupInfo: AWSEC2ReferencedSecurityGroup? { get set }
  • The ID of the security group rule.

    Declaration

    Objective-C

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

    Swift

    var securityGroupRuleId: String? { get set }
  • The tags applied to the security group rule.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSArray<AWSEC2Tag *> *_Nullable tags;

    Swift

    var tags: [AWSEC2Tag]? { get set }
  • 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).

    Declaration

    Objective-C

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

    Swift

    var toPort: NSNumber? { get set }