interface AclPortRange
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.AclPortRange |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AclPortRange |
Java | software.amazon.awscdk.services.ec2.AclPortRange |
Python | aws_cdk.aws_ec2.AclPortRange |
TypeScript (source) | aws-cdk-lib » aws_ec2 » AclPortRange |
Properties to create PortRange.
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 aclPortRange: ec2.AclPortRange = {
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.