aws_ec2_network_insights_path
provides details about a specific Network Insights Path.
data "aws_ec2_network_insights_path" "example" {
network_insights_path_id = aws_ec2_network_insights_path.example.id
}
The arguments of this data source act as filters for querying the available Network Insights Paths. The given filters must match exactly one Network Insights Path whose data will be exported as attributes.
network_insights_path_id
- (Optional) ID of the Network Insights Path to select.filter
- (Optional) Configuration block(s) for filtering. Detailed below.The filter
configuration block supports the following arguments:
name
- (Required) Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPaths
API Reference.values
- (Required) Set of values that are accepted for the given filter field. Results will be selected if any given value matches.This data source exports the following attributes in addition to the arguments above:
arn
- ARN of the selected Network Insights Path.destination
- AWS resource that is the destination of the path.destination_arn
- ARN of the destination.destination_ip
- IP address of the AWS resource that is the destination of the path.destination_port
- Destination port.protocol
- Protocol.source
- AWS resource that is the source of the path.source_arn
- ARN of the source.source_ip
- IP address of the AWS resource that is the source of the path.tags
- Map of tags assigned to the resource.