Skip to content

EC2  >  Structures  >  StaleIpPermission

StaleIpPermission

Structure Class

StaleIpPermission dataclass

Bases: _SerdeShape

Describes a stale rule in a security group.

Attributes

from_port class-attribute instance-attribute
from_port: int | None = ...

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).

ip_protocol class-attribute instance-attribute
ip_protocol: str | None = ...

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

ip_ranges class-attribute instance-attribute
ip_ranges: list[str] | None = ...

The IP ranges. Not applicable for stale security group rules.

prefix_list_ids class-attribute instance-attribute
prefix_list_ids: list[str] | None = ...

The prefix list IDs. Not applicable for stale security group rules.

to_port class-attribute instance-attribute
to_port: int | None = ...

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).

user_id_group_pairs class-attribute instance-attribute
user_id_group_pairs: list[UserIdGroupPair] | None = ...

The security group pairs. Returns the ID of the referenced security group and VPC, and the ID and status of the VPC peering connection.