PortRange
- class aws_cdk.aws_globalaccelerator.PortRange(*, from_port, to_port=None)
Bases:
object
The list of port ranges for the connections from clients to the accelerator.
- Parameters:
from_port (
Union
[int
,float
]) – The first port in the range of ports, inclusive.to_port (
Union
[int
,float
,None
]) – The last port in the range of ports, inclusive. Default: - same asfromPort
- 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_globalaccelerator as globalaccelerator port_range = globalaccelerator.PortRange( from_port=123, # the properties below are optional to_port=123 )
Attributes
- from_port
The first port in the range of ports, inclusive.
- to_port
The last port in the range of ports, inclusive.
- Default:
same as
fromPort