aws-cdk-lib.aws_ec2.CfnNetworkAclEntry.PortRangeProperty

interface PortRangeProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnNetworkAclEntry.PortRangeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnNetworkAclEntry_PortRangeProperty
Javasoftware.amazon.awscdk.services.ec2.CfnNetworkAclEntry.PortRangeProperty
Pythonaws_cdk.aws_ec2.CfnNetworkAclEntry.PortRangeProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnNetworkAclEntry » PortRangeProperty

Describes a range of ports.

Example

// 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 portRangeProperty: ec2.CfnNetworkAclEntry.PortRangeProperty = {
  from: 123,
  to: 123,
};

Properties

NameTypeDescription
from?numberThe first port in the range.
to?numberThe last port in the range.

from?

Type: number (optional)

The first port in the range.

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


to?

Type: number (optional)

The last port in the range.

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