NetworkInsightsAnalysisArgs

data class NetworkInsightsAnalysisArgs(val filterInArns: Output<List<String>>? = null, val networkInsightsPathId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val waitForCompletion: Output<Boolean>? = null) : ConvertibleToJava<NetworkInsightsAnalysisArgs>

Provides a Network Insights Analysis resource. Part of the "Reachability Analyzer" service in the AWS VPC console.

Example Usage

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 com.pulumi.aws.ec2.NetworkInsightsAnalysis;
import com.pulumi.aws.ec2.NetworkInsightsAnalysisArgs;
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 path = new NetworkInsightsPath("path", NetworkInsightsPathArgs.builder()
.source(aws_network_interface.source().id())
.destination(aws_network_interface.destination().id())
.protocol("tcp")
.build());
var analysis = new NetworkInsightsAnalysis("analysis", NetworkInsightsAnalysisArgs.builder()
.networkInsightsPathId(path.id())
.build());
}
}

Import

Network Insights Analyses can be imported using the id, e.g.,

$ pulumi import aws:ec2/networkInsightsAnalysis:NetworkInsightsAnalysis test nia-0462085c957f11a55

Constructors

Link copied to clipboard
constructor(filterInArns: Output<List<String>>? = null, networkInsightsPathId: Output<String>? = null, tags: Output<Map<String, String>>? = null, waitForCompletion: Output<Boolean>? = null)

Properties

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

A list of ARNs for resources the path must traverse.

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

ID of the Network Insights Path to run an analysis on. The following arguments are optional:

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.

Link copied to clipboard
val waitForCompletion: Output<Boolean>? = null

If enabled, the resource will wait for the Network Insights Analysis status to change to succeeded or failed. Setting this to false will skip the process. Default: true.

Functions

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