alicloud.cen.TransitRouterPeerAttachment
Provides a CEN transit router peer attachment resource that associate the transit router with the CEN instance. What is CEN transit router peer attachment
NOTE: Available in 1.128.0+
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testAcccExample";
var us = new AliCloud.Provider("us", new()
{
Region = "us-east-1",
});
var cn = new AliCloud.Provider("cn", new()
{
Region = "cn-hangzhou",
});
var defaultInstance = new AliCloud.Cen.Instance("defaultInstance", new()
{
CenInstanceName = name,
ProtectionLevel = "REDUCED",
}, new CustomResourceOptions
{
Provider = alicloud.Cn,
});
var defaultBandwidthPackage = new AliCloud.Cen.BandwidthPackage("defaultBandwidthPackage", new()
{
Bandwidth = 5,
CenBandwidthPackageName = name,
GeographicRegionAId = "China",
GeographicRegionBId = "North-America",
});
var defaultBandwidthPackageAttachment = new AliCloud.Cen.BandwidthPackageAttachment("defaultBandwidthPackageAttachment", new()
{
InstanceId = defaultInstance.Id,
BandwidthPackageId = defaultBandwidthPackage.Id,
}, new CustomResourceOptions
{
Provider = alicloud.Cn,
});
var cnTransitRouter = new AliCloud.Cen.TransitRouter("cnTransitRouter", new()
{
CenId = defaultInstance.Id,
}, new CustomResourceOptions
{
Provider = alicloud.Cn,
DependsOn = new[]
{
defaultBandwidthPackageAttachment,
},
});
var usTransitRouter = new AliCloud.Cen.TransitRouter("usTransitRouter", new()
{
CenId = defaultInstance.Id,
}, new CustomResourceOptions
{
Provider = alicloud.Us,
DependsOn = new[]
{
alicloud_cen_transit_router.Default_0,
},
});
var defaultTransitRouterPeerAttachment = new AliCloud.Cen.TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment", new()
{
CenId = defaultInstance.Id,
TransitRouterId = cnTransitRouter.TransitRouterId,
PeerTransitRouterRegionId = "us-east-1",
PeerTransitRouterId = usTransitRouter.TransitRouterId,
CenBandwidthPackageId = defaultBandwidthPackageAttachment.BandwidthPackageId,
Bandwidth = 5,
TransitRouterAttachmentDescription = name,
TransitRouterAttachmentName = name,
}, new CustomResourceOptions
{
Provider = alicloud.Cn,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/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-testAcccExample"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := alicloud.NewProvider(ctx, "us", &alicloud.ProviderArgs{
Region: pulumi.String("us-east-1"),
})
if err != nil {
return err
}
_, err = alicloud.NewProvider(ctx, "cn", &alicloud.ProviderArgs{
Region: pulumi.String("cn-hangzhou"),
})
if err != nil {
return err
}
defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", &cen.InstanceArgs{
CenInstanceName: pulumi.String(name),
ProtectionLevel: pulumi.String("REDUCED"),
}, pulumi.Provider(alicloud.Cn))
if err != nil {
return err
}
defaultBandwidthPackage, err := cen.NewBandwidthPackage(ctx, "defaultBandwidthPackage", &cen.BandwidthPackageArgs{
Bandwidth: pulumi.Int(5),
CenBandwidthPackageName: pulumi.String(name),
GeographicRegionAId: pulumi.String("China"),
GeographicRegionBId: pulumi.String("North-America"),
})
if err != nil {
return err
}
defaultBandwidthPackageAttachment, err := cen.NewBandwidthPackageAttachment(ctx, "defaultBandwidthPackageAttachment", &cen.BandwidthPackageAttachmentArgs{
InstanceId: defaultInstance.ID(),
BandwidthPackageId: defaultBandwidthPackage.ID(),
}, pulumi.Provider(alicloud.Cn))
if err != nil {
return err
}
cnTransitRouter, err := cen.NewTransitRouter(ctx, "cnTransitRouter", &cen.TransitRouterArgs{
CenId: defaultInstance.ID(),
}, pulumi.Provider(alicloud.Cn), pulumi.DependsOn([]pulumi.Resource{
defaultBandwidthPackageAttachment,
}))
if err != nil {
return err
}
usTransitRouter, err := cen.NewTransitRouter(ctx, "usTransitRouter", &cen.TransitRouterArgs{
CenId: defaultInstance.ID(),
}, pulumi.Provider(alicloud.Us), pulumi.DependsOn([]pulumi.Resource{
alicloud_cen_transit_router.Default_0,
}))
if err != nil {
return err
}
_, err = cen.NewTransitRouterPeerAttachment(ctx, "defaultTransitRouterPeerAttachment", &cen.TransitRouterPeerAttachmentArgs{
CenId: defaultInstance.ID(),
TransitRouterId: cnTransitRouter.TransitRouterId,
PeerTransitRouterRegionId: pulumi.String("us-east-1"),
PeerTransitRouterId: usTransitRouter.TransitRouterId,
CenBandwidthPackageId: defaultBandwidthPackageAttachment.BandwidthPackageId,
Bandwidth: pulumi.Int(5),
TransitRouterAttachmentDescription: pulumi.String(name),
TransitRouterAttachmentName: pulumi.String(name),
}, pulumi.Provider(alicloud.Cn))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.Provider;
import com.pulumi.alicloud.ProviderArgs;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cen.BandwidthPackage;
import com.pulumi.alicloud.cen.BandwidthPackageArgs;
import com.pulumi.alicloud.cen.BandwidthPackageAttachment;
import com.pulumi.alicloud.cen.BandwidthPackageAttachmentArgs;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.cen.TransitRouterPeerAttachment;
import com.pulumi.alicloud.cen.TransitRouterPeerAttachmentArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-testAcccExample");
var us = new Provider("us", ProviderArgs.builder()
.region("us-east-1")
.build());
var cn = new Provider("cn", ProviderArgs.builder()
.region("cn-hangzhou")
.build());
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cenInstanceName(name)
.protectionLevel("REDUCED")
.build(), CustomResourceOptions.builder()
.provider(alicloud.cn())
.build());
var defaultBandwidthPackage = new BandwidthPackage("defaultBandwidthPackage", BandwidthPackageArgs.builder()
.bandwidth(5)
.cenBandwidthPackageName(name)
.geographicRegionAId("China")
.geographicRegionBId("North-America")
.build());
var defaultBandwidthPackageAttachment = new BandwidthPackageAttachment("defaultBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()
.instanceId(defaultInstance.id())
.bandwidthPackageId(defaultBandwidthPackage.id())
.build(), CustomResourceOptions.builder()
.provider(alicloud.cn())
.build());
var cnTransitRouter = new TransitRouter("cnTransitRouter", TransitRouterArgs.builder()
.cenId(defaultInstance.id())
.build(), CustomResourceOptions.builder()
.provider(alicloud.cn())
.dependsOn(defaultBandwidthPackageAttachment)
.build());
var usTransitRouter = new TransitRouter("usTransitRouter", TransitRouterArgs.builder()
.cenId(defaultInstance.id())
.build(), CustomResourceOptions.builder()
.provider(alicloud.us())
.dependsOn(alicloud_cen_transit_router.default_0())
.build());
var defaultTransitRouterPeerAttachment = new TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment", TransitRouterPeerAttachmentArgs.builder()
.cenId(defaultInstance.id())
.transitRouterId(cnTransitRouter.transitRouterId())
.peerTransitRouterRegionId("us-east-1")
.peerTransitRouterId(usTransitRouter.transitRouterId())
.cenBandwidthPackageId(defaultBandwidthPackageAttachment.bandwidthPackageId())
.bandwidth(5)
.transitRouterAttachmentDescription(name)
.transitRouterAttachmentName(name)
.build(), CustomResourceOptions.builder()
.provider(alicloud.cn())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testAcccExample"
us = alicloud.Provider("us", region="us-east-1")
cn = alicloud.Provider("cn", region="cn-hangzhou")
default_instance = alicloud.cen.Instance("defaultInstance",
cen_instance_name=name,
protection_level="REDUCED",
opts=pulumi.ResourceOptions(provider=alicloud["cn"]))
default_bandwidth_package = alicloud.cen.BandwidthPackage("defaultBandwidthPackage",
bandwidth=5,
cen_bandwidth_package_name=name,
geographic_region_a_id="China",
geographic_region_b_id="North-America")
default_bandwidth_package_attachment = alicloud.cen.BandwidthPackageAttachment("defaultBandwidthPackageAttachment",
instance_id=default_instance.id,
bandwidth_package_id=default_bandwidth_package.id,
opts=pulumi.ResourceOptions(provider=alicloud["cn"]))
cn_transit_router = alicloud.cen.TransitRouter("cnTransitRouter", cen_id=default_instance.id,
opts=pulumi.ResourceOptions(provider=alicloud["cn"],
depends_on=[default_bandwidth_package_attachment]))
us_transit_router = alicloud.cen.TransitRouter("usTransitRouter", cen_id=default_instance.id,
opts=pulumi.ResourceOptions(provider=alicloud["us"],
depends_on=[alicloud_cen_transit_router["default_0"]]))
default_transit_router_peer_attachment = alicloud.cen.TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment",
cen_id=default_instance.id,
transit_router_id=cn_transit_router.transit_router_id,
peer_transit_router_region_id="us-east-1",
peer_transit_router_id=us_transit_router.transit_router_id,
cen_bandwidth_package_id=default_bandwidth_package_attachment.bandwidth_package_id,
bandwidth=5,
transit_router_attachment_description=name,
transit_router_attachment_name=name,
opts=pulumi.ResourceOptions(provider=alicloud["cn"]))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testAcccExample";
const us = new alicloud.Provider("us", {region: "us-east-1"});
const cn = new alicloud.Provider("cn", {region: "cn-hangzhou"});
const defaultInstance = new alicloud.cen.Instance("defaultInstance", {
cenInstanceName: name,
protectionLevel: "REDUCED",
}, {
provider: alicloud.cn,
});
const defaultBandwidthPackage = new alicloud.cen.BandwidthPackage("defaultBandwidthPackage", {
bandwidth: 5,
cenBandwidthPackageName: name,
geographicRegionAId: "China",
geographicRegionBId: "North-America",
});
const defaultBandwidthPackageAttachment = new alicloud.cen.BandwidthPackageAttachment("defaultBandwidthPackageAttachment", {
instanceId: defaultInstance.id,
bandwidthPackageId: defaultBandwidthPackage.id,
}, {
provider: alicloud.cn,
});
const cnTransitRouter = new alicloud.cen.TransitRouter("cnTransitRouter", {cenId: defaultInstance.id}, {
provider: alicloud.cn,
dependsOn: [defaultBandwidthPackageAttachment],
});
const usTransitRouter = new alicloud.cen.TransitRouter("usTransitRouter", {cenId: defaultInstance.id}, {
provider: alicloud.us,
dependsOn: [alicloud_cen_transit_router.default_0],
});
const defaultTransitRouterPeerAttachment = new alicloud.cen.TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment", {
cenId: defaultInstance.id,
transitRouterId: cnTransitRouter.transitRouterId,
peerTransitRouterRegionId: "us-east-1",
peerTransitRouterId: usTransitRouter.transitRouterId,
cenBandwidthPackageId: defaultBandwidthPackageAttachment.bandwidthPackageId,
bandwidth: 5,
transitRouterAttachmentDescription: name,
transitRouterAttachmentName: name,
}, {
provider: alicloud.cn,
});
configuration:
name:
type: string
default: tf-testAcccExample
resources:
us:
type: pulumi:providers:alicloud
properties:
region: us-east-1
cn:
type: pulumi:providers:alicloud
properties:
region: cn-hangzhou
defaultInstance:
type: alicloud:cen:Instance
properties:
cenInstanceName: ${name}
protectionLevel: REDUCED
options:
provider: ${alicloud.cn}
defaultBandwidthPackage:
type: alicloud:cen:BandwidthPackage
properties:
bandwidth: 5
cenBandwidthPackageName: ${name}
geographicRegionAId: China
geographicRegionBId: North-America
defaultBandwidthPackageAttachment:
type: alicloud:cen:BandwidthPackageAttachment
properties:
instanceId: ${defaultInstance.id}
bandwidthPackageId: ${defaultBandwidthPackage.id}
options:
provider: ${alicloud.cn}
cnTransitRouter:
type: alicloud:cen:TransitRouter
properties:
cenId: ${defaultInstance.id}
options:
provider: ${alicloud.cn}
dependson:
- ${defaultBandwidthPackageAttachment}
usTransitRouter:
type: alicloud:cen:TransitRouter
properties:
cenId: ${defaultInstance.id}
options:
provider: ${alicloud.us}
dependson:
- ${alicloud_cen_transit_router.default_0}
defaultTransitRouterPeerAttachment:
type: alicloud:cen:TransitRouterPeerAttachment
properties:
cenId: ${defaultInstance.id}
transitRouterId: ${cnTransitRouter.transitRouterId}
peerTransitRouterRegionId: us-east-1
peerTransitRouterId: ${usTransitRouter.transitRouterId}
cenBandwidthPackageId: ${defaultBandwidthPackageAttachment.bandwidthPackageId}
bandwidth: 5
transitRouterAttachmentDescription: ${name}
transitRouterAttachmentName: ${name}
options:
provider: ${alicloud.cn}
Create TransitRouterPeerAttachment Resource
new TransitRouterPeerAttachment(name: string, args: TransitRouterPeerAttachmentArgs, opts?: CustomResourceOptions);
@overload
def TransitRouterPeerAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_publish_route_enabled: Optional[bool] = None,
bandwidth: Optional[int] = None,
bandwidth_type: Optional[str] = None,
cen_bandwidth_package_id: Optional[str] = None,
cen_id: Optional[str] = None,
dry_run: Optional[bool] = None,
peer_transit_router_id: Optional[str] = None,
peer_transit_router_region_id: Optional[str] = None,
resource_type: Optional[str] = None,
route_table_association_enabled: Optional[bool] = None,
route_table_propagation_enabled: Optional[bool] = None,
transit_router_attachment_description: Optional[str] = None,
transit_router_attachment_name: Optional[str] = None,
transit_router_id: Optional[str] = None)
@overload
def TransitRouterPeerAttachment(resource_name: str,
args: TransitRouterPeerAttachmentArgs,
opts: Optional[ResourceOptions] = None)
func NewTransitRouterPeerAttachment(ctx *Context, name string, args TransitRouterPeerAttachmentArgs, opts ...ResourceOption) (*TransitRouterPeerAttachment, error)
public TransitRouterPeerAttachment(string name, TransitRouterPeerAttachmentArgs args, CustomResourceOptions? opts = null)
public TransitRouterPeerAttachment(String name, TransitRouterPeerAttachmentArgs args)
public TransitRouterPeerAttachment(String name, TransitRouterPeerAttachmentArgs args, CustomResourceOptions options)
type: alicloud:cen:TransitRouterPeerAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitRouterPeerAttachmentArgs
- 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 TransitRouterPeerAttachmentArgs
- 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 TransitRouterPeerAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TransitRouterPeerAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TransitRouterPeerAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TransitRouterPeerAttachment 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 TransitRouterPeerAttachment resource accepts the following input properties:
- Cen
Id string The ID of the CEN.
- Peer
Transit stringRouter Id The ID of the peer transit router.
- Peer
Transit stringRouter Region Id The region ID of peer transit router.
- Auto
Publish boolRoute Enabled Auto publish route enabled. The system default value is
false
.- Bandwidth int
The bandwidth of the bandwidth package.
- Bandwidth
Type string The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- Cen
Bandwidth stringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- Dry
Run bool Whether to perform pre-check for this request, including permission, instance status verification, etc.
- Resource
Type string The resource type to attachment. Only support
VR
and default value isVR
.- Route
Table boolAssociation Enabled Whether to association route table. System default is
false
.- Route
Table boolPropagation Enabled Whether to propagation route table. System default is
false
.- Transit
Router stringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- Transit
Router stringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- Transit
Router stringId The ID of the transit router to attach.
- Cen
Id string The ID of the CEN.
- Peer
Transit stringRouter Id The ID of the peer transit router.
- Peer
Transit stringRouter Region Id The region ID of peer transit router.
- Auto
Publish boolRoute Enabled Auto publish route enabled. The system default value is
false
.- Bandwidth int
The bandwidth of the bandwidth package.
- Bandwidth
Type string The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- Cen
Bandwidth stringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- Dry
Run bool Whether to perform pre-check for this request, including permission, instance status verification, etc.
- Resource
Type string The resource type to attachment. Only support
VR
and default value isVR
.- Route
Table boolAssociation Enabled Whether to association route table. System default is
false
.- Route
Table boolPropagation Enabled Whether to propagation route table. System default is
false
.- Transit
Router stringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- Transit
Router stringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- Transit
Router stringId The ID of the transit router to attach.
- cen
Id String The ID of the CEN.
- peer
Transit StringRouter Id The ID of the peer transit router.
- peer
Transit StringRouter Region Id The region ID of peer transit router.
- auto
Publish BooleanRoute Enabled Auto publish route enabled. The system default value is
false
.- bandwidth Integer
The bandwidth of the bandwidth package.
- bandwidth
Type String The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen
Bandwidth StringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- dry
Run Boolean Whether to perform pre-check for this request, including permission, instance status verification, etc.
- resource
Type String The resource type to attachment. Only support
VR
and default value isVR
.- route
Table BooleanAssociation Enabled Whether to association route table. System default is
false
.- route
Table BooleanPropagation Enabled Whether to propagation route table. System default is
false
.- transit
Router StringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit
Router StringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit
Router StringId The ID of the transit router to attach.
- cen
Id string The ID of the CEN.
- peer
Transit stringRouter Id The ID of the peer transit router.
- peer
Transit stringRouter Region Id The region ID of peer transit router.
- auto
Publish booleanRoute Enabled Auto publish route enabled. The system default value is
false
.- bandwidth number
The bandwidth of the bandwidth package.
- bandwidth
Type string The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen
Bandwidth stringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- dry
Run boolean Whether to perform pre-check for this request, including permission, instance status verification, etc.
- resource
Type string The resource type to attachment. Only support
VR
and default value isVR
.- route
Table booleanAssociation Enabled Whether to association route table. System default is
false
.- route
Table booleanPropagation Enabled Whether to propagation route table. System default is
false
.- transit
Router stringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit
Router stringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit
Router stringId The ID of the transit router to attach.
- cen_
id str The ID of the CEN.
- peer_
transit_ strrouter_ id The ID of the peer transit router.
- peer_
transit_ strrouter_ region_ id The region ID of peer transit router.
- auto_
publish_ boolroute_ enabled Auto publish route enabled. The system default value is
false
.- bandwidth int
The bandwidth of the bandwidth package.
- bandwidth_
type str The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen_
bandwidth_ strpackage_ id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- dry_
run bool Whether to perform pre-check for this request, including permission, instance status verification, etc.
- resource_
type str The resource type to attachment. Only support
VR
and default value isVR
.- route_
table_ boolassociation_ enabled Whether to association route table. System default is
false
.- route_
table_ boolpropagation_ enabled Whether to propagation route table. System default is
false
.- transit_
router_ strattachment_ description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit_
router_ strattachment_ name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit_
router_ strid The ID of the transit router to attach.
- cen
Id String The ID of the CEN.
- peer
Transit StringRouter Id The ID of the peer transit router.
- peer
Transit StringRouter Region Id The region ID of peer transit router.
- auto
Publish BooleanRoute Enabled Auto publish route enabled. The system default value is
false
.- bandwidth Number
The bandwidth of the bandwidth package.
- bandwidth
Type String The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen
Bandwidth StringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- dry
Run Boolean Whether to perform pre-check for this request, including permission, instance status verification, etc.
- resource
Type String The resource type to attachment. Only support
VR
and default value isVR
.- route
Table BooleanAssociation Enabled Whether to association route table. System default is
false
.- route
Table BooleanPropagation Enabled Whether to propagation route table. System default is
false
.- transit
Router StringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit
Router StringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit
Router StringId The ID of the transit router to attach.
Outputs
All input properties are implicitly available as output properties. Additionally, the TransitRouterPeerAttachment 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.
- Transit
Router stringAttachment Id The ID of transit router attachment id.
- Id string
The provider-assigned unique ID for this managed resource.
- Status string
The associating status of the network.
- Transit
Router stringAttachment Id The ID of transit router attachment id.
- id String
The provider-assigned unique ID for this managed resource.
- status String
The associating status of the network.
- transit
Router StringAttachment Id The ID of transit router attachment id.
- id string
The provider-assigned unique ID for this managed resource.
- status string
The associating status of the network.
- transit
Router stringAttachment Id The ID of transit router attachment id.
- id str
The provider-assigned unique ID for this managed resource.
- status str
The associating status of the network.
- transit_
router_ strattachment_ id The ID of transit router attachment id.
- id String
The provider-assigned unique ID for this managed resource.
- status String
The associating status of the network.
- transit
Router StringAttachment Id The ID of transit router attachment id.
Look up Existing TransitRouterPeerAttachment Resource
Get an existing TransitRouterPeerAttachment 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?: TransitRouterPeerAttachmentState, opts?: CustomResourceOptions): TransitRouterPeerAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_publish_route_enabled: Optional[bool] = None,
bandwidth: Optional[int] = None,
bandwidth_type: Optional[str] = None,
cen_bandwidth_package_id: Optional[str] = None,
cen_id: Optional[str] = None,
dry_run: Optional[bool] = None,
peer_transit_router_id: Optional[str] = None,
peer_transit_router_region_id: 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,
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) -> TransitRouterPeerAttachment
func GetTransitRouterPeerAttachment(ctx *Context, name string, id IDInput, state *TransitRouterPeerAttachmentState, opts ...ResourceOption) (*TransitRouterPeerAttachment, error)
public static TransitRouterPeerAttachment Get(string name, Input<string> id, TransitRouterPeerAttachmentState? state, CustomResourceOptions? opts = null)
public static TransitRouterPeerAttachment get(String name, Output<String> id, TransitRouterPeerAttachmentState 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.
- Auto
Publish boolRoute Enabled Auto publish route enabled. The system default value is
false
.- Bandwidth int
The bandwidth of the bandwidth package.
- Bandwidth
Type string The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- Cen
Bandwidth stringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- Cen
Id string The ID of the CEN.
- Dry
Run bool Whether to perform pre-check for this request, including permission, instance status verification, etc.
- Peer
Transit stringRouter Id The ID of the peer transit router.
- Peer
Transit stringRouter Region Id The region ID of peer transit router.
- Resource
Type string The resource type to attachment. Only support
VR
and default value isVR
.- Route
Table boolAssociation Enabled Whether to association route table. System default is
false
.- Route
Table boolPropagation Enabled Whether to propagation route table. System default is
false
.- Status string
The associating status of the network.
- Transit
Router stringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- Transit
Router stringAttachment Id The ID of transit router attachment id.
- Transit
Router stringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- Transit
Router stringId The ID of the transit router to attach.
- Auto
Publish boolRoute Enabled Auto publish route enabled. The system default value is
false
.- Bandwidth int
The bandwidth of the bandwidth package.
- Bandwidth
Type string The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- Cen
Bandwidth stringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- Cen
Id string The ID of the CEN.
- Dry
Run bool Whether to perform pre-check for this request, including permission, instance status verification, etc.
- Peer
Transit stringRouter Id The ID of the peer transit router.
- Peer
Transit stringRouter Region Id The region ID of peer transit router.
- Resource
Type string The resource type to attachment. Only support
VR
and default value isVR
.- Route
Table boolAssociation Enabled Whether to association route table. System default is
false
.- Route
Table boolPropagation Enabled Whether to propagation route table. System default is
false
.- Status string
The associating status of the network.
- Transit
Router stringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- Transit
Router stringAttachment Id The ID of transit router attachment id.
- Transit
Router stringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- Transit
Router stringId The ID of the transit router to attach.
- auto
Publish BooleanRoute Enabled Auto publish route enabled. The system default value is
false
.- bandwidth Integer
The bandwidth of the bandwidth package.
- bandwidth
Type String The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen
Bandwidth StringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- cen
Id String The ID of the CEN.
- dry
Run Boolean Whether to perform pre-check for this request, including permission, instance status verification, etc.
- peer
Transit StringRouter Id The ID of the peer transit router.
- peer
Transit StringRouter Region Id The region ID of peer transit router.
- resource
Type String The resource type to attachment. Only support
VR
and default value isVR
.- route
Table BooleanAssociation Enabled Whether to association route table. System default is
false
.- route
Table BooleanPropagation Enabled Whether to propagation route table. System default is
false
.- status String
The associating status of the network.
- transit
Router StringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit
Router StringAttachment Id The ID of transit router attachment id.
- transit
Router StringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit
Router StringId The ID of the transit router to attach.
- auto
Publish booleanRoute Enabled Auto publish route enabled. The system default value is
false
.- bandwidth number
The bandwidth of the bandwidth package.
- bandwidth
Type string The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen
Bandwidth stringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- cen
Id string The ID of the CEN.
- dry
Run boolean Whether to perform pre-check for this request, including permission, instance status verification, etc.
- peer
Transit stringRouter Id The ID of the peer transit router.
- peer
Transit stringRouter Region Id The region ID of peer transit router.
- resource
Type string The resource type to attachment. Only support
VR
and default value isVR
.- route
Table booleanAssociation Enabled Whether to association route table. System default is
false
.- route
Table booleanPropagation Enabled Whether to propagation route table. System default is
false
.- status string
The associating status of the network.
- transit
Router stringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit
Router stringAttachment Id The ID of transit router attachment id.
- transit
Router stringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit
Router stringId The ID of the transit router to attach.
- auto_
publish_ boolroute_ enabled Auto publish route enabled. The system default value is
false
.- bandwidth int
The bandwidth of the bandwidth package.
- bandwidth_
type str The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen_
bandwidth_ strpackage_ id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- cen_
id str The ID of the CEN.
- dry_
run bool Whether to perform pre-check for this request, including permission, instance status verification, etc.
- peer_
transit_ strrouter_ id The ID of the peer transit router.
- peer_
transit_ strrouter_ region_ id The region ID of peer transit router.
- resource_
type str The resource type to attachment. Only support
VR
and default value isVR
.- route_
table_ boolassociation_ enabled Whether to association route table. System default is
false
.- route_
table_ boolpropagation_ enabled Whether to propagation route table. System default is
false
.- status str
The associating status of the network.
- transit_
router_ strattachment_ description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit_
router_ strattachment_ id The ID of transit router attachment id.
- transit_
router_ strattachment_ name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit_
router_ strid The ID of the transit router to attach.
- auto
Publish BooleanRoute Enabled Auto publish route enabled. The system default value is
false
.- bandwidth Number
The bandwidth of the bandwidth package.
- bandwidth
Type String The method that is used to allocate bandwidth to the cross-region connection. Valid values:
BandwidthPackage
andDataTransfer
.- cen
Bandwidth StringPackage Id The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
- cen
Id String The ID of the CEN.
- dry
Run Boolean Whether to perform pre-check for this request, including permission, instance status verification, etc.
- peer
Transit StringRouter Id The ID of the peer transit router.
- peer
Transit StringRouter Region Id The region ID of peer transit router.
- resource
Type String The resource type to attachment. Only support
VR
and default value isVR
.- route
Table BooleanAssociation Enabled Whether to association route table. System default is
false
.- route
Table BooleanPropagation Enabled Whether to propagation route table. System default is
false
.- status String
The associating status of the network.
- transit
Router StringAttachment Description The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.- transit
Router StringAttachment Id The ID of transit router attachment id.
- transit
Router StringAttachment Name The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
- transit
Router StringId The ID of the transit router to attach.
Import
CEN instance can be imported using the id, e.g.
$ pulumi import alicloud:cen/transitRouterPeerAttachment:TransitRouterPeerAttachment example 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.