1. Packages
  2. Aviatrix
  3. API Docs
  4. AviatrixVpc
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.AviatrixVpc

Explore with Pulumi AI

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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
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
Copy
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",
            },
        },
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
        },
    ],
});
Copy
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",
        ),
    ])
Copy
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
Copy
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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
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
Copy
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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
resources:
  # Create an OCI VPC
  ociVpc:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      cidr: 10.0.0.0/24
      cloudType: 16
      region: us-ashburn-1
Copy
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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
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
Copy
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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
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
Copy
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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
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
Copy
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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
});
Copy
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")
Copy
resources:
  # Create an Azure China VNet
  azureChinaVnet:
    type: aviatrix:AviatrixVpc
    properties:
      accountName: devops
      cidr: 12.0.0.0/16
      cloudType: 2048
      region: China North
Copy
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)",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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)",
});
Copy
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)")
Copy
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)
Copy

Create AviatrixVpc Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AviatrixVpc(name: string, args: AviatrixVpcArgs, opts?: CustomResourceOptions);
@overload
def AviatrixVpc(resource_name: str,
                args: AviatrixVpcArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def AviatrixVpc(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                cloud_type: Optional[int] = None,
                account_name: Optional[str] = None,
                enable_private_oob_subnet: Optional[bool] = None,
                cidr: Optional[str] = None,
                aviatrix_transit_vpc: Optional[bool] = None,
                enable_native_gwlb: Optional[bool] = None,
                aviatrix_firenet_vpc: 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)
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.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AviatrixVpcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. AviatrixVpcArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AviatrixVpcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AviatrixVpcArgs
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 aviatrixVpcResource = new Aviatrix.AviatrixVpc("aviatrixVpcResource", new()
{
    CloudType = 0,
    AccountName = "string",
    EnablePrivateOobSubnet = false,
    Cidr = "string",
    AviatrixTransitVpc = false,
    EnableNativeGwlb = false,
    AviatrixFirenetVpc = false,
    Name = "string",
    NumOfSubnetPairs = 0,
    PrivateModeSubnets = false,
    Region = "string",
    ResourceGroup = "string",
    SubnetSize = 0,
    Subnets = new[]
    {
        new Aviatrix.Inputs.AviatrixVpcSubnetArgs
        {
            Cidr = "string",
            Name = "string",
            Region = "string",
            SubnetId = "string",
        },
    },
});
Copy
example, err := aviatrix.NewAviatrixVpc(ctx, "aviatrixVpcResource", &aviatrix.AviatrixVpcArgs{
	CloudType:              pulumi.Int(0),
	AccountName:            pulumi.String("string"),
	EnablePrivateOobSubnet: pulumi.Bool(false),
	Cidr:                   pulumi.String("string"),
	AviatrixTransitVpc:     pulumi.Bool(false),
	EnableNativeGwlb:       pulumi.Bool(false),
	AviatrixFirenetVpc:     pulumi.Bool(false),
	Name:                   pulumi.String("string"),
	NumOfSubnetPairs:       pulumi.Int(0),
	PrivateModeSubnets:     pulumi.Bool(false),
	Region:                 pulumi.String("string"),
	ResourceGroup:          pulumi.String("string"),
	SubnetSize:             pulumi.Int(0),
	Subnets: aviatrix.AviatrixVpcSubnetArray{
		&aviatrix.AviatrixVpcSubnetArgs{
			Cidr:     pulumi.String("string"),
			Name:     pulumi.String("string"),
			Region:   pulumi.String("string"),
			SubnetId: pulumi.String("string"),
		},
	},
})
Copy
var aviatrixVpcResource = new AviatrixVpc("aviatrixVpcResource", AviatrixVpcArgs.builder()
    .cloudType(0)
    .accountName("string")
    .enablePrivateOobSubnet(false)
    .cidr("string")
    .aviatrixTransitVpc(false)
    .enableNativeGwlb(false)
    .aviatrixFirenetVpc(false)
    .name("string")
    .numOfSubnetPairs(0)
    .privateModeSubnets(false)
    .region("string")
    .resourceGroup("string")
    .subnetSize(0)
    .subnets(AviatrixVpcSubnetArgs.builder()
        .cidr("string")
        .name("string")
        .region("string")
        .subnetId("string")
        .build())
    .build());
Copy
aviatrix_vpc_resource = aviatrix.AviatrixVpc("aviatrixVpcResource",
    cloud_type=0,
    account_name="string",
    enable_private_oob_subnet=False,
    cidr="string",
    aviatrix_transit_vpc=False,
    enable_native_gwlb=False,
    aviatrix_firenet_vpc=False,
    name="string",
    num_of_subnet_pairs=0,
    private_mode_subnets=False,
    region="string",
    resource_group="string",
    subnet_size=0,
    subnets=[{
        "cidr": "string",
        "name": "string",
        "region": "string",
        "subnet_id": "string",
    }])
Copy
const aviatrixVpcResource = new aviatrix.AviatrixVpc("aviatrixVpcResource", {
    cloudType: 0,
    accountName: "string",
    enablePrivateOobSubnet: false,
    cidr: "string",
    aviatrixTransitVpc: false,
    enableNativeGwlb: false,
    aviatrixFirenetVpc: false,
    name: "string",
    numOfSubnetPairs: 0,
    privateModeSubnets: false,
    region: "string",
    resourceGroup: "string",
    subnetSize: 0,
    subnets: [{
        cidr: "string",
        name: "string",
        region: "string",
        subnetId: "string",
    }],
});
Copy
type: aviatrix:AviatrixVpc
properties:
    accountName: string
    aviatrixFirenetVpc: false
    aviatrixTransitVpc: false
    cidr: string
    cloudType: 0
    enableNativeGwlb: false
    enablePrivateOobSubnet: false
    name: string
    numOfSubnetPairs: 0
    privateModeSubnets: false
    region: string
    resourceGroup: string
    subnetSize: 0
    subnets:
        - cidr: string
          name: string
          region: string
          subnetId: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AviatrixVpc resource accepts the following input properties:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
This parameter represents the name of a Cloud-Account in Aviatrix controller.
CloudType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Name of this subnet.
NumOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Region of this subnet.
ResourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
Subnets Changes to this property will trigger replacement. List<AviatrixVpcSubnet>
List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
AccountName
This property is required.
Changes to this property will trigger replacement.
string
This parameter represents the name of a Cloud-Account in Aviatrix controller.
CloudType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Name of this subnet.
NumOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Region of this subnet.
ResourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
Subnets Changes to this property will trigger replacement. []AviatrixVpcSubnetArgs
List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
accountName
This property is required.
Changes to this property will trigger replacement.
String
This parameter represents the name of a Cloud-Account in Aviatrix controller.
cloudType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Name of this subnet.
numOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Region of this subnet.
resourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Integer
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. List<AviatrixVpcSubnet>
List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
accountName
This property is required.
Changes to this property will trigger replacement.
string
This parameter represents the name of a Cloud-Account in Aviatrix controller.
cloudType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Name of this subnet.
numOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Region of this subnet.
resourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. number
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. AviatrixVpcSubnet[]
List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
account_name
This property is required.
Changes to this property will trigger replacement.
str
This parameter represents the name of a Cloud-Account in Aviatrix controller.
cloud_type
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Name of this subnet.
num_of_subnet_pairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Region of this subnet.
resource_group Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
This parameter represents the name of a Cloud-Account in Aviatrix controller.
cloudType
This property is required.
Changes to this property will trigger replacement.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Name of this subnet.
numOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Region of this subnet.
resourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Number
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. 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)
resources:  _:    type: aviatrix:AviatrixVpc    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
This parameter represents the name of a Cloud-Account in Aviatrix controller.
AvailabilityDomains List<string>
List of OCI availability domains.
AviatrixFirenetVpc Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
CIDR block.
CloudType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Name of this subnet.
NumOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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<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.
Region Changes to this property will trigger replacement. string
Region of this subnet.
ResourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
Subnets Changes to this property will trigger replacement. List<AviatrixVpcSubnet>
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 Changes to this property will trigger replacement. string
This parameter represents the name of a Cloud-Account in Aviatrix controller.
AvailabilityDomains []string
List of OCI availability domains.
AviatrixFirenetVpc Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
CIDR block.
CloudType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Name of this subnet.
NumOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Region of this subnet.
ResourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
Subnets Changes to this property will trigger replacement. []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 Changes to this property will trigger replacement. String
This parameter represents the name of a Cloud-Account in Aviatrix controller.
availabilityDomains List<String>
List of OCI availability domains.
aviatrixFirenetVpc Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
CIDR block.
cloudType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Name of this subnet.
numOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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<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.
region Changes to this property will trigger replacement. String
Region of this subnet.
resourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Integer
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. List<AviatrixVpcSubnet>
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 Changes to this property will trigger replacement. string
This parameter represents the name of a Cloud-Account in Aviatrix controller.
availabilityDomains string[]
List of OCI availability domains.
aviatrixFirenetVpc Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
CIDR block.
cloudType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
Name of this subnet.
numOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 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.
region Changes to this property will trigger replacement. string
Region of this subnet.
resourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. number
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. AviatrixVpcSubnet[]
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
CIDR block.
cloud_type Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Name of this subnet.
num_of_subnet_pairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
Region of this subnet.
resource_group Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
This parameter represents the name of a Cloud-Account in Aviatrix controller.
availabilityDomains List<String>
List of OCI availability domains.
aviatrixFirenetVpc Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
CIDR block.
cloudType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Name of this subnet.
numOfSubnetPairs Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
Region of this subnet.
resourceGroup Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Number
Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
subnets Changes to this property will trigger replacement. 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
, AviatrixVpcPrivateSubnetArgs

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
, AviatrixVpcPublicSubnetArgs

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
, AviatrixVpcSubnetArgs

Cidr Changes to this property will trigger replacement. string
CIDR block.
Name Changes to this property will trigger replacement. string
Name of this subnet.
Region Changes to this property will trigger replacement. string
Region of this subnet.
SubnetId string
ID of this subnet.
Cidr Changes to this property will trigger replacement. string
CIDR block.
Name Changes to this property will trigger replacement. string
Name of this subnet.
Region Changes to this property will trigger replacement. string
Region of this subnet.
SubnetId string
ID of this subnet.
cidr Changes to this property will trigger replacement. String
CIDR block.
name Changes to this property will trigger replacement. String
Name of this subnet.
region Changes to this property will trigger replacement. String
Region of this subnet.
subnetId String
ID of this subnet.
cidr Changes to this property will trigger replacement. string
CIDR block.
name Changes to this property will trigger replacement. string
Name of this subnet.
region Changes to this property will trigger replacement. string
Region of this subnet.
subnetId string
ID of this subnet.
cidr Changes to this property will trigger replacement. str
CIDR block.
name Changes to this property will trigger replacement. str
Name of this subnet.
region Changes to this property will trigger replacement. str
Region of this subnet.
subnet_id str
ID of this subnet.
cidr Changes to this property will trigger replacement. String
CIDR block.
name Changes to this property will trigger replacement. String
Name of this subnet.
region Changes to this property will trigger replacement. 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
Copy

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.