AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.ec2.getNetworkInsightsPath
Explore with Pulumi AI
aws.ec2.NetworkInsightsPath provides details about a specific Network Insights Path.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.ec2.getNetworkInsightsPath({
    networkInsightsPathId: exampleAwsEc2NetworkInsightsPath.id,
});
import pulumi
import pulumi_aws as aws
example = aws.ec2.get_network_insights_path(network_insights_path_id=example_aws_ec2_network_insights_path["id"])
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.LookupNetworkInsightsPath(ctx, &ec2.LookupNetworkInsightsPathArgs{
			NetworkInsightsPathId: pulumi.StringRef(exampleAwsEc2NetworkInsightsPath.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Ec2.GetNetworkInsightsPath.Invoke(new()
    {
        NetworkInsightsPathId = exampleAwsEc2NetworkInsightsPath.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Ec2Functions;
import com.pulumi.aws.ec2.inputs.GetNetworkInsightsPathArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = Ec2Functions.getNetworkInsightsPath(GetNetworkInsightsPathArgs.builder()
            .networkInsightsPathId(exampleAwsEc2NetworkInsightsPath.id())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:ec2:getNetworkInsightsPath
      arguments:
        networkInsightsPathId: ${exampleAwsEc2NetworkInsightsPath.id}
Using getNetworkInsightsPath
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkInsightsPath(args: GetNetworkInsightsPathArgs, opts?: InvokeOptions): Promise<GetNetworkInsightsPathResult>
function getNetworkInsightsPathOutput(args: GetNetworkInsightsPathOutputArgs, opts?: InvokeOptions): Output<GetNetworkInsightsPathResult>def get_network_insights_path(filters: Optional[Sequence[GetNetworkInsightsPathFilter]] = None,
                              network_insights_path_id: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetNetworkInsightsPathResult
def get_network_insights_path_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetworkInsightsPathFilterArgs]]]] = None,
                              network_insights_path_id: Optional[pulumi.Input[str]] = None,
                              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetNetworkInsightsPathResult]func LookupNetworkInsightsPath(ctx *Context, args *LookupNetworkInsightsPathArgs, opts ...InvokeOption) (*LookupNetworkInsightsPathResult, error)
func LookupNetworkInsightsPathOutput(ctx *Context, args *LookupNetworkInsightsPathOutputArgs, opts ...InvokeOption) LookupNetworkInsightsPathResultOutput> Note: This function is named LookupNetworkInsightsPath in the Go SDK.
public static class GetNetworkInsightsPath 
{
    public static Task<GetNetworkInsightsPathResult> InvokeAsync(GetNetworkInsightsPathArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkInsightsPathResult> Invoke(GetNetworkInsightsPathInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkInsightsPathResult> getNetworkInsightsPath(GetNetworkInsightsPathArgs args, InvokeOptions options)
public static Output<GetNetworkInsightsPathResult> getNetworkInsightsPath(GetNetworkInsightsPathArgs args, InvokeOptions options)
fn::invoke:
  function: aws:ec2/getNetworkInsightsPath:getNetworkInsightsPath
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetNetwork Insights Path Filter> 
- Configuration block(s) for filtering. Detailed below.
- NetworkInsights stringPath Id 
- ID of the Network Insights Path to select.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Filters
[]GetNetwork Insights Path Filter 
- Configuration block(s) for filtering. Detailed below.
- NetworkInsights stringPath Id 
- ID of the Network Insights Path to select.
- map[string]string
- Map of tags assigned to the resource.
- filters
List<GetNetwork Insights Path Filter> 
- Configuration block(s) for filtering. Detailed below.
- networkInsights StringPath Id 
- ID of the Network Insights Path to select.
- Map<String,String>
- Map of tags assigned to the resource.
- filters
GetNetwork Insights Path Filter[] 
- Configuration block(s) for filtering. Detailed below.
- networkInsights stringPath Id 
- ID of the Network Insights Path to select.
- {[key: string]: string}
- Map of tags assigned to the resource.
- filters
Sequence[GetNetwork Insights Path Filter] 
- Configuration block(s) for filtering. Detailed below.
- network_insights_ strpath_ id 
- ID of the Network Insights Path to select.
- Mapping[str, str]
- Map of tags assigned to the resource.
- filters List<Property Map>
- Configuration block(s) for filtering. Detailed below.
- networkInsights StringPath Id 
- ID of the Network Insights Path to select.
- Map<String>
- Map of tags assigned to the resource.
getNetworkInsightsPath Result
The following output properties are available:
- Arn string
- ARN of the selected Network Insights Path.
- Destination string
- AWS resource that is the destination of the path.
- DestinationArn string
- ARN of the destination.
- DestinationIp string
- IP address of the AWS resource that is the destination of the path.
- DestinationPort int
- Destination port.
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkInsights stringPath Id 
- Protocol string
- Protocol.
- Source string
- AWS resource that is the source of the path.
- SourceArn string
- ARN of the source.
- SourceIp string
- IP address of the AWS resource that is the source of the path.
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Filters
List<GetNetwork Insights Path Filter> 
- Arn string
- ARN of the selected Network Insights Path.
- Destination string
- AWS resource that is the destination of the path.
- DestinationArn string
- ARN of the destination.
- DestinationIp string
- IP address of the AWS resource that is the destination of the path.
- DestinationPort int
- Destination port.
- Id string
- The provider-assigned unique ID for this managed resource.
- NetworkInsights stringPath Id 
- Protocol string
- Protocol.
- Source string
- AWS resource that is the source of the path.
- SourceArn string
- ARN of the source.
- SourceIp string
- IP address of the AWS resource that is the source of the path.
- map[string]string
- Map of tags assigned to the resource.
- Filters
[]GetNetwork Insights Path Filter 
- arn String
- ARN of the selected Network Insights Path.
- destination String
- AWS resource that is the destination of the path.
- destinationArn String
- ARN of the destination.
- destinationIp String
- IP address of the AWS resource that is the destination of the path.
- destinationPort Integer
- Destination port.
- id String
- The provider-assigned unique ID for this managed resource.
- networkInsights StringPath Id 
- protocol String
- Protocol.
- source String
- AWS resource that is the source of the path.
- sourceArn String
- ARN of the source.
- sourceIp String
- IP address of the AWS resource that is the source of the path.
- Map<String,String>
- Map of tags assigned to the resource.
- filters
List<GetNetwork Insights Path Filter> 
- arn string
- ARN of the selected Network Insights Path.
- destination string
- AWS resource that is the destination of the path.
- destinationArn string
- ARN of the destination.
- destinationIp string
- IP address of the AWS resource that is the destination of the path.
- destinationPort number
- Destination port.
- id string
- The provider-assigned unique ID for this managed resource.
- networkInsights stringPath Id 
- protocol string
- Protocol.
- source string
- AWS resource that is the source of the path.
- sourceArn string
- ARN of the source.
- sourceIp string
- IP address of the AWS resource that is the source of the path.
- {[key: string]: string}
- Map of tags assigned to the resource.
- filters
GetNetwork Insights Path Filter[] 
- arn str
- ARN of the selected Network Insights Path.
- destination str
- AWS resource that is the destination of the path.
- destination_arn str
- ARN of the destination.
- destination_ip str
- IP address of the AWS resource that is the destination of the path.
- destination_port int
- Destination port.
- id str
- The provider-assigned unique ID for this managed resource.
- network_insights_ strpath_ id 
- protocol str
- Protocol.
- source str
- AWS resource that is the source of the path.
- source_arn str
- ARN of the source.
- source_ip str
- IP address of the AWS resource that is the source of the path.
- Mapping[str, str]
- Map of tags assigned to the resource.
- filters
Sequence[GetNetwork Insights Path Filter] 
- arn String
- ARN of the selected Network Insights Path.
- destination String
- AWS resource that is the destination of the path.
- destinationArn String
- ARN of the destination.
- destinationIp String
- IP address of the AWS resource that is the destination of the path.
- destinationPort Number
- Destination port.
- id String
- The provider-assigned unique ID for this managed resource.
- networkInsights StringPath Id 
- protocol String
- Protocol.
- source String
- AWS resource that is the source of the path.
- sourceArn String
- ARN of the source.
- sourceIp String
- IP address of the AWS resource that is the source of the path.
- Map<String>
- Map of tags assigned to the resource.
- filters List<Property Map>
Supporting Types
GetNetworkInsightsPathFilter    
- Name string
- Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPathsAPI Reference.
- Values List<string>
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- Name string
- Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPathsAPI Reference.
- Values []string
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name String
- Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPathsAPI Reference.
- values List<String>
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name string
- Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPathsAPI Reference.
- values string[]
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name str
- Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPathsAPI Reference.
- values Sequence[str]
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
- name String
- Name of the filter field. Valid values can be found in the EC2 DescribeNetworkInsightsPathsAPI Reference.
- values List<String>
- Set of values that are accepted for the given filter field. Results will be selected if any given value matches.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.