alicloud.cen.TransitRouterRouteTableAssociation
Explore with Pulumi AI
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 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 exampleTransitRouterRouteTableAssociation = new alicloud.cen.TransitRouterRouteTableAssociation("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_association = alicloud.cen.TransitRouterRouteTableAssociation("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.NewTransitRouterRouteTableAssociation(ctx, "example", &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 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 exampleTransitRouterRouteTableAssociation = new AliCloud.Cen.TransitRouterRouteTableAssociation("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.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 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 exampleTransitRouterRouteTableAssociation = new TransitRouterRouteTableAssociation("exampleTransitRouterRouteTableAssociation", TransitRouterRouteTableAssociationArgs.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}
exampleTransitRouterRouteTableAssociation:
type: alicloud:cen:TransitRouterRouteTableAssociation
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 TransitRouterRouteTableAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TransitRouterRouteTableAssociation(name: string, args: TransitRouterRouteTableAssociationArgs, opts?: CustomResourceOptions);
@overload
def TransitRouterRouteTableAssociation(resource_name: str,
args: TransitRouterRouteTableAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TransitRouterRouteTableAssociation(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 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var transitRouterRouteTableAssociationResource = new AliCloud.Cen.TransitRouterRouteTableAssociation("transitRouterRouteTableAssociationResource", new()
{
TransitRouterAttachmentId = "string",
TransitRouterRouteTableId = "string",
DryRun = false,
});
example, err := cen.NewTransitRouterRouteTableAssociation(ctx, "transitRouterRouteTableAssociationResource", &cen.TransitRouterRouteTableAssociationArgs{
TransitRouterAttachmentId: pulumi.String("string"),
TransitRouterRouteTableId: pulumi.String("string"),
DryRun: pulumi.Bool(false),
})
var transitRouterRouteTableAssociationResource = new TransitRouterRouteTableAssociation("transitRouterRouteTableAssociationResource", TransitRouterRouteTableAssociationArgs.builder()
.transitRouterAttachmentId("string")
.transitRouterRouteTableId("string")
.dryRun(false)
.build());
transit_router_route_table_association_resource = alicloud.cen.TransitRouterRouteTableAssociation("transitRouterRouteTableAssociationResource",
transit_router_attachment_id="string",
transit_router_route_table_id="string",
dry_run=False)
const transitRouterRouteTableAssociationResource = new alicloud.cen.TransitRouterRouteTableAssociation("transitRouterRouteTableAssociationResource", {
transitRouterAttachmentId: "string",
transitRouterRouteTableId: "string",
dryRun: false,
});
type: alicloud:cen:TransitRouterRouteTableAssociation
properties:
dryRun: false
transitRouterAttachmentId: string
transitRouterRouteTableId: string
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:
- Transit
Router stringAttachment Id - The ID the transit router attachment.
- Transit
Router stringRoute Table Id - 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
- Transit
Router stringAttachment Id - The ID the transit router attachment.
- Transit
Router stringRoute Table Id - 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
- transit
Router StringAttachment Id - The ID the transit router attachment.
- transit
Router StringRoute Table Id - The ID of the transit router route table.
- dry
Run 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 stringAttachment Id - The ID the transit router attachment.
- transit
Router stringRoute Table Id - The ID of the transit router route table.
- dry
Run 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_ strattachment_ id - The ID the transit router attachment.
- transit_
router_ strroute_ table_ id - 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
- transit
Router StringAttachment Id - The ID the transit router attachment.
- transit
Router StringRoute Table Id - The ID of the transit router route table.
- dry
Run 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:
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.
- 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 string
- The associating status of the network.
- Transit
Router stringAttachment Id - The ID the transit router attachment.
- Transit
Router stringRoute Table Id - 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 string
- The associating status of the network.
- Transit
Router stringAttachment Id - The ID the transit router attachment.
- Transit
Router stringRoute Table Id - The ID of the transit router route table.
- dry
Run 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.
- transit
Router StringAttachment Id - The ID the transit router attachment.
- transit
Router StringRoute Table Id - The ID of the transit router route table.
- dry
Run 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.
- transit
Router stringAttachment Id - The ID the transit router attachment.
- transit
Router stringRoute Table Id - 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_ strattachment_ id - The ID the transit router attachment.
- transit_
router_ strroute_ table_ id - The ID of the transit router route table.
- dry
Run 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.
- transit
Router StringAttachment Id - The ID the transit router attachment.
- transit
Router StringRoute Table Id - 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-********
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.