Skip to content

Data Source: awsEc2NetworkInsightsPath

awsEc2NetworkInsightsPath provides details about a specific Network Insights Path.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEc2NetworkInsightsPath.DataAwsEc2NetworkInsightsPath(
  this,
  "example",
  {
    networkInsightsPathId: "${aws_ec2_network_insights_path.example.id}",
  }
);

Argument Reference

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.

  • networkInsightsPathId - (Optional) ID of the Network Insights Path to select.
  • filter - (Optional) Configuration block(s) for filtering. Detailed below.

filter Configuration Block

The following arguments are supported by the filter configuration block:

  • 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.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the selected Network Insights Path.
  • destination - AWS resource that is the destination of the path.
  • destinationIp - IP address of the AWS resource that is the destination of the path.
  • destinationPort - Destination port.
  • protocol - Protocol.
  • source - AWS resource that is the source of the path.
  • sourceIp - IP address of the AWS resource that is the source of the path.
  • tags - Map of tags assigned to the resource.