Skip to content
v2.275.0

AclPortRange Struct ​

Properties to create PortRange.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const aclPortRange: ec2.AclPortRange = {
  from: 123,
  to: 123,
};

Properties ​

fromoptionalnumberfromoptionalint | floatfromoptionalNumberFromoptionaldoubleFromoptional*float64#
The first port in the range.

Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.

tooptionalnumbertooptionalint | floattooptionalNumberTooptionaldoubleTooptional*float64#
The last port in the range.

Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.