interface PortRangeProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.EC2.Mixins.CfnNetworkAclEntryPropsMixin.PortRangeProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsec2/mixins#CfnNetworkAclEntryPropsMixin_PortRangeProperty |
Java | software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnNetworkAclEntryPropsMixin.PortRangeProperty |
Python | aws_cdk.mixins_preview.aws_ec2.mixins.CfnNetworkAclEntryPropsMixin.PortRangeProperty |
TypeScript | @aws-cdk/mixins-preview » aws_ec2 » mixins » 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 { mixins as ec2_mixins } from '@aws-cdk/mixins-preview/aws-ec2';
const portRangeProperty: ec2_mixins.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