Class CfnNetworkAclEntry.PortRangeProperty
Describes a range of ports.
Inheritance
System.Object
CfnNetworkAclEntry.PortRangeProperty
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class PortRangeProperty : Object, CfnNetworkAclEntry.IPortRangeProperty
Syntax (vb)
Public Class PortRangeProperty
Inherits Object
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() |
Properties
From | The first port in the range. |
To | The last port in the range. |
Constructors
PortRangeProperty()
public PortRangeProperty()
Properties
From
The first port in the range.
public Nullable<double> From { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.
To
The last port in the range.
public Nullable<double> To { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.