EC2 > Structures > PortRange PortRange¶ Structure Class¶ PortRange dataclass ¶ Bases: _SerdeShape Describes a range of ports. Attributes¶ from_ class-attribute instance-attribute ¶ from_: int | None = ... The first port in the range. to class-attribute instance-attribute ¶ to: int | None = ... The last port in the range.