1. Packages
  2. AWS
  3. API Docs
  4. ec2
  5. NetworkInsightsPath
AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi

aws.ec2.NetworkInsightsPath

Explore with Pulumi AI

aws logo
AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi

    Provides a Network Insights Path resource. Part of the “Reachability Analyzer” service in the AWS VPC console.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = new aws.ec2.NetworkInsightsPath("test", {
        source: source.id,
        destination: destination.id,
        protocol: "tcp",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.ec2.NetworkInsightsPath("test",
        source=source["id"],
        destination=destination["id"],
        protocol="tcp")
    
    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.NewNetworkInsightsPath(ctx, "test", &ec2.NetworkInsightsPathArgs{
    			Source:      pulumi.Any(source.Id),
    			Destination: pulumi.Any(destination.Id),
    			Protocol:    pulumi.String("tcp"),
    		})
    		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 test = new Aws.Ec2.NetworkInsightsPath("test", new()
        {
            Source = source.Id,
            Destination = destination.Id,
            Protocol = "tcp",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.ec2.NetworkInsightsPath;
    import com.pulumi.aws.ec2.NetworkInsightsPathArgs;
    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) {
            var test = new NetworkInsightsPath("test", NetworkInsightsPathArgs.builder()
                .source(source.id())
                .destination(destination.id())
                .protocol("tcp")
                .build());
    
        }
    }
    
    resources:
      test:
        type: aws:ec2:NetworkInsightsPath
        properties:
          source: ${source.id}
          destination: ${destination.id}
          protocol: tcp
    

    Create NetworkInsightsPath Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NetworkInsightsPath(name: string, args: NetworkInsightsPathArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkInsightsPath(resource_name: str,
                            args: NetworkInsightsPathArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def NetworkInsightsPath(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            protocol: Optional[str] = None,
                            source: Optional[str] = None,
                            destination: Optional[str] = None,
                            destination_ip: Optional[str] = None,
                            destination_port: Optional[int] = None,
                            filter_at_destination: Optional[NetworkInsightsPathFilterAtDestinationArgs] = None,
                            filter_at_source: Optional[NetworkInsightsPathFilterAtSourceArgs] = None,
                            source_ip: Optional[str] = None,
                            tags: Optional[Mapping[str, str]] = None)
    func NewNetworkInsightsPath(ctx *Context, name string, args NetworkInsightsPathArgs, opts ...ResourceOption) (*NetworkInsightsPath, error)
    public NetworkInsightsPath(string name, NetworkInsightsPathArgs args, CustomResourceOptions? opts = null)
    public NetworkInsightsPath(String name, NetworkInsightsPathArgs args)
    public NetworkInsightsPath(String name, NetworkInsightsPathArgs args, CustomResourceOptions options)
    
    type: aws:ec2:NetworkInsightsPath
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NetworkInsightsPathArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkInsightsPathArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkInsightsPathArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkInsightsPathArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkInsightsPathArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var networkInsightsPathResource = new Aws.Ec2.NetworkInsightsPath("networkInsightsPathResource", new()
    {
        Protocol = "string",
        Source = "string",
        Destination = "string",
        DestinationIp = "string",
        DestinationPort = 0,
        FilterAtDestination = new Aws.Ec2.Inputs.NetworkInsightsPathFilterAtDestinationArgs
        {
            DestinationAddress = "string",
            DestinationPortRange = new Aws.Ec2.Inputs.NetworkInsightsPathFilterAtDestinationDestinationPortRangeArgs
            {
                FromPort = 0,
                ToPort = 0,
            },
            SourceAddress = "string",
            SourcePortRange = new Aws.Ec2.Inputs.NetworkInsightsPathFilterAtDestinationSourcePortRangeArgs
            {
                FromPort = 0,
                ToPort = 0,
            },
        },
        FilterAtSource = new Aws.Ec2.Inputs.NetworkInsightsPathFilterAtSourceArgs
        {
            DestinationAddress = "string",
            DestinationPortRange = new Aws.Ec2.Inputs.NetworkInsightsPathFilterAtSourceDestinationPortRangeArgs
            {
                FromPort = 0,
                ToPort = 0,
            },
            SourceAddress = "string",
            SourcePortRange = new Aws.Ec2.Inputs.NetworkInsightsPathFilterAtSourceSourcePortRangeArgs
            {
                FromPort = 0,
                ToPort = 0,
            },
        },
        SourceIp = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := ec2.NewNetworkInsightsPath(ctx, "networkInsightsPathResource", &ec2.NetworkInsightsPathArgs{
    	Protocol:        pulumi.String("string"),
    	Source:          pulumi.String("string"),
    	Destination:     pulumi.String("string"),
    	DestinationIp:   pulumi.String("string"),
    	DestinationPort: pulumi.Int(0),
    	FilterAtDestination: &ec2.NetworkInsightsPathFilterAtDestinationArgs{
    		DestinationAddress: pulumi.String("string"),
    		DestinationPortRange: &ec2.NetworkInsightsPathFilterAtDestinationDestinationPortRangeArgs{
    			FromPort: pulumi.Int(0),
    			ToPort:   pulumi.Int(0),
    		},
    		SourceAddress: pulumi.String("string"),
    		SourcePortRange: &ec2.NetworkInsightsPathFilterAtDestinationSourcePortRangeArgs{
    			FromPort: pulumi.Int(0),
    			ToPort:   pulumi.Int(0),
    		},
    	},
    	FilterAtSource: &ec2.NetworkInsightsPathFilterAtSourceArgs{
    		DestinationAddress: pulumi.String("string"),
    		DestinationPortRange: &ec2.NetworkInsightsPathFilterAtSourceDestinationPortRangeArgs{
    			FromPort: pulumi.Int(0),
    			ToPort:   pulumi.Int(0),
    		},
    		SourceAddress: pulumi.String("string"),
    		SourcePortRange: &ec2.NetworkInsightsPathFilterAtSourceSourcePortRangeArgs{
    			FromPort: pulumi.Int(0),
    			ToPort:   pulumi.Int(0),
    		},
    	},
    	SourceIp: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var networkInsightsPathResource = new NetworkInsightsPath("networkInsightsPathResource", NetworkInsightsPathArgs.builder()
        .protocol("string")
        .source("string")
        .destination("string")
        .destinationIp("string")
        .destinationPort(0)
        .filterAtDestination(NetworkInsightsPathFilterAtDestinationArgs.builder()
            .destinationAddress("string")
            .destinationPortRange(NetworkInsightsPathFilterAtDestinationDestinationPortRangeArgs.builder()
                .fromPort(0)
                .toPort(0)
                .build())
            .sourceAddress("string")
            .sourcePortRange(NetworkInsightsPathFilterAtDestinationSourcePortRangeArgs.builder()
                .fromPort(0)
                .toPort(0)
                .build())
            .build())
        .filterAtSource(NetworkInsightsPathFilterAtSourceArgs.builder()
            .destinationAddress("string")
            .destinationPortRange(NetworkInsightsPathFilterAtSourceDestinationPortRangeArgs.builder()
                .fromPort(0)
                .toPort(0)
                .build())
            .sourceAddress("string")
            .sourcePortRange(NetworkInsightsPathFilterAtSourceSourcePortRangeArgs.builder()
                .fromPort(0)
                .toPort(0)
                .build())
            .build())
        .sourceIp("string")
        .tags(Map.of("string", "string"))
        .build());
    
    network_insights_path_resource = aws.ec2.NetworkInsightsPath("networkInsightsPathResource",
        protocol="string",
        source="string",
        destination="string",
        destination_ip="string",
        destination_port=0,
        filter_at_destination={
            "destination_address": "string",
            "destination_port_range": {
                "from_port": 0,
                "to_port": 0,
            },
            "source_address": "string",
            "source_port_range": {
                "from_port": 0,
                "to_port": 0,
            },
        },
        filter_at_source={
            "destination_address": "string",
            "destination_port_range": {
                "from_port": 0,
                "to_port": 0,
            },
            "source_address": "string",
            "source_port_range": {
                "from_port": 0,
                "to_port": 0,
            },
        },
        source_ip="string",
        tags={
            "string": "string",
        })
    
    const networkInsightsPathResource = new aws.ec2.NetworkInsightsPath("networkInsightsPathResource", {
        protocol: "string",
        source: "string",
        destination: "string",
        destinationIp: "string",
        destinationPort: 0,
        filterAtDestination: {
            destinationAddress: "string",
            destinationPortRange: {
                fromPort: 0,
                toPort: 0,
            },
            sourceAddress: "string",
            sourcePortRange: {
                fromPort: 0,
                toPort: 0,
            },
        },
        filterAtSource: {
            destinationAddress: "string",
            destinationPortRange: {
                fromPort: 0,
                toPort: 0,
            },
            sourceAddress: "string",
            sourcePortRange: {
                fromPort: 0,
                toPort: 0,
            },
        },
        sourceIp: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:ec2:NetworkInsightsPath
    properties:
        destination: string
        destinationIp: string
        destinationPort: 0
        filterAtDestination:
            destinationAddress: string
            destinationPortRange:
                fromPort: 0
                toPort: 0
            sourceAddress: string
            sourcePortRange:
                fromPort: 0
                toPort: 0
        filterAtSource:
            destinationAddress: string
            destinationPortRange:
                fromPort: 0
                toPort: 0
            sourceAddress: string
            sourcePortRange:
                fromPort: 0
                toPort: 0
        protocol: string
        source: string
        sourceIp: string
        tags:
            string: string
    

    NetworkInsightsPath Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NetworkInsightsPath resource accepts the following input properties:

    Protocol string

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    Source string
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    Destination string
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    DestinationIp string
    IP address of the destination resource.
    DestinationPort int
    Destination port to analyze access to.
    FilterAtDestination NetworkInsightsPathFilterAtDestination
    FilterAtSource NetworkInsightsPathFilterAtSource
    SourceIp string
    IP address of the source resource.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Protocol string

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    Source string
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    Destination string
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    DestinationIp string
    IP address of the destination resource.
    DestinationPort int
    Destination port to analyze access to.
    FilterAtDestination NetworkInsightsPathFilterAtDestinationArgs
    FilterAtSource NetworkInsightsPathFilterAtSourceArgs
    SourceIp string
    IP address of the source resource.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    protocol String

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source String
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    destination String
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destinationIp String
    IP address of the destination resource.
    destinationPort Integer
    Destination port to analyze access to.
    filterAtDestination NetworkInsightsPathFilterAtDestination
    filterAtSource NetworkInsightsPathFilterAtSource
    sourceIp String
    IP address of the source resource.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    protocol string

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source string
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    destination string
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destinationIp string
    IP address of the destination resource.
    destinationPort number
    Destination port to analyze access to.
    filterAtDestination NetworkInsightsPathFilterAtDestination
    filterAtSource NetworkInsightsPathFilterAtSource
    sourceIp string
    IP address of the source resource.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    protocol str

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source str
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    destination str
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destination_ip str
    IP address of the destination resource.
    destination_port int
    Destination port to analyze access to.
    filter_at_destination NetworkInsightsPathFilterAtDestinationArgs
    filter_at_source NetworkInsightsPathFilterAtSourceArgs
    source_ip str
    IP address of the source resource.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    protocol String

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source String
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    destination String
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destinationIp String
    IP address of the destination resource.
    destinationPort Number
    Destination port to analyze access to.
    filterAtDestination Property Map
    filterAtSource Property Map
    sourceIp String
    IP address of the source resource.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkInsightsPath resource produces the following output properties:

    Arn string
    ARN of the Network Insights Path.
    DestinationArn string
    ARN of the destination.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceArn string
    ARN of the source.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the Network Insights Path.
    DestinationArn string
    ARN of the destination.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceArn string
    ARN of the source.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Network Insights Path.
    destinationArn String
    ARN of the destination.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceArn String
    ARN of the source.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the Network Insights Path.
    destinationArn string
    ARN of the destination.
    id string
    The provider-assigned unique ID for this managed resource.
    sourceArn string
    ARN of the source.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the Network Insights Path.
    destination_arn str
    ARN of the destination.
    id str
    The provider-assigned unique ID for this managed resource.
    source_arn str
    ARN of the source.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Network Insights Path.
    destinationArn String
    ARN of the destination.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceArn String
    ARN of the source.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing NetworkInsightsPath Resource

    Get an existing NetworkInsightsPath resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NetworkInsightsPathState, opts?: CustomResourceOptions): NetworkInsightsPath
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            destination: Optional[str] = None,
            destination_arn: Optional[str] = None,
            destination_ip: Optional[str] = None,
            destination_port: Optional[int] = None,
            filter_at_destination: Optional[NetworkInsightsPathFilterAtDestinationArgs] = None,
            filter_at_source: Optional[NetworkInsightsPathFilterAtSourceArgs] = None,
            protocol: Optional[str] = None,
            source: Optional[str] = None,
            source_arn: Optional[str] = None,
            source_ip: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> NetworkInsightsPath
    func GetNetworkInsightsPath(ctx *Context, name string, id IDInput, state *NetworkInsightsPathState, opts ...ResourceOption) (*NetworkInsightsPath, error)
    public static NetworkInsightsPath Get(string name, Input<string> id, NetworkInsightsPathState? state, CustomResourceOptions? opts = null)
    public static NetworkInsightsPath get(String name, Output<String> id, NetworkInsightsPathState state, CustomResourceOptions options)
    resources:  _:    type: aws:ec2:NetworkInsightsPath    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the Network Insights Path.
    Destination string
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    DestinationArn string
    ARN of the destination.
    DestinationIp string
    IP address of the destination resource.
    DestinationPort int
    Destination port to analyze access to.
    FilterAtDestination NetworkInsightsPathFilterAtDestination
    FilterAtSource NetworkInsightsPathFilterAtSource
    Protocol string

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    Source string
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    SourceArn string
    ARN of the source.
    SourceIp string
    IP address of the source resource.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    ARN of the Network Insights Path.
    Destination string
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    DestinationArn string
    ARN of the destination.
    DestinationIp string
    IP address of the destination resource.
    DestinationPort int
    Destination port to analyze access to.
    FilterAtDestination NetworkInsightsPathFilterAtDestinationArgs
    FilterAtSource NetworkInsightsPathFilterAtSourceArgs
    Protocol string

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    Source string
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    SourceArn string
    ARN of the source.
    SourceIp string
    IP address of the source resource.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Network Insights Path.
    destination String
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destinationArn String
    ARN of the destination.
    destinationIp String
    IP address of the destination resource.
    destinationPort Integer
    Destination port to analyze access to.
    filterAtDestination NetworkInsightsPathFilterAtDestination
    filterAtSource NetworkInsightsPathFilterAtSource
    protocol String

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source String
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    sourceArn String
    ARN of the source.
    sourceIp String
    IP address of the source resource.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    ARN of the Network Insights Path.
    destination string
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destinationArn string
    ARN of the destination.
    destinationIp string
    IP address of the destination resource.
    destinationPort number
    Destination port to analyze access to.
    filterAtDestination NetworkInsightsPathFilterAtDestination
    filterAtSource NetworkInsightsPathFilterAtSource
    protocol string

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source string
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    sourceArn string
    ARN of the source.
    sourceIp string
    IP address of the source resource.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    ARN of the Network Insights Path.
    destination str
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destination_arn str
    ARN of the destination.
    destination_ip str
    IP address of the destination resource.
    destination_port int
    Destination port to analyze access to.
    filter_at_destination NetworkInsightsPathFilterAtDestinationArgs
    filter_at_source NetworkInsightsPathFilterAtSourceArgs
    protocol str

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source str
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    source_arn str
    ARN of the source.
    source_ip str
    IP address of the source resource.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    ARN of the Network Insights Path.
    destination String
    ID or ARN of the resource which is the destination of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN. Either the destination argument or the destination_address argument in the filter_at_source block must be specified.
    destinationArn String
    ARN of the destination.
    destinationIp String
    IP address of the destination resource.
    destinationPort Number
    Destination port to analyze access to.
    filterAtDestination Property Map
    filterAtSource Property Map
    protocol String

    Protocol to use for analysis. Valid options are tcp or udp.

    The following arguments are optional:

    source String
    ID or ARN of the resource which is the source of the path. Can be an Instance, Internet Gateway, Network Interface, Transit Gateway, VPC Endpoint, VPC Peering Connection or VPN Gateway. If the resource is in another account, you must specify an ARN.
    sourceArn String
    ARN of the source.
    sourceIp String
    IP address of the source resource.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    NetworkInsightsPathFilterAtDestination, NetworkInsightsPathFilterAtDestinationArgs

    DestinationAddress string
    The destination IPv4 address.
    DestinationPortRange NetworkInsightsPathFilterAtDestinationDestinationPortRange
    The destination port range. See below for details.
    SourceAddress string
    IP address of the source resource.
    SourcePortRange NetworkInsightsPathFilterAtDestinationSourcePortRange
    The source port range. See below for details.
    DestinationAddress string
    The destination IPv4 address.
    DestinationPortRange NetworkInsightsPathFilterAtDestinationDestinationPortRange
    The destination port range. See below for details.
    SourceAddress string
    IP address of the source resource.
    SourcePortRange NetworkInsightsPathFilterAtDestinationSourcePortRange
    The source port range. See below for details.
    destinationAddress String
    The destination IPv4 address.
    destinationPortRange NetworkInsightsPathFilterAtDestinationDestinationPortRange
    The destination port range. See below for details.
    sourceAddress String
    IP address of the source resource.
    sourcePortRange NetworkInsightsPathFilterAtDestinationSourcePortRange
    The source port range. See below for details.
    destinationAddress string
    The destination IPv4 address.
    destinationPortRange NetworkInsightsPathFilterAtDestinationDestinationPortRange
    The destination port range. See below for details.
    sourceAddress string
    IP address of the source resource.
    sourcePortRange NetworkInsightsPathFilterAtDestinationSourcePortRange
    The source port range. See below for details.
    destination_address str
    The destination IPv4 address.
    destination_port_range NetworkInsightsPathFilterAtDestinationDestinationPortRange
    The destination port range. See below for details.
    source_address str
    IP address of the source resource.
    source_port_range NetworkInsightsPathFilterAtDestinationSourcePortRange
    The source port range. See below for details.
    destinationAddress String
    The destination IPv4 address.
    destinationPortRange Property Map
    The destination port range. See below for details.
    sourceAddress String
    IP address of the source resource.
    sourcePortRange Property Map
    The source port range. See below for details.

    NetworkInsightsPathFilterAtDestinationDestinationPortRange, NetworkInsightsPathFilterAtDestinationDestinationPortRangeArgs

    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    fromPort Integer
    The first port in the range.
    toPort Integer
    The last port in the range.
    fromPort number
    The first port in the range.
    toPort number
    The last port in the range.
    from_port int
    The first port in the range.
    to_port int
    The last port in the range.
    fromPort Number
    The first port in the range.
    toPort Number
    The last port in the range.

    NetworkInsightsPathFilterAtDestinationSourcePortRange, NetworkInsightsPathFilterAtDestinationSourcePortRangeArgs

    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    fromPort Integer
    The first port in the range.
    toPort Integer
    The last port in the range.
    fromPort number
    The first port in the range.
    toPort number
    The last port in the range.
    from_port int
    The first port in the range.
    to_port int
    The last port in the range.
    fromPort Number
    The first port in the range.
    toPort Number
    The last port in the range.

    NetworkInsightsPathFilterAtSource, NetworkInsightsPathFilterAtSourceArgs

    DestinationAddress string
    The destination IPv4 address.
    DestinationPortRange NetworkInsightsPathFilterAtSourceDestinationPortRange
    The destination port range. See below for details.
    SourceAddress string
    IP address of the source resource.
    SourcePortRange NetworkInsightsPathFilterAtSourceSourcePortRange
    The source port range. See below for details.
    DestinationAddress string
    The destination IPv4 address.
    DestinationPortRange NetworkInsightsPathFilterAtSourceDestinationPortRange
    The destination port range. See below for details.
    SourceAddress string
    IP address of the source resource.
    SourcePortRange NetworkInsightsPathFilterAtSourceSourcePortRange
    The source port range. See below for details.
    destinationAddress String
    The destination IPv4 address.
    destinationPortRange NetworkInsightsPathFilterAtSourceDestinationPortRange
    The destination port range. See below for details.
    sourceAddress String
    IP address of the source resource.
    sourcePortRange NetworkInsightsPathFilterAtSourceSourcePortRange
    The source port range. See below for details.
    destinationAddress string
    The destination IPv4 address.
    destinationPortRange NetworkInsightsPathFilterAtSourceDestinationPortRange
    The destination port range. See below for details.
    sourceAddress string
    IP address of the source resource.
    sourcePortRange NetworkInsightsPathFilterAtSourceSourcePortRange
    The source port range. See below for details.
    destination_address str
    The destination IPv4 address.
    destination_port_range NetworkInsightsPathFilterAtSourceDestinationPortRange
    The destination port range. See below for details.
    source_address str
    IP address of the source resource.
    source_port_range NetworkInsightsPathFilterAtSourceSourcePortRange
    The source port range. See below for details.
    destinationAddress String
    The destination IPv4 address.
    destinationPortRange Property Map
    The destination port range. See below for details.
    sourceAddress String
    IP address of the source resource.
    sourcePortRange Property Map
    The source port range. See below for details.

    NetworkInsightsPathFilterAtSourceDestinationPortRange, NetworkInsightsPathFilterAtSourceDestinationPortRangeArgs

    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    fromPort Integer
    The first port in the range.
    toPort Integer
    The last port in the range.
    fromPort number
    The first port in the range.
    toPort number
    The last port in the range.
    from_port int
    The first port in the range.
    to_port int
    The last port in the range.
    fromPort Number
    The first port in the range.
    toPort Number
    The last port in the range.

    NetworkInsightsPathFilterAtSourceSourcePortRange, NetworkInsightsPathFilterAtSourceSourcePortRangeArgs

    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    FromPort int
    The first port in the range.
    ToPort int
    The last port in the range.
    fromPort Integer
    The first port in the range.
    toPort Integer
    The last port in the range.
    fromPort number
    The first port in the range.
    toPort number
    The last port in the range.
    from_port int
    The first port in the range.
    to_port int
    The last port in the range.
    fromPort Number
    The first port in the range.
    toPort Number
    The last port in the range.

    Import

    Using pulumi import, import Network Insights Paths using the id. For example:

    $ pulumi import aws:ec2/networkInsightsPath:NetworkInsightsPath test nip-00edfba169923aefd
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.78.0 published on Thursday, Apr 24, 2025 by Pulumi