interface PortRangeProperty
This page is available in another version. Click here for the v2 documentation.
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.CfnNetworkAclEntry.PortRangeProperty |
![]() | software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.PortRangeProperty |
![]() | aws_cdk.aws_ec2.CfnNetworkAclEntry.PortRangeProperty |
![]() | @aws-cdk/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 * as ec2 from '@aws-cdk/aws-ec2';
const portRangeProperty: ec2.CfnNetworkAclEntry.PortRangeProperty = {
from: 123,
to: 123,
};
Properties
Name | Type | Description |
---|---|---|
from? | number | The first port in the range. |
to? | number | The 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.