aws-cdk-lib.aws_globalaccelerator.PortRange

interface PortRange

LanguageType name
.NETAmazon.CDK.AWS.GlobalAccelerator.PortRange
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglobalaccelerator#PortRange
Javasoftware.amazon.awscdk.services.globalaccelerator.PortRange
Pythonaws_cdk.aws_globalaccelerator.PortRange
TypeScript (source)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

NameTypeDescription
fromPortnumberThe first port in the range of ports, inclusive.
toPort?numberThe 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.