# PathFilterProperty

Describes a set of filters for a path analysis.

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
    }
};
```

Golang:

```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

- `destinationAddress`: string — The destination IPv4 address.

- `destinationPortRange`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsPath.FilterPortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsPath.FilterPortRangeProperty.html) — The destination port range.

- `sourceAddress`: string — The source IPv4 address.

- `sourcePortRange`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnNetworkInsightsPath.FilterPortRangeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnNetworkInsightsPath.FilterPortRangeProperty.html) — The source port range.
