NetworkInsightsAnalysis

class NetworkInsightsAnalysis : KotlinCustomResource

Provides a Network Insights Analysis 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 path = new aws.ec2.NetworkInsightsPath("path", {
source: source.id,
destination: destination.id,
protocol: "tcp",
});
const analysis = new aws.ec2.NetworkInsightsAnalysis("analysis", {networkInsightsPathId: path.id});
import pulumi
import pulumi_aws as aws
path = aws.ec2.NetworkInsightsPath("path",
source=source["id"],
destination=destination["id"],
protocol="tcp")
analysis = aws.ec2.NetworkInsightsAnalysis("analysis", network_insights_path_id=path.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var path = new Aws.Ec2.NetworkInsightsPath("path", new()
{
Source = source.Id,
Destination = destination.Id,
Protocol = "tcp",
});
var analysis = new Aws.Ec2.NetworkInsightsAnalysis("analysis", new()
{
NetworkInsightsPathId = 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 {
path, err := ec2.NewNetworkInsightsPath(ctx, "path", &ec2.NetworkInsightsPathArgs{
Source: pulumi.Any(source.Id),
Destination: pulumi.Any(destination.Id),
Protocol: pulumi.String("tcp"),
})
if err != nil {
return err
}
_, err = ec2.NewNetworkInsightsAnalysis(ctx, "analysis", &ec2.NetworkInsightsAnalysisArgs{
NetworkInsightsPathId: path.ID(),
})
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 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(source.id())
.destination(destination.id())
.protocol("tcp")
.build());
var analysis = new NetworkInsightsAnalysis("analysis", NetworkInsightsAnalysisArgs.builder()
.networkInsightsPathId(path.id())
.build());
}
}
resources:
path:
type: aws:ec2:NetworkInsightsPath
properties:
source: ${source.id}
destination: ${destination.id}
protocol: tcp
analysis:
type: aws:ec2:NetworkInsightsAnalysis
properties:
networkInsightsPathId: ${path.id}

Import

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

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

Properties

Link copied to clipboard

Potential intermediate components of a feasible path. Described below.

Link copied to clipboard
val arn: Output<String>

ARN of the Network Insights Analysis.

Link copied to clipboard

Explanation codes for an unreachable path. See the AWS documentation for details.

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

A list of ARNs for resources the path must traverse.

Link copied to clipboard

The components in the path from source to destination. See the AWS documentation for details.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val pathFound: Output<Boolean>

Set to true if the destination was reachable.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The components in the path from destination to source. See the AWS documentation for details.

Link copied to clipboard
val startDate: Output<String>

The date/time the analysis was started.

Link copied to clipboard
val status: Output<String>

The status of the analysis. succeeded means the analysis was completed, not that a path was found, for that see path_found.

Link copied to clipboard
val statusMessage: Output<String>

A message to provide more context when the status is failed.

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

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 tagsAll: Output<Map<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

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.

Link copied to clipboard
val warningMessage: Output<String>

The warning message.