Class CfnRuleGroup.PortRangeProperty
A single port range specification.
Inheritance
System.Object
CfnRuleGroup.PortRangeProperty
Implements
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.AWS.NetworkFirewall.dll
Syntax (csharp)
public class PortRangeProperty : Object, CfnRuleGroup.IPortRangeProperty
Syntax (vb)
Public Class PortRangeProperty
Inherits Object
Implements CfnRuleGroup.IPortRangeProperty
Remarks
This is used for source and destination port ranges in the stateless RuleGroup.MatchAttributes
.
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.NetworkFirewall;
var portRangeProperty = new PortRangeProperty {
FromPort = 123,
ToPort = 123
};
Synopsis
Constructors
PortRangeProperty() |
Properties
FromPort | The lower limit of the port range. |
ToPort | The upper limit of the port range. |
Constructors
PortRangeProperty()
public PortRangeProperty()
Properties
FromPort
The lower limit of the port range.
public double FromPort { get; set; }
Property Value
System.Double
Remarks
This must be less than or equal to the ToPort
specification.
ToPort
The upper limit of the port range.
public double ToPort { get; set; }
Property Value
System.Double
Remarks
This must be greater than or equal to the FromPort
specification.