aviatrix.AviatrixAzureVngConn
Explore with Pulumi AI
The aviatrix_azure_vng_conn resource allows the creation and management of the connection between Aviatrix Transit Gateway and Azure VNG.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Attach an Azure VNG to an Aviatrix Transit Gateway
var test = new Aviatrix.AviatrixAzureVngConn("test", new()
{
ConnectionName = "connection",
PrimaryGatewayName = "primary-gateway",
});
});
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.NewAviatrixAzureVngConn(ctx, "test", &aviatrix.AviatrixAzureVngConnArgs{
ConnectionName: pulumi.String("connection"),
PrimaryGatewayName: pulumi.String("primary-gateway"),
})
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.AviatrixAzureVngConn;
import com.pulumi.aviatrix.AviatrixAzureVngConnArgs;
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 AviatrixAzureVngConn("test", AviatrixAzureVngConnArgs.builder()
.connectionName("connection")
.primaryGatewayName("primary-gateway")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Attach an Azure VNG to an Aviatrix Transit Gateway
test = aviatrix.AviatrixAzureVngConn("test",
connection_name="connection",
primary_gateway_name="primary-gateway")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Attach an Azure VNG to an Aviatrix Transit Gateway
const test = new aviatrix.AviatrixAzureVngConn("test", {
connectionName: "connection",
primaryGatewayName: "primary-gateway",
});
resources:
# Attach an Azure VNG to an Aviatrix Transit Gateway
test:
type: aviatrix:AviatrixAzureVngConn
properties:
connectionName: connection
primaryGatewayName: primary-gateway
Create AviatrixAzureVngConn Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixAzureVngConn(name: string, args: AviatrixAzureVngConnArgs, opts?: CustomResourceOptions);
@overload
def AviatrixAzureVngConn(resource_name: str,
args: AviatrixAzureVngConnArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixAzureVngConn(resource_name: str,
opts: Optional[ResourceOptions] = None,
connection_name: Optional[str] = None,
primary_gateway_name: Optional[str] = None)
func NewAviatrixAzureVngConn(ctx *Context, name string, args AviatrixAzureVngConnArgs, opts ...ResourceOption) (*AviatrixAzureVngConn, error)
public AviatrixAzureVngConn(string name, AviatrixAzureVngConnArgs args, CustomResourceOptions? opts = null)
public AviatrixAzureVngConn(String name, AviatrixAzureVngConnArgs args)
public AviatrixAzureVngConn(String name, AviatrixAzureVngConnArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixAzureVngConn
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 AviatrixAzureVngConnArgs
- 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 AviatrixAzureVngConnArgs
- 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 AviatrixAzureVngConnArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixAzureVngConnArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixAzureVngConnArgs
- 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 aviatrixAzureVngConnResource = new Aviatrix.AviatrixAzureVngConn("aviatrixAzureVngConnResource", new()
{
ConnectionName = "string",
PrimaryGatewayName = "string",
});
example, err := aviatrix.NewAviatrixAzureVngConn(ctx, "aviatrixAzureVngConnResource", &aviatrix.AviatrixAzureVngConnArgs{
ConnectionName: pulumi.String("string"),
PrimaryGatewayName: pulumi.String("string"),
})
var aviatrixAzureVngConnResource = new AviatrixAzureVngConn("aviatrixAzureVngConnResource", AviatrixAzureVngConnArgs.builder()
.connectionName("string")
.primaryGatewayName("string")
.build());
aviatrix_azure_vng_conn_resource = aviatrix.AviatrixAzureVngConn("aviatrixAzureVngConnResource",
connection_name="string",
primary_gateway_name="string")
const aviatrixAzureVngConnResource = new aviatrix.AviatrixAzureVngConn("aviatrixAzureVngConnResource", {
connectionName: "string",
primaryGatewayName: "string",
});
type: aviatrix:AviatrixAzureVngConn
properties:
connectionName: string
primaryGatewayName: string
AviatrixAzureVngConn 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 AviatrixAzureVngConn resource accepts the following input properties:
- Connection
Name string - Connection name.
- Primary
Gateway stringName - Primary Aviatrix transit gateway name.
- Connection
Name string - Connection name.
- Primary
Gateway stringName - Primary Aviatrix transit gateway name.
- connection
Name String - Connection name.
- primary
Gateway StringName - Primary Aviatrix transit gateway name.
- connection
Name string - Connection name.
- primary
Gateway stringName - Primary Aviatrix transit gateway name.
- connection_
name str - Connection name.
- primary_
gateway_ strname - Primary Aviatrix transit gateway name.
- connection
Name String - Connection name.
- primary
Gateway StringName - Primary Aviatrix transit gateway name.
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixAzureVngConn resource produces the following output properties:
Look up Existing AviatrixAzureVngConn Resource
Get an existing AviatrixAzureVngConn 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?: AviatrixAzureVngConnState, opts?: CustomResourceOptions): AviatrixAzureVngConn
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attached: Optional[bool] = None,
connection_name: Optional[str] = None,
primary_gateway_name: Optional[str] = None,
vng_name: Optional[str] = None,
vpc_id: Optional[str] = None) -> AviatrixAzureVngConn
func GetAviatrixAzureVngConn(ctx *Context, name string, id IDInput, state *AviatrixAzureVngConnState, opts ...ResourceOption) (*AviatrixAzureVngConn, error)
public static AviatrixAzureVngConn Get(string name, Input<string> id, AviatrixAzureVngConnState? state, CustomResourceOptions? opts = null)
public static AviatrixAzureVngConn get(String name, Output<String> id, AviatrixAzureVngConnState 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.
- Attached bool
- The status of the connection.
- Connection
Name string - Connection name.
- Primary
Gateway stringName - Primary Aviatrix transit gateway name.
- Vng
Name string - Name of Azure VNG.
- Vpc
Id string - VPC ID.
- Attached bool
- The status of the connection.
- Connection
Name string - Connection name.
- Primary
Gateway stringName - Primary Aviatrix transit gateway name.
- Vng
Name string - Name of Azure VNG.
- Vpc
Id string - VPC ID.
- attached Boolean
- The status of the connection.
- connection
Name String - Connection name.
- primary
Gateway StringName - Primary Aviatrix transit gateway name.
- vng
Name String - Name of Azure VNG.
- vpc
Id String - VPC ID.
- attached boolean
- The status of the connection.
- connection
Name string - Connection name.
- primary
Gateway stringName - Primary Aviatrix transit gateway name.
- vng
Name string - Name of Azure VNG.
- vpc
Id string - VPC ID.
- attached bool
- The status of the connection.
- connection_
name str - Connection name.
- primary_
gateway_ strname - Primary Aviatrix transit gateway name.
- vng_
name str - Name of Azure VNG.
- vpc_
id str - VPC ID.
- attached Boolean
- The status of the connection.
- connection
Name String - Connection name.
- primary
Gateway StringName - Primary Aviatrix transit gateway name.
- vng
Name String - Name of Azure VNG.
- vpc
Id String - VPC ID.
Import
aviatrix_azure_vng_conn can be imported using the connection_name
, e.g.
$ pulumi import aviatrix:index/aviatrixAzureVngConn:AviatrixAzureVngConn test connection
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.