1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cen
  5. TransitRouterRouteTablePropagation
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cen.TransitRouterRouteTablePropagation

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

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

    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 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,
    });
    const exampleTransitRouterRouteTable = new alicloud.cen.TransitRouterRouteTable("example", {transitRouterId: exampleTransitRouter.transitRouterId});
    const exampleTransitRouterRouteTablePropagation = new alicloud.cen.TransitRouterRouteTablePropagation("example", {
        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 = 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)
    example_transit_router_route_table = alicloud.cen.TransitRouterRouteTable("example", transit_router_id=example_transit_router.transit_router_id)
    example_transit_router_route_table_propagation = alicloud.cen.TransitRouterRouteTablePropagation("example",
        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]
    		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
    		}
    		exampleTransitRouterVpcAttachment, 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
    		}
    		exampleTransitRouterRouteTable, err := cen.NewTransitRouterRouteTable(ctx, "example", &cen.TransitRouterRouteTableArgs{
    			TransitRouterId: exampleTransitRouter.TransitRouterId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewTransitRouterRouteTablePropagation(ctx, "example", &cen.TransitRouterRouteTablePropagationArgs{
    			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 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,
        });
    
        var exampleTransitRouterRouteTable = new AliCloud.Cen.TransitRouterRouteTable("example", new()
        {
            TransitRouterId = exampleTransitRouter.TransitRouterId,
        });
    
        var exampleTransitRouterRouteTablePropagation = new AliCloud.Cen.TransitRouterRouteTablePropagation("example", 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.TransitRouterRouteTablePropagation;
    import com.pulumi.alicloud.cen.TransitRouterRouteTablePropagationArgs;
    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 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());
    
            var exampleTransitRouterRouteTable = new TransitRouterRouteTable("exampleTransitRouterRouteTable", TransitRouterRouteTableArgs.builder()
                .transitRouterId(exampleTransitRouter.transitRouterId())
                .build());
    
            var exampleTransitRouterRouteTablePropagation = new TransitRouterRouteTablePropagation("exampleTransitRouterRouteTablePropagation", TransitRouterRouteTablePropagationArgs.builder()
                .transitRouterRouteTableId(exampleTransitRouterRouteTable.transitRouterRouteTableId())
                .transitRouterAttachmentId(exampleTransitRouterVpcAttachment.transitRouterAttachmentId())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_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}
      exampleTransitRouterRouteTable:
        type: alicloud:cen:TransitRouterRouteTable
        name: example
        properties:
          transitRouterId: ${exampleTransitRouter.transitRouterId}
      exampleTransitRouterRouteTablePropagation:
        type: alicloud:cen:TransitRouterRouteTablePropagation
        name: example
        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 TransitRouterRouteTablePropagation Resource

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

    Constructor syntax

    new TransitRouterRouteTablePropagation(name: string, args: TransitRouterRouteTablePropagationArgs, opts?: CustomResourceOptions);
    @overload
    def TransitRouterRouteTablePropagation(resource_name: str,
                                           args: TransitRouterRouteTablePropagationArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def TransitRouterRouteTablePropagation(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           transit_router_attachment_id: Optional[str] = None,
                                           transit_router_route_table_id: Optional[str] = None,
                                           dry_run: Optional[bool] = None)
    func NewTransitRouterRouteTablePropagation(ctx *Context, name string, args TransitRouterRouteTablePropagationArgs, opts ...ResourceOption) (*TransitRouterRouteTablePropagation, error)
    public TransitRouterRouteTablePropagation(string name, TransitRouterRouteTablePropagationArgs args, CustomResourceOptions? opts = null)
    public TransitRouterRouteTablePropagation(String name, TransitRouterRouteTablePropagationArgs args)
    public TransitRouterRouteTablePropagation(String name, TransitRouterRouteTablePropagationArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:TransitRouterRouteTablePropagation
    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 TransitRouterRouteTablePropagationArgs
    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 TransitRouterRouteTablePropagationArgs
    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 TransitRouterRouteTablePropagationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TransitRouterRouteTablePropagationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TransitRouterRouteTablePropagationArgs
    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 transitRouterRouteTablePropagationResource = new AliCloud.Cen.TransitRouterRouteTablePropagation("transitRouterRouteTablePropagationResource", new()
    {
        TransitRouterAttachmentId = "string",
        TransitRouterRouteTableId = "string",
        DryRun = false,
    });
    
    example, err := cen.NewTransitRouterRouteTablePropagation(ctx, "transitRouterRouteTablePropagationResource", &cen.TransitRouterRouteTablePropagationArgs{
    	TransitRouterAttachmentId: pulumi.String("string"),
    	TransitRouterRouteTableId: pulumi.String("string"),
    	DryRun:                    pulumi.Bool(false),
    })
    
    var transitRouterRouteTablePropagationResource = new TransitRouterRouteTablePropagation("transitRouterRouteTablePropagationResource", TransitRouterRouteTablePropagationArgs.builder()
        .transitRouterAttachmentId("string")
        .transitRouterRouteTableId("string")
        .dryRun(false)
        .build());
    
    transit_router_route_table_propagation_resource = alicloud.cen.TransitRouterRouteTablePropagation("transitRouterRouteTablePropagationResource",
        transit_router_attachment_id="string",
        transit_router_route_table_id="string",
        dry_run=False)
    
    const transitRouterRouteTablePropagationResource = new alicloud.cen.TransitRouterRouteTablePropagation("transitRouterRouteTablePropagationResource", {
        transitRouterAttachmentId: "string",
        transitRouterRouteTableId: "string",
        dryRun: false,
    });
    
    type: alicloud:cen:TransitRouterRouteTablePropagation
    properties:
        dryRun: false
        transitRouterAttachmentId: string
        transitRouterRouteTableId: string
    

    TransitRouterRouteTablePropagation 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 TransitRouterRouteTablePropagation 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 TransitRouterRouteTablePropagation 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 TransitRouterRouteTablePropagation Resource

    Get an existing TransitRouterRouteTablePropagation 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?: TransitRouterRouteTablePropagationState, opts?: CustomResourceOptions): TransitRouterRouteTablePropagation
    @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) -> TransitRouterRouteTablePropagation
    func GetTransitRouterRouteTablePropagation(ctx *Context, name string, id IDInput, state *TransitRouterRouteTablePropagationState, opts ...ResourceOption) (*TransitRouterRouteTablePropagation, error)
    public static TransitRouterRouteTablePropagation Get(string name, Input<string> id, TransitRouterRouteTablePropagationState? state, CustomResourceOptions? opts = null)
    public static TransitRouterRouteTablePropagation get(String name, Output<String> id, TransitRouterRouteTablePropagationState 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 propagation can be imported using the id, e.g.

    $ pulumi import alicloud:cen/transitRouterRouteTablePropagation:TransitRouterRouteTablePropagation default tr-********:tr-attach-********
    

    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.62.1 published on Monday, Sep 16, 2024 by Pulumi