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

alicloud.cen.TransitRouterVpcAttachment

Explore with Pulumi AI

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

    Provides a CEN Transit Router VPC Attachment resource that associate the VPC with the CEN instance. What is Cen Transit Router VPC Attachment

    NOTE: Available since v1.126.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.cen.getTransitRouterAvailableResources({});
    const masterZone = _default.then(_default => _default.resources?.[0]?.masterZones?.[0]);
    const slaveZone = _default.then(_default => _default.resources?.[0]?.slaveZones?.[1]);
    const example = new alicloud.vpc.Network("example", {
        vpcName: name,
        cidrBlock: "192.168.0.0/16",
    });
    const exampleMaster = new alicloud.vpc.Switch("example_master", {
        vswitchName: name,
        cidrBlock: "192.168.1.0/24",
        vpcId: example.id,
        zoneId: masterZone,
    });
    const exampleSlave = new alicloud.vpc.Switch("example_slave", {
        vswitchName: name,
        cidrBlock: "192.168.2.0/24",
        vpcId: example.id,
        zoneId: slaveZone,
    });
    const exampleInstance = new alicloud.cen.Instance("example", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const exampleTransitRouter = new alicloud.cen.TransitRouter("example", {
        transitRouterName: name,
        cenId: exampleInstance.id,
    });
    const exampleTransitRouterVpcAttachment = new alicloud.cen.TransitRouterVpcAttachment("example", {
        cenId: exampleInstance.id,
        transitRouterId: exampleTransitRouter.transitRouterId,
        vpcId: example.id,
        zoneMappings: [
            {
                zoneId: masterZone,
                vswitchId: exampleMaster.id,
            },
            {
                zoneId: slaveZone,
                vswitchId: exampleSlave.id,
            },
        ],
        transitRouterAttachmentName: name,
        transitRouterAttachmentDescription: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.cen.get_transit_router_available_resources()
    master_zone = default.resources[0].master_zones[0]
    slave_zone = default.resources[0].slave_zones[1]
    example = alicloud.vpc.Network("example",
        vpc_name=name,
        cidr_block="192.168.0.0/16")
    example_master = alicloud.vpc.Switch("example_master",
        vswitch_name=name,
        cidr_block="192.168.1.0/24",
        vpc_id=example.id,
        zone_id=master_zone)
    example_slave = alicloud.vpc.Switch("example_slave",
        vswitch_name=name,
        cidr_block="192.168.2.0/24",
        vpc_id=example.id,
        zone_id=slave_zone)
    example_instance = alicloud.cen.Instance("example",
        cen_instance_name=name,
        protection_level="REDUCED")
    example_transit_router = alicloud.cen.TransitRouter("example",
        transit_router_name=name,
        cen_id=example_instance.id)
    example_transit_router_vpc_attachment = alicloud.cen.TransitRouterVpcAttachment("example",
        cen_id=example_instance.id,
        transit_router_id=example_transit_router.transit_router_id,
        vpc_id=example.id,
        zone_mappings=[
            {
                "zone_id": master_zone,
                "vswitch_id": example_master.id,
            },
            {
                "zone_id": slave_zone,
                "vswitch_id": example_slave.id,
            },
        ],
        transit_router_attachment_name=name,
        transit_router_attachment_description=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"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
    		}
    		_default, err := cen.GetTransitRouterAvailableResources(ctx, &cen.GetTransitRouterAvailableResourcesArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		masterZone := _default.Resources[0].MasterZones[0]
    		slaveZone := _default.Resources[0].SlaveZones[1]
    		example, err := vpc.NewNetwork(ctx, "example", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMaster, err := vpc.NewSwitch(ctx, "example_master", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("192.168.1.0/24"),
    			VpcId:       example.ID(),
    			ZoneId:      pulumi.String(masterZone),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSlave, err := vpc.NewSwitch(ctx, "example_slave", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("192.168.2.0/24"),
    			VpcId:       example.ID(),
    			ZoneId:      pulumi.String(slaveZone),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstance, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "example", &cen.TransitRouterArgs{
    			TransitRouterName: pulumi.String(name),
    			CenId:             exampleInstance.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterVpcAttachment(ctx, "example", &cen.TransitRouterVpcAttachmentArgs{
    			CenId:           exampleInstance.ID(),
    			TransitRouterId: exampleTransitRouter.TransitRouterId,
    			VpcId:           example.ID(),
    			ZoneMappings: cen.TransitRouterVpcAttachmentZoneMappingArray{
    				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
    					ZoneId:    pulumi.String(masterZone),
    					VswitchId: exampleMaster.ID(),
    				},
    				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
    					ZoneId:    pulumi.String(slaveZone),
    					VswitchId: exampleSlave.ID(),
    				},
    			},
    			TransitRouterAttachmentName:        pulumi.String(name),
    			TransitRouterAttachmentDescription: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.Cen.GetTransitRouterAvailableResources.Invoke();
    
        var masterZone = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.MasterZones[0]));
    
        var slaveZone = @default.Apply(@default => @default.Apply(getTransitRouterAvailableResourcesResult => getTransitRouterAvailableResourcesResult.Resources[0]?.SlaveZones[1]));
    
        var example = new AliCloud.Vpc.Network("example", new()
        {
            VpcName = name,
            CidrBlock = "192.168.0.0/16",
        });
    
        var exampleMaster = new AliCloud.Vpc.Switch("example_master", new()
        {
            VswitchName = name,
            CidrBlock = "192.168.1.0/24",
            VpcId = example.Id,
            ZoneId = masterZone,
        });
    
        var exampleSlave = new AliCloud.Vpc.Switch("example_slave", new()
        {
            VswitchName = name,
            CidrBlock = "192.168.2.0/24",
            VpcId = example.Id,
            ZoneId = slaveZone,
        });
    
        var exampleInstance = new AliCloud.Cen.Instance("example", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var exampleTransitRouter = new AliCloud.Cen.TransitRouter("example", new()
        {
            TransitRouterName = name,
            CenId = exampleInstance.Id,
        });
    
        var exampleTransitRouterVpcAttachment = new AliCloud.Cen.TransitRouterVpcAttachment("example", new()
        {
            CenId = exampleInstance.Id,
            TransitRouterId = exampleTransitRouter.TransitRouterId,
            VpcId = example.Id,
            ZoneMappings = new[]
            {
                new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs
                {
                    ZoneId = masterZone,
                    VswitchId = exampleMaster.Id,
                },
                new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs
                {
                    ZoneId = slaveZone,
                    VswitchId = exampleSlave.Id,
                },
            },
            TransitRouterAttachmentName = name,
            TransitRouterAttachmentDescription = name,
        });
    
    });
    
    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.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    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.cen.TransitRouterVpcAttachment;
    import com.pulumi.alicloud.cen.TransitRouterVpcAttachmentArgs;
    import com.pulumi.alicloud.cen.inputs.TransitRouterVpcAttachmentZoneMappingArgs;
    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 default = CenFunctions.getTransitRouterAvailableResources();
    
            final var masterZone = default_.resources()[0].masterZones()[0];
    
            final var slaveZone = default_.resources()[0].slaveZones()[1];
    
            var example = new Network("example", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("192.168.0.0/16")
                .build());
    
            var exampleMaster = new Switch("exampleMaster", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("192.168.1.0/24")
                .vpcId(example.id())
                .zoneId(masterZone)
                .build());
    
            var exampleSlave = new Switch("exampleSlave", SwitchArgs.builder()
                .vswitchName(name)
                .cidrBlock("192.168.2.0/24")
                .vpcId(example.id())
                .zoneId(slaveZone)
                .build());
    
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build());
    
            var exampleTransitRouter = new TransitRouter("exampleTransitRouter", TransitRouterArgs.builder()
                .transitRouterName(name)
                .cenId(exampleInstance.id())
                .build());
    
            var exampleTransitRouterVpcAttachment = new TransitRouterVpcAttachment("exampleTransitRouterVpcAttachment", TransitRouterVpcAttachmentArgs.builder()
                .cenId(exampleInstance.id())
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .vpcId(example.id())
                .zoneMappings(            
                    TransitRouterVpcAttachmentZoneMappingArgs.builder()
                        .zoneId(masterZone)
                        .vswitchId(exampleMaster.id())
                        .build(),
                    TransitRouterVpcAttachmentZoneMappingArgs.builder()
                        .zoneId(slaveZone)
                        .vswitchId(exampleSlave.id())
                        .build())
                .transitRouterAttachmentName(name)
                .transitRouterAttachmentDescription(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      example:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 192.168.0.0/16
      exampleMaster:
        type: alicloud:vpc:Switch
        name: example_master
        properties:
          vswitchName: ${name}
          cidrBlock: 192.168.1.0/24
          vpcId: ${example.id}
          zoneId: ${masterZone}
      exampleSlave:
        type: alicloud:vpc:Switch
        name: example_slave
        properties:
          vswitchName: ${name}
          cidrBlock: 192.168.2.0/24
          vpcId: ${example.id}
          zoneId: ${slaveZone}
      exampleInstance:
        type: alicloud:cen:Instance
        name: example
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
      exampleTransitRouter:
        type: alicloud:cen:TransitRouter
        name: example
        properties:
          transitRouterName: ${name}
          cenId: ${exampleInstance.id}
      exampleTransitRouterVpcAttachment:
        type: alicloud:cen:TransitRouterVpcAttachment
        name: example
        properties:
          cenId: ${exampleInstance.id}
          transitRouterId: ${exampleTransitRouter.transitRouterId}
          vpcId: ${example.id}
          zoneMappings:
            - zoneId: ${masterZone}
              vswitchId: ${exampleMaster.id}
            - zoneId: ${slaveZone}
              vswitchId: ${exampleSlave.id}
          transitRouterAttachmentName: ${name}
          transitRouterAttachmentDescription: ${name}
    variables:
      default:
        fn::invoke:
          Function: alicloud:cen:getTransitRouterAvailableResources
          Arguments: {}
      masterZone: ${default.resources[0].masterZones[0]}
      slaveZone: ${default.resources[0].slaveZones[1]}
    

    Create TransitRouterVpcAttachment Resource

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

    Constructor syntax

    new TransitRouterVpcAttachment(name: string, args: TransitRouterVpcAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouterVpcAttachment(resource_name: str,
                                   args: TransitRouterVpcAttachmentArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitRouterVpcAttachment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   vpc_id: Optional[str] = None,
                                   zone_mappings: Optional[Sequence[TransitRouterVpcAttachmentZoneMappingArgs]] = None,
                                   tags: Optional[Mapping[str, str]] = None,
                                   transit_router_attachment_description: Optional[str] = None,
                                   payment_type: Optional[str] = None,
                                   resource_type: Optional[str] = None,
                                   route_table_association_enabled: Optional[bool] = None,
                                   route_table_propagation_enabled: Optional[bool] = None,
                                   auto_publish_route_enabled: Optional[bool] = None,
                                   force_delete: Optional[bool] = None,
                                   transit_router_attachment_name: Optional[str] = None,
                                   transit_router_id: Optional[str] = None,
                                   transit_router_vpc_attachment_name: Optional[str] = None,
                                   transit_router_vpc_attachment_options: Optional[Mapping[str, str]] = None,
                                   dry_run: Optional[bool] = None,
                                   vpc_owner_id: Optional[int] = None,
                                   cen_id: Optional[str] = None)
    func NewTransitRouterVpcAttachment(ctx *Context, name string, args TransitRouterVpcAttachmentArgs, opts ...ResourceOption) (*TransitRouterVpcAttachment, error)
    public TransitRouterVpcAttachment(string name, TransitRouterVpcAttachmentArgs args, CustomResourceOptions? opts = null)
    public TransitRouterVpcAttachment(String name, TransitRouterVpcAttachmentArgs args)
    public TransitRouterVpcAttachment(String name, TransitRouterVpcAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouterVpcAttachment
    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 TransitRouterVpcAttachmentArgs
    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 TransitRouterVpcAttachmentArgs
    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 TransitRouterVpcAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouterVpcAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouterVpcAttachmentArgs
    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 transitRouterVpcAttachmentResource = new AliCloud.Cen.TransitRouterVpcAttachment("transitRouterVpcAttachmentResource", new()
    {
        VpcId = "string",
        ZoneMappings = new[]
        {
            new AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMappingArgs
            {
                VswitchId = "string",
                ZoneId = "string",
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
        TransitRouterAttachmentDescription = "string",
        PaymentType = "string",
        ResourceType = "string",
        AutoPublishRouteEnabled = false,
        ForceDelete = false,
        TransitRouterId = "string",
        TransitRouterVpcAttachmentName = "string",
        TransitRouterVpcAttachmentOptions = 
        {
            { "string", "string" },
        },
        DryRun = false,
        VpcOwnerId = 0,
        CenId = "string",
    });
    
    example, err := cen.NewTransitRouterVpcAttachment(ctx, "transitRouterVpcAttachmentResource", &cen.TransitRouterVpcAttachmentArgs{
    	VpcId: pulumi.String("string"),
    	ZoneMappings: cen.TransitRouterVpcAttachmentZoneMappingArray{
    		&cen.TransitRouterVpcAttachmentZoneMappingArgs{
    			VswitchId: pulumi.String("string"),
    			ZoneId:    pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TransitRouterAttachmentDescription: pulumi.String("string"),
    	PaymentType:                        pulumi.String("string"),
    	ResourceType:                       pulumi.String("string"),
    	AutoPublishRouteEnabled:            pulumi.Bool(false),
    	ForceDelete:                        pulumi.Bool(false),
    	TransitRouterId:                    pulumi.String("string"),
    	TransitRouterVpcAttachmentName:     pulumi.String("string"),
    	TransitRouterVpcAttachmentOptions: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DryRun:     pulumi.Bool(false),
    	VpcOwnerId: pulumi.Int(0),
    	CenId:      pulumi.String("string"),
    })
    
    var transitRouterVpcAttachmentResource = new TransitRouterVpcAttachment("transitRouterVpcAttachmentResource", TransitRouterVpcAttachmentArgs.builder()
        .vpcId("string")
        .zoneMappings(TransitRouterVpcAttachmentZoneMappingArgs.builder()
            .vswitchId("string")
            .zoneId("string")
            .build())
        .tags(Map.of("string", "string"))
        .transitRouterAttachmentDescription("string")
        .paymentType("string")
        .resourceType("string")
        .autoPublishRouteEnabled(false)
        .forceDelete(false)
        .transitRouterId("string")
        .transitRouterVpcAttachmentName("string")
        .transitRouterVpcAttachmentOptions(Map.of("string", "string"))
        .dryRun(false)
        .vpcOwnerId(0)
        .cenId("string")
        .build());
    
    transit_router_vpc_attachment_resource = alicloud.cen.TransitRouterVpcAttachment("transitRouterVpcAttachmentResource",
        vpc_id="string",
        zone_mappings=[{
            "vswitch_id": "string",
            "zone_id": "string",
        }],
        tags={
            "string": "string",
        },
        transit_router_attachment_description="string",
        payment_type="string",
        resource_type="string",
        auto_publish_route_enabled=False,
        force_delete=False,
        transit_router_id="string",
        transit_router_vpc_attachment_name="string",
        transit_router_vpc_attachment_options={
            "string": "string",
        },
        dry_run=False,
        vpc_owner_id=0,
        cen_id="string")
    
    const transitRouterVpcAttachmentResource = new alicloud.cen.TransitRouterVpcAttachment("transitRouterVpcAttachmentResource", {
        vpcId: "string",
        zoneMappings: [{
            vswitchId: "string",
            zoneId: "string",
        }],
        tags: {
            string: "string",
        },
        transitRouterAttachmentDescription: "string",
        paymentType: "string",
        resourceType: "string",
        autoPublishRouteEnabled: false,
        forceDelete: false,
        transitRouterId: "string",
        transitRouterVpcAttachmentName: "string",
        transitRouterVpcAttachmentOptions: {
            string: "string",
        },
        dryRun: false,
        vpcOwnerId: 0,
        cenId: "string",
    });
    
    type: alicloud:cen:TransitRouterVpcAttachment
    properties:
        autoPublishRouteEnabled: false
        cenId: string
        dryRun: false
        forceDelete: false
        paymentType: string
        resourceType: string
        tags:
            string: string
        transitRouterAttachmentDescription: string
        transitRouterId: string
        transitRouterVpcAttachmentName: string
        transitRouterVpcAttachmentOptions:
            string: string
        vpcId: string
        vpcOwnerId: 0
        zoneMappings:
            - vswitchId: string
              zoneId: string
    

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

    VpcId string
    The VPC ID.
    ZoneMappings List<Pulumi.AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMapping>

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    ForceDelete bool
    Whether to forcibly delete the VPC connection. The value is:
    PaymentType string
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    ResourceType string
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentDescription string

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    TransitRouterId string
    The ID of the Enterprise Edition transit router.
    TransitRouterVpcAttachmentName string

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    TransitRouterVpcAttachmentOptions Dictionary<string, string>
    TransitRouterVpcAttachmentOptions
    VpcOwnerId int
    VpcOwnerId
    VpcId string
    The VPC ID.
    ZoneMappings []TransitRouterVpcAttachmentZoneMappingArgs

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    ForceDelete bool
    Whether to forcibly delete the VPC connection. The value is:
    PaymentType string
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    ResourceType string
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentDescription string

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    TransitRouterId string
    The ID of the Enterprise Edition transit router.
    TransitRouterVpcAttachmentName string

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    TransitRouterVpcAttachmentOptions map[string]string
    TransitRouterVpcAttachmentOptions
    VpcOwnerId int
    VpcOwnerId
    vpcId String
    The VPC ID.
    zoneMappings List<TransitRouterVpcAttachmentZoneMapping>

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    forceDelete Boolean
    Whether to forcibly delete the VPC connection. The value is:
    paymentType String
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resourceType String
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentDescription String

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transitRouterId String
    The ID of the Enterprise Edition transit router.
    transitRouterVpcAttachmentName String

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transitRouterVpcAttachmentOptions Map<String,String>
    TransitRouterVpcAttachmentOptions
    vpcOwnerId Integer
    VpcOwnerId
    vpcId string
    The VPC ID.
    zoneMappings TransitRouterVpcAttachmentZoneMapping[]

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoPublishRouteEnabled boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    dryRun boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    forceDelete boolean
    Whether to forcibly delete the VPC connection. The value is:
    paymentType string
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resourceType string
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    routeTableAssociationEnabled boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled boolean
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentDescription string

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transitRouterId string
    The ID of the Enterprise Edition transit router.
    transitRouterVpcAttachmentName string

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transitRouterVpcAttachmentOptions {[key: string]: string}
    TransitRouterVpcAttachmentOptions
    vpcOwnerId number
    VpcOwnerId
    vpc_id str
    The VPC ID.
    zone_mappings Sequence[TransitRouterVpcAttachmentZoneMappingArgs]

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    auto_publish_route_enabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    dry_run bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    force_delete bool
    Whether to forcibly delete the VPC connection. The value is:
    payment_type str
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resource_type str
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    route_table_association_enabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    route_table_propagation_enabled bool
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_description str

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transit_router_attachment_name str
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transit_router_id str
    The ID of the Enterprise Edition transit router.
    transit_router_vpc_attachment_name str

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transit_router_vpc_attachment_options Mapping[str, str]
    TransitRouterVpcAttachmentOptions
    vpc_owner_id int
    VpcOwnerId
    vpcId String
    The VPC ID.
    zoneMappings List<Property Map>

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    forceDelete Boolean
    Whether to forcibly delete the VPC connection. The value is:
    paymentType String
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resourceType String
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    tags Map<String>
    The tag of the resource
    transitRouterAttachmentDescription String

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transitRouterId String
    The ID of the Enterprise Edition transit router.
    transitRouterVpcAttachmentName String

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transitRouterVpcAttachmentOptions Map<String>
    TransitRouterVpcAttachmentOptions
    vpcOwnerId Number
    VpcOwnerId

    Outputs

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

    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status
    TransitRouterAttachmentId string
    The ID of the Transit Router Attachment.
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Status
    TransitRouterAttachmentId string
    The ID of the Transit Router Attachment.
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status
    transitRouterAttachmentId String
    The ID of the Transit Router Attachment.
    createTime string
    The creation time of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Status
    transitRouterAttachmentId string
    The ID of the Transit Router Attachment.
    create_time str
    The creation time of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Status
    transit_router_attachment_id str
    The ID of the Transit Router Attachment.
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Status
    transitRouterAttachmentId String
    The ID of the Transit Router Attachment.

    Look up Existing TransitRouterVpcAttachment Resource

    Get an existing TransitRouterVpcAttachment 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?: TransitRouterVpcAttachmentState, opts?: CustomResourceOptions): TransitRouterVpcAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_publish_route_enabled: Optional[bool] = None,
            cen_id: Optional[str] = None,
            create_time: Optional[str] = None,
            dry_run: Optional[bool] = None,
            force_delete: Optional[bool] = None,
            payment_type: Optional[str] = None,
            resource_type: Optional[str] = None,
            route_table_association_enabled: Optional[bool] = None,
            route_table_propagation_enabled: Optional[bool] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            transit_router_attachment_description: Optional[str] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_attachment_name: Optional[str] = None,
            transit_router_id: Optional[str] = None,
            transit_router_vpc_attachment_name: Optional[str] = None,
            transit_router_vpc_attachment_options: Optional[Mapping[str, str]] = None,
            vpc_id: Optional[str] = None,
            vpc_owner_id: Optional[int] = None,
            zone_mappings: Optional[Sequence[TransitRouterVpcAttachmentZoneMappingArgs]] = None) -> TransitRouterVpcAttachment
    func GetTransitRouterVpcAttachment(ctx *Context, name string, id IDInput, state *TransitRouterVpcAttachmentState, opts ...ResourceOption) (*TransitRouterVpcAttachment, error)
    public static TransitRouterVpcAttachment Get(string name, Input<string> id, TransitRouterVpcAttachmentState? state, CustomResourceOptions? opts = null)
    public static TransitRouterVpcAttachment get(String name, Output<String> id, TransitRouterVpcAttachmentState 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:
    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    CreateTime string
    The creation time of the resource
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    ForceDelete bool
    Whether to forcibly delete the VPC connection. The value is:
    PaymentType string
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    ResourceType string
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Status string
    Status
    Tags Dictionary<string, string>
    The tag of the resource
    TransitRouterAttachmentDescription string

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    TransitRouterAttachmentId string
    The ID of the Transit Router Attachment.
    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    TransitRouterId string
    The ID of the Enterprise Edition transit router.
    TransitRouterVpcAttachmentName string

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    TransitRouterVpcAttachmentOptions Dictionary<string, string>
    TransitRouterVpcAttachmentOptions
    VpcId string
    The VPC ID.
    VpcOwnerId int
    VpcOwnerId
    ZoneMappings List<Pulumi.AliCloud.Cen.Inputs.TransitRouterVpcAttachmentZoneMapping>

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    AutoPublishRouteEnabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    CenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    CreateTime string
    The creation time of the resource
    DryRun bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    ForceDelete bool
    Whether to forcibly delete the VPC connection. The value is:
    PaymentType string
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    ResourceType string
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    RouteTableAssociationEnabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    RouteTablePropagationEnabled bool
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    Status string
    Status
    Tags map[string]string
    The tag of the resource
    TransitRouterAttachmentDescription string

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    TransitRouterAttachmentId string
    The ID of the Transit Router Attachment.
    TransitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    TransitRouterId string
    The ID of the Enterprise Edition transit router.
    TransitRouterVpcAttachmentName string

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    TransitRouterVpcAttachmentOptions map[string]string
    TransitRouterVpcAttachmentOptions
    VpcId string
    The VPC ID.
    VpcOwnerId int
    VpcOwnerId
    ZoneMappings []TransitRouterVpcAttachmentZoneMappingArgs

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    createTime String
    The creation time of the resource
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    forceDelete Boolean
    Whether to forcibly delete the VPC connection. The value is:
    paymentType String
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resourceType String
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status String
    Status
    tags Map<String,String>
    The tag of the resource
    transitRouterAttachmentDescription String

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transitRouterAttachmentId String
    The ID of the Transit Router Attachment.
    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transitRouterId String
    The ID of the Enterprise Edition transit router.
    transitRouterVpcAttachmentName String

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transitRouterVpcAttachmentOptions Map<String,String>
    TransitRouterVpcAttachmentOptions
    vpcId String
    The VPC ID.
    vpcOwnerId Integer
    VpcOwnerId
    zoneMappings List<TransitRouterVpcAttachmentZoneMapping>

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoPublishRouteEnabled boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cenId string
    The ID of the Cloud Enterprise Network (CEN) instance.
    createTime string
    The creation time of the resource
    dryRun boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    forceDelete boolean
    Whether to forcibly delete the VPC connection. The value is:
    paymentType string
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resourceType string
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    routeTableAssociationEnabled boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled boolean
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status string
    Status
    tags {[key: string]: string}
    The tag of the resource
    transitRouterAttachmentDescription string

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transitRouterAttachmentId string
    The ID of the Transit Router Attachment.
    transitRouterAttachmentName string
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transitRouterId string
    The ID of the Enterprise Edition transit router.
    transitRouterVpcAttachmentName string

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transitRouterVpcAttachmentOptions {[key: string]: string}
    TransitRouterVpcAttachmentOptions
    vpcId string
    The VPC ID.
    vpcOwnerId number
    VpcOwnerId
    zoneMappings TransitRouterVpcAttachmentZoneMapping[]

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    auto_publish_route_enabled bool
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cen_id str
    The ID of the Cloud Enterprise Network (CEN) instance.
    create_time str
    The creation time of the resource
    dry_run bool
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    force_delete bool
    Whether to forcibly delete the VPC connection. The value is:
    payment_type str
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resource_type str
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    route_table_association_enabled bool
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    route_table_propagation_enabled bool
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status str
    Status
    tags Mapping[str, str]
    The tag of the resource
    transit_router_attachment_description str

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transit_router_attachment_id str
    The ID of the Transit Router Attachment.
    transit_router_attachment_name str
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transit_router_id str
    The ID of the Enterprise Edition transit router.
    transit_router_vpc_attachment_name str

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transit_router_vpc_attachment_options Mapping[str, str]
    TransitRouterVpcAttachmentOptions
    vpc_id str
    The VPC ID.
    vpc_owner_id int
    VpcOwnerId
    zone_mappings Sequence[TransitRouterVpcAttachmentZoneMappingArgs]

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    autoPublishRouteEnabled Boolean
    Specifies whether to enable the Enterprise Edition transit router to automatically advertise routes to VPCs. Valid values:

    • false: (default)
    cenId String
    The ID of the Cloud Enterprise Network (CEN) instance.
    createTime String
    The creation time of the resource
    dryRun Boolean
    Whether to perform PreCheck on this request, including permissions and instance status verification. Value:
    forceDelete Boolean
    Whether to forcibly delete the VPC connection. The value is:
    paymentType String
    The billing method. The default value is PayAsYouGo, which specifies the pay-as-you-go billing method.
    resourceType String
    The resource type of the transit router vpc attachment. Default value: VPC. Valid values: VPC.
    routeTableAssociationEnabled Boolean
    Whether to enabled route table association. NOTE: "Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead, how to use alicloud_cen_transit_router_route_table_association."

    Deprecated: Field route_table_association_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTableAssociation instead.

    routeTablePropagationEnabled Boolean
    Whether to enabled route table propagation. NOTE: "Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead, how to use alicloud_cen_transit_router_route_table_propagation."

    Deprecated: Field route_table_propagation_enabled has been deprecated from provider version 1.192.0. Please use the resource alicloud.cen.TransitRouterRouteTablePropagation instead.

    status String
    Status
    tags Map<String>
    The tag of the resource
    transitRouterAttachmentDescription String

    The description of the VPC connection.

    The description must be 2 to 256 characters in length. The description must start with a letter but cannot start with http:// or https://.

    transitRouterAttachmentId String
    The ID of the Transit Router Attachment.
    transitRouterAttachmentName String
    . Field 'transit_router_attachment_name' has been deprecated from provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    Deprecated: Field 'transit_router_attachment_name' has been deprecated since provider version 1.230.1. New field 'transit_router_vpc_attachment_name' instead.

    transitRouterId String
    The ID of the Enterprise Edition transit router.
    transitRouterVpcAttachmentName String

    The name of the VPC connection.

    The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.

    transitRouterVpcAttachmentOptions Map<String>
    TransitRouterVpcAttachmentOptions
    vpcId String
    The VPC ID.
    vpcOwnerId Number
    VpcOwnerId
    zoneMappings List<Property Map>

    ZoneMappingss See zone_mappings below.

    The following arguments will be discarded. Please use new fields as soon as possible:

    Supporting Types

    TransitRouterVpcAttachmentZoneMapping, TransitRouterVpcAttachmentZoneMappingArgs

    VswitchId string
    The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.

    • If the VPC connection belongs to the current Alibaba Cloud account, you can call the DescribeVSwitches operation to query the IDs of the vSwitches and zones of the VPC.
    • If the VPC connection belongs to another Alibaba Cloud account, you can call the ListGrantVSwitchesToCen operation to query the IDs of the vSwitches and zones of the VPC.
    ZoneId string
    The ID of the zone that supports Enterprise Edition transit routers. You can call the DescribeZones operation to query the most recent zone list. You can specify at most 10 zones in each call.
    VswitchId string
    The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.

    • If the VPC connection belongs to the current Alibaba Cloud account, you can call the DescribeVSwitches operation to query the IDs of the vSwitches and zones of the VPC.
    • If the VPC connection belongs to another Alibaba Cloud account, you can call the ListGrantVSwitchesToCen operation to query the IDs of the vSwitches and zones of the VPC.
    ZoneId string
    The ID of the zone that supports Enterprise Edition transit routers. You can call the DescribeZones operation to query the most recent zone list. You can specify at most 10 zones in each call.
    vswitchId String
    The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.

    • If the VPC connection belongs to the current Alibaba Cloud account, you can call the DescribeVSwitches operation to query the IDs of the vSwitches and zones of the VPC.
    • If the VPC connection belongs to another Alibaba Cloud account, you can call the ListGrantVSwitchesToCen operation to query the IDs of the vSwitches and zones of the VPC.
    zoneId String
    The ID of the zone that supports Enterprise Edition transit routers. You can call the DescribeZones operation to query the most recent zone list. You can specify at most 10 zones in each call.
    vswitchId string
    The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.

    • If the VPC connection belongs to the current Alibaba Cloud account, you can call the DescribeVSwitches operation to query the IDs of the vSwitches and zones of the VPC.
    • If the VPC connection belongs to another Alibaba Cloud account, you can call the ListGrantVSwitchesToCen operation to query the IDs of the vSwitches and zones of the VPC.
    zoneId string
    The ID of the zone that supports Enterprise Edition transit routers. You can call the DescribeZones operation to query the most recent zone list. You can specify at most 10 zones in each call.
    vswitch_id str
    The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.

    • If the VPC connection belongs to the current Alibaba Cloud account, you can call the DescribeVSwitches operation to query the IDs of the vSwitches and zones of the VPC.
    • If the VPC connection belongs to another Alibaba Cloud account, you can call the ListGrantVSwitchesToCen operation to query the IDs of the vSwitches and zones of the VPC.
    zone_id str
    The ID of the zone that supports Enterprise Edition transit routers. You can call the DescribeZones operation to query the most recent zone list. You can specify at most 10 zones in each call.
    vswitchId String
    The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.

    • If the VPC connection belongs to the current Alibaba Cloud account, you can call the DescribeVSwitches operation to query the IDs of the vSwitches and zones of the VPC.
    • If the VPC connection belongs to another Alibaba Cloud account, you can call the ListGrantVSwitchesToCen operation to query the IDs of the vSwitches and zones of the VPC.
    zoneId String
    The ID of the zone that supports Enterprise Edition transit routers. You can call the DescribeZones operation to query the most recent zone list. You can specify at most 10 zones in each call.

    Import

    CEN Transit Router Vpc Attachment can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterVpcAttachment:TransitRouterVpcAttachment 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