Class CfnNetworkAclEntryPropsMixin.PortRangeProperty
Describes a range of ports.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.EC2
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnNetworkAclEntryPropsMixin.PortRangeProperty : CfnNetworkAclEntryPropsMixin.IPortRangeProperty
Syntax (vb)
Public Class CfnNetworkAclEntryPropsMixin.PortRangeProperty Implements CfnNetworkAclEntryPropsMixin.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.CfnPropertyMixins.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.CfnPropertyMixins.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.