1. Packages
  2. AWS
  3. API Docs
  4. ec2
  5. getNetworkInsightsPath
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.ec2.getNetworkInsightsPath

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:ec2/getNetworkInsightsPath:getNetworkInsightsPath
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filters List<GetNetworkInsightsPathFilter>
    Configuration block(s) for filtering. Detailed below.
    NetworkInsightsPathId string
    ID of the Network Insights Path to select.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource.
    Filters []GetNetworkInsightsPathFilter
    Configuration block(s) for filtering. Detailed below.
    NetworkInsightsPathId string
    ID of the Network Insights Path to select.
    Tags map[string]string
    Map of tags assigned to the resource.
    filters List<GetNetworkInsightsPathFilter>
    Configuration block(s) for filtering. Detailed below.
    networkInsightsPathId String
    ID of the Network Insights Path to select.
    tags Map<String,String>
    Map of tags assigned to the resource.
    filters GetNetworkInsightsPathFilter[]
    Configuration block(s) for filtering. Detailed below.
    networkInsightsPathId string
    ID of the Network Insights Path to select.
    tags {[key: string]: string}
    Map of tags assigned to the resource.
    filters Sequence[GetNetworkInsightsPathFilter]
    Configuration block(s) for filtering. Detailed below.
    network_insights_path_id str
    ID of the Network Insights Path to select.
    tags Mapping[str, str]
    Map of tags assigned to the resource.
    filters List<Property Map>
    Configuration block(s) for filtering. Detailed below.
    networkInsightsPathId String
    ID of the Network Insights Path to select.
    tags 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.
    NetworkInsightsPathId string
    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.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource.
    Filters List<GetNetworkInsightsPathFilter>
    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.
    NetworkInsightsPathId string
    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.
    Tags map[string]string
    Map of tags assigned to the resource.
    Filters []GetNetworkInsightsPathFilter
    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.
    networkInsightsPathId String
    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.
    tags Map<String,String>
    Map of tags assigned to the resource.
    filters List<GetNetworkInsightsPathFilter>
    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.
    networkInsightsPathId string
    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.
    tags {[key: string]: string}
    Map of tags assigned to the resource.
    filters GetNetworkInsightsPathFilter[]
    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_path_id str
    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.
    tags Mapping[str, str]
    Map of tags assigned to the resource.
    filters Sequence[GetNetworkInsightsPathFilter]
    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.
    networkInsightsPathId String
    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.
    tags 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 DescribeNetworkInsightsPaths API 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 DescribeNetworkInsightsPaths API 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 DescribeNetworkInsightsPaths API 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 DescribeNetworkInsightsPaths API 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 DescribeNetworkInsightsPaths API 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 DescribeNetworkInsightsPaths API 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 aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi