ALIYUN::CEN::CenRouteMap is used to create a routing policy.
Syntax
{
"Type": "ALIYUN::CEN::CenRouteMap",
"Properties": {
"Description": String,
"SourceInstanceIdsReverseMatch": Boolean,
"TransmitDirection": String,
"MatchCommunitySet": List,
"CenRegionId": String,
"SourceRouteTableIds": List,
"DestinationInstanceIds": List,
"DestinationInstanceIdsReverseMatch": Boolean,
"SourceInstanceIds": List,
"DestinationRouteTableIds": List,
"DestinationCidrBlocks": List,
"OperateCommunitySet": List,
"DestinationChildInstanceTypes": List,
"Priority": Integer,
"SourceChildInstanceTypes": List,
"AsPathMatchMode": String,
"CidrMatchMode": String,
"MapResult": String,
"RouteTypes": List,
"Preference": Integer,
"CommunityOperateMode": String,
"CenId": String,
"NextPriority": Integer,
"PrependAsPath": List,
"CommunityMatchMode": String,
"MatchAsns": List,
"SourceRegionIds": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Description | String | No | Yes | The description of the routing policy. | None. |
SourceInstanceIdsReverseMatch | Boolean | Yes | Yes | Specifies whether the match is successful if the source instance IDs are not in the list that is specified by SourceInstanceIds. | Valid values:
|
TransmitDirection | String | Yes | No | Specify the direction in which the routing policy is applied. | Valid values:
|
MatchCommunitySet | List | Yes | Yes | The communities that are matched by using match statements. | Specify a community in the nn:nn format. Valid values of nn: 1 to 65535. You can specify up to 32 communities. A community must comply with the Request for Comments (RFC) 1997 standard. The RFC 8092 standard that defines Border Gateway Protocol (BGP) large communities is not supported. Note If the configurations of the communities are incorrect, routes may not be advertised to your data center. |
CenRegionId | String | Yes | No | The region ID of the CEN instance. | None. |
SourceRouteTableIds | List | Yes | Yes | The source route table IDs that are matched by using match statements. | You can specify up to 32 route table IDs. |
DestinationInstanceIds | List | Yes | Yes | The destination instance IDs that are matched by using match statements. | You can specify the IDs of virtual private clouds (VPCs), virtual border routers (VBRs), and Smart Access Gateway (SAG) instances. You can specify up to 32 instance IDs. Note This property is valid only when the routing policy is used for scenarios in which routes are advertised from regional gateways to destination instances in the same region. |
DestinationInstanceIdsReverseMatch | Boolean | No | Yes | Specifies whether the match is successful if the destination instance IDs are not in the list that is specified by DestinationInstanceIds. | Valid values:
|
SourceInstanceIds | List | No | Yes | The source instance IDs that are matched by using match statements. | You can specify the IDs of VPCs, VBRs, and SAG instances. You can specify up to 32 instance IDs. |
DestinationRouteTableIds | List | Yes | Yes | The destination route table IDs that are matched by using match statements. | You can specify up to 32 route table IDs. |
DestinationCidrBlocks | List | Yes | Yes | The prefixes that are matched by using match statements. | Specify the prefixes in CIDR blocks. You can specify up to 32 CIDR blocks. |
OperateCommunitySet | List | Yes | Yes | The communities that are managed by using action statements. | Specify a community in the nn:nn format. Valid values of nn: 1 to 65535. You can specify up to 32 communities. A community must comply with the RFC 1997 standard. The RFC 8092 standard that defines BGP large communities is not supported. Note If the configurations of the communities are incorrect, routes may not be advertised to your data center. |
DestinationChildInstanceTypes | List | Yes | Yes | The destination instance types that are matched by using match statements. | Valid values:
Note This property is valid only when the routing policy is used for scenarios in which routes are advertised from regional gateways to destination instances in the same region. |
Priority | Integer | Yes | Yes | The priority of the routing policy. | Valid values: 1 to 100. A smaller value indicates a higher priority. Note After you specify a priority for a routing policy, you cannot specify the same priority for another routing policy that is used in the same region and direction. The system evaluates routes against the match conditions of routing policies in descending order of priority. A smaller value indicates a higher priority. Therefore, you must specify appropriate values to sort the routing policies in the expected order. |
SourceChildInstanceTypes | List | Yes | Yes | The source instance types that are matched by using match statements. | Valid values:
|
AsPathMatchMode | String | No | Yes | The mode in which the autonomous system (AS) paths are matched by using match statements. | Valid values:
|
CidrMatchMode | String | No | Yes | The mode in which the prefixes are matched by using match statements. | Valid values:
|
MapResult | String | Yes | Yes | The action that is performed on a route if the route matches all match conditions. | Valid values:
|
RouteTypes | List | Yes | Yes | The route types that are matched by using match statements. | Valid values:
You can specify multiple route types. |
Preference | Integer | No | Yes | The new priority of the route that is modified by using an action statement. | Valid values: 1 to 100. Default value: 50. A smaller value indicates a higher priority. |
CommunityOperateMode | String | No | Yes | The mode in which communities are managed by using action statements. | Valid values:
|
CenId | String | Yes | No | The ID of the CEN instance. | None. |
NextPriority | Integer | No | Yes | The priority of the next routing policy that you want to associate with the current routing policy. | Valid values: 1 to 100.
Only when MapResult is set to Permit, routes that match the current routing policy can continue to match the next routing policy. |
PrependAsPath | List | Yes | Yes | The AS paths that are prepended by using action statements when regional gateways receive or advertise routes. | The requirements on AS paths that are prepended vary based on routing policies used in different directions:
|
CommunityMatchMode | String | No | Yes | The mode in which communities are matched by using match statements. | Valid values:
|
MatchAsns | List | Yes | Yes | The AS paths that are matched by using match statements. | An AS path is a required attribute, which describes the AS number that is used to pass a BGP route when the BGP route is advertised. Only AS SEQUENCE is supported. AS SET, AS CONFED SEQUENCE, and AS CONFED SET are not supported. In other words, only the AS number list is supported. Sets and sub-lists are not supported. |
SourceRegionIds | List | Yes | Yes | The source region IDs that are matched by using match statements. | You can specify up to 32 region IDs. |
Return values
Fn::GetAtt
RouteMapId: the ID of the routing policy.