getNetworkInsightsPath function
Future<GetNetworkInsightsPathResult>
getNetworkInsightsPath(
- GetNetworkInsightsPathArgs args, {
- InvokeOptions? options,
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/v7/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
})
}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_ec2_getnetworkinsightspath" "example" {
network_insights_path_id = 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.ArrayList;
import java.util.Arrays;
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}
args Arguments passed to this invoke. Arguments for getNetworkInsightsPath.
options Invoke options controlling this call.
Implementation
Future<GetNetworkInsightsPathResult> getNetworkInsightsPath(
GetNetworkInsightsPathArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'aws:ec2/getNetworkInsightsPath:getNetworkInsightsPath',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetNetworkInsightsPathResult.fromMap(result);
}