Skip to content
v2.278.0

PathFilterProperty Struct ​

Describes a set of filters for a path analysis.

Use path filters to scope the analysis when there can be multiple resulting paths.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const pathFilterProperty: ec2.CfnNetworkInsightsPath.PathFilterProperty = {
  destinationAddress: 'destinationAddress',
  destinationPortRange: {
    fromPort: 123,
    toPort: 123,
  },
  sourceAddress: 'sourceAddress',
  sourcePortRange: {
    fromPort: 123,
    toPort: 123,
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

path_filter_property = ec2.CfnNetworkInsightsPath.PathFilterProperty(
    destination_address="destinationAddress",
    destination_port_range=ec2.CfnNetworkInsightsPath.FilterPortRangeProperty(
        from_port=123,
        to_port=123
    ),
    source_address="sourceAddress",
    source_port_range=ec2.CfnNetworkInsightsPath.FilterPortRangeProperty(
        from_port=123,
        to_port=123
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

PathFilterProperty pathFilterProperty = PathFilterProperty.builder()
        .destinationAddress("destinationAddress")
        .destinationPortRange(FilterPortRangeProperty.builder()
                .fromPort(123)
                .toPort(123)
                .build())
        .sourceAddress("sourceAddress")
        .sourcePortRange(FilterPortRangeProperty.builder()
                .fromPort(123)
                .toPort(123)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 pathFilterProperty = new PathFilterProperty {
    DestinationAddress = "destinationAddress",
    DestinationPortRange = new FilterPortRangeProperty {
        FromPort = 123,
        ToPort = 123
    },
    SourceAddress = "sourceAddress",
    SourcePortRange = new FilterPortRangeProperty {
        FromPort = 123,
        ToPort = 123
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

pathFilterProperty := &PathFilterProperty{
	DestinationAddress: jsii.String("destinationAddress"),
	DestinationPortRange: &FilterPortRangeProperty{
		FromPort: jsii.Number(123),
		ToPort: jsii.Number(123),
	},
	SourceAddress: jsii.String("sourceAddress"),
	SourcePortRange: &FilterPortRangeProperty{
		FromPort: jsii.Number(123),
		ToPort: jsii.Number(123),
	},
}

Properties ​

destinationAddressoptionalstringdestination_addressoptionalstrdestinationAddressoptionalStringDestinationAddressoptionalstringDestinationAddressoptional*string #
The destination IPv4 address.
destinationPortRangeoptionalIResolvable | CfnNetworkInsightsPath.FilterPortRangePropertydestination_port_rangeoptionaltyping.Union[IResolvable, FilterPortRangeProperty]destinationPortRangeoptionalIResolvableDestinationPortRangeoptionalIResolvableDestinationPortRangeoptionalinterface{} #
The destination port range.
sourceAddressoptionalstringsource_addressoptionalstrsourceAddressoptionalStringSourceAddressoptionalstringSourceAddressoptional*string #
The source IPv4 address.
sourcePortRangeoptionalIResolvable | CfnNetworkInsightsPath.FilterPortRangePropertysource_port_rangeoptionaltyping.Union[IResolvable, FilterPortRangeProperty]sourcePortRangeoptionalIResolvableSourcePortRangeoptionalIResolvableSourcePortRangeoptionalinterface{} #
The source port range.