ALIYUN::DataWorks::Route类型用于创建网络资源的路由。
语法
{
"Type": "ALIYUN::DataWorks::Route",
"Properties": {
"DestinationCidr": String,
"NetworkId": Integer,
"DwResourceGroupId": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
DestinationCidr |
String |
是 |
是 |
基于目的地的路由的CIDR地址块。 |
无 |
|
NetworkId |
Integer |
是 |
否 |
路由所属的网络资源ID。 |
无 |
|
DwResourceGroupId |
String |
否 |
否 |
路由所属的资源组ID。 |
无 |
返回值
Fn::GetAtt
-
ResourceId:路由所属的网络资源的标识符。
-
CreateTime:路由信息创建的时间。
-
RouteId:路由ID。
-
NetworkId:路由所属的网络资源ID。
-
DwResourceGroupId:路由所属的资源组ID。
-
DestinationCidr:基于目的地的路由的CIDR地址块。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
NetworkId:
Type: Number
Description:
en: The ID of the network resource to which the route belongs.
zh: 路由所属的网络资源ID。
Required: true
DestinationCidr:
Type: String
Description:
en: The CIDR blocks of the destination-based route.
zh: 基于目的地的路由的CIDR地址块。
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::DataWorks::Route
Properties:
NetworkId:
Ref: NetworkId
DestinationCidr:
Ref: DestinationCidr
Outputs:
ResourceId:
Description:
en: Identifier of the network resource to which the route belongs.
zh: 路由所属的网络资源的标识符。
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceId
CreateTime:
Description:
en: Time when route information was created.
zh: 路由信息创建的时间。
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
RouteId:
Description:
en: The route ID.
zh: 路由ID。
Value:
Fn::GetAtt:
- ExtensionResource
- RouteId
NetworkId:
Description:
en: The ID of the network resource to which the route belongs.
zh: 路由所属的网络资源ID。
Value:
Fn::GetAtt:
- ExtensionResource
- NetworkId
DwResourceGroupId:
Description:
en: ID of the resource group to which the route belongs.
zh: 路由所属的资源组ID。
Value:
Fn::GetAtt:
- ExtensionResource
- DwResourceGroupId
DestinationCidr:
Description:
en: The CIDR blocks of the destination-based route.
zh: 基于目的地的路由的CIDR地址块。
Value:
Fn::GetAtt:
- ExtensionResource
- DestinationCidr
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"NetworkId": {
"Type": "Number",
"Description": {
"en": "The ID of the network resource to which the route belongs.",
"zh": "路由所属的网络资源ID。"
},
"Required": true
},
"DestinationCidr": {
"Type": "String",
"Description": {
"en": "The CIDR blocks of the destination-based route.",
"zh": "基于目的地的路由的CIDR地址块。"
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::DataWorks::Route",
"Properties": {
"NetworkId": {
"Ref": "NetworkId"
},
"DestinationCidr": {
"Ref": "DestinationCidr"
}
}
}
},
"Outputs": {
"ResourceId": {
"Description": {
"en": "Identifier of the network resource to which the route belongs.",
"zh": "路由所属的网络资源的标识符。"
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceId"
]
}
},
"CreateTime": {
"Description": {
"en": "Time when route information was created.",
"zh": "路由信息创建的时间。"
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"RouteId": {
"Description": {
"en": "The route ID.",
"zh": "路由ID。"
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"RouteId"
]
}
},
"NetworkId": {
"Description": {
"en": "The ID of the network resource to which the route belongs.",
"zh": "路由所属的网络资源ID。"
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NetworkId"
]
}
},
"DwResourceGroupId": {
"Description": {
"en": "ID of the resource group to which the route belongs.",
"zh": "路由所属的资源组ID。"
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DwResourceGroupId"
]
}
},
"DestinationCidr": {
"Description": {
"en": "The CIDR blocks of the destination-based route.",
"zh": "基于目的地的路由的CIDR地址块。"
},
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DestinationCidr"
]
}
}
}
}
该文章对您有帮助吗?