Skip to content
v2.273.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 ​

fromnumberfromint | floatfromNumberFromdoubleFrom*float64#
The first port in the range.

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

tonumbertoint | floattoNumberTodoubleTo*float64#
The last port in the range.

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