AclPortRange
- class aws_cdk.aws_ec2.AclPortRange(*, from_=None, to=None)
Bases:
object
Properties to create PortRange.
- Parameters:
from – The first port in the range. Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
to (
Union
[int
,float
,None
]) – The last port in the range. Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ec2 as ec2 acl_port_range = ec2.AclPortRange( from=123, to=123 )
Attributes
- from_
The first port in the range.
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
- to
The last port in the range.
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.