interface PortRangeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.EC2.CfnNetworkAclEntryPropsMixin.PortRangeProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsec2#CfnNetworkAclEntryPropsMixin_PortRangeProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnNetworkAclEntryPropsMixin.PortRangeProperty |
Python | aws_cdk.cfn_property_mixins.aws_ec2.CfnNetworkAclEntryPropsMixin.PortRangeProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_ec2 » CfnNetworkAclEntryPropsMixin » 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/cfn-property-mixins';
const portRangeProperty: ec2.CfnNetworkAclEntryPropsMixin.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.

.NET
Go
Java
Python
TypeScript