getNetworkInsightsPath

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"])
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 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
})
}
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}

Return

A collection of values returned by getNetworkInsightsPath.

Parameters

argument

A collection of arguments for invoking getNetworkInsightsPath.


suspend fun getNetworkInsightsPath(filters: List<GetNetworkInsightsPathFilter>? = null, networkInsightsPathId: String? = null, tags: Map<String, String>? = null): GetNetworkInsightsPathResult

Return

A collection of values returned by getNetworkInsightsPath.

Parameters

filters

Configuration block(s) for filtering. Detailed below. 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

ID of the Network Insights Path to select.

tags

Map of tags assigned to the resource.

See also


Return

A collection of values returned by getNetworkInsightsPath.

Parameters

argument

Builder for com.pulumi.aws.ec2.kotlin.inputs.GetNetworkInsightsPathPlainArgs.

See also