interface PortRange
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GlobalAccelerator.PortRange |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsglobalaccelerator#PortRange |
![]() | software.amazon.awscdk.services.globalaccelerator.PortRange |
![]() | aws_cdk.aws_globalaccelerator.PortRange |
![]() | aws-cdk-lib » aws_globalaccelerator » PortRange |
The list of port ranges for the connections from clients to the accelerator.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_globalaccelerator as globalaccelerator } from 'aws-cdk-lib';
const portRange: globalaccelerator.PortRange = {
fromPort: 123,
// the properties below are optional
toPort: 123,
};
Properties
Name | Type | Description |
---|---|---|
from | number | The first port in the range of ports, inclusive. |
to | number | The last port in the range of ports, inclusive. |
fromPort
Type:
number
The first port in the range of ports, inclusive.
toPort?
Type:
number
(optional, default: same as fromPort
)
The last port in the range of ports, inclusive.