NetworkInsightsPathArgs

data class NetworkInsightsPathArgs(val destination: Output<String>? = null, val destinationIp: Output<String>? = null, val destinationPort: Output<Int>? = null, val filterAtDestination: Output<NetworkInsightsPathFilterAtDestinationArgs>? = null, val filterAtSource: Output<NetworkInsightsPathFilterAtSourceArgs>? = null, val protocol: Output<String>? = null, val source: Output<String>? = null, val sourceIp: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<NetworkInsightsPathArgs>

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

Import

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

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

Constructors

Link copied to clipboard
constructor(destination: Output<String>? = null, destinationIp: Output<String>? = null, destinationPort: Output<Int>? = null, filterAtDestination: Output<NetworkInsightsPathFilterAtDestinationArgs>? = null, filterAtSource: Output<NetworkInsightsPathFilterAtSourceArgs>? = null, protocol: Output<String>? = null, source: Output<String>? = null, sourceIp: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val destination: Output<String>? = null

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.

Link copied to clipboard
val destinationIp: Output<String>? = null

IP address of the destination resource.

Link copied to clipboard
val destinationPort: Output<Int>? = null

Destination port to analyze access to.

Link copied to clipboard
Link copied to clipboard
val protocol: Output<String>? = null

Protocol to use for analysis. Valid options are tcp or udp. The following arguments are optional:

Link copied to clipboard
val source: Output<String>? = null

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.

Link copied to clipboard
val sourceIp: Output<String>? = null

IP address of the source resource.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): NetworkInsightsPathArgs