aviatrix.AviatrixTunnel
Explore with Pulumi AI
The aviatrix_tunnel resource allows the creation and management of Aviatrix Encrypted Peering tunnels.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix AWS Tunnel
var testTunnel = new Aviatrix.AviatrixTunnel("testTunnel", new()
{
GwName1 = "avtx-gw1",
GwName2 = "avtx-gw2",
});
});
package main
import (
"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aviatrix.NewAviatrixTunnel(ctx, "testTunnel", &aviatrix.AviatrixTunnelArgs{
GwName1: pulumi.String("avtx-gw1"),
GwName2: pulumi.String("avtx-gw2"),
})
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.aviatrix.AviatrixTunnel;
import com.pulumi.aviatrix.AviatrixTunnelArgs;
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 testTunnel = new AviatrixTunnel("testTunnel", AviatrixTunnelArgs.builder()
.gwName1("avtx-gw1")
.gwName2("avtx-gw2")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix AWS Tunnel
test_tunnel = aviatrix.AviatrixTunnel("testTunnel",
gw_name1="avtx-gw1",
gw_name2="avtx-gw2")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix AWS Tunnel
const testTunnel = new aviatrix.AviatrixTunnel("test_tunnel", {
gwName1: "avtx-gw1",
gwName2: "avtx-gw2",
});
resources:
# Create an Aviatrix AWS Tunnel
testTunnel:
type: aviatrix:AviatrixTunnel
properties:
gwName1: avtx-gw1
gwName2: avtx-gw2
Create AviatrixTunnel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixTunnel(name: string, args: AviatrixTunnelArgs, opts?: CustomResourceOptions);
@overload
def AviatrixTunnel(resource_name: str,
args: AviatrixTunnelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixTunnel(resource_name: str,
opts: Optional[ResourceOptions] = None,
gw_name1: Optional[str] = None,
gw_name2: Optional[str] = None,
enable_ha: Optional[bool] = None)
func NewAviatrixTunnel(ctx *Context, name string, args AviatrixTunnelArgs, opts ...ResourceOption) (*AviatrixTunnel, error)
public AviatrixTunnel(string name, AviatrixTunnelArgs args, CustomResourceOptions? opts = null)
public AviatrixTunnel(String name, AviatrixTunnelArgs args)
public AviatrixTunnel(String name, AviatrixTunnelArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixTunnel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AviatrixTunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AviatrixTunnelArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AviatrixTunnelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixTunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixTunnelArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var aviatrixTunnelResource = new Aviatrix.AviatrixTunnel("aviatrixTunnelResource", new()
{
GwName1 = "string",
GwName2 = "string",
EnableHa = false,
});
example, err := aviatrix.NewAviatrixTunnel(ctx, "aviatrixTunnelResource", &aviatrix.AviatrixTunnelArgs{
GwName1: pulumi.String("string"),
GwName2: pulumi.String("string"),
EnableHa: pulumi.Bool(false),
})
var aviatrixTunnelResource = new AviatrixTunnel("aviatrixTunnelResource", AviatrixTunnelArgs.builder()
.gwName1("string")
.gwName2("string")
.enableHa(false)
.build());
aviatrix_tunnel_resource = aviatrix.AviatrixTunnel("aviatrixTunnelResource",
gw_name1="string",
gw_name2="string",
enable_ha=False)
const aviatrixTunnelResource = new aviatrix.AviatrixTunnel("aviatrixTunnelResource", {
gwName1: "string",
gwName2: "string",
enableHa: false,
});
type: aviatrix:AviatrixTunnel
properties:
enableHa: false
gwName1: string
gwName2: string
AviatrixTunnel Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AviatrixTunnel resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixTunnel resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Hastatus string - (Computed) Status of the HA tunnel.
- Peering
Link string - (Computed) Name of the peering link.
- Peering
State string - (Computed) Status of the tunnel.
- Id string
- The provider-assigned unique ID for this managed resource.
- Peering
Hastatus string - (Computed) Status of the HA tunnel.
- Peering
Link string - (Computed) Name of the peering link.
- Peering
State string - (Computed) Status of the tunnel.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Hastatus String - (Computed) Status of the HA tunnel.
- peering
Link String - (Computed) Name of the peering link.
- peering
State String - (Computed) Status of the tunnel.
- id string
- The provider-assigned unique ID for this managed resource.
- peering
Hastatus string - (Computed) Status of the HA tunnel.
- peering
Link string - (Computed) Name of the peering link.
- peering
State string - (Computed) Status of the tunnel.
- id str
- The provider-assigned unique ID for this managed resource.
- peering_
hastatus str - (Computed) Status of the HA tunnel.
- peering_
link str - (Computed) Name of the peering link.
- peering_
state str - (Computed) Status of the tunnel.
- id String
- The provider-assigned unique ID for this managed resource.
- peering
Hastatus String - (Computed) Status of the HA tunnel.
- peering
Link String - (Computed) Name of the peering link.
- peering
State String - (Computed) Status of the tunnel.
Look up Existing AviatrixTunnel Resource
Get an existing AviatrixTunnel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AviatrixTunnelState, opts?: CustomResourceOptions): AviatrixTunnel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_ha: Optional[bool] = None,
gw_name1: Optional[str] = None,
gw_name2: Optional[str] = None,
peering_hastatus: Optional[str] = None,
peering_link: Optional[str] = None,
peering_state: Optional[str] = None) -> AviatrixTunnel
func GetAviatrixTunnel(ctx *Context, name string, id IDInput, state *AviatrixTunnelState, opts ...ResourceOption) (*AviatrixTunnel, error)
public static AviatrixTunnel Get(string name, Input<string> id, AviatrixTunnelState? state, CustomResourceOptions? opts = null)
public static AviatrixTunnel get(String name, Output<String> id, AviatrixTunnelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Enable
Ha bool - Enable this attribute if peering-HA is enabled on the gateways. Valid values: true, false. Default value: false.
- Gw
Name1 string - The first VPC Container name to make a peer pair.
- Gw
Name2 string - The second VPC Container name to make a peer pair.
- Peering
Hastatus string - (Computed) Status of the HA tunnel.
- Peering
Link string - (Computed) Name of the peering link.
- Peering
State string - (Computed) Status of the tunnel.
- Enable
Ha bool - Enable this attribute if peering-HA is enabled on the gateways. Valid values: true, false. Default value: false.
- Gw
Name1 string - The first VPC Container name to make a peer pair.
- Gw
Name2 string - The second VPC Container name to make a peer pair.
- Peering
Hastatus string - (Computed) Status of the HA tunnel.
- Peering
Link string - (Computed) Name of the peering link.
- Peering
State string - (Computed) Status of the tunnel.
- enable
Ha Boolean - Enable this attribute if peering-HA is enabled on the gateways. Valid values: true, false. Default value: false.
- gw
Name1 String - The first VPC Container name to make a peer pair.
- gw
Name2 String - The second VPC Container name to make a peer pair.
- peering
Hastatus String - (Computed) Status of the HA tunnel.
- peering
Link String - (Computed) Name of the peering link.
- peering
State String - (Computed) Status of the tunnel.
- enable
Ha boolean - Enable this attribute if peering-HA is enabled on the gateways. Valid values: true, false. Default value: false.
- gw
Name1 string - The first VPC Container name to make a peer pair.
- gw
Name2 string - The second VPC Container name to make a peer pair.
- peering
Hastatus string - (Computed) Status of the HA tunnel.
- peering
Link string - (Computed) Name of the peering link.
- peering
State string - (Computed) Status of the tunnel.
- enable_
ha bool - Enable this attribute if peering-HA is enabled on the gateways. Valid values: true, false. Default value: false.
- gw_
name1 str - The first VPC Container name to make a peer pair.
- gw_
name2 str - The second VPC Container name to make a peer pair.
- peering_
hastatus str - (Computed) Status of the HA tunnel.
- peering_
link str - (Computed) Name of the peering link.
- peering_
state str - (Computed) Status of the tunnel.
- enable
Ha Boolean - Enable this attribute if peering-HA is enabled on the gateways. Valid values: true, false. Default value: false.
- gw
Name1 String - The first VPC Container name to make a peer pair.
- gw
Name2 String - The second VPC Container name to make a peer pair.
- peering
Hastatus String - (Computed) Status of the HA tunnel.
- peering
Link String - (Computed) Name of the peering link.
- peering
State String - (Computed) Status of the tunnel.
Import
tunnel can be imported using the gw_name1
and gw_name2
, e.g.
$ pulumi import aviatrix:index/aviatrixTunnel:AviatrixTunnel test gw_name1~gw_name2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aviatrix
Terraform Provider.