AWSEC2IpPermission
Objective-C
@interface AWSEC2IpPermission
Swift
class AWSEC2IpPermission
Describes the permissions for a security group rule.
-
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 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 thantcp
,udp
,icmp
, oricmpv6
allows traffic on all ports, regardless of any port range you specify. Fortcp
,udp
, andicmp
, you must specify a port range. Foricmpv6
, 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 address ranges.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSEC2IpRange *> *_Nullable ipRanges;
Swift
var ipRanges: [AWSEC2IpRange]? { get set }
-
The IPv6 address ranges.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSEC2Ipv6Range *> *_Nullable ipv6Ranges;
Swift
var ipv6Ranges: [AWSEC2Ipv6Range]? { get set }
-
The prefix list IDs.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSEC2PrefixListId *> *_Nullable prefixListIds;
Swift
var prefixListIds: [AWSEC2PrefixListId]? { 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 }
-
The security group and Amazon Web Services account ID pairs.
Declaration
Objective-C
@property (nonatomic, strong) NSArray<AWSEC2UserIdGroupPair *> *_Nullable userIdGroupPairs;
Swift
var userIdGroupPairs: [AWSEC2UserIdGroupPair]? { get set }