Class CfnNetworkAclEntry.PortRangeProperty
Describes a range of ports.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNetworkAclEntry.PortRangeProperty : CfnNetworkAclEntry.IPortRangeProperty
Syntax (vb)
Public Class CfnNetworkAclEntry.PortRangeProperty Implements CfnNetworkAclEntry.IPortRangeProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var portRangeProperty = new PortRangeProperty {
From = 123,
To = 123
};
Synopsis
Constructors
| PortRangeProperty() | Describes a range of ports. |
Properties
| From | The first port in the range. |
| To | The last port in the range. |
Constructors
PortRangeProperty()
Describes a range of ports.
public PortRangeProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var portRangeProperty = new PortRangeProperty {
From = 123,
To = 123
};
Properties
From
The first port in the range.
public double? From { get; set; }
Property Value
Remarks
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
To
The last port in the range.
public double? To { get; set; }
Property Value
Remarks
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.