Module cen
This page documents the language specification for the alicloud package. If you're looking for help working with the inputs, outputs, or functions of alicloud resources in a Pulumi program, please see the resource documentation for examples and API reference.
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the
pulumi/pulumi-alicloudrepo; however, if that doesn’t turn up anything, please consult the sourceterraform-providers/terraform-provider-alicloudrepo.
Resources
- BandwidthLimit
- BandwidthPackage
- BandwidthPackageAttachment
- FlowLog
- Instance
- InstanceAttachment
- InstanceGrant
- PrivateZone
- RouteEntry
- RouteMap
Functions
Others
- BandwidthLimitArgs
- BandwidthLimitState
- BandwidthPackageArgs
- BandwidthPackageAttachmentArgs
- BandwidthPackageAttachmentState
- BandwidthPackageState
- FlowLogArgs
- FlowLogState
- GetBandwidthLimitsArgs
- GetBandwidthLimitsResult
- GetBandwidthPackagesArgs
- GetBandwidthPackagesResult
- GetFlowlogsArgs
- GetFlowlogsResult
- GetInstancesArgs
- GetInstancesResult
- GetRegionRouteEntriesArgs
- GetRegionRouteEntriesResult
- GetRouteEntriesArgs
- GetRouteEntriesResult
- InstanceArgs
- InstanceAttachmentArgs
- InstanceAttachmentState
- InstanceGrantArgs
- InstanceGrantState
- InstanceState
- PrivateZoneArgs
- PrivateZoneState
- RouteEntryArgs
- RouteEntryState
- RouteMapArgs
- RouteMapState
Resources
Resource BandwidthLimit
class BandwidthLimit extends CustomResourceProvides a CEN cross-regional interconnection bandwidth resource. To connect networks in different regions, you must set cross-region interconnection bandwidth after buying a bandwidth package. The total bandwidth set for all the interconnected regions of a bandwidth package cannot exceed the bandwidth of the bandwidth package. By default, 1 Kbps bandwidth is provided for connectivity test. To run normal business, you must buy a bandwidth package and set a proper interconnection bandwidth.
For example, a CEN instance is bound to a bandwidth package of 20 Mbps and the interconnection areas are Mainland China and North America. You can set the cross-region interconnection bandwidth between US West 1 and China East 1, China East 2, China South 1, and so on. However, the total bandwidth set for all the interconnected regions cannot exceed 20 Mbps.
For information about CEN and how to use it, see Cross-region interconnection bandwidth
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccCenBandwidthLimitConfig";
const fra = new alicloud.Provider("fra", {
region: "eu-central-1",
});
const sh = new alicloud.Provider("sh", {
region: "cn-shanghai",
});
const vpc1 = new alicloud.vpc.Network("vpc1", {
cidrBlock: "192.168.0.0/16",
}, { provider: fra });
const vpc2 = new alicloud.vpc.Network("vpc2", {
cidrBlock: "172.16.0.0/12",
}, { provider: sh });
const cen = new alicloud.cen.Instance("cen", {
description: "tf-testAccCenBandwidthLimitConfigDescription",
});
const bwp = new alicloud.cen.BandwidthPackage("bwp", {
bandwidth: 5,
geographicRegionIds: [
"Europe",
"China",
],
});
const bwpAttach = new alicloud.cen.BandwidthPackageAttachment("bwpAttach", {
bandwidthPackageId: bwp.id,
instanceId: cen.id,
});
const vpcAttach1 = new alicloud.cen.InstanceAttachment("vpcAttach1", {
childInstanceId: vpc1.id,
childInstanceRegionId: "eu-central-1",
instanceId: cen.id,
});
const vpcAttach2 = new alicloud.cen.InstanceAttachment("vpcAttach2", {
childInstanceId: vpc2.id,
childInstanceRegionId: "cn-shanghai",
instanceId: cen.id,
});
const foo = new alicloud.cen.BandwidthLimit("foo", {
bandwidthLimit: 4,
instanceId: cen.id,
regionIds: [
"eu-central-1",
"cn-shanghai",
],
}, { dependsOn: [bwpAttach, vpcAttach1, vpcAttach2] });constructor
new BandwidthLimit(name: string, args: BandwidthLimitArgs, opts?: pulumi.CustomResourceOptions)Create a BandwidthLimit resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BandwidthLimitState, opts?: pulumi.CustomResourceOptions): BandwidthLimitGet an existing BandwidthLimit resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is BandwidthLimitReturns true if the given object is an instance of BandwidthLimit. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property bandwidthLimit
public bandwidthLimit: pulumi.Output<number>;The bandwidth configured for the interconnected regions communication.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property instanceId
public instanceId: pulumi.Output<string>;The ID of the CEN.
property regionIds
public regionIds: pulumi.Output<string[]>;List of the two regions to interconnect. Must be two different regions.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource BandwidthPackage
class BandwidthPackage extends CustomResourceProvides a CEN bandwidth package resource. The CEN bandwidth package is an abstracted object that includes an interconnection bandwidth and interconnection areas. To buy a bandwidth package, you must specify the areas to connect. An area consists of one or more Alibaba Cloud regions. The areas in CEN include Mainland China, Asia Pacific, North America, and Europe.
For information about CEN and how to use it, see Manage bandwidth packages.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.cen.BandwidthPackage("foo", {
bandwidth: 5,
geographicRegionIds: [
"China",
"Asia-Pacific",
],
});constructor
new BandwidthPackage(name: string, args: BandwidthPackageArgs, opts?: pulumi.CustomResourceOptions)Create a BandwidthPackage resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BandwidthPackageState, opts?: pulumi.CustomResourceOptions): BandwidthPackageGet an existing BandwidthPackage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is BandwidthPackageReturns true if the given object is an instance of BandwidthPackage. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property bandwidth
public bandwidth: pulumi.Output<number>;The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
property chargeType
public chargeType: pulumi.Output<string | undefined>;The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
property description
public description: pulumi.Output<string | undefined>;The description of the bandwidth package. Default to null.
property expiredTime
public expiredTime: pulumi.Output<string>;The time of the bandwidth package to expire.
property geographicRegionIds
public geographicRegionIds: pulumi.Output<string[]>;List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the bandwidth package. Defaults to null.
property period
public period: pulumi.Output<number | undefined>;The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
property status
public status: pulumi.Output<string>;The status of the bandwidth, including “InUse” and “Idle”.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource BandwidthPackageAttachment
class BandwidthPackageAttachment extends CustomResourceProvides a CEN bandwidth package attachment resource. The resource can be used to bind a bandwidth package to a specified CEN instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a new bandwidth package attachment and use it to attach a bandwidth package to a new CEN
const cen = new alicloud.cen.Instance("cen", {
description: "tf-testAccCenBandwidthPackageAttachmentDescription",
});
const bwp = new alicloud.cen.BandwidthPackage("bwp", {
bandwidth: 20,
geographicRegionIds: [
"China",
"Asia-Pacific",
],
});
const foo = new alicloud.cen.BandwidthPackageAttachment("foo", {
bandwidthPackageId: bwp.id,
instanceId: cen.id,
});constructor
new BandwidthPackageAttachment(name: string, args: BandwidthPackageAttachmentArgs, opts?: pulumi.CustomResourceOptions)Create a BandwidthPackageAttachment resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BandwidthPackageAttachmentState, opts?: pulumi.CustomResourceOptions): BandwidthPackageAttachmentGet an existing BandwidthPackageAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is BandwidthPackageAttachmentReturns true if the given object is an instance of BandwidthPackageAttachment. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property bandwidthPackageId
public bandwidthPackageId: pulumi.Output<string>;The ID of the bandwidth package.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property instanceId
public instanceId: pulumi.Output<string>;The ID of the CEN.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource FlowLog
class FlowLog extends CustomResourceconstructor
new FlowLog(name: string, args: FlowLogArgs, opts?: pulumi.CustomResourceOptions)Create a FlowLog resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FlowLogState, opts?: pulumi.CustomResourceOptions): FlowLogGet an existing FlowLog resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is FlowLogReturns true if the given object is an instance of FlowLog. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property cenId
public cenId: pulumi.Output<string>;The ID of the CEN Instance.
property description
public description: pulumi.Output<string | undefined>;The description of flowlog.
property flowLogName
public flowLogName: pulumi.Output<string | undefined>;The name of flowlog.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property logStoreName
public logStoreName: pulumi.Output<string>;The name of the log store which is in the projectName SLS project.
property projectName
public projectName: pulumi.Output<string>;The name of the SLS project.
property status
public status: pulumi.Output<string | undefined>;The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource Instance
class Instance extends CustomResourceProvides a CEN instance resource. Cloud Enterprise Network (CEN) is a service that allows you to create a global network for rapidly building a distributed business system with a hybrid cloud computing solution. CEN enables you to build a secure, private, and enterprise-class interconnected network between VPCs in different regions and your local data centers. CEN provides enterprise-class scalability that automatically responds to your dynamic computing requirements.
For information about CEN and how to use it, see What is Cloud Enterprise Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const cen = new alicloud.cen.Instance("cen", {
description: "an example for cen",
});constructor
new Instance(name: string, args?: InstanceArgs, opts?: pulumi.CustomResourceOptions)Create a Instance resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): InstanceGet an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is InstanceReturns true if the given object is an instance of Instance. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property description
public description: pulumi.Output<string | undefined>;The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property name
public name: pulumi.Output<string>;The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
property protectionLevel
public protectionLevel: pulumi.Output<string>;(Available in 1.76.0+) Indicates the allowed level of CIDR block overlapping.
property status
public status: pulumi.Output<string>;The Cen Instance current status.
property tags
public tags: pulumi.Output<{[key: string]: any} | undefined>;A mapping of tags to assign to the resource.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource InstanceAttachment
class InstanceAttachment extends CustomResourceconstructor
new InstanceAttachment(name: string, args: InstanceAttachmentArgs, opts?: pulumi.CustomResourceOptions)Create a InstanceAttachment resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceAttachmentState, opts?: pulumi.CustomResourceOptions): InstanceAttachmentGet an existing InstanceAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is InstanceAttachmentReturns true if the given object is an instance of InstanceAttachment. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property childInstanceId
public childInstanceId: pulumi.Output<string>;The ID of the child instance to attach.
property childInstanceOwnerId
public childInstanceOwnerId: pulumi.Output<string>;The uid of the child instance. Only used when attach a child instance of other account.
property childInstanceRegionId
public childInstanceRegionId: pulumi.Output<string>;The region ID of the child instance to attach.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property instanceId
public instanceId: pulumi.Output<string>;The ID of the CEN.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource InstanceGrant
class InstanceGrant extends CustomResourceProvides a CEN child instance grant resource, which allow you to authorize a VPC or VBR to a CEN of a different account.
For more information about how to use it, see Attach a network in a different account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccCenInstanceGrantBasic";
// Create a new instance-grant and use it to grant one child instance of account1 to a new CEN of account 2.
const account1 = new alicloud.Provider("account1", {
accessKey: "access123",
secretKey: "secret123",
});
const account2 = new alicloud.Provider("account2", {
accessKey: "access456",
secretKey: "secret456",
});
const cen = new alicloud.cen.Instance("cen", {}, { provider: account2 });
const vpc = new alicloud.vpc.Network("vpc", {
cidrBlock: "192.168.0.0/16",
}, { provider: account1 });
const fooInstanceGrant = new alicloud.cen.InstanceGrant("foo", {
cenId: cen.id,
cenOwnerId: "uid2",
childInstanceId: vpc.id,
}, { provider: account1 });
const fooInstanceAttachment = new alicloud.cen.InstanceAttachment("foo", {
childInstanceId: vpc.id,
childInstanceOwnerId: "uid1",
childInstanceRegionId: "cn-qingdao",
instanceId: cen.id,
}, { provider: account2, dependsOn: [fooInstanceGrant] });constructor
new InstanceGrant(name: string, args: InstanceGrantArgs, opts?: pulumi.CustomResourceOptions)Create a InstanceGrant resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceGrantState, opts?: pulumi.CustomResourceOptions): InstanceGrantGet an existing InstanceGrant resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is InstanceGrantReturns true if the given object is an instance of InstanceGrant. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property cenId
public cenId: pulumi.Output<string>;The ID of the CEN.
property cenOwnerId
public cenOwnerId: pulumi.Output<string>;The owner UID of the CEN which the child instance granted to.
property childInstanceId
public childInstanceId: pulumi.Output<string>;The ID of the child instance to grant.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource PrivateZone
class PrivateZone extends CustomResourceThis topic describes how to configure PrivateZone access. PrivateZone is a VPC-based resolution and management service for private domain names. After you set a PrivateZone access, the Cloud Connect Network (CCN) and Virtual Border Router (VBR) attached to a CEN instance can access the PrivateZone service through CEN.
For information about CEN Private Zone and how to use it, see Manage CEN Private Zone.
NOTE: Available in 1.83.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultInstance = new alicloud.cen.Instance("default", {});
const defaultNetwork = new alicloud.vpc.Network("default", {
cidrBlock: "172.16.0.0/12",
});
const defaultInstanceAttachment = new alicloud.cen.InstanceAttachment("default", {
childInstanceId: defaultNetwork.id,
childInstanceRegionId: "cn-hangzhou",
instanceId: defaultInstance.id,
}, { dependsOn: [defaultInstance, defaultNetwork] });
const defaultPrivateZone = new alicloud.cen.PrivateZone("default", {
accessRegionId: "cn-hangzhou",
cenId: defaultInstance.id,
hostRegionId: "cn-hangzhou",
hostVpcId: defaultNetwork.id,
}, { dependsOn: [defaultInstanceAttachment] });constructor
new PrivateZone(name: string, args: PrivateZoneArgs, opts?: pulumi.CustomResourceOptions)Create a PrivateZone resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PrivateZoneState, opts?: pulumi.CustomResourceOptions): PrivateZoneGet an existing PrivateZone resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is PrivateZoneReturns true if the given object is an instance of PrivateZone. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property accessRegionId
public accessRegionId: pulumi.Output<string>;The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
property cenId
public cenId: pulumi.Output<string>;The ID of the CEN instance.
property hostRegionId
public hostRegionId: pulumi.Output<string>;The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
property hostVpcId
public hostVpcId: pulumi.Output<string>;The VPC that belongs to the service region.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property status
public status: pulumi.Output<string>;The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource RouteEntry
class RouteEntry extends CustomResourceProvides a CEN route entry resource. Cloud Enterprise Network (CEN) supports publishing and withdrawing route entries of attached networks. You can publish a route entry of an attached VPC or VBR to a CEN instance, then other attached networks can learn the route if there is no route conflict. You can withdraw a published route entry when CEN does not need it any more.
For information about CEN route entries publishment and how to use it, see Manage network routes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccCenRouteEntryConfig";
const hz = new alicloud.Provider("hz", {
region: "cn-hangzhou",
});
const defaultZones = pulumi.output(alicloud.getZones({
availableDiskCategory: "cloudEfficiency",
availableResourceCreation: "VSwitch",
}, { provider: hz, async: true }));
const defaultInstanceTypes = defaultZones.apply(defaultZones => alicloud.ecs.getInstanceTypes({
availabilityZone: defaultZones.zones[0].id,
cpuCoreCount: 1,
memorySize: 2,
}, { provider: hz, async: true }));
const defaultImages = pulumi.output(alicloud.ecs.getImages({
mostRecent: true,
nameRegex: "^ubuntu_18.*64",
owners: "system",
}, { provider: hz, async: true }));
const vpc = new alicloud.vpc.Network("vpc", {
cidrBlock: "172.16.0.0/12",
}, { provider: hz });
const defaultSwitch = new alicloud.vpc.Switch("default", {
availabilityZone: defaultZones.zones[0].id,
cidrBlock: "172.16.0.0/21",
vpcId: vpc.id,
}, { provider: hz });
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
description: "foo",
vpcId: vpc.id,
}, { provider: hz });
const defaultInstance = new alicloud.ecs.Instance("default", {
imageId: defaultImages.images[0].id,
instanceName: name,
instanceType: defaultInstanceTypes.instanceTypes[0].id,
internetChargeType: "PayByTraffic",
internetMaxBandwidthOut: 5,
securityGroups: [defaultSecurityGroup.id],
systemDiskCategory: "cloudEfficiency",
vswitchId: defaultSwitch.id,
}, { provider: hz });
const cen = new alicloud.cen.Instance("cen", {});
const attach = new alicloud.cen.InstanceAttachment("attach", {
childInstanceId: vpc.id,
childInstanceRegionId: "cn-hangzhou",
instanceId: cen.id,
}, { dependsOn: [defaultSwitch] });
const route = new alicloud.vpc.RouteEntry("route", {
destinationCidrblock: "11.0.0.0/16",
nexthopId: defaultInstance.id,
nexthopType: "Instance",
routeTableId: vpc.routeTableId,
}, { provider: hz });
const foo = new alicloud.cen.RouteEntry("foo", {
cidrBlock: route.destinationCidrblock,
instanceId: cen.id,
routeTableId: vpc.routeTableId,
}, { provider: hz, dependsOn: [attach] });constructor
new RouteEntry(name: string, args: RouteEntryArgs, opts?: pulumi.CustomResourceOptions)Create a RouteEntry resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteEntryState, opts?: pulumi.CustomResourceOptions): RouteEntryGet an existing RouteEntry resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is RouteEntryReturns true if the given object is an instance of RouteEntry. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property cidrBlock
public cidrBlock: pulumi.Output<string>;The destination CIDR block of the route entry to publish.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property instanceId
public instanceId: pulumi.Output<string>;The ID of the CEN.
property routeTableId
public routeTableId: pulumi.Output<string>;The route table of the attached VBR or VPC.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Resource RouteMap
class RouteMap extends CustomResourceThis topic provides an overview of the route map function of Cloud Enterprise Networks (CENs). You can use the route map function to filter routes and modify route attributes. By doing so, you can manage the communication between networks attached to a CEN.
For information about CEN Route Map and how to use it, see Manage CEN Route Map.
NOTE: Available in 1.82.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultInstance = new alicloud.cen.Instance("default", {});
const vpc00Region = new alicloud.Provider("vpc00Region", {
region: "cn-hangzhou",
});
const vpc01Region = new alicloud.Provider("vpc01Region", {
region: "cn-shanghai",
});
const vpc00 = new alicloud.vpc.Network("vpc00", {
cidrBlock: "172.16.0.0/12",
}, { provider: vpc00Region });
const vpc01 = new alicloud.vpc.Network("vpc01", {
cidrBlock: "172.16.0.0/12",
}, { provider: vpc01Region });
const default00 = new alicloud.cen.InstanceAttachment("default00", {
childInstanceId: vpc00.id,
childInstanceRegionId: "cn-hangzhou",
instanceId: defaultInstance.id,
});
const default01 = new alicloud.cen.InstanceAttachment("default01", {
childInstanceId: vpc01.id,
childInstanceRegionId: "cn-shanghai",
instanceId: defaultInstance.id,
});
const defaultRouteMap = new alicloud.cen.RouteMap("default", {
asPathMatchMode: "Include",
cenId: alicloud_cen_instance_cen.id,
cenRegionId: "cn-hangzhou",
cidrMatchMode: "Include",
communityMatchMode: "Include",
communityOperateMode: "Additive",
description: "test-desc",
destinationChildInstanceTypes: ["VPC"],
destinationCidrBlocks: [vpc01.cidrBlock],
destinationInstanceIds: [vpc01.id],
destinationInstanceIdsReverseMatch: false,
destinationRouteTableIds: [vpc01.routeTableId],
mapResult: "Permit",
matchAsns: ["65501"],
matchCommunitySets: ["65501:1"],
nextPriority: 1,
operateCommunitySets: ["65501:1"],
preference: 20,
prependAsPaths: ["65501"],
priority: 1,
routeTypes: ["System"],
sourceChildInstanceTypes: ["VPC"],
sourceInstanceIds: [vpc00.id],
sourceInstanceIdsReverseMatch: false,
sourceRegionIds: ["cn-hangzhou"],
sourceRouteTableIds: [vpc00.routeTableId],
transmitDirection: "RegionIn",
}, { dependsOn: [default00, default01] });constructor
new RouteMap(name: string, args: RouteMapArgs, opts?: pulumi.CustomResourceOptions)Create a RouteMap resource with the given unique name, arguments, and options.
nameThe unique name of the resource.argsThe arguments to use to populate this resource's properties.optsA bag of options that control this resource's behavior.
method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RouteMapState, opts?: pulumi.CustomResourceOptions): RouteMapGet an existing RouteMap resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is RouteMapReturns true if the given object is an instance of RouteMap. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property asPathMatchMode
public asPathMatchMode: pulumi.Output<string | undefined>;A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: [“Include”, “Complete”].
property cenId
public cenId: pulumi.Output<string>;The ID of the CEN instance.
property cenRegionId
public cenRegionId: pulumi.Output<string>;The ID of the region to which the CEN instance belongs.
property cidrMatchMode
public cidrMatchMode: pulumi.Output<string | undefined>;A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: [“Include”, “Complete”].
property communityMatchMode
public communityMatchMode: pulumi.Output<string | undefined>;A match statement. It indicates the mode in which the community attribute is matched. Valid values: [“Include”, “Complete”].
property communityOperateMode
public communityOperateMode: pulumi.Output<string | undefined>;An action statement. It indicates the mode in which the community attribute is operated. Valid values: [“Additive”, “Replace”].
property description
public description: pulumi.Output<string | undefined>;The description of the route map.
property destinationChildInstanceTypes
public destinationChildInstanceTypes: pulumi.Output<string[] | undefined>;A match statement that indicates the list of destination instance types. Valid values: [“VPC”, “VBR”, “CCN”].
property destinationCidrBlocks
public destinationCidrBlocks: pulumi.Output<string[] | undefined>;A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
property destinationInstanceIds
public destinationInstanceIds: pulumi.Output<string[] | undefined>;A match statement that indicates the list of IDs of the destination instances.
property destinationInstanceIdsReverseMatch
public destinationInstanceIdsReverseMatch: pulumi.Output<boolean | undefined>;Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
property destinationRouteTableIds
public destinationRouteTableIds: pulumi.Output<string[] | undefined>;A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property mapResult
public mapResult: pulumi.Output<string>;The action that is performed to a route if the route matches all the match conditions. Valid values: [“Permit”, “Deny”].
property matchAsns
public matchAsns: pulumi.Output<string[] | undefined>;A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
property matchCommunitySets
public matchCommunitySets: pulumi.Output<string[] | undefined>;A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
property nextPriority
public nextPriority: pulumi.Output<number | undefined>;The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
property operateCommunitySets
public operateCommunitySets: pulumi.Output<string[] | undefined>;An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
property preference
public preference: pulumi.Output<number | undefined>;An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
property prependAsPaths
public prependAsPaths: pulumi.Output<string[] | undefined>;An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
property priority
public priority: pulumi.Output<number>;The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
property routeMapId
public routeMapId: pulumi.Output<string>;property routeTypes
public routeTypes: pulumi.Output<string[] | undefined>;A match statement that indicates the list of route types. Valid values: [“System”, “Custom”, “BGP”].
property sourceChildInstanceTypes
public sourceChildInstanceTypes: pulumi.Output<string[] | undefined>;A match statement that indicates the list of source instance types. Valid values: [“VPC”, “VBR”, “CCN”].
property sourceInstanceIds
public sourceInstanceIds: pulumi.Output<string[] | undefined>;A match statement that indicates the list of IDs of the source instances.
property sourceInstanceIdsReverseMatch
public sourceInstanceIdsReverseMatch: pulumi.Output<boolean | undefined>;Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
property sourceRegionIds
public sourceRegionIds: pulumi.Output<string[] | undefined>;A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
property sourceRouteTableIds
public sourceRouteTableIds: pulumi.Output<string[] | undefined>;A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
property status
public status: pulumi.Output<string>;(Computed) The status of route map. Valid values: [“Creating”, “Active”, “Deleting”].
property transmitDirection
public transmitDirection: pulumi.Output<string>;The direction in which the route map is applied. Valid values: [“RegionIn”, “RegionOut”].
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Functions
Function getBandwidthLimits
getBandwidthLimits(args?: GetBandwidthLimitsArgs, opts?: pulumi.InvokeOptions): Promise<GetBandwidthLimitsResult>This data source provides CEN Bandwidth Limits available to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const bwl = pulumi.output(alicloud.cen.getBandwidthLimits({
instanceIds: ["cen-id1"],
}, { async: true }));
export const firstCenBandwidthLimitsLocalRegionId = bwl.limits[0].localRegionId;Function getBandwidthPackages
getBandwidthPackages(args?: GetBandwidthPackagesArgs, opts?: pulumi.InvokeOptions): Promise<GetBandwidthPackagesResult>This data source provides CEN Bandwidth Packages available to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const bwp = pulumi.output(alicloud.cen.getBandwidthPackages({
instanceId: "cen-id1",
nameRegex: "^foo",
}, { async: true }));
export const firstCenBandwidthPackageId = bwp.packages[0].id;Function getFlowlogs
getFlowlogs(args?: GetFlowlogsArgs, opts?: pulumi.InvokeOptions): Promise<GetFlowlogsResult>This data source provides CEN flow logs available to the user.
NOTE: Available in 1.78.0+
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultFlowlogs = pulumi.output(alicloud.cen.getFlowlogs({
ids: ["flowlog-tig1xxxxx"],
nameRegex: "^foo",
}, { async: true }));
export const firstCenFlowlogId = alicloud_cen_instances_default.flowlogs.0.id;Function getInstances
getInstances(args?: GetInstancesArgs, opts?: pulumi.InvokeOptions): Promise<GetInstancesResult>This data source provides CEN instances available to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const cenInstancesDs = pulumi.output(alicloud.cen.getInstances({
ids: ["cen-id1"],
nameRegex: "^foo",
}, { async: true }));
export const firstCenInstanceId = cenInstancesDs.instances[0].id;Function getRegionRouteEntries
getRegionRouteEntries(args: GetRegionRouteEntriesArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionRouteEntriesResult>This data source provides CEN Regional Route Entries available to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const entry = pulumi.output(alicloud.cen.getRegionRouteEntries({
instanceId: "cen-id1",
regionId: "cn-beijing",
}, { async: true }));
export const firstRegionRouteEntriesRouteEntryCidrBlock = entry.entries[0].cidrBlock;Function getRouteEntries
getRouteEntries(args: GetRouteEntriesArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteEntriesResult>This data source provides CEN Route Entries available to the user.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const entry = pulumi.output(alicloud.cen.getRouteEntries({
instanceId: "cen-id1",
routeTableId: "vtb-id1",
}, { async: true }));
export const firstRouteEntriesRouteEntryCidrBlock = entry.entries[0].cidrBlock;Others
interface BandwidthLimitArgs
interface BandwidthLimitArgsThe set of arguments for constructing a BandwidthLimit resource.
property bandwidthLimit
bandwidthLimit: pulumi.Input<number>;The bandwidth configured for the interconnected regions communication.
property instanceId
instanceId: pulumi.Input<string>;The ID of the CEN.
property regionIds
regionIds: pulumi.Input<pulumi.Input<string>[]>;List of the two regions to interconnect. Must be two different regions.
interface BandwidthLimitState
interface BandwidthLimitStateInput properties used for looking up and filtering BandwidthLimit resources.
property bandwidthLimit
bandwidthLimit?: pulumi.Input<number>;The bandwidth configured for the interconnected regions communication.
property instanceId
instanceId?: pulumi.Input<string>;The ID of the CEN.
property regionIds
regionIds?: pulumi.Input<pulumi.Input<string>[]>;List of the two regions to interconnect. Must be two different regions.
interface BandwidthPackageArgs
interface BandwidthPackageArgsThe set of arguments for constructing a BandwidthPackage resource.
property bandwidth
bandwidth: pulumi.Input<number>;The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
property chargeType
chargeType?: pulumi.Input<string>;The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
property description
description?: pulumi.Input<string>;The description of the bandwidth package. Default to null.
property geographicRegionIds
geographicRegionIds: pulumi.Input<pulumi.Input<string>[]>;List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East.
property name
name?: pulumi.Input<string>;The name of the bandwidth package. Defaults to null.
property period
period?: pulumi.Input<number>;The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
interface BandwidthPackageAttachmentArgs
interface BandwidthPackageAttachmentArgsThe set of arguments for constructing a BandwidthPackageAttachment resource.
property bandwidthPackageId
bandwidthPackageId: pulumi.Input<string>;The ID of the bandwidth package.
property instanceId
instanceId: pulumi.Input<string>;The ID of the CEN.
interface BandwidthPackageAttachmentState
interface BandwidthPackageAttachmentStateInput properties used for looking up and filtering BandwidthPackageAttachment resources.
property bandwidthPackageId
bandwidthPackageId?: pulumi.Input<string>;The ID of the bandwidth package.
property instanceId
instanceId?: pulumi.Input<string>;The ID of the CEN.
interface BandwidthPackageState
interface BandwidthPackageStateInput properties used for looking up and filtering BandwidthPackage resources.
property bandwidth
bandwidth?: pulumi.Input<number>;The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
property chargeType
chargeType?: pulumi.Input<string>;The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can’t be deleted before expired time.
property description
description?: pulumi.Input<string>;The description of the bandwidth package. Default to null.
property expiredTime
expiredTime?: pulumi.Input<string>;The time of the bandwidth package to expire.
property geographicRegionIds
geographicRegionIds?: pulumi.Input<pulumi.Input<string>[]>;List of the two areas to connect. Valid value: China | North-America | Asia-Pacific | Europe | Middle-East.
property name
name?: pulumi.Input<string>;The name of the bandwidth package. Defaults to null.
property period
period?: pulumi.Input<number>;The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1.
property status
status?: pulumi.Input<string>;The status of the bandwidth, including “InUse” and “Idle”.
interface FlowLogArgs
interface FlowLogArgsThe set of arguments for constructing a FlowLog resource.
property cenId
cenId: pulumi.Input<string>;The ID of the CEN Instance.
property description
description?: pulumi.Input<string>;The description of flowlog.
property flowLogName
flowLogName?: pulumi.Input<string>;The name of flowlog.
property logStoreName
logStoreName: pulumi.Input<string>;The name of the log store which is in the projectName SLS project.
property projectName
projectName: pulumi.Input<string>;The name of the SLS project.
property status
status?: pulumi.Input<string>;The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
interface FlowLogState
interface FlowLogStateInput properties used for looking up and filtering FlowLog resources.
property cenId
cenId?: pulumi.Input<string>;The ID of the CEN Instance.
property description
description?: pulumi.Input<string>;The description of flowlog.
property flowLogName
flowLogName?: pulumi.Input<string>;The name of flowlog.
property logStoreName
logStoreName?: pulumi.Input<string>;The name of the log store which is in the projectName SLS project.
property projectName
projectName?: pulumi.Input<string>;The name of the SLS project.
property status
status?: pulumi.Input<string>;The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
interface GetBandwidthLimitsArgs
interface GetBandwidthLimitsArgsA collection of arguments for invoking getBandwidthLimits.
property instanceIds
instanceIds?: string[];A list of CEN instances IDs.
property outputFile
outputFile?: undefined | string;interface GetBandwidthLimitsResult
interface GetBandwidthLimitsResultA collection of values returned by getBandwidthLimits.
property id
id: string;The provider-assigned unique ID for this managed resource.
property instanceIds
instanceIds?: string[];property limits
limits: GetBandwidthLimitsLimit[];A list of CEN Bandwidth Limits. Each element contains the following attributes:
property outputFile
outputFile?: undefined | string;interface GetBandwidthPackagesArgs
interface GetBandwidthPackagesArgsA collection of arguments for invoking getBandwidthPackages.
property ids
ids?: string[];Limit search to a list of specific CEN Bandwidth Package IDs.
property instanceId
instanceId?: undefined | string;ID of a CEN instance.
property nameRegex
nameRegex?: undefined | string;A regex string to filter CEN Bandwidth Package by name.
property outputFile
outputFile?: undefined | string;interface GetBandwidthPackagesResult
interface GetBandwidthPackagesResultA collection of values returned by getBandwidthPackages.
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];property instanceId
instanceId?: undefined | string;ID of CEN instance that owns the CEN Bandwidth Package.
property nameRegex
nameRegex?: undefined | string;property names
names: string[];property outputFile
outputFile?: undefined | string;property packages
packages: GetBandwidthPackagesPackage[];A list of CEN bandwidth package. Each element contains the following attributes:
interface GetFlowlogsArgs
interface GetFlowlogsArgsA collection of arguments for invoking getFlowlogs.
property cenId
cenId?: undefined | string;The ID of the CEN Instance.
property description
description?: undefined | string;The description of flowlog.
property ids
ids?: string[];A list of CEN flow log IDs.
property logStoreName
logStoreName?: undefined | string;The name of the log store which is in the projectName SLS project.
property nameRegex
nameRegex?: undefined | string;A regex string to filter CEN flow logs by name.
property outputFile
outputFile?: undefined | string;property projectName
projectName?: undefined | string;The name of the SLS project.
property status
status?: undefined | string;The status of flowlog. Valid values: [“Active”, “Inactive”]. Default to “Active”.
interface GetFlowlogsResult
interface GetFlowlogsResultA collection of values returned by getFlowlogs.
property cenId
cenId?: undefined | string;The ID of the CEN Instance.
property description
description?: undefined | string;The description of flowlog.
property flowlogs
flowlogs: GetFlowlogsFlowlog[];property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of CEN flow log IDs.
property logStoreName
logStoreName?: undefined | string;The name of the log store which is in the projectName SLS project.
property nameRegex
nameRegex?: undefined | string;property names
names: string[];A list of CEN flow log names.
property outputFile
outputFile?: undefined | string;property projectName
projectName?: undefined | string;The name of the SLS project.
property status
status?: undefined | string;The status of flowlog.
interface GetInstancesArgs
interface GetInstancesArgsA collection of arguments for invoking getInstances.
property ids
ids?: string[];A list of CEN instances IDs.
property nameRegex
nameRegex?: undefined | string;A regex string to filter CEN instances by name.
property outputFile
outputFile?: undefined | string;property tags
tags?: undefined | {[key: string]: any};A mapping of tags to assign to the resource.
interface GetInstancesResult
interface GetInstancesResultA collection of values returned by getInstances.
property id
id: string;The provider-assigned unique ID for this managed resource.
property ids
ids: string[];A list of CEN instances IDs.
property instances
instances: GetInstancesInstance[];A list of CEN instances. Each element contains the following attributes:
property nameRegex
nameRegex?: undefined | string;property names
names: string[];A list of CEN instances names.
property outputFile
outputFile?: undefined | string;property tags
tags?: undefined | {[key: string]: any};A map of tags assigned to the Cen Instance.
interface GetRegionRouteEntriesArgs
interface GetRegionRouteEntriesArgsA collection of arguments for invoking getRegionRouteEntries.
property instanceId
instanceId: string;ID of the CEN instance.
property outputFile
outputFile?: undefined | string;property regionId
regionId: string;ID of the region.
interface GetRegionRouteEntriesResult
interface GetRegionRouteEntriesResultA collection of values returned by getRegionRouteEntries.
property entries
entries: GetRegionRouteEntriesEntry[];A list of CEN Route Entries. Each element contains the following attributes:
property id
id: string;The provider-assigned unique ID for this managed resource.
property instanceId
instanceId: string;property outputFile
outputFile?: undefined | string;property regionId
regionId: string;interface GetRouteEntriesArgs
interface GetRouteEntriesArgsA collection of arguments for invoking getRouteEntries.
property cidrBlock
cidrBlock?: undefined | string;The destination CIDR block of the route entry to query.
property instanceId
instanceId: string;ID of the CEN instance.
property outputFile
outputFile?: undefined | string;property routeTableId
routeTableId: string;ID of the route table of the VPC or VBR.
interface GetRouteEntriesResult
interface GetRouteEntriesResultA collection of values returned by getRouteEntries.
property cidrBlock
cidrBlock?: undefined | string;The destination CIDR block of the conflicted route entry.
property entries
entries: GetRouteEntriesEntry[];A list of CEN Route Entries. Each element contains the following attributes:
property id
id: string;The provider-assigned unique ID for this managed resource.
property instanceId
instanceId: string;ID of the CEN child instance.
property outputFile
outputFile?: undefined | string;property routeTableId
routeTableId: string;ID of the route table.
interface InstanceArgs
interface InstanceArgsThe set of arguments for constructing a Instance resource.
property description
description?: pulumi.Input<string>;The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
property name
name?: pulumi.Input<string>;The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
property protectionLevel
protectionLevel?: pulumi.Input<string>;(Available in 1.76.0+) Indicates the allowed level of CIDR block overlapping.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A mapping of tags to assign to the resource.
interface InstanceAttachmentArgs
interface InstanceAttachmentArgsThe set of arguments for constructing a InstanceAttachment resource.
property childInstanceId
childInstanceId: pulumi.Input<string>;The ID of the child instance to attach.
property childInstanceOwnerId
childInstanceOwnerId?: pulumi.Input<string>;The uid of the child instance. Only used when attach a child instance of other account.
property childInstanceRegionId
childInstanceRegionId: pulumi.Input<string>;The region ID of the child instance to attach.
property instanceId
instanceId: pulumi.Input<string>;The ID of the CEN.
interface InstanceAttachmentState
interface InstanceAttachmentStateInput properties used for looking up and filtering InstanceAttachment resources.
property childInstanceId
childInstanceId?: pulumi.Input<string>;The ID of the child instance to attach.
property childInstanceOwnerId
childInstanceOwnerId?: pulumi.Input<string>;The uid of the child instance. Only used when attach a child instance of other account.
property childInstanceRegionId
childInstanceRegionId?: pulumi.Input<string>;The region ID of the child instance to attach.
property instanceId
instanceId?: pulumi.Input<string>;The ID of the CEN.
interface InstanceGrantArgs
interface InstanceGrantArgsThe set of arguments for constructing a InstanceGrant resource.
property cenId
cenId: pulumi.Input<string>;The ID of the CEN.
property cenOwnerId
cenOwnerId: pulumi.Input<string>;The owner UID of the CEN which the child instance granted to.
property childInstanceId
childInstanceId: pulumi.Input<string>;The ID of the child instance to grant.
interface InstanceGrantState
interface InstanceGrantStateInput properties used for looking up and filtering InstanceGrant resources.
property cenId
cenId?: pulumi.Input<string>;The ID of the CEN.
property cenOwnerId
cenOwnerId?: pulumi.Input<string>;The owner UID of the CEN which the child instance granted to.
property childInstanceId
childInstanceId?: pulumi.Input<string>;The ID of the child instance to grant.
interface InstanceState
interface InstanceStateInput properties used for looking up and filtering Instance resources.
property description
description?: pulumi.Input<string>;The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
property name
name?: pulumi.Input<string>;The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
property protectionLevel
protectionLevel?: pulumi.Input<string>;(Available in 1.76.0+) Indicates the allowed level of CIDR block overlapping.
property status
status?: pulumi.Input<string>;The Cen Instance current status.
property tags
tags?: pulumi.Input<{[key: string]: any}>;A mapping of tags to assign to the resource.
interface PrivateZoneArgs
interface PrivateZoneArgsThe set of arguments for constructing a PrivateZone resource.
property accessRegionId
accessRegionId: pulumi.Input<string>;The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
property cenId
cenId: pulumi.Input<string>;The ID of the CEN instance.
property hostRegionId
hostRegionId: pulumi.Input<string>;The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
property hostVpcId
hostVpcId: pulumi.Input<string>;The VPC that belongs to the service region.
interface PrivateZoneState
interface PrivateZoneStateInput properties used for looking up and filtering PrivateZone resources.
property accessRegionId
accessRegionId?: pulumi.Input<string>;The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
property cenId
cenId?: pulumi.Input<string>;The ID of the CEN instance.
property hostRegionId
hostRegionId?: pulumi.Input<string>;The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
property hostVpcId
hostVpcId?: pulumi.Input<string>;The VPC that belongs to the service region.
property status
status?: pulumi.Input<string>;The status of the PrivateZone service. Valid values: [“Creating”, “Active”, “Deleting”].
interface RouteEntryArgs
interface RouteEntryArgsThe set of arguments for constructing a RouteEntry resource.
property cidrBlock
cidrBlock: pulumi.Input<string>;The destination CIDR block of the route entry to publish.
property instanceId
instanceId: pulumi.Input<string>;The ID of the CEN.
property routeTableId
routeTableId: pulumi.Input<string>;The route table of the attached VBR or VPC.
interface RouteEntryState
interface RouteEntryStateInput properties used for looking up and filtering RouteEntry resources.
property cidrBlock
cidrBlock?: pulumi.Input<string>;The destination CIDR block of the route entry to publish.
property instanceId
instanceId?: pulumi.Input<string>;The ID of the CEN.
property routeTableId
routeTableId?: pulumi.Input<string>;The route table of the attached VBR or VPC.
interface RouteMapArgs
interface RouteMapArgsThe set of arguments for constructing a RouteMap resource.
property asPathMatchMode
asPathMatchMode?: pulumi.Input<string>;A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: [“Include”, “Complete”].
property cenId
cenId: pulumi.Input<string>;The ID of the CEN instance.
property cenRegionId
cenRegionId: pulumi.Input<string>;The ID of the region to which the CEN instance belongs.
property cidrMatchMode
cidrMatchMode?: pulumi.Input<string>;A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: [“Include”, “Complete”].
property communityMatchMode
communityMatchMode?: pulumi.Input<string>;A match statement. It indicates the mode in which the community attribute is matched. Valid values: [“Include”, “Complete”].
property communityOperateMode
communityOperateMode?: pulumi.Input<string>;An action statement. It indicates the mode in which the community attribute is operated. Valid values: [“Additive”, “Replace”].
property description
description?: pulumi.Input<string>;The description of the route map.
property destinationChildInstanceTypes
destinationChildInstanceTypes?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of destination instance types. Valid values: [“VPC”, “VBR”, “CCN”].
property destinationCidrBlocks
destinationCidrBlocks?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
property destinationInstanceIds
destinationInstanceIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the destination instances.
property destinationInstanceIdsReverseMatch
destinationInstanceIdsReverseMatch?: pulumi.Input<boolean>;Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
property destinationRouteTableIds
destinationRouteTableIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
property mapResult
mapResult: pulumi.Input<string>;The action that is performed to a route if the route matches all the match conditions. Valid values: [“Permit”, “Deny”].
property matchAsns
matchAsns?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
property matchCommunitySets
matchCommunitySets?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
property nextPriority
nextPriority?: pulumi.Input<number>;The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
property operateCommunitySets
operateCommunitySets?: pulumi.Input<pulumi.Input<string>[]>;An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
property preference
preference?: pulumi.Input<number>;An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
property prependAsPaths
prependAsPaths?: pulumi.Input<pulumi.Input<string>[]>;An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
property priority
priority: pulumi.Input<number>;The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
property routeTypes
routeTypes?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of route types. Valid values: [“System”, “Custom”, “BGP”].
property sourceChildInstanceTypes
sourceChildInstanceTypes?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of source instance types. Valid values: [“VPC”, “VBR”, “CCN”].
property sourceInstanceIds
sourceInstanceIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the source instances.
property sourceInstanceIdsReverseMatch
sourceInstanceIdsReverseMatch?: pulumi.Input<boolean>;Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
property sourceRegionIds
sourceRegionIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
property sourceRouteTableIds
sourceRouteTableIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
property transmitDirection
transmitDirection: pulumi.Input<string>;The direction in which the route map is applied. Valid values: [“RegionIn”, “RegionOut”].
interface RouteMapState
interface RouteMapStateInput properties used for looking up and filtering RouteMap resources.
property asPathMatchMode
asPathMatchMode?: pulumi.Input<string>;A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: [“Include”, “Complete”].
property cenId
cenId?: pulumi.Input<string>;The ID of the CEN instance.
property cenRegionId
cenRegionId?: pulumi.Input<string>;The ID of the region to which the CEN instance belongs.
property cidrMatchMode
cidrMatchMode?: pulumi.Input<string>;A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: [“Include”, “Complete”].
property communityMatchMode
communityMatchMode?: pulumi.Input<string>;A match statement. It indicates the mode in which the community attribute is matched. Valid values: [“Include”, “Complete”].
property communityOperateMode
communityOperateMode?: pulumi.Input<string>;An action statement. It indicates the mode in which the community attribute is operated. Valid values: [“Additive”, “Replace”].
property description
description?: pulumi.Input<string>;The description of the route map.
property destinationChildInstanceTypes
destinationChildInstanceTypes?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of destination instance types. Valid values: [“VPC”, “VBR”, “CCN”].
property destinationCidrBlocks
destinationCidrBlocks?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
property destinationInstanceIds
destinationInstanceIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the destination instances.
property destinationInstanceIdsReverseMatch
destinationInstanceIdsReverseMatch?: pulumi.Input<boolean>;Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
property destinationRouteTableIds
destinationRouteTableIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
property mapResult
mapResult?: pulumi.Input<string>;The action that is performed to a route if the route matches all the match conditions. Valid values: [“Permit”, “Deny”].
property matchAsns
matchAsns?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
property matchCommunitySets
matchCommunitySets?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
property nextPriority
nextPriority?: pulumi.Input<number>;The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
property operateCommunitySets
operateCommunitySets?: pulumi.Input<pulumi.Input<string>[]>;An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
property preference
preference?: pulumi.Input<number>;An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
property prependAsPaths
prependAsPaths?: pulumi.Input<pulumi.Input<string>[]>;An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
property priority
priority?: pulumi.Input<number>;The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
property routeMapId
routeMapId?: pulumi.Input<string>;property routeTypes
routeTypes?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of route types. Valid values: [“System”, “Custom”, “BGP”].
property sourceChildInstanceTypes
sourceChildInstanceTypes?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of source instance types. Valid values: [“VPC”, “VBR”, “CCN”].
property sourceInstanceIds
sourceInstanceIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the source instances.
property sourceInstanceIdsReverseMatch
sourceInstanceIdsReverseMatch?: pulumi.Input<boolean>;Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: [“false”, “true”]. Default to “false”.
property sourceRegionIds
sourceRegionIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
property sourceRouteTableIds
sourceRouteTableIds?: pulumi.Input<pulumi.Input<string>[]>;A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
property status
status?: pulumi.Input<string>;(Computed) The status of route map. Valid values: [“Creating”, “Active”, “Deleting”].
property transmitDirection
transmitDirection?: pulumi.Input<string>;The direction in which the route map is applied. Valid values: [“RegionIn”, “RegionOut”].