1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudfirewall
  5. VpcCenTrFirewall
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.cloudfirewall.VpcCenTrFirewall

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a Cloud Firewall Vpc Cen Tr Firewall resource.

    VPC firewall Cloud Enterprise Network Enterprise Edition.

    For information about Cloud Firewall Vpc Cen Tr Firewall and how to use it, see What is Vpc Cen Tr Firewall.

    NOTE: Available since v1.228.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as time from "@pulumi/time";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const description = config.get("description") || "Created by Terraform";
    const firewallName = config.get("firewallName") || "tf-example";
    const trAttachmentMasterCidr = config.get("trAttachmentMasterCidr") || "192.168.3.192/26";
    const firewallSubnetCidr = config.get("firewallSubnetCidr") || "192.168.3.0/25";
    const region = config.get("region") || "cn-hangzhou";
    const trAttachmentSlaveCidr = config.get("trAttachmentSlaveCidr") || "192.168.3.128/26";
    const firewallVpcCidr = config.get("firewallVpcCidr") || "192.168.3.0/24";
    const zone1 = config.get("zone1") || "cn-hangzhou-h";
    const firewallNameUpdate = config.get("firewallNameUpdate") || "tf-example-1";
    const zone2 = config.get("zone2") || "cn-hangzhou-i";
    const default = alicloud.cen.getTransitRouterAvailableResources({});
    const defaultGetZones = alicloud.getZones({
        availableResourceCreation: "VSwitch",
    });
    const cen = new alicloud.cen.Instance("cen", {
        description: "terraform example",
        cenInstanceName: name,
    });
    const tr = new alicloud.cen.TransitRouter("tr", {
        transitRouterName: name,
        transitRouterDescription: "tr-created-by-terraform",
        cenId: cen.id,
    });
    const vpc1 = new alicloud.vpc.Network("vpc1", {
        description: "created by terraform",
        cidrBlock: "192.168.1.0/24",
        vpcName: name,
    });
    const vpc1vsw1 = new alicloud.vpc.Switch("vpc1vsw1", {
        cidrBlock: "192.168.1.0/25",
        vswitchName: name,
        vpcId: vpc1.id,
        zoneId: _default.then(_default => _default.resources?.[0]?.masterZones?.[1]),
    });
    const vpc1vsw2 = new alicloud.vpc.Switch("vpc1vsw2", {
        vpcId: vpc1.id,
        cidrBlock: "192.168.1.128/26",
        vswitchName: name,
        zoneId: _default.then(_default => _default.resources?.[0]?.masterZones?.[2]),
    });
    const foo = new alicloud.vpc.RouteTable("foo", {
        vpcId: vpc1.id,
        routeTableName: name,
        description: name,
    });
    const tr_vpc1 = new alicloud.cen.TransitRouterVpcAttachment("tr-vpc1", {
        zoneMappings: [
            {
                vswitchId: vpc1vsw1.id,
                zoneId: _default.then(_default => _default.resources?.[0]?.masterZones?.[1]),
            },
            {
                zoneId: _default.then(_default => _default.resources?.[0]?.masterZones?.[2]),
                vswitchId: vpc1vsw2.id,
            },
        ],
        vpcId: vpc1.id,
        cenId: cen.id,
        transitRouterId: tr.transitRouterId,
    }, {
        dependsOn: [foo],
    });
    const wait10Minutes = new time.index.Sleep("wait_10_minutes", {createDuration: "10m"}, {
        dependsOn: [tr_vpc1],
    });
    const defaultVpcCenTrFirewall = new alicloud.cloudfirewall.VpcCenTrFirewall("default", {
        cenId: tr_vpc1.cenId,
        firewallName: name,
        firewallSubnetCidr: firewallSubnetCidr,
        trAttachmentSlaveCidr: trAttachmentSlaveCidr,
        firewallDescription: "VpcCenTrFirewall created by terraform",
        regionNo: region,
        trAttachmentMasterCidr: trAttachmentMasterCidr,
        firewallVpcCidr: firewallVpcCidr,
        transitRouterId: tr.transitRouterId,
        routeMode: "managed",
    }, {
        dependsOn: [wait10Minutes],
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_time as time
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    description = config.get("description")
    if description is None:
        description = "Created by Terraform"
    firewall_name = config.get("firewallName")
    if firewall_name is None:
        firewall_name = "tf-example"
    tr_attachment_master_cidr = config.get("trAttachmentMasterCidr")
    if tr_attachment_master_cidr is None:
        tr_attachment_master_cidr = "192.168.3.192/26"
    firewall_subnet_cidr = config.get("firewallSubnetCidr")
    if firewall_subnet_cidr is None:
        firewall_subnet_cidr = "192.168.3.0/25"
    region = config.get("region")
    if region is None:
        region = "cn-hangzhou"
    tr_attachment_slave_cidr = config.get("trAttachmentSlaveCidr")
    if tr_attachment_slave_cidr is None:
        tr_attachment_slave_cidr = "192.168.3.128/26"
    firewall_vpc_cidr = config.get("firewallVpcCidr")
    if firewall_vpc_cidr is None:
        firewall_vpc_cidr = "192.168.3.0/24"
    zone1 = config.get("zone1")
    if zone1 is None:
        zone1 = "cn-hangzhou-h"
    firewall_name_update = config.get("firewallNameUpdate")
    if firewall_name_update is None:
        firewall_name_update = "tf-example-1"
    zone2 = config.get("zone2")
    if zone2 is None:
        zone2 = "cn-hangzhou-i"
    default = alicloud.cen.get_transit_router_available_resources()
    default_get_zones = alicloud.get_zones(available_resource_creation="VSwitch")
    cen = alicloud.cen.Instance("cen",
        description="terraform example",
        cen_instance_name=name)
    tr = alicloud.cen.TransitRouter("tr",
        transit_router_name=name,
        transit_router_description="tr-created-by-terraform",
        cen_id=cen.id)
    vpc1 = alicloud.vpc.Network("vpc1",
        description="created by terraform",
        cidr_block="192.168.1.0/24",
        vpc_name=name)
    vpc1vsw1 = alicloud.vpc.Switch("vpc1vsw1",
        cidr_block="192.168.1.0/25",
        vswitch_name=name,
        vpc_id=vpc1.id,
        zone_id=default.resources[0].master_zones[1])
    vpc1vsw2 = alicloud.vpc.Switch("vpc1vsw2",
        vpc_id=vpc1.id,
        cidr_block="192.168.1.128/26",
        vswitch_name=name,
        zone_id=default.resources[0].master_zones[2])
    foo = alicloud.vpc.RouteTable("foo",
        vpc_id=vpc1.id,
        route_table_name=name,
        description=name)
    tr_vpc1 = alicloud.cen.TransitRouterVpcAttachment("tr-vpc1",
        zone_mappings=[
            {
                "vswitch_id": vpc1vsw1.id,
                "zone_id": default.resources[0].master_zones[1],
            },
            {
                "zone_id": default.resources[0].master_zones[2],
                "vswitch_id": vpc1vsw2.id,
            },
        ],
        vpc_id=vpc1.id,
        cen_id=cen.id,
        transit_router_id=tr.transit_router_id,
        opts = pulumi.ResourceOptions(depends_on=[foo]))
    wait10_minutes = time.index.Sleep("wait_10_minutes", create_duration=10m,
    opts = pulumi.ResourceOptions(depends_on=[tr_vpc1]))
    default_vpc_cen_tr_firewall = alicloud.cloudfirewall.VpcCenTrFirewall("default",
        cen_id=tr_vpc1.cen_id,
        firewall_name=name,
        firewall_subnet_cidr=firewall_subnet_cidr,
        tr_attachment_slave_cidr=tr_attachment_slave_cidr,
        firewall_description="VpcCenTrFirewall created by terraform",
        region_no=region,
        tr_attachment_master_cidr=tr_attachment_master_cidr,
        firewall_vpc_cidr=firewall_vpc_cidr,
        transit_router_id=tr.transit_router_id,
        route_mode="managed",
        opts = pulumi.ResourceOptions(depends_on=[wait10_minutes]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi-time/sdk/go/time"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		description := "Created by Terraform"
    		if param := cfg.Get("description"); param != "" {
    			description = param
    		}
    		firewallName := "tf-example"
    		if param := cfg.Get("firewallName"); param != "" {
    			firewallName = param
    		}
    		trAttachmentMasterCidr := "192.168.3.192/26"
    		if param := cfg.Get("trAttachmentMasterCidr"); param != "" {
    			trAttachmentMasterCidr = param
    		}
    		firewallSubnetCidr := "192.168.3.0/25"
    		if param := cfg.Get("firewallSubnetCidr"); param != "" {
    			firewallSubnetCidr = param
    		}
    		region := "cn-hangzhou"
    		if param := cfg.Get("region"); param != "" {
    			region = param
    		}
    		trAttachmentSlaveCidr := "192.168.3.128/26"
    		if param := cfg.Get("trAttachmentSlaveCidr"); param != "" {
    			trAttachmentSlaveCidr = param
    		}
    		firewallVpcCidr := "192.168.3.0/24"
    		if param := cfg.Get("firewallVpcCidr"); param != "" {
    			firewallVpcCidr = param
    		}
    		zone1 := "cn-hangzhou-h"
    		if param := cfg.Get("zone1"); param != "" {
    			zone1 = param
    		}
    		firewallNameUpdate := "tf-example-1"
    		if param := cfg.Get("firewallNameUpdate"); param != "" {
    			firewallNameUpdate = param
    		}
    		zone2 := "cn-hangzhou-i"
    		if param := cfg.Get("zone2"); param != "" {
    			zone2 = param
    		}
    		_default, err := cen.GetTransitRouterAvailableResources(ctx, &cen.GetTransitRouterAvailableResourcesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
    			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		cen, err := cen.NewInstance(ctx, "cen", &cen.InstanceArgs{
    			Description:     pulumi.String("terraform example"),
    			CenInstanceName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		tr, err := cen.NewTransitRouter(ctx, "tr", &cen.TransitRouterArgs{
    			TransitRouterName:        pulumi.String(name),
    			TransitRouterDescription: pulumi.String("tr-created-by-terraform"),
    			CenId:                    cen.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		vpc1, err := vpc.NewNetwork(ctx, "vpc1", &vpc.NetworkArgs{
    			Description: pulumi.String("created by terraform"),
    			CidrBlock:   pulumi.String("192.168.1.0/24"),
    			VpcName:     pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		vpc1vsw1, err := vpc.NewSwitch(ctx, "vpc1vsw1", &vpc.SwitchArgs{
    			CidrBlock:   pulumi.String("192.168.1.0/25"),
    			VswitchName: pulumi.String(name),
    			VpcId:       vpc1.ID(),
    			ZoneId:      pulumi.String(_default.Resources[0].MasterZones[1]),
    		})
    		if err != nil {
    			return err
    		}
    		vpc1vsw2, err := vpc.NewSwitch(ctx, "vpc1vsw2", &vpc.SwitchArgs{
    			VpcId:       vpc1.ID(),
    			CidrBlock:   pulumi.String("192.168.1.128/26"),
    			VswitchName: pulumi.String(name),
    			ZoneId:      pulumi.String(_default.Resources[0].MasterZones[2]),
    		})
    		if err != nil {
    			return err
    		}
    		foo, err := vpc.NewRouteTable(ctx, "foo", &vpc.RouteTableArgs{
    			VpcId:          vpc1.ID(),
    			RouteTableName: pulumi.String(name),
    			Description:    pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterVpcAttachment(ctx, "tr-vpc1", &cen.TransitRouterVpcAttachmentArgs{
    			ZoneMappings: cen.TransitRouterVpcAttachmentZoneMappingArray{
    				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
    					VswitchId: vpc1vsw1.ID(),
    					ZoneId:    pulumi.String(_default.Resources[0].MasterZones[1]),
    				},
    				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
    					ZoneId:    pulumi.String(_default.Resources[0].MasterZones[2]),
    					VswitchId: vpc1vsw2.ID(),
    				},
    			},
    			VpcId:           vpc1.ID(),
    			CenId:           cen.ID(),
    			TransitRouterId: tr.TransitRouterId,
    		}, pulumi.DependsOn([]pulumi.Resource{
    			foo,
    		}))
    		if err != nil {
    			return err
    		}
    		wait10Minutes, err := time.NewSleep(ctx, "wait_10_minutes", &time.SleepArgs{
    			CreateDuration: "10m",
    		}, pulumi.DependsOn([]pulumi.Resource{
    			tr_vpc1,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = cloudfirewall.NewVpcCenTrFirewall(ctx, "default", &cloudfirewall.VpcCenTrFirewallArgs{
    			CenId:                  tr_vpc1.CenId,
    			FirewallName:           pulumi.String(name),
    			FirewallSubnetCidr:     pulumi.String(firewallSubnetCidr),
    			TrAttachmentSlaveCidr:  pulumi.String(trAttachmentSlaveCidr),
    			FirewallDescription:    pulumi.String("VpcCenTrFirewall created by terraform"),
    			RegionNo:               pulumi.String(region),
    			TrAttachmentMasterCidr: pulumi.String(trAttachmentMasterCidr),
    			FirewallVpcCidr:        pulumi.String(firewallVpcCidr),
    			TransitRouterId:        tr.TransitRouterId,
    			RouteMode:              pulumi.String("managed"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			wait10Minutes,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Time = Pulumi.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var description = config.Get("description") ?? "Created by Terraform";
        var firewallName = config.Get("firewallName") ?? "tf-example";
        var trAttachmentMasterCidr = config.Get("trAttachmentMasterCidr") ?? "192.168.3.192/26";
        var firewallSubnetCidr = config.Get("firewallSubnetCidr") ?? "192.168.3.0/25";
        var region = config.Get("region") ?? "cn-hangzhou";
        var trAttachmentSlaveCidr = config.Get("trAttachmentSlaveCidr") ?? "192.168.3.128/26";
        var firewallVpcCidr = config.Get("firewallVpcCidr") ?? "192.168.3.0/24";
        var zone1 = config.Get("zone1") ?? "cn-hangzhou-h";
        var firewallNameUpdate = config.Get("firewallNameUpdate") ?? "tf-example-1";
        var zone2 = config.Get("zone2") ?? "cn-hangzhou-i";
        var @default = AliCloud.Cen.GetTransitRouterAvailableResources.Invoke();
    
        var defaultGetZones = AliCloud.GetZones.Invoke(new()
        {
            AvailableResourceCreation = "VSwitch",
        });
    
        var cen = new AliCloud.Cen.Instance("cen", new()
        {
            Description = "terraform example",
            CenInstanceName = name,
        });
    
        var tr = new AliCloud.Cen.TransitRouter("tr", new()
        {
            TransitRouterName = name,
            TransitRouterDescription = "tr-created-by-terraform",
            CenId = cen.Id,
        });
    
        var vpc1 = new AliCloud.Vpc.Network("vpc1", new()
        {
            Description = "created by terraform",
            CidrBlock = "192.168.1.0/24",
            VpcName = name,
        });
    
        var vpc1vsw1 = new AliCloud.Vpc.Switch("vpc1vsw1", new()
        {
            CidrBlock = "192.168.1.0/25",
            VswitchName = name,
            VpcId = vpc1.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[1])),
        });
    
        var vpc1vsw2 = new AliCloud.Vpc.Switch("vpc1vsw2", new()
        {
            VpcId = vpc1.Id,
            CidrBlock = "192.168.1.128/26",
            VswitchName = name,
            ZoneId = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[2])),
        });
    
        var foo = new AliCloud.Vpc.RouteTable("foo", new()
        {
            VpcId = vpc1.Id,
            RouteTableName = name,
            Description = name,
        });
    
        var tr_vpc1 = new AliCloud.Cen.TransitRouterVpcAttachment("tr-vpc1", new()
        {
            ZoneMappings = new[]
            {
                new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs
                {
                    VswitchId = vpc1vsw1.Id,
                    ZoneId = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[1])),
                },
                new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs
                {
                    ZoneId = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[2])),
                    VswitchId = vpc1vsw2.Id,
                },
            },
            VpcId = vpc1.Id,
            CenId = cen.Id,
            TransitRouterId = tr.TransitRouterId,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                foo,
            },
        });
    
        var wait10Minutes = new Time.Index.Sleep("wait_10_minutes", new()
        {
            CreateDuration = "10m",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                tr_vpc1,
            },
        });
    
        var defaultVpcCenTrFirewall = new AliCloud.CloudFirewall.VpcCenTrFirewall("default", new()
        {
            CenId = tr_vpc1.CenId,
            FirewallName = name,
            FirewallSubnetCidr = firewallSubnetCidr,
            TrAttachmentSlaveCidr = trAttachmentSlaveCidr,
            FirewallDescription = "VpcCenTrFirewall created by terraform",
            RegionNo = region,
            TrAttachmentMasterCidr = trAttachmentMasterCidr,
            FirewallVpcCidr = firewallVpcCidr,
            TransitRouterId = tr.TransitRouterId,
            RouteMode = "managed",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                wait10Minutes,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cen.CenFunctions;
    import com.pulumi.alicloud.cen.inputs.GetTransitRouterAvailableResourcesArgs;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetZonesArgs;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.TransitRouter;
    import com.pulumi.alicloud.cen.TransitRouterArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.vpc.RouteTable;
    import com.pulumi.alicloud.vpc.RouteTableArgs;
    import com.pulumi.alicloud.cen.TransitRouterVpcAttachment;
    import com.pulumi.alicloud.cen.TransitRouterVpcAttachmentArgs;
    import com.pulumi.alicloud.cen.inputs.TransitRouterVpcAttachmentZoneMappingArgs;
    import com.pulumi.time.sleep;
    import com.pulumi.time.SleepArgs;
    import com.pulumi.alicloud.cloudfirewall.VpcCenTrFirewall;
    import com.pulumi.alicloud.cloudfirewall.VpcCenTrFirewallArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var description = config.get("description").orElse("Created by Terraform");
            final var firewallName = config.get("firewallName").orElse("tf-example");
            final var trAttachmentMasterCidr = config.get("trAttachmentMasterCidr").orElse("192.168.3.192/26");
            final var firewallSubnetCidr = config.get("firewallSubnetCidr").orElse("192.168.3.0/25");
            final var region = config.get("region").orElse("cn-hangzhou");
            final var trAttachmentSlaveCidr = config.get("trAttachmentSlaveCidr").orElse("192.168.3.128/26");
            final var firewallVpcCidr = config.get("firewallVpcCidr").orElse("192.168.3.0/24");
            final var zone1 = config.get("zone1").orElse("cn-hangzhou-h");
            final var firewallNameUpdate = config.get("firewallNameUpdate").orElse("tf-example-1");
            final var zone2 = config.get("zone2").orElse("cn-hangzhou-i");
            final var default = CenFunctions.getTransitRouterAvailableResources();
    
            final var defaultGetZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
                .availableResourceCreation("VSwitch")
                .build());
    
            var cen = new Instance("cen", InstanceArgs.builder()
                .description("terraform example")
                .cenInstanceName(name)
                .build());
    
            var tr = new TransitRouter("tr", TransitRouterArgs.builder()
                .transitRouterName(name)
                .transitRouterDescription("tr-created-by-terraform")
                .cenId(cen.id())
                .build());
    
            var vpc1 = new Network("vpc1", NetworkArgs.builder()
                .description("created by terraform")
                .cidrBlock("192.168.1.0/24")
                .vpcName(name)
                .build());
    
            var vpc1vsw1 = new Switch("vpc1vsw1", SwitchArgs.builder()
                .cidrBlock("192.168.1.0/25")
                .vswitchName(name)
                .vpcId(vpc1.id())
                .zoneId(default_.resources()[0].masterZones()[1])
                .build());
    
            var vpc1vsw2 = new Switch("vpc1vsw2", SwitchArgs.builder()
                .vpcId(vpc1.id())
                .cidrBlock("192.168.1.128/26")
                .vswitchName(name)
                .zoneId(default_.resources()[0].masterZones()[2])
                .build());
    
            var foo = new RouteTable("foo", RouteTableArgs.builder()
                .vpcId(vpc1.id())
                .routeTableName(name)
                .description(name)
                .build());
    
            var tr_vpc1 = new TransitRouterVpcAttachment("tr-vpc1", TransitRouterVpcAttachmentArgs.builder()
                .zoneMappings(            
                    TransitRouterVpcAttachmentZoneMappingArgs.builder()
                        .vswitchId(vpc1vsw1.id())
                        .zoneId(default_.resources()[0].masterZones()[1])
                        .build(),
                    TransitRouterVpcAttachmentZoneMappingArgs.builder()
                        .zoneId(default_.resources()[0].masterZones()[2])
                        .vswitchId(vpc1vsw2.id())
                        .build())
                .vpcId(vpc1.id())
                .cenId(cen.id())
                .transitRouterId(tr.transitRouterId())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(foo)
                    .build());
    
            var wait10Minutes = new Sleep("wait10Minutes", SleepArgs.builder()
                .createDuration("10m")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(tr_vpc1)
                    .build());
    
            var defaultVpcCenTrFirewall = new VpcCenTrFirewall("defaultVpcCenTrFirewall", VpcCenTrFirewallArgs.builder()
                .cenId(tr_vpc1.cenId())
                .firewallName(name)
                .firewallSubnetCidr(firewallSubnetCidr)
                .trAttachmentSlaveCidr(trAttachmentSlaveCidr)
                .firewallDescription("VpcCenTrFirewall created by terraform")
                .regionNo(region)
                .trAttachmentMasterCidr(trAttachmentMasterCidr)
                .firewallVpcCidr(firewallVpcCidr)
                .transitRouterId(tr.transitRouterId())
                .routeMode("managed")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(wait10Minutes)
                    .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      description:
        type: string
        default: Created by Terraform
      firewallName:
        type: string
        default: tf-example
      trAttachmentMasterCidr:
        type: string
        default: 192.168.3.192/26
      firewallSubnetCidr:
        type: string
        default: 192.168.3.0/25
      region:
        type: string
        default: cn-hangzhou
      trAttachmentSlaveCidr:
        type: string
        default: 192.168.3.128/26
      firewallVpcCidr:
        type: string
        default: 192.168.3.0/24
      zone1:
        type: string
        default: cn-hangzhou-h
      firewallNameUpdate:
        type: string
        default: tf-example-1
      zone2:
        type: string
        default: cn-hangzhou-i
    resources:
      cen:
        type: alicloud:cen:Instance
        properties:
          description: terraform example
          cenInstanceName: ${name}
      tr:
        type: alicloud:cen:TransitRouter
        properties:
          transitRouterName: ${name}
          transitRouterDescription: tr-created-by-terraform
          cenId: ${cen.id}
      vpc1:
        type: alicloud:vpc:Network
        properties:
          description: created by terraform
          cidrBlock: 192.168.1.0/24
          vpcName: ${name}
      vpc1vsw1:
        type: alicloud:vpc:Switch
        properties:
          cidrBlock: 192.168.1.0/25
          vswitchName: ${name}
          vpcId: ${vpc1.id}
          zoneId: ${default.resources[0].masterZones[1]}
      vpc1vsw2:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${vpc1.id}
          cidrBlock: 192.168.1.128/26
          vswitchName: ${name}
          zoneId: ${default.resources[0].masterZones[2]}
      foo:
        type: alicloud:vpc:RouteTable
        properties:
          vpcId: ${vpc1.id}
          routeTableName: ${name}
          description: ${name}
      tr-vpc1:
        type: alicloud:cen:TransitRouterVpcAttachment
        properties:
          zoneMappings:
            - vswitchId: ${vpc1vsw1.id}
              zoneId: ${default.resources[0].masterZones[1]}
            - zoneId: ${default.resources[0].masterZones[2]}
              vswitchId: ${vpc1vsw2.id}
          vpcId: ${vpc1.id}
          cenId: ${cen.id}
          transitRouterId: ${tr.transitRouterId}
        options:
          dependson:
            - ${foo}
      wait10Minutes:
        type: time:sleep
        name: wait_10_minutes
        properties:
          createDuration: 10m
        options:
          dependson:
            - ${["tr-vpc1"]}
      defaultVpcCenTrFirewall:
        type: alicloud:cloudfirewall:VpcCenTrFirewall
        name: default
        properties:
          cenId: ${["tr-vpc1"].cenId}
          firewallName: ${name}
          firewallSubnetCidr: ${firewallSubnetCidr}
          trAttachmentSlaveCidr: ${trAttachmentSlaveCidr}
          firewallDescription: VpcCenTrFirewall created by terraform
          regionNo: ${region}
          trAttachmentMasterCidr: ${trAttachmentMasterCidr}
          firewallVpcCidr: ${firewallVpcCidr}
          transitRouterId: ${tr.transitRouterId}
          routeMode: managed
        options:
          dependson:
            - ${wait10Minutes}
    variables:
      default:
        fn::invoke:
          Function: alicloud:cen:getTransitRouterAvailableResources
          Arguments: {}
      defaultGetZones:
        fn::invoke:
          Function: alicloud:getZones
          Arguments:
            availableResourceCreation: VSwitch
    

    Create VpcCenTrFirewall Resource

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

    Constructor syntax

    new VpcCenTrFirewall(name: string, args: VpcCenTrFirewallArgs, opts?: CustomResourceOptions);
    @overload
    def VpcCenTrFirewall(resource_name: str,
                         args: VpcCenTrFirewallArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def VpcCenTrFirewall(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         cen_id: Optional[str] = None,
                         firewall_name: Optional[str] = None,
                         firewall_subnet_cidr: Optional[str] = None,
                         firewall_vpc_cidr: Optional[str] = None,
                         region_no: Optional[str] = None,
                         route_mode: Optional[str] = None,
                         tr_attachment_master_cidr: Optional[str] = None,
                         tr_attachment_slave_cidr: Optional[str] = None,
                         transit_router_id: Optional[str] = None,
                         firewall_description: Optional[str] = None,
                         tr_attachment_master_zone: Optional[str] = None,
                         tr_attachment_slave_zone: Optional[str] = None)
    func NewVpcCenTrFirewall(ctx *Context, name string, args VpcCenTrFirewallArgs, opts ...ResourceOption) (*VpcCenTrFirewall, error)
    public VpcCenTrFirewall(string name, VpcCenTrFirewallArgs args, CustomResourceOptions? opts = null)
    public VpcCenTrFirewall(String name, VpcCenTrFirewallArgs args)
    public VpcCenTrFirewall(String name, VpcCenTrFirewallArgs args, CustomResourceOptions options)
    
    type: alicloud:cloudfirewall:VpcCenTrFirewall
    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 VpcCenTrFirewallArgs
    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 VpcCenTrFirewallArgs
    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 VpcCenTrFirewallArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcCenTrFirewallArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcCenTrFirewallArgs
    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 vpcCenTrFirewallResource = new AliCloud.CloudFirewall.VpcCenTrFirewall("vpcCenTrFirewallResource", new()
    {
        CenId = "string",
        FirewallName = "string",
        FirewallSubnetCidr = "string",
        FirewallVpcCidr = "string",
        RegionNo = "string",
        RouteMode = "string",
        TrAttachmentMasterCidr = "string",
        TrAttachmentSlaveCidr = "string",
        TransitRouterId = "string",
        FirewallDescription = "string",
        TrAttachmentMasterZone = "string",
        TrAttachmentSlaveZone = "string",
    });
    
    example, err := cloudfirewall.NewVpcCenTrFirewall(ctx, "vpcCenTrFirewallResource", &cloudfirewall.VpcCenTrFirewallArgs{
    	CenId:                  pulumi.String("string"),
    	FirewallName:           pulumi.String("string"),
    	FirewallSubnetCidr:     pulumi.String("string"),
    	FirewallVpcCidr:        pulumi.String("string"),
    	RegionNo:               pulumi.String("string"),
    	RouteMode:              pulumi.String("string"),
    	TrAttachmentMasterCidr: pulumi.String("string"),
    	TrAttachmentSlaveCidr:  pulumi.String("string"),
    	TransitRouterId:        pulumi.String("string"),
    	FirewallDescription:    pulumi.String("string"),
    	TrAttachmentMasterZone: pulumi.String("string"),
    	TrAttachmentSlaveZone:  pulumi.String("string"),
    })
    
    var vpcCenTrFirewallResource = new VpcCenTrFirewall("vpcCenTrFirewallResource", VpcCenTrFirewallArgs.builder()
        .cenId("string")
        .firewallName("string")
        .firewallSubnetCidr("string")
        .firewallVpcCidr("string")
        .regionNo("string")
        .routeMode("string")
        .trAttachmentMasterCidr("string")
        .trAttachmentSlaveCidr("string")
        .transitRouterId("string")
        .firewallDescription("string")
        .trAttachmentMasterZone("string")
        .trAttachmentSlaveZone("string")
        .build());
    
    vpc_cen_tr_firewall_resource = alicloud.cloudfirewall.VpcCenTrFirewall("vpcCenTrFirewallResource",
        cen_id="string",
        firewall_name="string",
        firewall_subnet_cidr="string",
        firewall_vpc_cidr="string",
        region_no="string",
        route_mode="string",
        tr_attachment_master_cidr="string",
        tr_attachment_slave_cidr="string",
        transit_router_id="string",
        firewall_description="string",
        tr_attachment_master_zone="string",
        tr_attachment_slave_zone="string")
    
    const vpcCenTrFirewallResource = new alicloud.cloudfirewall.VpcCenTrFirewall("vpcCenTrFirewallResource", {
        cenId: "string",
        firewallName: "string",
        firewallSubnetCidr: "string",
        firewallVpcCidr: "string",
        regionNo: "string",
        routeMode: "string",
        trAttachmentMasterCidr: "string",
        trAttachmentSlaveCidr: "string",
        transitRouterId: "string",
        firewallDescription: "string",
        trAttachmentMasterZone: "string",
        trAttachmentSlaveZone: "string",
    });
    
    type: alicloud:cloudfirewall:VpcCenTrFirewall
    properties:
        cenId: string
        firewallDescription: string
        firewallName: string
        firewallSubnetCidr: string
        firewallVpcCidr: string
        regionNo: string
        routeMode: string
        trAttachmentMasterCidr: string
        trAttachmentMasterZone: string
        trAttachmentSlaveCidr: string
        trAttachmentSlaveZone: string
        transitRouterId: string
    

    VpcCenTrFirewall 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 VpcCenTrFirewall resource accepts the following input properties:

    CenId string
    The ID of the CEN instance.
    FirewallName string
    The name of Cloud Firewall.
    FirewallSubnetCidr string
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    FirewallVpcCidr string
    Required in automatic mode, th CIDR of firewall VPC.
    RegionNo string
    The region ID of the transit router instance.
    RouteMode string
    The routing pattern. Value: managed: indicates automatic mode
    TrAttachmentMasterCidr string
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    TrAttachmentSlaveCidr string
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    TransitRouterId string
    The ID of the transit router instance.
    FirewallDescription string
    Firewall description.
    TrAttachmentMasterZone string
    The primary zone of the switch.
    TrAttachmentSlaveZone string
    Switch standby area.
    CenId string
    The ID of the CEN instance.
    FirewallName string
    The name of Cloud Firewall.
    FirewallSubnetCidr string
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    FirewallVpcCidr string
    Required in automatic mode, th CIDR of firewall VPC.
    RegionNo string
    The region ID of the transit router instance.
    RouteMode string
    The routing pattern. Value: managed: indicates automatic mode
    TrAttachmentMasterCidr string
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    TrAttachmentSlaveCidr string
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    TransitRouterId string
    The ID of the transit router instance.
    FirewallDescription string
    Firewall description.
    TrAttachmentMasterZone string
    The primary zone of the switch.
    TrAttachmentSlaveZone string
    Switch standby area.
    cenId String
    The ID of the CEN instance.
    firewallName String
    The name of Cloud Firewall.
    firewallSubnetCidr String
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewallVpcCidr String
    Required in automatic mode, th CIDR of firewall VPC.
    regionNo String
    The region ID of the transit router instance.
    routeMode String
    The routing pattern. Value: managed: indicates automatic mode
    trAttachmentMasterCidr String
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    trAttachmentSlaveCidr String
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    transitRouterId String
    The ID of the transit router instance.
    firewallDescription String
    Firewall description.
    trAttachmentMasterZone String
    The primary zone of the switch.
    trAttachmentSlaveZone String
    Switch standby area.
    cenId string
    The ID of the CEN instance.
    firewallName string
    The name of Cloud Firewall.
    firewallSubnetCidr string
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewallVpcCidr string
    Required in automatic mode, th CIDR of firewall VPC.
    regionNo string
    The region ID of the transit router instance.
    routeMode string
    The routing pattern. Value: managed: indicates automatic mode
    trAttachmentMasterCidr string
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    trAttachmentSlaveCidr string
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    transitRouterId string
    The ID of the transit router instance.
    firewallDescription string
    Firewall description.
    trAttachmentMasterZone string
    The primary zone of the switch.
    trAttachmentSlaveZone string
    Switch standby area.
    cen_id str
    The ID of the CEN instance.
    firewall_name str
    The name of Cloud Firewall.
    firewall_subnet_cidr str
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewall_vpc_cidr str
    Required in automatic mode, th CIDR of firewall VPC.
    region_no str
    The region ID of the transit router instance.
    route_mode str
    The routing pattern. Value: managed: indicates automatic mode
    tr_attachment_master_cidr str
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    tr_attachment_slave_cidr str
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    transit_router_id str
    The ID of the transit router instance.
    firewall_description str
    Firewall description.
    tr_attachment_master_zone str
    The primary zone of the switch.
    tr_attachment_slave_zone str
    Switch standby area.
    cenId String
    The ID of the CEN instance.
    firewallName String
    The name of Cloud Firewall.
    firewallSubnetCidr String
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewallVpcCidr String
    Required in automatic mode, th CIDR of firewall VPC.
    regionNo String
    The region ID of the transit router instance.
    routeMode String
    The routing pattern. Value: managed: indicates automatic mode
    trAttachmentMasterCidr String
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    trAttachmentSlaveCidr String
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    transitRouterId String
    The ID of the transit router instance.
    firewallDescription String
    Firewall description.
    trAttachmentMasterZone String
    The primary zone of the switch.
    trAttachmentSlaveZone String
    Switch standby area.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Firewall status. Value:
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Firewall status. Value:
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Firewall status. Value:
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Firewall status. Value:
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Firewall status. Value:
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Firewall status. Value:

    Look up Existing VpcCenTrFirewall Resource

    Get an existing VpcCenTrFirewall 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?: VpcCenTrFirewallState, opts?: CustomResourceOptions): VpcCenTrFirewall
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cen_id: Optional[str] = None,
            firewall_description: Optional[str] = None,
            firewall_name: Optional[str] = None,
            firewall_subnet_cidr: Optional[str] = None,
            firewall_vpc_cidr: Optional[str] = None,
            region_no: Optional[str] = None,
            route_mode: Optional[str] = None,
            status: Optional[str] = None,
            tr_attachment_master_cidr: Optional[str] = None,
            tr_attachment_master_zone: Optional[str] = None,
            tr_attachment_slave_cidr: Optional[str] = None,
            tr_attachment_slave_zone: Optional[str] = None,
            transit_router_id: Optional[str] = None) -> VpcCenTrFirewall
    func GetVpcCenTrFirewall(ctx *Context, name string, id IDInput, state *VpcCenTrFirewallState, opts ...ResourceOption) (*VpcCenTrFirewall, error)
    public static VpcCenTrFirewall Get(string name, Input<string> id, VpcCenTrFirewallState? state, CustomResourceOptions? opts = null)
    public static VpcCenTrFirewall get(String name, Output<String> id, VpcCenTrFirewallState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CenId string
    The ID of the CEN instance.
    FirewallDescription string
    Firewall description.
    FirewallName string
    The name of Cloud Firewall.
    FirewallSubnetCidr string
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    FirewallVpcCidr string
    Required in automatic mode, th CIDR of firewall VPC.
    RegionNo string
    The region ID of the transit router instance.
    RouteMode string
    The routing pattern. Value: managed: indicates automatic mode
    Status string
    Firewall status. Value:
    TrAttachmentMasterCidr string
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    TrAttachmentMasterZone string
    The primary zone of the switch.
    TrAttachmentSlaveCidr string
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    TrAttachmentSlaveZone string
    Switch standby area.
    TransitRouterId string
    The ID of the transit router instance.
    CenId string
    The ID of the CEN instance.
    FirewallDescription string
    Firewall description.
    FirewallName string
    The name of Cloud Firewall.
    FirewallSubnetCidr string
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    FirewallVpcCidr string
    Required in automatic mode, th CIDR of firewall VPC.
    RegionNo string
    The region ID of the transit router instance.
    RouteMode string
    The routing pattern. Value: managed: indicates automatic mode
    Status string
    Firewall status. Value:
    TrAttachmentMasterCidr string
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    TrAttachmentMasterZone string
    The primary zone of the switch.
    TrAttachmentSlaveCidr string
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    TrAttachmentSlaveZone string
    Switch standby area.
    TransitRouterId string
    The ID of the transit router instance.
    cenId String
    The ID of the CEN instance.
    firewallDescription String
    Firewall description.
    firewallName String
    The name of Cloud Firewall.
    firewallSubnetCidr String
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewallVpcCidr String
    Required in automatic mode, th CIDR of firewall VPC.
    regionNo String
    The region ID of the transit router instance.
    routeMode String
    The routing pattern. Value: managed: indicates automatic mode
    status String
    Firewall status. Value:
    trAttachmentMasterCidr String
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    trAttachmentMasterZone String
    The primary zone of the switch.
    trAttachmentSlaveCidr String
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    trAttachmentSlaveZone String
    Switch standby area.
    transitRouterId String
    The ID of the transit router instance.
    cenId string
    The ID of the CEN instance.
    firewallDescription string
    Firewall description.
    firewallName string
    The name of Cloud Firewall.
    firewallSubnetCidr string
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewallVpcCidr string
    Required in automatic mode, th CIDR of firewall VPC.
    regionNo string
    The region ID of the transit router instance.
    routeMode string
    The routing pattern. Value: managed: indicates automatic mode
    status string
    Firewall status. Value:
    trAttachmentMasterCidr string
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    trAttachmentMasterZone string
    The primary zone of the switch.
    trAttachmentSlaveCidr string
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    trAttachmentSlaveZone string
    Switch standby area.
    transitRouterId string
    The ID of the transit router instance.
    cen_id str
    The ID of the CEN instance.
    firewall_description str
    Firewall description.
    firewall_name str
    The name of Cloud Firewall.
    firewall_subnet_cidr str
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewall_vpc_cidr str
    Required in automatic mode, th CIDR of firewall VPC.
    region_no str
    The region ID of the transit router instance.
    route_mode str
    The routing pattern. Value: managed: indicates automatic mode
    status str
    Firewall status. Value:
    tr_attachment_master_cidr str
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    tr_attachment_master_zone str
    The primary zone of the switch.
    tr_attachment_slave_cidr str
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    tr_attachment_slave_zone str
    Switch standby area.
    transit_router_id str
    The ID of the transit router instance.
    cenId String
    The ID of the CEN instance.
    firewallDescription String
    Firewall description.
    firewallName String
    The name of Cloud Firewall.
    firewallSubnetCidr String
    Required in automatic mode, the CIDR of subnet used to store the firewall ENI in the firewall VPC.
    firewallVpcCidr String
    Required in automatic mode, th CIDR of firewall VPC.
    regionNo String
    The region ID of the transit router instance.
    routeMode String
    The routing pattern. Value: managed: indicates automatic mode
    status String
    Firewall status. Value:
    trAttachmentMasterCidr String
    Required in automatic mode, the primary CIDR of network used to connect to the TR in the firewall VPC.
    trAttachmentMasterZone String
    The primary zone of the switch.
    trAttachmentSlaveCidr String
    Required in automatic mode, the the secondary CIDR of the subnet in the firewall VPC used to connect to TR.
    trAttachmentSlaveZone String
    Switch standby area.
    transitRouterId String
    The ID of the transit router instance.

    Import

    Cloud Firewall Vpc Cen Tr Firewall can be imported using the id, e.g.

    $ pulumi import alicloud:cloudfirewall/vpcCenTrFirewall:VpcCenTrFirewall example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi