EC2 > Dictionaries > PortRangeDict PortRangeDict¶ Dictionary Type¶ PortRangeDict ¶ Bases: TypedDict Dictionary form of PortRange. Attributes¶ from_ instance-attribute ¶ from_: int | None The first port in the range. to instance-attribute ¶ to: int | None The last port in the range.