Interface CfnRuleGroup.IPortRangeProperty
A single port range specification.
Namespace: Amazon.CDK.AWS.NetworkFirewall
Assembly: Amazon.CDK.AWS.NetworkFirewall.dll
Syntax (csharp)
public interface IPortRangeProperty
Syntax (vb)
Public Interface 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
Properties
FromPort | The lower limit of the port range. |
ToPort | The upper limit of the port range. |
Properties
FromPort
The lower limit of the port range.
double FromPort { get; }
Property Value
System.Double
Remarks
This must be less than or equal to the ToPort
specification.
ToPort
The upper limit of the port range.
double ToPort { get; }
Property Value
System.Double
Remarks
This must be greater than or equal to the FromPort
specification.