ALIYUN::CEN::CenRouteService is used to configure the access to an Alibaba Cloud service.
For more information about Alibaba Cloud services, see ResolveAndRouteServiceInCen.
Syntax
{
"Type": "ALIYUN::CEN::CenRouteService",
"Properties": {
"Description": String,
"HostRegionId": String,
"CenId": String,
"AccessRegionId": String,
"Host": String,
"HostVpcId": String,
"ConflictIgnore": Boolean
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Description | String | No | No | The description of the cloud service. | The description must be 2 to 256 characters in length, and can contain letters, digits, hyphens (-), periods (.), and underscores (_). The description must start with a letter but cannot start with http:// or https:// . |
HostRegionId | String | Yes | No | The ID of the region in which the cloud service is deployed. | None. |
CenId | String | Yes | No | The ID of the Cloud Enterprise Network (CEN) instance. | You can call the CreateCen operation to query the instance ID. |
AccessRegionId | String | Yes | No | The ID of the region in which the network instance of the cloud service that you want to access is deployed. | You can call the DescribeChildInstanceRegions operation to query the region ID. |
Host | String | Yes | No | The IP addresses or CIDR blocks of the cloud service. | In most cases, multiple IP addresses or CIDR blocks are attached to the cloud service. We recommend that you specify the ALIYUN::CEN::CenRouteService resource type multiple times to add all IP addresses and CIDR blocks of the cloud service. |
ConflictIgnore | Boolean | No | No | Specifies whether to ignore a conflict that occurs when you configure the access to the cloud service. | Default value: false. Valid values:
|
HostVpcId | String | Yes | No | The ID of the virtual private cloud (VPC) that is associated with the cloud service. | None. |
Return value
Fn::GetAtt
Id: the ID of the cloud service. The ID is in the {CenId}/{HostRegionId}/{Host}/{AccessRegionId}
format.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Parameters": { "CenId": { "Type": "String", "Description": "The ID of the Cloud Enterprise Network (CEN) instance.", "Default": "cen-2****" }, "HostVpcId": { "Type": "String", "AssociationProperty": "ALIYUN::ECS::VPC::VPCId" } }, "Resources": { "CenRouteService": { "Type": "ALIYUN::CEN::CenRouteService", "Properties": { "HostRegionId": "cn-beijing", "CenId": { "Ref": "CenId" }, "AccessRegionId": "cn-hangzhou", "Host": "100.118.28.0/24", "HostVpcId": { "Ref": "HostVpcId" } } } }, "Outputs": { "Id": { "Description": "The ID of the cloud service. It is formatted to {CenId}/{HostRegionId}/{Host}/{AccessRegionId}", "Value": { "Fn::GetAtt": [ "CenRouteService", "Id" ] } } } }