aws-cdk-lib.aws_networkfirewall.CfnRuleGroup.PortRangeProperty

interface PortRangeProperty

LanguageType name
.NETAmazon.CDK.AWS.NetworkFirewall.CfnRuleGroup.PortRangeProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsnetworkfirewall#CfnRuleGroup_PortRangeProperty
Javasoftware.amazon.awscdk.services.networkfirewall.CfnRuleGroup.PortRangeProperty
Pythonaws_cdk.aws_networkfirewall.CfnRuleGroup.PortRangeProperty
TypeScript aws-cdk-lib » aws_networkfirewall » CfnRuleGroup » PortRangeProperty

A single port range specification.

This is used for source and destination port ranges in the stateless RuleGroup.MatchAttributes .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_networkfirewall as networkfirewall } from 'aws-cdk-lib';
const portRangeProperty: networkfirewall.CfnRuleGroup.PortRangeProperty = {
  fromPort: 123,
  toPort: 123,
};

Properties

NameTypeDescription
fromPortnumberThe lower limit of the port range.
toPortnumberThe upper limit of the port range.

fromPort

Type: number

The lower limit of the port range.

This must be less than or equal to the ToPort specification.


toPort

Type: number

The upper limit of the port range.

This must be greater than or equal to the FromPort specification.