alicloud.cen.RouteMap
This 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
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// Create a cen Route map resource and use it.
var defaultInstance = new AliCloud.Cen.Instance("defaultInstance");
var vpc00Region = new AliCloud.Provider("vpc00Region", new()
{
Region = "cn-hangzhou",
});
var vpc01Region = new AliCloud.Provider("vpc01Region", new()
{
Region = "cn-shanghai",
});
var vpc00 = new AliCloud.Vpc.Network("vpc00", new()
{
CidrBlock = "172.16.0.0/12",
}, new CustomResourceOptions
{
Provider = alicloud.Vpc00_region,
});
var vpc01 = new AliCloud.Vpc.Network("vpc01", new()
{
CidrBlock = "172.16.0.0/12",
}, new CustomResourceOptions
{
Provider = alicloud.Vpc01_region,
});
var default00 = new AliCloud.Cen.InstanceAttachment("default00", new()
{
InstanceId = defaultInstance.Id,
ChildInstanceId = vpc00.Id,
ChildInstanceType = "VPC",
ChildInstanceRegionId = "cn-hangzhou",
});
var default01 = new AliCloud.Cen.InstanceAttachment("default01", new()
{
InstanceId = defaultInstance.Id,
ChildInstanceId = vpc01.Id,
ChildInstanceType = "VPC",
ChildInstanceRegionId = "cn-shanghai",
});
var defaultRouteMap = new AliCloud.Cen.RouteMap("defaultRouteMap", new()
{
CenRegionId = "cn-hangzhou",
CenId = alicloud_cen_instance.Cen.Id,
Description = "test-desc",
Priority = 1,
TransmitDirection = "RegionIn",
MapResult = "Permit",
NextPriority = 1,
SourceRegionIds = new[]
{
"cn-hangzhou",
},
SourceInstanceIds = new[]
{
vpc00.Id,
},
SourceInstanceIdsReverseMatch = false,
DestinationInstanceIds = new[]
{
vpc01.Id,
},
DestinationInstanceIdsReverseMatch = false,
SourceRouteTableIds = new[]
{
vpc00.RouteTableId,
},
DestinationRouteTableIds = new[]
{
vpc01.RouteTableId,
},
SourceChildInstanceTypes = new[]
{
"VPC",
},
DestinationChildInstanceTypes = new[]
{
"VPC",
},
DestinationCidrBlocks = new[]
{
vpc01.CidrBlock,
},
CidrMatchMode = "Include",
RouteTypes = new[]
{
"System",
},
MatchAsns = new[]
{
"65501",
},
AsPathMatchMode = "Include",
MatchCommunitySets = new[]
{
"65501:1",
},
CommunityMatchMode = "Include",
CommunityOperateMode = "Additive",
OperateCommunitySets = new[]
{
"65501:1",
},
Preference = 20,
PrependAsPaths = new[]
{
"65501",
},
}, new CustomResourceOptions
{
DependsOn = new[]
{
default00,
default01,
},
});
});
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-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", nil)
if err != nil {
return err
}
_, err = alicloud.NewProvider(ctx, "vpc00Region", &alicloud.ProviderArgs{
Region: pulumi.String("cn-hangzhou"),
})
if err != nil {
return err
}
_, err = alicloud.NewProvider(ctx, "vpc01Region", &alicloud.ProviderArgs{
Region: pulumi.String("cn-shanghai"),
})
if err != nil {
return err
}
vpc00, err := vpc.NewNetwork(ctx, "vpc00", &vpc.NetworkArgs{
CidrBlock: pulumi.String("172.16.0.0/12"),
}, pulumi.Provider(alicloud.Vpc00_region))
if err != nil {
return err
}
vpc01, err := vpc.NewNetwork(ctx, "vpc01", &vpc.NetworkArgs{
CidrBlock: pulumi.String("172.16.0.0/12"),
}, pulumi.Provider(alicloud.Vpc01_region))
if err != nil {
return err
}
default00, err := cen.NewInstanceAttachment(ctx, "default00", &cen.InstanceAttachmentArgs{
InstanceId: defaultInstance.ID(),
ChildInstanceId: vpc00.ID(),
ChildInstanceType: pulumi.String("VPC"),
ChildInstanceRegionId: pulumi.String("cn-hangzhou"),
})
if err != nil {
return err
}
default01, err := cen.NewInstanceAttachment(ctx, "default01", &cen.InstanceAttachmentArgs{
InstanceId: defaultInstance.ID(),
ChildInstanceId: vpc01.ID(),
ChildInstanceType: pulumi.String("VPC"),
ChildInstanceRegionId: pulumi.String("cn-shanghai"),
})
if err != nil {
return err
}
_, err = cen.NewRouteMap(ctx, "defaultRouteMap", &cen.RouteMapArgs{
CenRegionId: pulumi.String("cn-hangzhou"),
CenId: pulumi.Any(alicloud_cen_instance.Cen.Id),
Description: pulumi.String("test-desc"),
Priority: pulumi.Int(1),
TransmitDirection: pulumi.String("RegionIn"),
MapResult: pulumi.String("Permit"),
NextPriority: pulumi.Int(1),
SourceRegionIds: pulumi.StringArray{
pulumi.String("cn-hangzhou"),
},
SourceInstanceIds: pulumi.StringArray{
vpc00.ID(),
},
SourceInstanceIdsReverseMatch: pulumi.Bool(false),
DestinationInstanceIds: pulumi.StringArray{
vpc01.ID(),
},
DestinationInstanceIdsReverseMatch: pulumi.Bool(false),
SourceRouteTableIds: pulumi.StringArray{
vpc00.RouteTableId,
},
DestinationRouteTableIds: pulumi.StringArray{
vpc01.RouteTableId,
},
SourceChildInstanceTypes: pulumi.StringArray{
pulumi.String("VPC"),
},
DestinationChildInstanceTypes: pulumi.StringArray{
pulumi.String("VPC"),
},
DestinationCidrBlocks: pulumi.StringArray{
vpc01.CidrBlock,
},
CidrMatchMode: pulumi.String("Include"),
RouteTypes: pulumi.StringArray{
pulumi.String("System"),
},
MatchAsns: pulumi.StringArray{
pulumi.String("65501"),
},
AsPathMatchMode: pulumi.String("Include"),
MatchCommunitySets: pulumi.StringArray{
pulumi.String("65501:1"),
},
CommunityMatchMode: pulumi.String("Include"),
CommunityOperateMode: pulumi.String("Additive"),
OperateCommunitySets: pulumi.StringArray{
pulumi.String("65501:1"),
},
Preference: pulumi.Int(20),
PrependAsPaths: pulumi.StringArray{
pulumi.String("65501"),
},
}, pulumi.DependsOn([]pulumi.Resource{
default00,
default01,
}))
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.cen.Instance;
import com.pulumi.alicloud.Provider;
import com.pulumi.alicloud.ProviderArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.cen.InstanceAttachment;
import com.pulumi.alicloud.cen.InstanceAttachmentArgs;
import com.pulumi.alicloud.cen.RouteMap;
import com.pulumi.alicloud.cen.RouteMapArgs;
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) {
var defaultInstance = new Instance("defaultInstance");
var vpc00Region = new Provider("vpc00Region", ProviderArgs.builder()
.region("cn-hangzhou")
.build());
var vpc01Region = new Provider("vpc01Region", ProviderArgs.builder()
.region("cn-shanghai")
.build());
var vpc00 = new Network("vpc00", NetworkArgs.builder()
.cidrBlock("172.16.0.0/12")
.build(), CustomResourceOptions.builder()
.provider(alicloud.vpc00_region())
.build());
var vpc01 = new Network("vpc01", NetworkArgs.builder()
.cidrBlock("172.16.0.0/12")
.build(), CustomResourceOptions.builder()
.provider(alicloud.vpc01_region())
.build());
var default00 = new InstanceAttachment("default00", InstanceAttachmentArgs.builder()
.instanceId(defaultInstance.id())
.childInstanceId(vpc00.id())
.childInstanceType("VPC")
.childInstanceRegionId("cn-hangzhou")
.build());
var default01 = new InstanceAttachment("default01", InstanceAttachmentArgs.builder()
.instanceId(defaultInstance.id())
.childInstanceId(vpc01.id())
.childInstanceType("VPC")
.childInstanceRegionId("cn-shanghai")
.build());
var defaultRouteMap = new RouteMap("defaultRouteMap", RouteMapArgs.builder()
.cenRegionId("cn-hangzhou")
.cenId(alicloud_cen_instance.cen().id())
.description("test-desc")
.priority("1")
.transmitDirection("RegionIn")
.mapResult("Permit")
.nextPriority("1")
.sourceRegionIds("cn-hangzhou")
.sourceInstanceIds(vpc00.id())
.sourceInstanceIdsReverseMatch("false")
.destinationInstanceIds(vpc01.id())
.destinationInstanceIdsReverseMatch("false")
.sourceRouteTableIds(vpc00.routeTableId())
.destinationRouteTableIds(vpc01.routeTableId())
.sourceChildInstanceTypes("VPC")
.destinationChildInstanceTypes("VPC")
.destinationCidrBlocks(vpc01.cidrBlock())
.cidrMatchMode("Include")
.routeTypes("System")
.matchAsns("65501")
.asPathMatchMode("Include")
.matchCommunitySets("65501:1")
.communityMatchMode("Include")
.communityOperateMode("Additive")
.operateCommunitySets("65501:1")
.preference("20")
.prependAsPaths("65501")
.build(), CustomResourceOptions.builder()
.dependsOn(
default00,
default01)
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
# Create a cen Route map resource and use it.
default_instance = alicloud.cen.Instance("defaultInstance")
vpc00_region = alicloud.Provider("vpc00Region", region="cn-hangzhou")
vpc01_region = alicloud.Provider("vpc01Region", region="cn-shanghai")
vpc00 = alicloud.vpc.Network("vpc00", cidr_block="172.16.0.0/12",
opts=pulumi.ResourceOptions(provider=alicloud["vpc00_region"]))
vpc01 = alicloud.vpc.Network("vpc01", cidr_block="172.16.0.0/12",
opts=pulumi.ResourceOptions(provider=alicloud["vpc01_region"]))
default00 = alicloud.cen.InstanceAttachment("default00",
instance_id=default_instance.id,
child_instance_id=vpc00.id,
child_instance_type="VPC",
child_instance_region_id="cn-hangzhou")
default01 = alicloud.cen.InstanceAttachment("default01",
instance_id=default_instance.id,
child_instance_id=vpc01.id,
child_instance_type="VPC",
child_instance_region_id="cn-shanghai")
default_route_map = alicloud.cen.RouteMap("defaultRouteMap",
cen_region_id="cn-hangzhou",
cen_id=alicloud_cen_instance["cen"]["id"],
description="test-desc",
priority=1,
transmit_direction="RegionIn",
map_result="Permit",
next_priority=1,
source_region_ids=["cn-hangzhou"],
source_instance_ids=[vpc00.id],
source_instance_ids_reverse_match=False,
destination_instance_ids=[vpc01.id],
destination_instance_ids_reverse_match=False,
source_route_table_ids=[vpc00.route_table_id],
destination_route_table_ids=[vpc01.route_table_id],
source_child_instance_types=["VPC"],
destination_child_instance_types=["VPC"],
destination_cidr_blocks=[vpc01.cidr_block],
cidr_match_mode="Include",
route_types=["System"],
match_asns=["65501"],
as_path_match_mode="Include",
match_community_sets=["65501:1"],
community_match_mode="Include",
community_operate_mode="Additive",
operate_community_sets=["65501:1"],
preference=20,
prepend_as_paths=["65501"],
opts=pulumi.ResourceOptions(depends_on=[
default00,
default01,
]))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// Create a cen Route map resource and use it.
const defaultInstance = new alicloud.cen.Instance("defaultInstance", {});
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: alicloud.vpc00_region,
});
const vpc01 = new alicloud.vpc.Network("vpc01", {cidrBlock: "172.16.0.0/12"}, {
provider: alicloud.vpc01_region,
});
const default00 = new alicloud.cen.InstanceAttachment("default00", {
instanceId: defaultInstance.id,
childInstanceId: vpc00.id,
childInstanceType: "VPC",
childInstanceRegionId: "cn-hangzhou",
});
const default01 = new alicloud.cen.InstanceAttachment("default01", {
instanceId: defaultInstance.id,
childInstanceId: vpc01.id,
childInstanceType: "VPC",
childInstanceRegionId: "cn-shanghai",
});
const defaultRouteMap = new alicloud.cen.RouteMap("defaultRouteMap", {
cenRegionId: "cn-hangzhou",
cenId: alicloud_cen_instance.cen.id,
description: "test-desc",
priority: 1,
transmitDirection: "RegionIn",
mapResult: "Permit",
nextPriority: 1,
sourceRegionIds: ["cn-hangzhou"],
sourceInstanceIds: [vpc00.id],
sourceInstanceIdsReverseMatch: false,
destinationInstanceIds: [vpc01.id],
destinationInstanceIdsReverseMatch: false,
sourceRouteTableIds: [vpc00.routeTableId],
destinationRouteTableIds: [vpc01.routeTableId],
sourceChildInstanceTypes: ["VPC"],
destinationChildInstanceTypes: ["VPC"],
destinationCidrBlocks: [vpc01.cidrBlock],
cidrMatchMode: "Include",
routeTypes: ["System"],
matchAsns: ["65501"],
asPathMatchMode: "Include",
matchCommunitySets: ["65501:1"],
communityMatchMode: "Include",
communityOperateMode: "Additive",
operateCommunitySets: ["65501:1"],
preference: 20,
prependAsPaths: ["65501"],
}, {
dependsOn: [
default00,
default01,
],
});
resources:
# Create a cen Route map resource and use it.
defaultInstance:
type: alicloud:cen:Instance
vpc00Region:
type: pulumi:providers:alicloud
properties:
region: cn-hangzhou
vpc01Region:
type: pulumi:providers:alicloud
properties:
region: cn-shanghai
vpc00:
type: alicloud:vpc:Network
properties:
cidrBlock: 172.16.0.0/12
options:
provider: ${alicloud.vpc00_region}
vpc01:
type: alicloud:vpc:Network
properties:
cidrBlock: 172.16.0.0/12
options:
provider: ${alicloud.vpc01_region}
default00:
type: alicloud:cen:InstanceAttachment
properties:
instanceId: ${defaultInstance.id}
childInstanceId: ${vpc00.id}
childInstanceType: VPC
childInstanceRegionId: cn-hangzhou
default01:
type: alicloud:cen:InstanceAttachment
properties:
instanceId: ${defaultInstance.id}
childInstanceId: ${vpc01.id}
childInstanceType: VPC
childInstanceRegionId: cn-shanghai
defaultRouteMap:
type: alicloud:cen:RouteMap
properties:
cenRegionId: cn-hangzhou
cenId: ${alicloud_cen_instance.cen.id}
description: test-desc
priority: '1'
transmitDirection: RegionIn
mapResult: Permit
nextPriority: '1'
sourceRegionIds:
- cn-hangzhou
sourceInstanceIds:
- ${vpc00.id}
sourceInstanceIdsReverseMatch: 'false'
destinationInstanceIds:
- ${vpc01.id}
destinationInstanceIdsReverseMatch: 'false'
sourceRouteTableIds:
- ${vpc00.routeTableId}
destinationRouteTableIds:
- ${vpc01.routeTableId}
sourceChildInstanceTypes:
- VPC
destinationChildInstanceTypes:
- VPC
destinationCidrBlocks:
- ${vpc01.cidrBlock}
cidrMatchMode: Include
routeTypes:
- System
matchAsns:
- '65501'
asPathMatchMode: Include
matchCommunitySets:
- 65501:1
communityMatchMode: Include
communityOperateMode: Additive
operateCommunitySets:
- 65501:1
preference: '20'
prependAsPaths:
- '65501'
options:
dependson:
- ${default00}
- ${default01}
Create RouteMap Resource
new RouteMap(name: string, args: RouteMapArgs, opts?: CustomResourceOptions);
@overload
def RouteMap(resource_name: str,
opts: Optional[ResourceOptions] = None,
as_path_match_mode: Optional[str] = None,
cen_id: Optional[str] = None,
cen_region_id: Optional[str] = None,
cidr_match_mode: Optional[str] = None,
community_match_mode: Optional[str] = None,
community_operate_mode: Optional[str] = None,
description: Optional[str] = None,
destination_child_instance_types: Optional[Sequence[str]] = None,
destination_cidr_blocks: Optional[Sequence[str]] = None,
destination_instance_ids: Optional[Sequence[str]] = None,
destination_instance_ids_reverse_match: Optional[bool] = None,
destination_route_table_ids: Optional[Sequence[str]] = None,
map_result: Optional[str] = None,
match_asns: Optional[Sequence[str]] = None,
match_community_sets: Optional[Sequence[str]] = None,
next_priority: Optional[int] = None,
operate_community_sets: Optional[Sequence[str]] = None,
preference: Optional[int] = None,
prepend_as_paths: Optional[Sequence[str]] = None,
priority: Optional[int] = None,
route_types: Optional[Sequence[str]] = None,
source_child_instance_types: Optional[Sequence[str]] = None,
source_instance_ids: Optional[Sequence[str]] = None,
source_instance_ids_reverse_match: Optional[bool] = None,
source_region_ids: Optional[Sequence[str]] = None,
source_route_table_ids: Optional[Sequence[str]] = None,
transit_router_route_table_id: Optional[str] = None,
transmit_direction: Optional[str] = None)
@overload
def RouteMap(resource_name: str,
args: RouteMapArgs,
opts: Optional[ResourceOptions] = None)
func NewRouteMap(ctx *Context, name string, args RouteMapArgs, opts ...ResourceOption) (*RouteMap, error)
public RouteMap(string name, RouteMapArgs args, CustomResourceOptions? opts = null)
public RouteMap(String name, RouteMapArgs args)
public RouteMap(String name, RouteMapArgs args, CustomResourceOptions options)
type: alicloud:cen:RouteMap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteMapArgs
- 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 RouteMapArgs
- 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 RouteMapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteMapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteMapArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
RouteMap 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 RouteMap resource accepts the following input properties:
- Cen
Id string The ID of the CEN instance.
- Cen
Region stringId The ID of the region to which the CEN instance belongs.
- Map
Result string The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- Priority int
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- Transmit
Direction string The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- As
Path stringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- Cidr
Match stringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- Community
Match stringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- Community
Operate stringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- Description string
The description of the route map.
- Destination
Child List<string>Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- Destination
Cidr List<string>Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- Destination
Instance List<string>Ids A match statement that indicates the list of IDs of the destination instances.
- Destination
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Destination
Route List<string>Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- Match
Asns List<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.
- Match
Community List<string>Sets 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.
- Next
Priority int The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- Operate
Community List<string>Sets 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.
- Preference int
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.
- Prepend
As List<string>Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- Route
Types List<string> A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- Source
Child List<string>Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- Source
Instance List<string>Ids A match statement that indicates the list of IDs of the source instances.
- Source
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Source
Region List<string>Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- Source
Route List<string>Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- Transit
Router stringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- Cen
Id string The ID of the CEN instance.
- Cen
Region stringId The ID of the region to which the CEN instance belongs.
- Map
Result string The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- Priority int
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- Transmit
Direction string The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- As
Path stringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- Cidr
Match stringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- Community
Match stringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- Community
Operate stringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- Description string
The description of the route map.
- Destination
Child []stringInstance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- Destination
Cidr []stringBlocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- Destination
Instance []stringIds A match statement that indicates the list of IDs of the destination instances.
- Destination
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Destination
Route []stringTable Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- Match
Asns []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.
- Match
Community []stringSets 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.
- Next
Priority int The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- Operate
Community []stringSets 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.
- Preference int
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.
- Prepend
As []stringPaths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- Route
Types []string A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- Source
Child []stringInstance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- Source
Instance []stringIds A match statement that indicates the list of IDs of the source instances.
- Source
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Source
Region []stringIds A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- Source
Route []stringTable Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- Transit
Router stringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- cen
Id String The ID of the CEN instance.
- cen
Region StringId The ID of the region to which the CEN instance belongs.
- map
Result String The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- priority Integer
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- transmit
Direction String The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as
Path StringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cidr
Match StringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community
Match StringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community
Operate StringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description String
The description of the route map.
- destination
Child List<String>Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination
Cidr List<String>Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination
Instance List<String>Ids A match statement that indicates the list of IDs of the destination instances.
- destination
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination
Route List<String>Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- match
Asns List<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.
- match
Community List<String>Sets 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.
- next
Priority Integer The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate
Community List<String>Sets 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.
- preference Integer
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.
- prepend
As List<String>Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- route
Types List<String> A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source
Child List<String>Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source
Instance List<String>Ids A match statement that indicates the list of IDs of the source instances.
- source
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source
Region List<String>Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source
Route List<String>Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- transit
Router StringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- cen
Id string The ID of the CEN instance.
- cen
Region stringId The ID of the region to which the CEN instance belongs.
- map
Result string The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- priority number
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- transmit
Direction string The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as
Path stringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cidr
Match stringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community
Match stringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community
Operate stringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description string
The description of the route map.
- destination
Child string[]Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination
Cidr string[]Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination
Instance string[]Ids A match statement that indicates the list of IDs of the destination instances.
- destination
Instance booleanIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination
Route string[]Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- match
Asns 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.
- match
Community string[]Sets 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.
- next
Priority number The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate
Community string[]Sets 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.
- preference 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.
- prepend
As string[]Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- route
Types string[] A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source
Child string[]Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source
Instance string[]Ids A match statement that indicates the list of IDs of the source instances.
- source
Instance booleanIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source
Region string[]Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source
Route string[]Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- transit
Router stringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- cen_
id str The ID of the CEN instance.
- cen_
region_ strid The ID of the region to which the CEN instance belongs.
- map_
result str The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- priority int
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- transmit_
direction str The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as_
path_ strmatch_ mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cidr_
match_ strmode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community_
match_ strmode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community_
operate_ strmode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description str
The description of the route map.
- destination_
child_ Sequence[str]instance_ types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination_
cidr_ Sequence[str]blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination_
instance_ Sequence[str]ids A match statement that indicates the list of IDs of the destination instances.
- destination_
instance_ boolids_ reverse_ match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination_
route_ Sequence[str]table_ ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- match_
asns Sequence[str] 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.
- match_
community_ Sequence[str]sets 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.
- next_
priority int The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate_
community_ Sequence[str]sets 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.
- preference int
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.
- prepend_
as_ Sequence[str]paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- route_
types Sequence[str] A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source_
child_ Sequence[str]instance_ types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source_
instance_ Sequence[str]ids A match statement that indicates the list of IDs of the source instances.
- source_
instance_ boolids_ reverse_ match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source_
region_ Sequence[str]ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source_
route_ Sequence[str]table_ ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- transit_
router_ strroute_ table_ id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- cen
Id String The ID of the CEN instance.
- cen
Region StringId The ID of the region to which the CEN instance belongs.
- map
Result String The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- priority Number
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- transmit
Direction String The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as
Path StringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cidr
Match StringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community
Match StringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community
Operate StringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description String
The description of the route map.
- destination
Child List<String>Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination
Cidr List<String>Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination
Instance List<String>Ids A match statement that indicates the list of IDs of the destination instances.
- destination
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination
Route List<String>Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- match
Asns List<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.
- match
Community List<String>Sets 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.
- next
Priority Number The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate
Community List<String>Sets 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.
- preference 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.
- prepend
As List<String>Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- route
Types List<String> A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source
Child List<String>Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source
Instance List<String>Ids A match statement that indicates the list of IDs of the source instances.
- source
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source
Region List<String>Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source
Route List<String>Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- transit
Router StringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteMap resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Route
Map stringId ID of the RouteMap. It is available in 1.161.0+.
- Status string
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- Id string
The provider-assigned unique ID for this managed resource.
- Route
Map stringId ID of the RouteMap. It is available in 1.161.0+.
- Status string
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- id String
The provider-assigned unique ID for this managed resource.
- route
Map StringId ID of the RouteMap. It is available in 1.161.0+.
- status String
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- id string
The provider-assigned unique ID for this managed resource.
- route
Map stringId ID of the RouteMap. It is available in 1.161.0+.
- status string
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- id str
The provider-assigned unique ID for this managed resource.
- route_
map_ strid ID of the RouteMap. It is available in 1.161.0+.
- status str
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- id String
The provider-assigned unique ID for this managed resource.
- route
Map StringId ID of the RouteMap. It is available in 1.161.0+.
- status String
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
Look up Existing RouteMap Resource
Get an existing RouteMap 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?: RouteMapState, opts?: CustomResourceOptions): RouteMap
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_path_match_mode: Optional[str] = None,
cen_id: Optional[str] = None,
cen_region_id: Optional[str] = None,
cidr_match_mode: Optional[str] = None,
community_match_mode: Optional[str] = None,
community_operate_mode: Optional[str] = None,
description: Optional[str] = None,
destination_child_instance_types: Optional[Sequence[str]] = None,
destination_cidr_blocks: Optional[Sequence[str]] = None,
destination_instance_ids: Optional[Sequence[str]] = None,
destination_instance_ids_reverse_match: Optional[bool] = None,
destination_route_table_ids: Optional[Sequence[str]] = None,
map_result: Optional[str] = None,
match_asns: Optional[Sequence[str]] = None,
match_community_sets: Optional[Sequence[str]] = None,
next_priority: Optional[int] = None,
operate_community_sets: Optional[Sequence[str]] = None,
preference: Optional[int] = None,
prepend_as_paths: Optional[Sequence[str]] = None,
priority: Optional[int] = None,
route_map_id: Optional[str] = None,
route_types: Optional[Sequence[str]] = None,
source_child_instance_types: Optional[Sequence[str]] = None,
source_instance_ids: Optional[Sequence[str]] = None,
source_instance_ids_reverse_match: Optional[bool] = None,
source_region_ids: Optional[Sequence[str]] = None,
source_route_table_ids: Optional[Sequence[str]] = None,
status: Optional[str] = None,
transit_router_route_table_id: Optional[str] = None,
transmit_direction: Optional[str] = None) -> RouteMap
func GetRouteMap(ctx *Context, name string, id IDInput, state *RouteMapState, opts ...ResourceOption) (*RouteMap, error)
public static RouteMap Get(string name, Input<string> id, RouteMapState? state, CustomResourceOptions? opts = null)
public static RouteMap get(String name, Output<String> id, RouteMapState 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.
- As
Path stringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- Cen
Id string The ID of the CEN instance.
- Cen
Region stringId The ID of the region to which the CEN instance belongs.
- Cidr
Match stringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- Community
Match stringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- Community
Operate stringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- Description string
The description of the route map.
- Destination
Child List<string>Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- Destination
Cidr List<string>Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- Destination
Instance List<string>Ids A match statement that indicates the list of IDs of the destination instances.
- Destination
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Destination
Route List<string>Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- Map
Result string The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- Match
Asns List<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.
- Match
Community List<string>Sets 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.
- Next
Priority int The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- Operate
Community List<string>Sets 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.
- Preference int
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.
- Prepend
As List<string>Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- Priority int
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- Route
Map stringId ID of the RouteMap. It is available in 1.161.0+.
- Route
Types List<string> A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- Source
Child List<string>Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- Source
Instance List<string>Ids A match statement that indicates the list of IDs of the source instances.
- Source
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Source
Region List<string>Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- Source
Route List<string>Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- Status string
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- Transit
Router stringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- Transmit
Direction string The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- As
Path stringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- Cen
Id string The ID of the CEN instance.
- Cen
Region stringId The ID of the region to which the CEN instance belongs.
- Cidr
Match stringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- Community
Match stringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- Community
Operate stringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- Description string
The description of the route map.
- Destination
Child []stringInstance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- Destination
Cidr []stringBlocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- Destination
Instance []stringIds A match statement that indicates the list of IDs of the destination instances.
- Destination
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Destination
Route []stringTable Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- Map
Result string The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- Match
Asns []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.
- Match
Community []stringSets 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.
- Next
Priority int The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- Operate
Community []stringSets 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.
- Preference int
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.
- Prepend
As []stringPaths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- Priority int
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- Route
Map stringId ID of the RouteMap. It is available in 1.161.0+.
- Route
Types []string A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- Source
Child []stringInstance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- Source
Instance []stringIds A match statement that indicates the list of IDs of the source instances.
- Source
Instance boolIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- Source
Region []stringIds A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- Source
Route []stringTable Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- Status string
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- Transit
Router stringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- Transmit
Direction string The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as
Path StringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cen
Id String The ID of the CEN instance.
- cen
Region StringId The ID of the region to which the CEN instance belongs.
- cidr
Match StringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community
Match StringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community
Operate StringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description String
The description of the route map.
- destination
Child List<String>Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination
Cidr List<String>Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination
Instance List<String>Ids A match statement that indicates the list of IDs of the destination instances.
- destination
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination
Route List<String>Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- map
Result String The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- match
Asns List<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.
- match
Community List<String>Sets 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.
- next
Priority Integer The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate
Community List<String>Sets 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.
- preference Integer
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.
- prepend
As List<String>Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- priority Integer
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- route
Map StringId ID of the RouteMap. It is available in 1.161.0+.
- route
Types List<String> A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source
Child List<String>Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source
Instance List<String>Ids A match statement that indicates the list of IDs of the source instances.
- source
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source
Region List<String>Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source
Route List<String>Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- status String
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- transit
Router StringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- transmit
Direction String The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as
Path stringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cen
Id string The ID of the CEN instance.
- cen
Region stringId The ID of the region to which the CEN instance belongs.
- cidr
Match stringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community
Match stringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community
Operate stringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description string
The description of the route map.
- destination
Child string[]Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination
Cidr string[]Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination
Instance string[]Ids A match statement that indicates the list of IDs of the destination instances.
- destination
Instance booleanIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination
Route string[]Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- map
Result string The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- match
Asns 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.
- match
Community string[]Sets 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.
- next
Priority number The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate
Community string[]Sets 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.
- preference 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.
- prepend
As string[]Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- priority number
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- route
Map stringId ID of the RouteMap. It is available in 1.161.0+.
- route
Types string[] A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source
Child string[]Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source
Instance string[]Ids A match statement that indicates the list of IDs of the source instances.
- source
Instance booleanIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source
Region string[]Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source
Route string[]Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- status string
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- transit
Router stringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- transmit
Direction string The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as_
path_ strmatch_ mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cen_
id str The ID of the CEN instance.
- cen_
region_ strid The ID of the region to which the CEN instance belongs.
- cidr_
match_ strmode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community_
match_ strmode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community_
operate_ strmode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description str
The description of the route map.
- destination_
child_ Sequence[str]instance_ types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination_
cidr_ Sequence[str]blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination_
instance_ Sequence[str]ids A match statement that indicates the list of IDs of the destination instances.
- destination_
instance_ boolids_ reverse_ match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination_
route_ Sequence[str]table_ ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- map_
result str The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- match_
asns Sequence[str] 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.
- match_
community_ Sequence[str]sets 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.
- next_
priority int The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate_
community_ Sequence[str]sets 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.
- preference int
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.
- prepend_
as_ Sequence[str]paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- priority int
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- route_
map_ strid ID of the RouteMap. It is available in 1.161.0+.
- route_
types Sequence[str] A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source_
child_ Sequence[str]instance_ types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source_
instance_ Sequence[str]ids A match statement that indicates the list of IDs of the source instances.
- source_
instance_ boolids_ reverse_ match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source_
region_ Sequence[str]ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source_
route_ Sequence[str]table_ ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- status str
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- transit_
router_ strroute_ table_ id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- transmit_
direction str The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
- as
Path StringMatch Mode A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
- cen
Id String The ID of the CEN instance.
- cen
Region StringId The ID of the region to which the CEN instance belongs.
- cidr
Match StringMode A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
- community
Match StringMode A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
- community
Operate StringMode An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
- description String
The description of the route map.
- destination
Child List<String>Instance Types A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN", "VPN"].
- destination
Cidr List<String>Blocks A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
- destination
Instance List<String>Ids A match statement that indicates the list of IDs of the destination instances.
- destination
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- destination
Route List<String>Table Ids A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
- map
Result String The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
- match
Asns List<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.
- match
Community List<String>Sets 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.
- next
Priority Number The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
- operate
Community List<String>Sets 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.
- preference 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.
- prepend
As List<String>Paths An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
- priority Number
The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
- route
Map StringId ID of the RouteMap. It is available in 1.161.0+.
- route
Types List<String> A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
- source
Child List<String>Instance Types A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
- source
Instance List<String>Ids A match statement that indicates the list of IDs of the source instances.
- source
Instance BooleanIds Reverse Match Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
- source
Region List<String>Ids A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
- source
Route List<String>Table Ids A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
- status String
(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
- transit
Router StringRoute Table Id The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
- transmit
Direction String The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
Import
CEN RouteMap can be imported using the id, e.g.
$ pulumi import alicloud:cen/routeMap:RouteMap default <cen_id>:<route_map_id>.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.