The ALIYUN::DataWorks::Route resource creates a route for a network resource.
Syntax
{
"Type": "ALIYUN::DataWorks::Route",
"Properties": {
"DestinationCidr": String,
"NetworkId": Integer,
"DwResourceGroupId": String
}
}
Properties
|
Parameter |
Type |
Required |
Update allowed |
Description |
Constraints |
|
DestinationCidr |
String |
Yes |
Yes |
The destination CIDR block for the route. |
None |
|
NetworkId |
Integer |
Yes |
No |
The ID of the network resource to which the route belongs. |
None |
|
DwResourceGroupId |
String |
No |
No |
The ID of the resource group to which the route belongs. |
None |
Return values
Fn::GetAtt
-
ResourceId: The ID of the route.
-
CreateTime: The creation timestamp of the route.
-
RouteId: The ID of the route.
-
NetworkId: The ID of the network resource to which the route belongs.
-
DwResourceGroupId: The ID of the resource group to which the route belongs.
-
DestinationCidr: The destination CIDR block for the route.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
NetworkId:
Type: Number
Description: The ID of the network resource to which the route belongs.
Required: true
DestinationCidr:
Type: String
Description: The destination CIDR block for the route.
Required: true
Resources:
ExtensionResource:
Type: ALIYUN::DataWorks::Route
Properties:
NetworkId:
Ref: NetworkId
DestinationCidr:
Ref: DestinationCidr
Outputs:
ResourceId:
Description: The ID of the route.
Value:
Fn::GetAtt:
- ExtensionResource
- ResourceId
CreateTime:
Description: The creation timestamp of the route.
Value:
Fn::GetAtt:
- ExtensionResource
- CreateTime
RouteId:
Description: The ID of the route.
Value:
Fn::GetAtt:
- ExtensionResource
- RouteId
NetworkId:
Description: The ID of the network resource to which the route belongs.
Value:
Fn::GetAtt:
- ExtensionResource
- NetworkId
DwResourceGroupId:
Description: The ID of the resource group to which the route belongs.
Value:
Fn::GetAtt:
- ExtensionResource
- DwResourceGroupId
DestinationCidr:
Description: The destination CIDR block for the route.
Value:
Fn::GetAtt:
- ExtensionResource
- DestinationCidr
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"NetworkId": {
"Type": "Number",
"Description": "The ID of the network resource to which the route belongs.",
"Required": true
},
"DestinationCidr": {
"Type": "String",
"Description": "The destination CIDR block for the route.",
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::DataWorks::Route",
"Properties": {
"NetworkId": {
"Ref": "NetworkId"
},
"DestinationCidr": {
"Ref": "DestinationCidr"
}
}
}
},
"Outputs": {
"ResourceId": {
"Description": "The ID of the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"ResourceId"
]
}
},
"CreateTime": {
"Description": "The creation timestamp of the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"CreateTime"
]
}
},
"RouteId": {
"Description": "The ID of the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"RouteId"
]
}
},
"NetworkId": {
"Description": "The ID of the network resource to which the route belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"NetworkId"
]
}
},
"DwResourceGroupId": {
"Description": "The ID of the resource group to which the route belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DwResourceGroupId"
]
}
},
"DestinationCidr": {
"Description": "The destination CIDR block for the route.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"DestinationCidr"
]
}
}
}
}