Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.ec2.kotlin
import com.pulumi.aws.ec2.NetworkInsightsPathArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a Network Insights Path resource. Part of the "Reachability Analyzer" service in the AWS VPC console.
* ## Example Usage
*
* ```typescript
* 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",
* });
* ```
* ```python
* import pulumi
* import pulumi_aws as aws
* test = aws.ec2.NetworkInsightsPath("test",
* source=source["id"],
* destination=destination["id"],
* protocol="tcp")
* ```
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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:
* ```sh
* $ pulumi import aws:ec2/networkInsightsPath:NetworkInsightsPath test nip-00edfba169923aefd
* ```
* @property destination 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.
* @property destinationIp IP address of the destination resource.
* @property destinationPort Destination port to analyze access to.
* @property protocol Protocol to use for analysis. Valid options are `tcp` or `udp`.
* The following arguments are optional:
* @property source 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.
* @property sourceIp IP address of the source resource.
* @property tags 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.
*/
public data class NetworkInsightsPathArgs(
public val destination: Output? = null,
public val destinationIp: Output? = null,
public val destinationPort: Output? = null,
public val protocol: Output? = null,
public val source: Output? = null,
public val sourceIp: Output? = null,
public val tags: Output