1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cen
  5. TransitRouterRouteTableAssociation
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cen.TransitRouterRouteTableAssociation

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a CEN transit router route table association resource.What is Cen Transit Router Route Table Association

    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") || "tf_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 exampleNetwork = new alicloud.vpc.Network("exampleNetwork", {
        vpcName: name,
        cidrBlock: "192.168.0.0/16",
    });
    const exampleMaster = new alicloud.vpc.Switch("exampleMaster", {
        vswitchName: name,
        cidrBlock: "192.168.1.0/24",
        vpcId: exampleNetwork.id,
        zoneId: masterZone,
    });
    const exampleSlave = new alicloud.vpc.Switch("exampleSlave", {
        vswitchName: name,
        cidrBlock: "192.168.2.0/24",
        vpcId: exampleNetwork.id,
        zoneId: slaveZone,
    });
    const exampleInstance = new alicloud.cen.Instance("exampleInstance", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const exampleTransitRouter = new alicloud.cen.TransitRouter("exampleTransitRouter", {
        transitRouterName: name,
        cenId: exampleInstance.id,
    });
    const exampleTransitRouterVpcAttachment = new alicloud.cen.TransitRouterVpcAttachment("exampleTransitRouterVpcAttachment", {
        cenId: exampleInstance.id,
        transitRouterId: exampleTransitRouter.transitRouterId,
        vpcId: exampleNetwork.id,
        zoneMappings: [
            {
                zoneId: masterZone,
                vswitchId: exampleMaster.id,
            },
            {
                zoneId: slaveZone,
                vswitchId: exampleSlave.id,
            },
        ],
        transitRouterAttachmentName: name,
        transitRouterAttachmentDescription: name,
    });
    const exampleTransitRouterRouteTable = new alicloud.cen.TransitRouterRouteTable("exampleTransitRouterRouteTable", {transitRouterId: exampleTransitRouter.transitRouterId});
    const exampleTransitRouterRouteTableAssociation = new alicloud.cen.TransitRouterRouteTableAssociation("exampleTransitRouterRouteTableAssociation", {
        transitRouterRouteTableId: exampleTransitRouterRouteTable.transitRouterRouteTableId,
        transitRouterAttachmentId: exampleTransitRouterVpcAttachment.transitRouterAttachmentId,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_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_network = alicloud.vpc.Network("exampleNetwork",
        vpc_name=name,
        cidr_block="192.168.0.0/16")
    example_master = alicloud.vpc.Switch("exampleMaster",
        vswitch_name=name,
        cidr_block="192.168.1.0/24",
        vpc_id=example_network.id,
        zone_id=master_zone)
    example_slave = alicloud.vpc.Switch("exampleSlave",
        vswitch_name=name,
        cidr_block="192.168.2.0/24",
        vpc_id=example_network.id,
        zone_id=slave_zone)
    example_instance = alicloud.cen.Instance("exampleInstance",
        cen_instance_name=name,
        protection_level="REDUCED")
    example_transit_router = alicloud.cen.TransitRouter("exampleTransitRouter",
        transit_router_name=name,
        cen_id=example_instance.id)
    example_transit_router_vpc_attachment = alicloud.cen.TransitRouterVpcAttachment("exampleTransitRouterVpcAttachment",
        cen_id=example_instance.id,
        transit_router_id=example_transit_router.transit_router_id,
        vpc_id=example_network.id,
        zone_mappings=[
            alicloud.cen.TransitRouterVpcAttachmentZoneMappingArgs(
                zone_id=master_zone,
                vswitch_id=example_master.id,
            ),
            alicloud.cen.TransitRouterVpcAttachmentZoneMappingArgs(
                zone_id=slave_zone,
                vswitch_id=example_slave.id,
            ),
        ],
        transit_router_attachment_name=name,
        transit_router_attachment_description=name)
    example_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("exampleTransitRouterRouteTable", transit_router_id=example_transit_router.transit_router_id)
    example_transit_router_route_table_association = alicloud.cen.TransitRouterRouteTableAssociation("exampleTransitRouterRouteTableAssociation",
        transit_router_route_table_id=example_transit_router_route_table.transit_router_route_table_id,
        transit_router_attachment_id=example_transit_router_vpc_attachment.transit_router_attachment_id)
    
    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 := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := cen.GetTransitRouterAvailableResources(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		masterZone := _default.Resources[0].MasterZones[0]
    		slaveZone := _default.Resources[0].SlaveZones[1]
    		exampleNetwork, err := vpc.NewNetwork(ctx, "exampleNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("192.168.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleMaster, err := vpc.NewSwitch(ctx, "exampleMaster", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("192.168.1.0/24"),
    			VpcId:       exampleNetwork.ID(),
    			ZoneId:      pulumi.String(masterZone),
    		})
    		if err != nil {
    			return err
    		}
    		exampleSlave, err := vpc.NewSwitch(ctx, "exampleSlave", &vpc.SwitchArgs{
    			VswitchName: pulumi.String(name),
    			CidrBlock:   pulumi.String("192.168.2.0/24"),
    			VpcId:       exampleNetwork.ID(),
    			ZoneId:      pulumi.String(slaveZone),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstance, err := cen.NewInstance(ctx, "exampleInstance", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "exampleTransitRouter", &cen.TransitRouterArgs{
    			TransitRouterName: pulumi.String(name),
    			CenId:             exampleInstance.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransitRouterVpcAttachment, err := cen.NewTransitRouterVpcAttachment(ctx, "exampleTransitRouterVpcAttachment", &cen.TransitRouterVpcAttachmentArgs{
    			CenId:           exampleInstance.ID(),
    			TransitRouterId: exampleTransitRouter.TransitRouterId,
    			VpcId:           exampleNetwork.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
    		}
    		exampleTransitRouterRouteTable, err := cen.NewTransitRouterRouteTable(ctx, "exampleTransitRouterRouteTable", &cen.TransitRouterRouteTableArgs{
    			TransitRouterId: exampleTransitRouter.TransitRouterId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterRouteTableAssociation(ctx, "exampleTransitRouterRouteTableAssociation", &cen.TransitRouterRouteTableAssociationArgs{
    			TransitRouterRouteTableId: exampleTransitRouterRouteTable.TransitRouterRouteTableId,
    			TransitRouterAttachmentId: exampleTransitRouterVpcAttachment.TransitRouterAttachmentId,
    		})
    		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") ?? "tf_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 exampleNetwork = new AliCloud.Vpc.Network("exampleNetwork", new()
        {
            VpcName = name,
            CidrBlock = "192.168.0.0/16",
        });
    
        var exampleMaster = new AliCloud.Vpc.Switch("exampleMaster", new()
        {
            VswitchName = name,
            CidrBlock = "192.168.1.0/24",
            VpcId = exampleNetwork.Id,
            ZoneId = masterZone,
        });
    
        var exampleSlave = new AliCloud.Vpc.Switch("exampleSlave", new()
        {
            VswitchName = name,
            CidrBlock = "192.168.2.0/24",
            VpcId = exampleNetwork.Id,
            ZoneId = slaveZone,
        });
    
        var exampleInstance = new AliCloud.Cen.Instance("exampleInstance", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var exampleTransitRouter = new AliCloud.Cen.TransitRouter("exampleTransitRouter", new()
        {
            TransitRouterName = name,
            CenId = exampleInstance.Id,
        });
    
        var exampleTransitRouterVpcAttachment = new AliCloud.Cen.TransitRouterVpcAttachment("exampleTransitRouterVpcAttachment", new()
        {
            CenId = exampleInstance.Id,
            TransitRouterId = exampleTransitRouter.TransitRouterId,
            VpcId = exampleNetwork.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,
        });
    
        var exampleTransitRouterRouteTable = new AliCloud.Cen.TransitRouterRouteTable("exampleTransitRouterRouteTable", new()
        {
            TransitRouterId = exampleTransitRouter.TransitRouterId,
        });
    
        var exampleTransitRouterRouteTableAssociation = new AliCloud.Cen.TransitRouterRouteTableAssociation("exampleTransitRouterRouteTableAssociation", new()
        {
            TransitRouterRouteTableId = exampleTransitRouterRouteTable.TransitRouterRouteTableId,
            TransitRouterAttachmentId = exampleTransitRouterVpcAttachment.TransitRouterAttachmentId,
        });
    
    });
    
    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 com.pulumi.alicloud.cen.TransitRouterRouteTable;
    import com.pulumi.alicloud.cen.TransitRouterRouteTableArgs;
    import com.pulumi.alicloud.cen.TransitRouterRouteTableAssociation;
    import com.pulumi.alicloud.cen.TransitRouterRouteTableAssociationArgs;
    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("tf_example");
            final var default = CenFunctions.getTransitRouterAvailableResources();
    
            final var masterZone = default_.resources()[0].masterZones()[0];
    
            final var slaveZone = default_.resources()[0].slaveZones()[1];
    
            var exampleNetwork = new Network("exampleNetwork", 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(exampleNetwork.id())
                .zoneId(masterZone)
                .build());
    
            var exampleSlave = new Switch("exampleSlave", SwitchArgs.builder()        
                .vswitchName(name)
                .cidrBlock("192.168.2.0/24")
                .vpcId(exampleNetwork.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(exampleNetwork.id())
                .zoneMappings(            
                    TransitRouterVpcAttachmentZoneMappingArgs.builder()
                        .zoneId(masterZone)
                        .vswitchId(exampleMaster.id())
                        .build(),
                    TransitRouterVpcAttachmentZoneMappingArgs.builder()
                        .zoneId(slaveZone)
                        .vswitchId(exampleSlave.id())
                        .build())
                .transitRouterAttachmentName(name)
                .transitRouterAttachmentDescription(name)
                .build());
    
            var exampleTransitRouterRouteTable = new TransitRouterRouteTable("exampleTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()        
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .build());
    
            var exampleTransitRouterRouteTableAssociation = new TransitRouterRouteTableAssociation("exampleTransitRouterRouteTableAssociation", TransitRouterRouteTableAssociationArgs.builder()        
                .transitRouterRouteTableId(exampleTransitRouterRouteTable.transitRouterRouteTableId())
                .transitRouterAttachmentId(exampleTransitRouterVpcAttachment.transitRouterAttachmentId())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      exampleNetwork:
        type: alicloud:vpc:Network
        properties:
          vpcName: ${name}
          cidrBlock: 192.168.0.0/16
      exampleMaster:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 192.168.1.0/24
          vpcId: ${exampleNetwork.id}
          zoneId: ${masterZone}
      exampleSlave:
        type: alicloud:vpc:Switch
        properties:
          vswitchName: ${name}
          cidrBlock: 192.168.2.0/24
          vpcId: ${exampleNetwork.id}
          zoneId: ${slaveZone}
      exampleInstance:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
      exampleTransitRouter:
        type: alicloud:cen:TransitRouter
        properties:
          transitRouterName: ${name}
          cenId: ${exampleInstance.id}
      exampleTransitRouterVpcAttachment:
        type: alicloud:cen:TransitRouterVpcAttachment
        properties:
          cenId: ${exampleInstance.id}
          transitRouterId: ${exampleTransitRouter.transitRouterId}
          vpcId: ${exampleNetwork.id}
          zoneMappings:
            - zoneId: ${masterZone}
              vswitchId: ${exampleMaster.id}
            - zoneId: ${slaveZone}
              vswitchId: ${exampleSlave.id}
          transitRouterAttachmentName: ${name}
          transitRouterAttachmentDescription: ${name}
      exampleTransitRouterRouteTable:
        type: alicloud:cen:TransitRouterRouteTable
        properties:
          transitRouterId: ${exampleTransitRouter.transitRouterId}
      exampleTransitRouterRouteTableAssociation:
        type: alicloud:cen:TransitRouterRouteTableAssociation
        properties:
          transitRouterRouteTableId: ${exampleTransitRouterRouteTable.transitRouterRouteTableId}
          transitRouterAttachmentId: ${exampleTransitRouterVpcAttachment.transitRouterAttachmentId}
    variables:
      default:
        fn::invoke:
          Function: alicloud:cen:getTransitRouterAvailableResources
          Arguments: {}
      masterZone: ${default.resources[0].masterZones[0]}
      slaveZone: ${default.resources[0].slaveZones[1]}
    

    Create TransitRouterRouteTableAssociation Resource

    new TransitRouterRouteTableAssociation(name: string, args: TransitRouterRouteTableAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouterRouteTableAssociation(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           dry_run: Optional[bool] = None,
                                           transit_router_attachment_id: Optional[str] = None,
                                           transit_router_route_table_id: Optional[str] = None)
    @overload
    def TransitRouterRouteTableAssociation(resource_name: str,
                                           args: TransitRouterRouteTableAssociationArgs,
                                           opts: Optional[ResourceOptions] = None)
    func NewTransitRouterRouteTableAssociation(ctx *Context, name string, args TransitRouterRouteTableAssociationArgs, opts ...ResourceOption) (*TransitRouterRouteTableAssociation, error)
    public TransitRouterRouteTableAssociation(string name, TransitRouterRouteTableAssociationArgs args, CustomResourceOptions? opts = null)
    public TransitRouterRouteTableAssociation(String name, TransitRouterRouteTableAssociationArgs args)
    public TransitRouterRouteTableAssociation(String name, TransitRouterRouteTableAssociationArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouterRouteTableAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args TransitRouterRouteTableAssociationArgs
    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 TransitRouterRouteTableAssociationArgs
    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 TransitRouterRouteTableAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouterRouteTableAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouterRouteTableAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TransitRouterRouteTableAssociation Resource Properties

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

    Inputs

    The TransitRouterRouteTableAssociation resource accepts the following input properties:

    TransitRouterAttachmentId string
    The ID the transit router attachment.
    TransitRouterRouteTableId string
    The ID of the transit router route table.
    DryRun bool

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    TransitRouterAttachmentId string
    The ID the transit router attachment.
    TransitRouterRouteTableId string
    The ID of the transit router route table.
    DryRun bool

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    transitRouterAttachmentId String
    The ID the transit router attachment.
    transitRouterRouteTableId String
    The ID of the transit router route table.
    dryRun Boolean

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    transitRouterAttachmentId string
    The ID the transit router attachment.
    transitRouterRouteTableId string
    The ID of the transit router route table.
    dryRun boolean

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    transit_router_attachment_id str
    The ID the transit router attachment.
    transit_router_route_table_id str
    The ID of the transit router route table.
    dry_run bool

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    transitRouterAttachmentId String
    The ID the transit router attachment.
    transitRouterRouteTableId String
    The ID of the transit router route table.
    dryRun Boolean

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The associating status of the network.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The associating status of the network.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The associating status of the network.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The associating status of the network.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The associating status of the network.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The associating status of the network.

    Look up Existing TransitRouterRouteTableAssociation Resource

    Get an existing TransitRouterRouteTableAssociation 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?: TransitRouterRouteTableAssociationState, opts?: CustomResourceOptions): TransitRouterRouteTableAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dry_run: Optional[bool] = None,
            status: Optional[str] = None,
            transit_router_attachment_id: Optional[str] = None,
            transit_router_route_table_id: Optional[str] = None) -> TransitRouterRouteTableAssociation
    func GetTransitRouterRouteTableAssociation(ctx *Context, name string, id IDInput, state *TransitRouterRouteTableAssociationState, opts ...ResourceOption) (*TransitRouterRouteTableAssociation, error)
    public static TransitRouterRouteTableAssociation Get(string name, Input<string> id, TransitRouterRouteTableAssociationState? state, CustomResourceOptions? opts = null)
    public static TransitRouterRouteTableAssociation get(String name, Output<String> id, TransitRouterRouteTableAssociationState 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:
    DryRun bool

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    Status string
    The associating status of the network.
    TransitRouterAttachmentId string
    The ID the transit router attachment.
    TransitRouterRouteTableId string
    The ID of the transit router route table.
    DryRun bool

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    Status string
    The associating status of the network.
    TransitRouterAttachmentId string
    The ID the transit router attachment.
    TransitRouterRouteTableId string
    The ID of the transit router route table.
    dryRun Boolean

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    status String
    The associating status of the network.
    transitRouterAttachmentId String
    The ID the transit router attachment.
    transitRouterRouteTableId String
    The ID of the transit router route table.
    dryRun boolean

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    status string
    The associating status of the network.
    transitRouterAttachmentId string
    The ID the transit router attachment.
    transitRouterRouteTableId string
    The ID of the transit router route table.
    dry_run bool

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    status str
    The associating status of the network.
    transit_router_attachment_id str
    The ID the transit router attachment.
    transit_router_route_table_id str
    The ID of the transit router route table.
    dryRun Boolean

    The dry run.

    NOTE: The Zone of CEN has MasterZone and SlaveZone, first zone_id of zone_mapping need be MasterZone. We have a API to describeZonesAPI

    status String
    The associating status of the network.
    transitRouterAttachmentId String
    The ID the transit router attachment.
    transitRouterRouteTableId String
    The ID of the transit router route table.

    Import

    CEN transit router route table association can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterRouteTableAssociation:TransitRouterRouteTableAssociation default tr-********:tr-attach-********
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi