PortProps¶
-
class
aws_cdk.aws_ec2.
PortProps
(*, protocol, string_representation, from_port=None, to_port=None)¶ Bases:
object
Properties to create a port range.
- Parameters
protocol (
Protocol
) – The protocol for the range.string_representation (
str
) – String representation for this object.from_port (
Union
[int
,float
,None
]) – The starting port for the range. Default: - Not included in the ruleto_port (
Union
[int
,float
,None
]) – The ending port for the range. Default: - Not included in the rule
Attributes
-
from_port
¶ The starting port for the range.
- Default
Not included in the rule
- Return type
Union
[int
,float
,None
]
-
string_representation
¶ String representation for this object.
- Return type
str
-
to_port
¶ The ending port for the range.
- Default
Not included in the rule
- Return type
Union
[int
,float
,None
]