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",
});
});
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
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 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.
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",
},
},
});
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"),
},
},
})
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());
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=[aviatrix.AviatrixVpcSubnetArgs(
cidr="string",
name="string",
region="string",
subnet_id="string",
)])
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",
}],
});
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
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:
- Account
Name string - 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 boolVpc - 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 boolVpc - 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.
- Enable
Native boolGwlb - 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 boolOob Subnet - 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.
- Num
Of intSubnet Pairs - 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 boolSubnets - 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.
- Resource
Group 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+.
- Subnet
Size int - Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
- Subnets
List<Aviatrix
Vpc Subnet> - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- Account
Name string - 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 boolVpc - 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 boolVpc - 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.
- Enable
Native boolGwlb - 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 boolOob Subnet - 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.
- Num
Of intSubnet Pairs - 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 boolSubnets - 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.
- Resource
Group 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+.
- Subnet
Size int - Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
- Subnets
[]Aviatrix
Vpc Subnet Args - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- account
Name String - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- cloud
Type 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.
- aviatrix
Firenet BooleanVpc - 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 BooleanVpc - 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.
- enable
Native BooleanGwlb - 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 BooleanOob Subnet - 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.
- num
Of IntegerSubnet Pairs - 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 BooleanSubnets - 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.
- resource
Group 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+.
- subnet
Size Integer - Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
- subnets
List<Aviatrix
Vpc Subnet> - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- account
Name string - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- cloud
Type 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.
- aviatrix
Firenet booleanVpc - 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 booleanVpc - 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.
- enable
Native booleanGwlb - 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 booleanOob Subnet - 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.
- num
Of numberSubnet Pairs - 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 booleanSubnets - 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.
- resource
Group 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+.
- subnet
Size number - Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
- subnets
Aviatrix
Vpc Subnet[] - 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_ boolvpc - 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_ boolvpc - 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_ boolgwlb - 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_ booloob_ subnet - 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_ intsubnet_ pairs - 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_ boolsubnets - 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[Aviatrix
Vpc Subnet Args] - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- account
Name String - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- cloud
Type 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.
- aviatrix
Firenet BooleanVpc - 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 BooleanVpc - 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.
- enable
Native BooleanGwlb - 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 BooleanOob Subnet - 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.
- num
Of NumberSubnet Pairs - 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 BooleanSubnets - 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.
- resource
Group 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+.
- subnet
Size 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:
- Availability
Domains List<string> - List of OCI availability domains.
- Azure
Vnet stringResource Id - Azure VNet resource ID.
- Fault
Domains List<string> - List of OCI fault domains.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Subnets List<AviatrixVpc Private Subnet> - List of private subnet of the VPC(AWS, Azure) to be created.
- Public
Subnets List<AviatrixVpc Public Subnet> - List of public subnet of the VPC(AWS, Azure) to be created.
- Route
Tables List<string> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- Vpc
Id string - ID of the VPC to be created.
- Availability
Domains []string - List of OCI availability domains.
- Azure
Vnet stringResource Id - Azure VNet resource ID.
- Fault
Domains []string - List of OCI fault domains.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Subnets []AviatrixVpc Private Subnet - List of private subnet of the VPC(AWS, Azure) to be created.
- Public
Subnets []AviatrixVpc Public Subnet - List of public subnet of the VPC(AWS, Azure) to be created.
- Route
Tables []string - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- Vpc
Id string - ID of the VPC to be created.
- availability
Domains List<String> - List of OCI availability domains.
- azure
Vnet StringResource Id - Azure VNet resource ID.
- fault
Domains List<String> - List of OCI fault domains.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Subnets List<AviatrixVpc Private Subnet> - List of private subnet of the VPC(AWS, Azure) to be created.
- public
Subnets List<AviatrixVpc Public Subnet> - List of public subnet of the VPC(AWS, Azure) to be created.
- route
Tables List<String> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- vpc
Id String - ID of the VPC to be created.
- availability
Domains string[] - List of OCI availability domains.
- azure
Vnet stringResource Id - Azure VNet resource ID.
- fault
Domains string[] - List of OCI fault domains.
- id string
- The provider-assigned unique ID for this managed resource.
- private
Subnets AviatrixVpc Private Subnet[] - List of private subnet of the VPC(AWS, Azure) to be created.
- public
Subnets AviatrixVpc Public Subnet[] - List of public subnet of the VPC(AWS, Azure) to be created.
- route
Tables string[] - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- vpc
Id string - ID of the VPC to be created.
- availability_
domains Sequence[str] - List of OCI availability domains.
- azure_
vnet_ strresource_ id - 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[AviatrixVpc Private Subnet] - List of private subnet of the VPC(AWS, Azure) to be created.
- public_
subnets Sequence[AviatrixVpc Public Subnet] - 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.
- availability
Domains List<String> - List of OCI availability domains.
- azure
Vnet StringResource Id - Azure VNet resource ID.
- fault
Domains List<String> - List of OCI fault domains.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Subnets List<Property Map> - List of private subnet of the VPC(AWS, Azure) to be created.
- public
Subnets List<Property Map> - List of public subnet of the VPC(AWS, Azure) to be created.
- route
Tables List<String> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- vpc
Id 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.
- Account
Name string - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- Availability
Domains List<string> - List of OCI availability domains.
- Aviatrix
Firenet boolVpc - 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 boolVpc - 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 stringResource Id - Azure VNet resource ID.
- Cidr string
- 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 boolGwlb - 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 boolOob Subnet - 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 List<string> - List of OCI fault domains.
- Name string
- Name of this subnet.
- Num
Of intSubnet Pairs - 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 boolSubnets - 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 List<AviatrixVpc Private Subnet> - List of private subnet of the VPC(AWS, Azure) to be created.
- Public
Subnets List<AviatrixVpc Public Subnet> - List of public subnet of the VPC(AWS, Azure) to be created.
- Region string
- Region of this subnet.
- Resource
Group 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+.
- Route
Tables List<string> - 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
List<Aviatrix
Vpc Subnet> - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- Vpc
Id string - ID of the VPC to be created.
- Account
Name string - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- Availability
Domains []string - List of OCI availability domains.
- Aviatrix
Firenet boolVpc - 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 boolVpc - 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 stringResource Id - Azure VNet resource ID.
- Cidr string
- 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 boolGwlb - 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 boolOob Subnet - 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 []string - List of OCI fault domains.
- Name string
- Name of this subnet.
- Num
Of intSubnet Pairs - 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 boolSubnets - 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 []AviatrixVpc Private Subnet Args - List of private subnet of the VPC(AWS, Azure) to be created.
- Public
Subnets []AviatrixVpc Public Subnet Args - List of public subnet of the VPC(AWS, Azure) to be created.
- Region string
- Region of this subnet.
- Resource
Group 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+.
- Route
Tables []string - 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
[]Aviatrix
Vpc Subnet Args - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- Vpc
Id string - ID of the VPC to be created.
- account
Name String - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- availability
Domains List<String> - List of OCI availability domains.
- aviatrix
Firenet BooleanVpc - 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 BooleanVpc - 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 StringResource Id - Azure VNet resource ID.
- cidr String
- CIDR block.
- cloud
Type 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.
- enable
Native BooleanGwlb - 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 BooleanOob Subnet - 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 List<String> - List of OCI fault domains.
- name String
- Name of this subnet.
- num
Of IntegerSubnet Pairs - 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 BooleanSubnets - 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 List<AviatrixVpc Private Subnet> - List of private subnet of the VPC(AWS, Azure) to be created.
- public
Subnets List<AviatrixVpc Public Subnet> - List of public subnet of the VPC(AWS, Azure) to be created.
- region String
- Region of this subnet.
- resource
Group 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+.
- route
Tables List<String> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- subnet
Size Integer - Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
- subnets
List<Aviatrix
Vpc Subnet> - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- vpc
Id String - ID of the VPC to be created.
- account
Name string - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- availability
Domains string[] - List of OCI availability domains.
- aviatrix
Firenet booleanVpc - 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 booleanVpc - 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 stringResource Id - Azure VNet resource ID.
- cidr string
- CIDR block.
- cloud
Type 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.
- enable
Native booleanGwlb - 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 booleanOob Subnet - 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 string[] - List of OCI fault domains.
- name string
- Name of this subnet.
- num
Of numberSubnet Pairs - 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 booleanSubnets - 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 AviatrixVpc Private Subnet[] - List of private subnet of the VPC(AWS, Azure) to be created.
- public
Subnets AviatrixVpc Public Subnet[] - List of public subnet of the VPC(AWS, Azure) to be created.
- region string
- Region of this subnet.
- resource
Group 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+.
- route
Tables string[] - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- subnet
Size number - Subnet size. Only supported for AWS, Azure provider. Example: 24. Available in provider version R2.17+.
- subnets
Aviatrix
Vpc Subnet[] - List of subnets to be specify for GCP provider. Required to be non-empty for GCP provider, and empty for other providers.
- vpc
Id 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_ boolvpc - 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_ boolvpc - 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_ strresource_ id - 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_ boolgwlb - 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_ booloob_ subnet - 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_ intsubnet_ pairs - 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_ boolsubnets - 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[AviatrixVpc Private Subnet Args] - List of private subnet of the VPC(AWS, Azure) to be created.
- public_
subnets Sequence[AviatrixVpc Public Subnet Args] - 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[Aviatrix
Vpc Subnet Args] - 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.
- account
Name String - This parameter represents the name of a Cloud-Account in Aviatrix controller.
- availability
Domains List<String> - List of OCI availability domains.
- aviatrix
Firenet BooleanVpc - 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 BooleanVpc - 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 StringResource Id - Azure VNet resource ID.
- cidr String
- CIDR block.
- cloud
Type 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.
- enable
Native BooleanGwlb - 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 BooleanOob Subnet - 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 List<String> - List of OCI fault domains.
- name String
- Name of this subnet.
- num
Of NumberSubnet Pairs - 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 BooleanSubnets - 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 List<Property Map> - List of private subnet of the VPC(AWS, Azure) to be created.
- public
Subnets List<Property Map> - List of public subnet of the VPC(AWS, Azure) to be created.
- region String
- Region of this subnet.
- resource
Group 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+.
- route
Tables List<String> - List of route table ids associated with this VPC. Only populated for AWS, AWSGov and Azure VPC.
- subnet
Size 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.
- vpc
Id String - ID of the VPC to be created.
Supporting Types
AviatrixVpcPrivateSubnet, AviatrixVpcPrivateSubnetArgs
AviatrixVpcPublicSubnet, AviatrixVpcPublicSubnetArgs
AviatrixVpcSubnet, AviatrixVpcSubnetArgs
Import
vpc can be imported using the VPC’s name
, e.g.
$ pulumi import aviatrix:index/aviatrixVpc:AviatrixVpc test name
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.