aviatrix.AviatrixArmPeer
Explore with Pulumi AI
The aviatrix_arm_peer resource allows the creation and management of Aviatrix ARM peerings.
!> WARNING: The aviatrix.AviatrixArmPeer
resource is deprecated as of Release 2.12. It is currently kept for backward-compatibility and will be removed in the future. Please use the Azure peer resource instead. If this is already in the state, please remove it from the state file and import as aviatrix.AviatrixAzurePeer
.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
// Create an Aviatrix ARM Peering
var testArmpeer = new Aviatrix.AviatrixArmPeer("testArmpeer", new()
{
AccountName1 = "test1-account",
AccountName2 = "test2-account",
VnetNameResourceGroup1 = "vpc-abcd1234",
VnetNameResourceGroup2 = "vpc-rdef3333",
VnetReg1 = "us-east-1",
VnetReg2 = "us-west-1",
});
});
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.NewAviatrixArmPeer(ctx, "testArmpeer", &aviatrix.AviatrixArmPeerArgs{
AccountName1: pulumi.String("test1-account"),
AccountName2: pulumi.String("test2-account"),
VnetNameResourceGroup1: pulumi.String("vpc-abcd1234"),
VnetNameResourceGroup2: pulumi.String("vpc-rdef3333"),
VnetReg1: pulumi.String("us-east-1"),
VnetReg2: pulumi.String("us-west-1"),
})
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.AviatrixArmPeer;
import com.pulumi.aviatrix.AviatrixArmPeerArgs;
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 testArmpeer = new AviatrixArmPeer("testArmpeer", AviatrixArmPeerArgs.builder()
.accountName1("test1-account")
.accountName2("test2-account")
.vnetNameResourceGroup1("vpc-abcd1234")
.vnetNameResourceGroup2("vpc-rdef3333")
.vnetReg1("us-east-1")
.vnetReg2("us-west-1")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
# Create an Aviatrix ARM Peering
test_armpeer = aviatrix.AviatrixArmPeer("testArmpeer",
account_name1="test1-account",
account_name2="test2-account",
vnet_name_resource_group1="vpc-abcd1234",
vnet_name_resource_group2="vpc-rdef3333",
vnet_reg1="us-east-1",
vnet_reg2="us-west-1")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Create an Aviatrix ARM Peering
const testArmpeer = new aviatrix.AviatrixArmPeer("test_armpeer", {
accountName1: "test1-account",
accountName2: "test2-account",
vnetNameResourceGroup1: "vpc-abcd1234",
vnetNameResourceGroup2: "vpc-rdef3333",
vnetReg1: "us-east-1",
vnetReg2: "us-west-1",
});
resources:
# Create an Aviatrix ARM Peering
testArmpeer:
type: aviatrix:AviatrixArmPeer
properties:
accountName1: test1-account
accountName2: test2-account
vnetNameResourceGroup1: vpc-abcd1234
vnetNameResourceGroup2: vpc-rdef3333
vnetReg1: us-east-1
vnetReg2: us-west-1
Create AviatrixArmPeer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AviatrixArmPeer(name: string, args: AviatrixArmPeerArgs, opts?: CustomResourceOptions);
@overload
def AviatrixArmPeer(resource_name: str,
args: AviatrixArmPeerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AviatrixArmPeer(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name1: Optional[str] = None,
account_name2: Optional[str] = None,
vnet_name_resource_group1: Optional[str] = None,
vnet_name_resource_group2: Optional[str] = None,
vnet_reg1: Optional[str] = None,
vnet_reg2: Optional[str] = None)
func NewAviatrixArmPeer(ctx *Context, name string, args AviatrixArmPeerArgs, opts ...ResourceOption) (*AviatrixArmPeer, error)
public AviatrixArmPeer(string name, AviatrixArmPeerArgs args, CustomResourceOptions? opts = null)
public AviatrixArmPeer(String name, AviatrixArmPeerArgs args)
public AviatrixArmPeer(String name, AviatrixArmPeerArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixArmPeer
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 AviatrixArmPeerArgs
- 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 AviatrixArmPeerArgs
- 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 AviatrixArmPeerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AviatrixArmPeerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AviatrixArmPeerArgs
- 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 aviatrixArmPeerResource = new Aviatrix.AviatrixArmPeer("aviatrixArmPeerResource", new()
{
AccountName1 = "string",
AccountName2 = "string",
VnetNameResourceGroup1 = "string",
VnetNameResourceGroup2 = "string",
VnetReg1 = "string",
VnetReg2 = "string",
});
example, err := aviatrix.NewAviatrixArmPeer(ctx, "aviatrixArmPeerResource", &aviatrix.AviatrixArmPeerArgs{
AccountName1: pulumi.String("string"),
AccountName2: pulumi.String("string"),
VnetNameResourceGroup1: pulumi.String("string"),
VnetNameResourceGroup2: pulumi.String("string"),
VnetReg1: pulumi.String("string"),
VnetReg2: pulumi.String("string"),
})
var aviatrixArmPeerResource = new AviatrixArmPeer("aviatrixArmPeerResource", AviatrixArmPeerArgs.builder()
.accountName1("string")
.accountName2("string")
.vnetNameResourceGroup1("string")
.vnetNameResourceGroup2("string")
.vnetReg1("string")
.vnetReg2("string")
.build());
aviatrix_arm_peer_resource = aviatrix.AviatrixArmPeer("aviatrixArmPeerResource",
account_name1="string",
account_name2="string",
vnet_name_resource_group1="string",
vnet_name_resource_group2="string",
vnet_reg1="string",
vnet_reg2="string")
const aviatrixArmPeerResource = new aviatrix.AviatrixArmPeer("aviatrixArmPeerResource", {
accountName1: "string",
accountName2: "string",
vnetNameResourceGroup1: "string",
vnetNameResourceGroup2: "string",
vnetReg1: "string",
vnetReg2: "string",
});
type: aviatrix:AviatrixArmPeer
properties:
accountName1: string
accountName2: string
vnetNameResourceGroup1: string
vnetNameResourceGroup2: string
vnetReg1: string
vnetReg2: string
AviatrixArmPeer 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 AviatrixArmPeer resource accepts the following input properties:
- Account
Name1 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Account
Name2 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Vnet
Name stringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Name stringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Reg1 string - Region of Azure cloud. Example: "East US 2".
- Vnet
Reg2 string - Region of Azure cloud. Example: "East US 2".
- Account
Name1 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Account
Name2 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Vnet
Name stringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Name stringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Reg1 string - Region of Azure cloud. Example: "East US 2".
- Vnet
Reg2 string - Region of Azure cloud. Example: "East US 2".
- account
Name1 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account
Name2 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet
Name StringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Name StringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Reg1 String - Region of Azure cloud. Example: "East US 2".
- vnet
Reg2 String - Region of Azure cloud. Example: "East US 2".
- account
Name1 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account
Name2 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet
Name stringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Name stringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Reg1 string - Region of Azure cloud. Example: "East US 2".
- vnet
Reg2 string - Region of Azure cloud. Example: "East US 2".
- account_
name1 str - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account_
name2 str - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet_
name_ strresource_ group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet_
name_ strresource_ group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet_
reg1 str - Region of Azure cloud. Example: "East US 2".
- vnet_
reg2 str - Region of Azure cloud. Example: "East US 2".
- account
Name1 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account
Name2 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet
Name StringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Name StringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Reg1 String - Region of Azure cloud. Example: "East US 2".
- vnet
Reg2 String - Region of Azure cloud. Example: "East US 2".
Outputs
All input properties are implicitly available as output properties. Additionally, the AviatrixArmPeer resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Vnet
Cidr1s List<string> - List of VNet CIDR of vnet_name_resource_group1.
- Vnet
Cidr2s List<string> - List of VNet CIDR of vnet_name_resource_group2.
- Id string
- The provider-assigned unique ID for this managed resource.
- Vnet
Cidr1s []string - List of VNet CIDR of vnet_name_resource_group1.
- Vnet
Cidr2s []string - List of VNet CIDR of vnet_name_resource_group2.
- id String
- The provider-assigned unique ID for this managed resource.
- vnet
Cidr1s List<String> - List of VNet CIDR of vnet_name_resource_group1.
- vnet
Cidr2s List<String> - List of VNet CIDR of vnet_name_resource_group2.
- id string
- The provider-assigned unique ID for this managed resource.
- vnet
Cidr1s string[] - List of VNet CIDR of vnet_name_resource_group1.
- vnet
Cidr2s string[] - List of VNet CIDR of vnet_name_resource_group2.
- id str
- The provider-assigned unique ID for this managed resource.
- vnet_
cidr1s Sequence[str] - List of VNet CIDR of vnet_name_resource_group1.
- vnet_
cidr2s Sequence[str] - List of VNet CIDR of vnet_name_resource_group2.
- id String
- The provider-assigned unique ID for this managed resource.
- vnet
Cidr1s List<String> - List of VNet CIDR of vnet_name_resource_group1.
- vnet
Cidr2s List<String> - List of VNet CIDR of vnet_name_resource_group2.
Look up Existing AviatrixArmPeer Resource
Get an existing AviatrixArmPeer 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?: AviatrixArmPeerState, opts?: CustomResourceOptions): AviatrixArmPeer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_name1: Optional[str] = None,
account_name2: Optional[str] = None,
vnet_cidr1s: Optional[Sequence[str]] = None,
vnet_cidr2s: Optional[Sequence[str]] = None,
vnet_name_resource_group1: Optional[str] = None,
vnet_name_resource_group2: Optional[str] = None,
vnet_reg1: Optional[str] = None,
vnet_reg2: Optional[str] = None) -> AviatrixArmPeer
func GetAviatrixArmPeer(ctx *Context, name string, id IDInput, state *AviatrixArmPeerState, opts ...ResourceOption) (*AviatrixArmPeer, error)
public static AviatrixArmPeer Get(string name, Input<string> id, AviatrixArmPeerState? state, CustomResourceOptions? opts = null)
public static AviatrixArmPeer get(String name, Output<String> id, AviatrixArmPeerState 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.
- Account
Name1 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Account
Name2 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Vnet
Cidr1s List<string> - List of VNet CIDR of vnet_name_resource_group1.
- Vnet
Cidr2s List<string> - List of VNet CIDR of vnet_name_resource_group2.
- Vnet
Name stringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Name stringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Reg1 string - Region of Azure cloud. Example: "East US 2".
- Vnet
Reg2 string - Region of Azure cloud. Example: "East US 2".
- Account
Name1 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Account
Name2 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- Vnet
Cidr1s []string - List of VNet CIDR of vnet_name_resource_group1.
- Vnet
Cidr2s []string - List of VNet CIDR of vnet_name_resource_group2.
- Vnet
Name stringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Name stringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- Vnet
Reg1 string - Region of Azure cloud. Example: "East US 2".
- Vnet
Reg2 string - Region of Azure cloud. Example: "East US 2".
- account
Name1 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account
Name2 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet
Cidr1s List<String> - List of VNet CIDR of vnet_name_resource_group1.
- vnet
Cidr2s List<String> - List of VNet CIDR of vnet_name_resource_group2.
- vnet
Name StringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Name StringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Reg1 String - Region of Azure cloud. Example: "East US 2".
- vnet
Reg2 String - Region of Azure cloud. Example: "East US 2".
- account
Name1 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account
Name2 string - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet
Cidr1s string[] - List of VNet CIDR of vnet_name_resource_group1.
- vnet
Cidr2s string[] - List of VNet CIDR of vnet_name_resource_group2.
- vnet
Name stringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Name stringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Reg1 string - Region of Azure cloud. Example: "East US 2".
- vnet
Reg2 string - Region of Azure cloud. Example: "East US 2".
- account_
name1 str - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account_
name2 str - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet_
cidr1s Sequence[str] - List of VNet CIDR of vnet_name_resource_group1.
- vnet_
cidr2s Sequence[str] - List of VNet CIDR of vnet_name_resource_group2.
- vnet_
name_ strresource_ group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet_
name_ strresource_ group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet_
reg1 str - Region of Azure cloud. Example: "East US 2".
- vnet_
reg2 str - Region of Azure cloud. Example: "East US 2".
- account
Name1 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- account
Name2 String - This parameter represents the name of an Azure Cloud-Account in Aviatrix controller.
- vnet
Cidr1s List<String> - List of VNet CIDR of vnet_name_resource_group1.
- vnet
Cidr2s List<String> - List of VNet CIDR of vnet_name_resource_group2.
- vnet
Name StringResource Group1 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Name StringResource Group2 - VNet-Name of Azure cloud. Example: "VNet_Name:Resource_Group_Name".
- vnet
Reg1 String - Region of Azure cloud. Example: "East US 2".
- vnet
Reg2 String - Region of Azure cloud. Example: "East US 2".
Import
arm_peer can be imported using the vnet_name_resource_group1
and vnet_name_resource_group2
, e.g.
$ pulumi import aviatrix:index/aviatrixArmPeer:AviatrixArmPeer test vnet_name_resource_group1~vnet_name_resource_group2
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.