aviatrix logo
Aviatrix v0.0.10, Jan 21 23

aviatrix.AviatrixVpc

The aviatrix_vpc resource allows the creation and management of Aviatrix-created VPCs of various cloud types.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an AWS VPC
    var awsVpc = new Aviatrix.AviatrixVpc("awsVpc", new()
    {
        AccountName = "devops",
        AviatrixFirenetVpc = false,
        AviatrixTransitVpc = false,
        Cidr = "10.0.0.0/16",
        CloudType = 1,
        Region = "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.NewAviatrixVpc(ctx, "awsVpc", &aviatrix.AviatrixVpcArgs{
			AccountName:        pulumi.String("devops"),
			AviatrixFirenetVpc: pulumi.Bool(false),
			AviatrixTransitVpc: pulumi.Bool(false),
			Cidr:               pulumi.String("10.0.0.0/16"),
			CloudType:          pulumi.Int(1),
			Region:             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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 awsVpc = new AviatrixVpc("awsVpc", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .aviatrixFirenetVpc(false)
            .aviatrixTransitVpc(false)
            .cidr("10.0.0.0/16")
            .cloudType(1)
            .region("us-west-1")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an AWS VPC
aws_vpc = aviatrix.AviatrixVpc("awsVpc",
    account_name="devops",
    aviatrix_firenet_vpc=False,
    aviatrix_transit_vpc=False,
    cidr="10.0.0.0/16",
    cloud_type=1,
    region="us-west-1")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an AWS VPC
const awsVpc = new aviatrix.AviatrixVpc("aws_vpc", {
    accountName: "devops",
    aviatrixFirenetVpc: false,
    aviatrixTransitVpc: false,
    cidr: "10.0.0.0/16",
    cloudType: 1,
    region: "us-west-1",
});
resources:
  # Create an AWS VPC
  awsVpc:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      aviatrixFirenetVpc: false
      aviatrixTransitVpc: false
      cidr: 10.0.0.0/16
      cloudType: 1
      region: us-west-1
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create a GCP VPC
    var gcpVpc = new Aviatrix.AviatrixVpc("gcpVpc", new()
    {
        AccountName = "devops",
        CloudType = 4,
        Subnets = new[]
        {
            new Aviatrix.Inputs.AviatrixVpcSubnetArgs
            {
                Cidr = "10.10.0.0/24",
                Name = "subnet-1",
                Region = "us-west1",
            },
            new Aviatrix.Inputs.AviatrixVpcSubnetArgs
            {
                Cidr = "10.11.0.0/24",
                Name = "subnet-2",
                Region = "us-west2",
            },
        },
    });

});
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.NewAviatrixVpc(ctx, "gcpVpc", &aviatrix.AviatrixVpcArgs{
			AccountName: pulumi.String("devops"),
			CloudType:   pulumi.Int(4),
			Subnets: AviatrixVpcSubnetArray{
				&AviatrixVpcSubnetArgs{
					Cidr:   pulumi.String("10.10.0.0/24"),
					Name:   pulumi.String("subnet-1"),
					Region: pulumi.String("us-west1"),
				},
				&AviatrixVpcSubnetArgs{
					Cidr:   pulumi.String("10.11.0.0/24"),
					Name:   pulumi.String("subnet-2"),
					Region: pulumi.String("us-west2"),
				},
			},
		})
		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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
import com.pulumi.aviatrix.inputs.AviatrixVpcSubnetArgs;
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 gcpVpc = new AviatrixVpc("gcpVpc", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .cloudType(4)
            .subnets(            
                AviatrixVpcSubnetArgs.builder()
                    .cidr("10.10.0.0/24")
                    .name("subnet-1")
                    .region("us-west1")
                    .build(),
                AviatrixVpcSubnetArgs.builder()
                    .cidr("10.11.0.0/24")
                    .name("subnet-2")
                    .region("us-west2")
                    .build())
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create a GCP VPC
gcp_vpc = aviatrix.AviatrixVpc("gcpVpc",
    account_name="devops",
    cloud_type=4,
    subnets=[
        aviatrix.AviatrixVpcSubnetArgs(
            cidr="10.10.0.0/24",
            name="subnet-1",
            region="us-west1",
        ),
        aviatrix.AviatrixVpcSubnetArgs(
            cidr="10.11.0.0/24",
            name="subnet-2",
            region="us-west2",
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create a GCP VPC
const gcpVpc = new aviatrix.AviatrixVpc("gcp_vpc", {
    accountName: "devops",
    cloudType: 4,
    subnets: [
        {
            cidr: "10.10.0.0/24",
            name: "subnet-1",
            region: "us-west1",
        },
        {
            cidr: "10.11.0.0/24",
            name: "subnet-2",
            region: "us-west2",
        },
    ],
});
resources:
  # Create a GCP VPC
  gcpVpc:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      cloudType: 4
      subnets:
        - cidr: 10.10.0.0/24
          name: subnet-1
          region: us-west1
        - cidr: 10.11.0.0/24
          name: subnet-2
          region: us-west2
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Azure VNet
    var azureVnet = new Aviatrix.AviatrixVpc("azureVnet", new()
    {
        AccountName = "devops",
        AviatrixFirenetVpc = false,
        Cidr = "12.0.0.0/16",
        CloudType = 8,
        Region = "Central US",
    });

});
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.NewAviatrixVpc(ctx, "azureVnet", &aviatrix.AviatrixVpcArgs{
			AccountName:        pulumi.String("devops"),
			AviatrixFirenetVpc: pulumi.Bool(false),
			Cidr:               pulumi.String("12.0.0.0/16"),
			CloudType:          pulumi.Int(8),
			Region:             pulumi.String("Central US"),
		})
		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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 azureVnet = new AviatrixVpc("azureVnet", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .aviatrixFirenetVpc(false)
            .cidr("12.0.0.0/16")
            .cloudType(8)
            .region("Central US")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Azure VNet
azure_vnet = aviatrix.AviatrixVpc("azureVnet",
    account_name="devops",
    aviatrix_firenet_vpc=False,
    cidr="12.0.0.0/16",
    cloud_type=8,
    region="Central US")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Azure VNet
const azureVnet = new aviatrix.AviatrixVpc("azure_vnet", {
    accountName: "devops",
    aviatrixFirenetVpc: false,
    cidr: "12.0.0.0/16",
    cloudType: 8,
    region: "Central US",
});
resources:
  # Create an Azure VNet
  azureVnet:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      aviatrixFirenetVpc: false
      cidr: 12.0.0.0/16
      cloudType: 8
      region: Central US
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an OCI VPC
    var ociVpc = new Aviatrix.AviatrixVpc("ociVpc", new()
    {
        AccountName = "devops",
        Cidr = "10.0.0.0/24",
        CloudType = 16,
        Region = "us-ashburn-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.NewAviatrixVpc(ctx, "ociVpc", &aviatrix.AviatrixVpcArgs{
			AccountName: pulumi.String("devops"),
			Cidr:        pulumi.String("10.0.0.0/24"),
			CloudType:   pulumi.Int(16),
			Region:      pulumi.String("us-ashburn-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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 ociVpc = new AviatrixVpc("ociVpc", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .cidr("10.0.0.0/24")
            .cloudType(16)
            .region("us-ashburn-1")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an OCI VPC
oci_vpc = aviatrix.AviatrixVpc("ociVpc",
    account_name="devops",
    cidr="10.0.0.0/24",
    cloud_type=16,
    region="us-ashburn-1")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an OCI VPC
const ociVpc = new aviatrix.AviatrixVpc("oci_vpc", {
    accountName: "devops",
    cidr: "10.0.0.0/24",
    cloudType: 16,
    region: "us-ashburn-1",
});
resources:
  # Create an OCI VPC
  ociVpc:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      cidr: 10.0.0.0/24
      cloudType: 16
      region: us-ashburn-1
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an AzureGov VNet
    var azureVnet = new Aviatrix.AviatrixVpc("azureVnet", new()
    {
        AccountName = "devops",
        AviatrixFirenetVpc = false,
        Cidr = "12.0.0.0/16",
        CloudType = 32,
        Region = "USGov Arizona",
    });

});
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.NewAviatrixVpc(ctx, "azureVnet", &aviatrix.AviatrixVpcArgs{
			AccountName:        pulumi.String("devops"),
			AviatrixFirenetVpc: pulumi.Bool(false),
			Cidr:               pulumi.String("12.0.0.0/16"),
			CloudType:          pulumi.Int(32),
			Region:             pulumi.String("USGov Arizona"),
		})
		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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 azureVnet = new AviatrixVpc("azureVnet", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .aviatrixFirenetVpc(false)
            .cidr("12.0.0.0/16")
            .cloudType(32)
            .region("USGov Arizona")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an AzureGov VNet
azure_vnet = aviatrix.AviatrixVpc("azureVnet",
    account_name="devops",
    aviatrix_firenet_vpc=False,
    cidr="12.0.0.0/16",
    cloud_type=32,
    region="USGov Arizona")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an AzureGov VNet
const azureVnet = new aviatrix.AviatrixVpc("azure_vnet", {
    accountName: "devops",
    aviatrixFirenetVpc: false,
    cidr: "12.0.0.0/16",
    cloudType: 32,
    region: "USGov Arizona",
});
resources:
  # Create an AzureGov VNet
  azureVnet:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      aviatrixFirenetVpc: false
      cidr: 12.0.0.0/16
      cloudType: 32
      region: USGov Arizona
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an AWSGov VPC
    var awsgovVnet = new Aviatrix.AviatrixVpc("awsgovVnet", new()
    {
        AccountName = "devops",
        AviatrixFirenetVpc = false,
        AviatrixTransitVpc = false,
        Cidr = "12.0.0.0/20",
        CloudType = 256,
        Region = "us-gov-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.NewAviatrixVpc(ctx, "awsgovVnet", &aviatrix.AviatrixVpcArgs{
			AccountName:        pulumi.String("devops"),
			AviatrixFirenetVpc: pulumi.Bool(false),
			AviatrixTransitVpc: pulumi.Bool(false),
			Cidr:               pulumi.String("12.0.0.0/20"),
			CloudType:          pulumi.Int(256),
			Region:             pulumi.String("us-gov-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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 awsgovVnet = new AviatrixVpc("awsgovVnet", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .aviatrixFirenetVpc(false)
            .aviatrixTransitVpc(false)
            .cidr("12.0.0.0/20")
            .cloudType(256)
            .region("us-gov-west-1")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an AWSGov VPC
awsgov_vnet = aviatrix.AviatrixVpc("awsgovVnet",
    account_name="devops",
    aviatrix_firenet_vpc=False,
    aviatrix_transit_vpc=False,
    cidr="12.0.0.0/20",
    cloud_type=256,
    region="us-gov-west-1")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an AWSGov VPC
const awsgovVnet = new aviatrix.AviatrixVpc("awsgov_vnet", {
    accountName: "devops",
    aviatrixFirenetVpc: false,
    aviatrixTransitVpc: false,
    cidr: "12.0.0.0/20",
    cloudType: 256,
    region: "us-gov-west-1",
});
resources:
  # Create an AWSGov VPC
  awsgovVnet:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      aviatrixFirenetVpc: false
      aviatrixTransitVpc: false
      cidr: 12.0.0.0/20
      cloudType: 256
      region: us-gov-west-1
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an AWS China VPC
    var awsChinaVnet = new Aviatrix.AviatrixVpc("awsChinaVnet", new()
    {
        AccountName = "devops",
        AviatrixTransitVpc = false,
        Cidr = "12.0.0.0/20",
        CloudType = 1024,
        Region = "cn-north-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.NewAviatrixVpc(ctx, "awsChinaVnet", &aviatrix.AviatrixVpcArgs{
			AccountName:        pulumi.String("devops"),
			AviatrixTransitVpc: pulumi.Bool(false),
			Cidr:               pulumi.String("12.0.0.0/20"),
			CloudType:          pulumi.Int(1024),
			Region:             pulumi.String("cn-north-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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 awsChinaVnet = new AviatrixVpc("awsChinaVnet", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .aviatrixTransitVpc(false)
            .cidr("12.0.0.0/20")
            .cloudType(1024)
            .region("cn-north-1")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an AWS China VPC
aws_china_vnet = aviatrix.AviatrixVpc("awsChinaVnet",
    account_name="devops",
    aviatrix_transit_vpc=False,
    cidr="12.0.0.0/20",
    cloud_type=1024,
    region="cn-north-1")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an AWS China VPC
const awsChinaVnet = new aviatrix.AviatrixVpc("aws_china_vnet", {
    accountName: "devops",
    aviatrixTransitVpc: false,
    cidr: "12.0.0.0/20",
    cloudType: 1024,
    region: "cn-north-1",
});
resources:
  # Create an AWS China VPC
  awsChinaVnet:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      aviatrixTransitVpc: false
      cidr: 12.0.0.0/20
      cloudType: 1024
      region: cn-north-1
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Azure China VNet
    var azureChinaVnet = new Aviatrix.AviatrixVpc("azureChinaVnet", new()
    {
        AccountName = "devops",
        Cidr = "12.0.0.0/16",
        CloudType = 2048,
        Region = "China North",
    });

});
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.NewAviatrixVpc(ctx, "azureChinaVnet", &aviatrix.AviatrixVpcArgs{
			AccountName: pulumi.String("devops"),
			Cidr:        pulumi.String("12.0.0.0/16"),
			CloudType:   pulumi.Int(2048),
			Region:      pulumi.String("China North"),
		})
		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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 azureChinaVnet = new AviatrixVpc("azureChinaVnet", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .cidr("12.0.0.0/16")
            .cloudType(2048)
            .region("China North")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Azure China VNet
azure_china_vnet = aviatrix.AviatrixVpc("azureChinaVnet",
    account_name="devops",
    cidr="12.0.0.0/16",
    cloud_type=2048,
    region="China North")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Azure China VNet
const azureChinaVnet = new aviatrix.AviatrixVpc("azure_china_vnet", {
    accountName: "devops",
    cidr: "12.0.0.0/16",
    cloudType: 2048,
    region: "China North",
});
resources:
  # Create an Azure China VNet
  azureChinaVnet:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      cidr: 12.0.0.0/16
      cloudType: 2048
      region: China North
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;

return await Deployment.RunAsync(() => 
{
    // Create an Alibaba Cloud VPC
    var aliyunVpc = new Aviatrix.AviatrixVpc("aliyunVpc", new()
    {
        AccountName = "devops",
        Cidr = "10.0.0.0/20",
        CloudType = 8192,
        Region = "acs-us-west-1 (Silicon Valley)",
    });

});
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.NewAviatrixVpc(ctx, "aliyunVpc", &aviatrix.AviatrixVpcArgs{
			AccountName: pulumi.String("devops"),
			Cidr:        pulumi.String("10.0.0.0/20"),
			CloudType:   pulumi.Int(8192),
			Region:      pulumi.String("acs-us-west-1 (Silicon Valley)"),
		})
		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.AviatrixVpc;
import com.pulumi.aviatrix.AviatrixVpcArgs;
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 aliyunVpc = new AviatrixVpc("aliyunVpc", AviatrixVpcArgs.builder()        
            .accountName("devops")
            .cidr("10.0.0.0/20")
            .cloudType(8192)
            .region("acs-us-west-1 (Silicon Valley)")
            .build());

    }
}
import pulumi
import pulumi_aviatrix as aviatrix

# Create an Alibaba Cloud VPC
aliyun_vpc = aviatrix.AviatrixVpc("aliyunVpc",
    account_name="devops",
    cidr="10.0.0.0/20",
    cloud_type=8192,
    region="acs-us-west-1 (Silicon Valley)")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";

// Create an Alibaba Cloud VPC
const aliyunVpc = new aviatrix.AviatrixVpc("aliyun_vpc", {
    accountName: "devops",
    cidr: "10.0.0.0/20",
    cloudType: 8192,
    region: "acs-us-west-1 (Silicon Valley)",
});
resources:
  # Create an Alibaba Cloud VPC
  aliyunVpc:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      cidr: 10.0.0.0/20
      cloudType: 8192
      region: acs-us-west-1 (Silicon Valley)

Create AviatrixVpc Resource

new AviatrixVpc(name: string, args: AviatrixVpcArgs, opts?: CustomResourceOptions);
@overload
def AviatrixVpc(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                account_name: Optional[str] = None,
                aviatrix_firenet_vpc: Optional[bool] = None,
                aviatrix_transit_vpc: Optional[bool] = None,
                cidr: Optional[str] = None,
                cloud_type: Optional[int] = None,
                enable_native_gwlb: Optional[bool] = None,
                enable_private_oob_subnet: Optional[bool] = None,
                name: Optional[str] = None,
                num_of_subnet_pairs: Optional[int] = None,
                private_mode_subnets: Optional[bool] = None,
                region: Optional[str] = None,
                resource_group: Optional[str] = None,
                subnet_size: Optional[int] = None,
                subnets: Optional[Sequence[AviatrixVpcSubnetArgs]] = None)
@overload
def AviatrixVpc(resource_name: str,
                args: AviatrixVpcArgs,
                opts: Optional[ResourceOptions] = None)
func NewAviatrixVpc(ctx *Context, name string, args AviatrixVpcArgs, opts ...ResourceOption) (*AviatrixVpc, error)
public AviatrixVpc(string name, AviatrixVpcArgs args, CustomResourceOptions? opts = null)
public AviatrixVpc(String name, AviatrixVpcArgs args)
public AviatrixVpc(String name, AviatrixVpcArgs args, CustomResourceOptions options)
type: aviatrix:AviatrixVpc
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AviatrixVpcArgs
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 AviatrixVpcArgs
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 AviatrixVpcArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AviatrixVpcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AviatrixVpcArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AviatrixVpc Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AviatrixVpc resource accepts the following input properties:

AccountName string

This parameter represents the name of a Cloud-Account in Aviatrix controller.

CloudType int

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

AviatrixFirenetVpc bool

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

AviatrixTransitVpc bool

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

Cidr string

CIDR block.

EnableNativeGwlb bool

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

EnablePrivateOobSubnet bool

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

Name string

Name of this subnet.

NumOfSubnetPairs int

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

PrivateModeSubnets bool

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

Region string

Region of this subnet.

ResourceGroup string

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

SubnetSize int

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

Subnets List<AviatrixVpcSubnetArgs>

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

AccountName string

This parameter represents the name of a Cloud-Account in Aviatrix controller.

CloudType int

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

AviatrixFirenetVpc bool

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

AviatrixTransitVpc bool

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

Cidr string

CIDR block.

EnableNativeGwlb bool

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

EnablePrivateOobSubnet bool

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

Name string

Name of this subnet.

NumOfSubnetPairs int

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

PrivateModeSubnets bool

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

Region string

Region of this subnet.

ResourceGroup string

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

SubnetSize int

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

Subnets []AviatrixVpcSubnetArgs

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

accountName String

This parameter represents the name of a Cloud-Account in Aviatrix controller.

cloudType Integer

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

aviatrixFirenetVpc Boolean

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrixTransitVpc Boolean

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

cidr String

CIDR block.

enableNativeGwlb Boolean

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enablePrivateOobSubnet Boolean

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

name String

Name of this subnet.

numOfSubnetPairs Integer

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

privateModeSubnets Boolean

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

region String

Region of this subnet.

resourceGroup String

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

subnetSize Integer

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets List<AviatrixVpcSubnetArgs>

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

accountName string

This parameter represents the name of a Cloud-Account in Aviatrix controller.

cloudType number

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

aviatrixFirenetVpc boolean

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrixTransitVpc boolean

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

cidr string

CIDR block.

enableNativeGwlb boolean

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enablePrivateOobSubnet boolean

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

name string

Name of this subnet.

numOfSubnetPairs number

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

privateModeSubnets boolean

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

region string

Region of this subnet.

resourceGroup string

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

subnetSize number

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets AviatrixVpcSubnetArgs[]

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

account_name str

This parameter represents the name of a Cloud-Account in Aviatrix controller.

cloud_type int

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

aviatrix_firenet_vpc bool

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrix_transit_vpc bool

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

cidr str

CIDR block.

enable_native_gwlb bool

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enable_private_oob_subnet bool

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

name str

Name of this subnet.

num_of_subnet_pairs int

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

private_mode_subnets bool

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

region str

Region of this subnet.

resource_group str

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

subnet_size int

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets Sequence[AviatrixVpcSubnetArgs]

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

accountName String

This parameter represents the name of a Cloud-Account in Aviatrix controller.

cloudType Number

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

aviatrixFirenetVpc Boolean

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrixTransitVpc Boolean

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

cidr String

CIDR block.

enableNativeGwlb Boolean

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enablePrivateOobSubnet Boolean

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

name String

Name of this subnet.

numOfSubnetPairs Number

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

privateModeSubnets Boolean

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

region String

Region of this subnet.

resourceGroup String

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

subnetSize Number

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets List<Property Map>

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

Outputs

All input properties are implicitly available as output properties. Additionally, the AviatrixVpc resource produces the following output properties:

AvailabilityDomains List<string>

List of OCI availability domains.

AzureVnetResourceId string

Azure VNet resource ID.

FaultDomains List<string>

List of OCI fault domains.

Id string

The provider-assigned unique ID for this managed resource.

PrivateSubnets List<AviatrixVpcPrivateSubnet>

List of private subnet of the VPC(AWS, Azure) to be created.

PublicSubnets List<AviatrixVpcPublicSubnet>

List of public subnet of the VPC(AWS, Azure) to be created.

RouteTables List<string>

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

VpcId string

ID of the VPC to be created.

AvailabilityDomains []string

List of OCI availability domains.

AzureVnetResourceId string

Azure VNet resource ID.

FaultDomains []string

List of OCI fault domains.

Id string

The provider-assigned unique ID for this managed resource.

PrivateSubnets []AviatrixVpcPrivateSubnet

List of private subnet of the VPC(AWS, Azure) to be created.

PublicSubnets []AviatrixVpcPublicSubnet

List of public subnet of the VPC(AWS, Azure) to be created.

RouteTables []string

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

VpcId string

ID of the VPC to be created.

availabilityDomains List<String>

List of OCI availability domains.

azureVnetResourceId String

Azure VNet resource ID.

faultDomains List<String>

List of OCI fault domains.

id String

The provider-assigned unique ID for this managed resource.

privateSubnets List<AviatrixVpcPrivateSubnet>

List of private subnet of the VPC(AWS, Azure) to be created.

publicSubnets List<AviatrixVpcPublicSubnet>

List of public subnet of the VPC(AWS, Azure) to be created.

routeTables List<String>

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

vpcId String

ID of the VPC to be created.

availabilityDomains string[]

List of OCI availability domains.

azureVnetResourceId string

Azure VNet resource ID.

faultDomains string[]

List of OCI fault domains.

id string

The provider-assigned unique ID for this managed resource.

privateSubnets AviatrixVpcPrivateSubnet[]

List of private subnet of the VPC(AWS, Azure) to be created.

publicSubnets AviatrixVpcPublicSubnet[]

List of public subnet of the VPC(AWS, Azure) to be created.

routeTables string[]

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

vpcId string

ID of the VPC to be created.

availability_domains Sequence[str]

List of OCI availability domains.

azure_vnet_resource_id str

Azure VNet resource ID.

fault_domains Sequence[str]

List of OCI fault domains.

id str

The provider-assigned unique ID for this managed resource.

private_subnets Sequence[AviatrixVpcPrivateSubnet]

List of private subnet of the VPC(AWS, Azure) to be created.

public_subnets Sequence[AviatrixVpcPublicSubnet]

List of public subnet of the VPC(AWS, Azure) to be created.

route_tables Sequence[str]

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

vpc_id str

ID of the VPC to be created.

availabilityDomains List<String>

List of OCI availability domains.

azureVnetResourceId String

Azure VNet resource ID.

faultDomains List<String>

List of OCI fault domains.

id String

The provider-assigned unique ID for this managed resource.

privateSubnets List<Property Map>

List of private subnet of the VPC(AWS, Azure) to be created.

publicSubnets List<Property Map>

List of public subnet of the VPC(AWS, Azure) to be created.

routeTables List<String>

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

vpcId String

ID of the VPC to be created.

Look up Existing AviatrixVpc Resource

Get an existing AviatrixVpc 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?: AviatrixVpcState, opts?: CustomResourceOptions): AviatrixVpc
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_name: Optional[str] = None,
        availability_domains: Optional[Sequence[str]] = None,
        aviatrix_firenet_vpc: Optional[bool] = None,
        aviatrix_transit_vpc: Optional[bool] = None,
        azure_vnet_resource_id: Optional[str] = None,
        cidr: Optional[str] = None,
        cloud_type: Optional[int] = None,
        enable_native_gwlb: Optional[bool] = None,
        enable_private_oob_subnet: Optional[bool] = None,
        fault_domains: Optional[Sequence[str]] = None,
        name: Optional[str] = None,
        num_of_subnet_pairs: Optional[int] = None,
        private_mode_subnets: Optional[bool] = None,
        private_subnets: Optional[Sequence[AviatrixVpcPrivateSubnetArgs]] = None,
        public_subnets: Optional[Sequence[AviatrixVpcPublicSubnetArgs]] = None,
        region: Optional[str] = None,
        resource_group: Optional[str] = None,
        route_tables: Optional[Sequence[str]] = None,
        subnet_size: Optional[int] = None,
        subnets: Optional[Sequence[AviatrixVpcSubnetArgs]] = None,
        vpc_id: Optional[str] = None) -> AviatrixVpc
func GetAviatrixVpc(ctx *Context, name string, id IDInput, state *AviatrixVpcState, opts ...ResourceOption) (*AviatrixVpc, error)
public static AviatrixVpc Get(string name, Input<string> id, AviatrixVpcState? state, CustomResourceOptions? opts = null)
public static AviatrixVpc get(String name, Output<String> id, AviatrixVpcState 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.
The following state arguments are supported:
AccountName string

This parameter represents the name of a Cloud-Account in Aviatrix controller.

AvailabilityDomains List<string>

List of OCI availability domains.

AviatrixFirenetVpc bool

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

AviatrixTransitVpc bool

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

AzureVnetResourceId string

Azure VNet resource ID.

Cidr string

CIDR block.

CloudType int

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

EnableNativeGwlb bool

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

EnablePrivateOobSubnet bool

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

FaultDomains List<string>

List of OCI fault domains.

Name string

Name of this subnet.

NumOfSubnetPairs int

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

PrivateModeSubnets bool

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

PrivateSubnets List<AviatrixVpcPrivateSubnetArgs>

List of private subnet of the VPC(AWS, Azure) to be created.

PublicSubnets List<AviatrixVpcPublicSubnetArgs>

List of public subnet of the VPC(AWS, Azure) to be created.

Region string

Region of this subnet.

ResourceGroup string

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

RouteTables List<string>

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

SubnetSize int

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

Subnets List<AviatrixVpcSubnetArgs>

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

VpcId string

ID of the VPC to be created.

AccountName string

This parameter represents the name of a Cloud-Account in Aviatrix controller.

AvailabilityDomains []string

List of OCI availability domains.

AviatrixFirenetVpc bool

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

AviatrixTransitVpc bool

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

AzureVnetResourceId string

Azure VNet resource ID.

Cidr string

CIDR block.

CloudType int

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

EnableNativeGwlb bool

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

EnablePrivateOobSubnet bool

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

FaultDomains []string

List of OCI fault domains.

Name string

Name of this subnet.

NumOfSubnetPairs int

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

PrivateModeSubnets bool

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

PrivateSubnets []AviatrixVpcPrivateSubnetArgs

List of private subnet of the VPC(AWS, Azure) to be created.

PublicSubnets []AviatrixVpcPublicSubnetArgs

List of public subnet of the VPC(AWS, Azure) to be created.

Region string

Region of this subnet.

ResourceGroup string

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

RouteTables []string

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

SubnetSize int

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

Subnets []AviatrixVpcSubnetArgs

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

VpcId string

ID of the VPC to be created.

accountName String

This parameter represents the name of a Cloud-Account in Aviatrix controller.

availabilityDomains List<String>

List of OCI availability domains.

aviatrixFirenetVpc Boolean

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrixTransitVpc Boolean

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

azureVnetResourceId String

Azure VNet resource ID.

cidr String

CIDR block.

cloudType Integer

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

enableNativeGwlb Boolean

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enablePrivateOobSubnet Boolean

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

faultDomains List<String>

List of OCI fault domains.

name String

Name of this subnet.

numOfSubnetPairs Integer

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

privateModeSubnets Boolean

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

privateSubnets List<AviatrixVpcPrivateSubnetArgs>

List of private subnet of the VPC(AWS, Azure) to be created.

publicSubnets List<AviatrixVpcPublicSubnetArgs>

List of public subnet of the VPC(AWS, Azure) to be created.

region String

Region of this subnet.

resourceGroup String

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

routeTables List<String>

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

subnetSize Integer

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets List<AviatrixVpcSubnetArgs>

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

vpcId String

ID of the VPC to be created.

accountName string

This parameter represents the name of a Cloud-Account in Aviatrix controller.

availabilityDomains string[]

List of OCI availability domains.

aviatrixFirenetVpc boolean

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrixTransitVpc boolean

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

azureVnetResourceId string

Azure VNet resource ID.

cidr string

CIDR block.

cloudType number

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

enableNativeGwlb boolean

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enablePrivateOobSubnet boolean

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

faultDomains string[]

List of OCI fault domains.

name string

Name of this subnet.

numOfSubnetPairs number

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

privateModeSubnets boolean

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

privateSubnets AviatrixVpcPrivateSubnetArgs[]

List of private subnet of the VPC(AWS, Azure) to be created.

publicSubnets AviatrixVpcPublicSubnetArgs[]

List of public subnet of the VPC(AWS, Azure) to be created.

region string

Region of this subnet.

resourceGroup string

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

routeTables string[]

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

subnetSize number

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets AviatrixVpcSubnetArgs[]

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

vpcId string

ID of the VPC to be created.

account_name str

This parameter represents the name of a Cloud-Account in Aviatrix controller.

availability_domains Sequence[str]

List of OCI availability domains.

aviatrix_firenet_vpc bool

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrix_transit_vpc bool

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

azure_vnet_resource_id str

Azure VNet resource ID.

cidr str

CIDR block.

cloud_type int

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

enable_native_gwlb bool

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enable_private_oob_subnet bool

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

fault_domains Sequence[str]

List of OCI fault domains.

name str

Name of this subnet.

num_of_subnet_pairs int

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

private_mode_subnets bool

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

private_subnets Sequence[AviatrixVpcPrivateSubnetArgs]

List of private subnet of the VPC(AWS, Azure) to be created.

public_subnets Sequence[AviatrixVpcPublicSubnetArgs]

List of public subnet of the VPC(AWS, Azure) to be created.

region str

Region of this subnet.

resource_group str

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

route_tables Sequence[str]

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

subnet_size int

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets Sequence[AviatrixVpcSubnetArgs]

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

vpc_id str

ID of the VPC to be created.

accountName String

This parameter represents the name of a Cloud-Account in Aviatrix controller.

availabilityDomains List<String>

List of OCI availability domains.

aviatrixFirenetVpc Boolean

Specify whether it is an Aviatrix FireNet VPC to be used for Aviatrix FireNet and Transit FireNet solutions. Only AWS, Azure, AzureGov, AWSGov, AWSChina and AzureChina are supported. Required to be false for other providers. Valid values: true, false. Default: false.

aviatrixTransitVpc Boolean

Specify whether it is an Aviatrix Transit VPC to be used for Transit Network or TGW solutions. Only AWS, AWSGov, AWSChina, and Alibaba Cloud are supported. Required to be false for other providers. Valid values: true, false. Default: false.

azureVnetResourceId String

Azure VNet resource ID.

cidr String

CIDR block.

cloudType Number

Type of cloud service provider, requires an integer value. Currently only AWS(1), GCP(4), Azure(8), OCI(16), AzureGov(32), AWSGov(256), AWSChina(1024), AzureChina(2048), Alibaba Cloud(8192) are supported.

enableNativeGwlb Boolean

Enable Native AWS Gateway Load Balancer for FireNet Function. Only valid with cloud_type = 1 (AWS). This option is only applicable to TGW-integrated FireNet. Currently, AWS Gateway Load Balancer is only supported in AWS regions: us-west-2, us-east-1, eu-west-1, ap-southeast-2 and sa-east-1. Valid values: true or false. Default value: false. Available as of provider version R2.18+.

enablePrivateOobSubnet Boolean

Switch to enable private oob subnet. Only supported for AWS, AWSGov and AWSChina providers. Valid values: true, false. Default value: false. Available as of provider version R2.18+.

faultDomains List<String>

List of OCI fault domains.

name String

Name of this subnet.

numOfSubnetPairs Number

Number of public subnet and private subnet pair created. Only supported for AWS, Azure provider. Example: 1. Available in provider version R2.17+.

privateModeSubnets Boolean

Switch to only launch private subnets. Only available when Private Mode is enabled on the Controller. Only AWS, Azure, AzureGov and AWSGov are supported. Available in Provider version R2.23+.

privateSubnets List<Property Map>

List of private subnet of the VPC(AWS, Azure) to be created.

publicSubnets List<Property Map>

List of public subnet of the VPC(AWS, Azure) to be created.

region String

Region of this subnet.

resourceGroup String

The name of an existing resource group or a new resource group to be created for the Azure VNet. A new resource group will be created if left blank. Only available for Azure, AzureGov and AzureChina providers. Available as of provider version R2.19+.

routeTables List<String>

List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.

subnetSize Number

Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.

subnets List<Property Map>

List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.

vpcId String

ID of the VPC to be created.

Supporting Types

AviatrixVpcPrivateSubnet

Cidr string

CIDR block.

Name string

Name of this subnet.

SubnetId string

ID of this subnet.

Cidr string

CIDR block.

Name string

Name of this subnet.

SubnetId string

ID of this subnet.

cidr String

CIDR block.

name String

Name of this subnet.

subnetId String

ID of this subnet.

cidr string

CIDR block.

name string

Name of this subnet.

subnetId string

ID of this subnet.

cidr str

CIDR block.

name str

Name of this subnet.

subnet_id str

ID of this subnet.

cidr String

CIDR block.

name String

Name of this subnet.

subnetId String

ID of this subnet.

AviatrixVpcPublicSubnet

Cidr string

CIDR block.

Name string

Name of this subnet.

SubnetId string

ID of this subnet.

Cidr string

CIDR block.

Name string

Name of this subnet.

SubnetId string

ID of this subnet.

cidr String

CIDR block.

name String

Name of this subnet.

subnetId String

ID of this subnet.

cidr string

CIDR block.

name string

Name of this subnet.

subnetId string

ID of this subnet.

cidr str

CIDR block.

name str

Name of this subnet.

subnet_id str

ID of this subnet.

cidr String

CIDR block.

name String

Name of this subnet.

subnetId String

ID of this subnet.

AviatrixVpcSubnet

Cidr string

CIDR block.

Name string

Name of this subnet.

Region string

Region of this subnet.

SubnetId string

ID of this subnet.

Cidr string

CIDR block.

Name string

Name of this subnet.

Region string

Region of this subnet.

SubnetId string

ID of this subnet.

cidr String

CIDR block.

name String

Name of this subnet.

region String

Region of this subnet.

subnetId String

ID of this subnet.

cidr string

CIDR block.

name string

Name of this subnet.

region string

Region of this subnet.

subnetId string

ID of this subnet.

cidr str

CIDR block.

name str

Name of this subnet.

region str

Region of this subnet.

subnet_id str

ID of this subnet.

cidr String

CIDR block.

name String

Name of this subnet.

region String

Region of this subnet.

subnetId String

ID of this subnet.

Import

vpc can be imported using the VPC’s name, e.g.

 $ pulumi import aviatrix:index/aviatrixVpc:AviatrixVpc test name

Package Details

Repository
aviatrix astipkovits/pulumi-aviatrix
License
Apache-2.0
Notes

This Pulumi package is based on the aviatrix Terraform Provider.