ALIYUN::VPC::VpnRouteEntry は、VPN ゲートウェイの宛先ベースのルートを作成するために使用されます。
構文
{
"Type": "ALIYUN::VPC::VpnRouteEntry",
"Properties": {
"Description": String,
"RouteDest": String,
"OverlayMode": String,
"VpnGatewayId": String,
"NextHop": String,
"PublishVpc": Boolean,
"Weight": Integer
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| Description | String | いいえ | いいえ | 宛先ベースのルートの説明。 | なし |
| RouteDest | String | はい | いいえ | 宛先ベースのルートの宛先 CIDR ブロック。 | なし |
| OverlayMode | String | いいえ | いいえ | トンネリングプロトコル。 | 値を Ipsec に設定します。Ipsec の値は、IPsec トンネリングプロトコルを示します。 |
| VpnGatewayId | String | はい | いいえ | VPN ゲートウェイの ID。 | なし |
| NextHop | String | はい | いいえ | 宛先ベースのルートのネクストホップ。 | なし |
| PublishVpc | Boolean | はい | はい | 関連付けられている仮想プライベートクラウド (VPC) のルートテーブルに、宛先ベースのルートをアドバタイズするかどうかを指定します。 | 有効な値:
|
| Weight | Integer | はい | はい | 宛先ベースのルートの重み。 | 有効な値:0 ~ 100。 |
レスポンスパラメータ
Fn::GetAtt
- RouteDest: 宛先ベースのルートの宛先 CIDR ブロック。
- VpnGatewayId: VPN ゲートウェイの ID。
- NextHop: 宛先ベースのルートのネクストホップ。
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Description": {
"Type": "String",
"Description": "VPN 宛先ルートの説明。" // The description of the VPN destination route.
},
"RouteDest": {
"Type": "String",
"Description": "宛先ルートの宛先 CIDR ブロック。" // The destination CIDR block of the destination route.
},
"OverlayMode": {
"Type": "String",
"Description": "オーバーレイモード。" // The overlay mode.
},
"VpnGatewayId": {
"Type": "String",
"Description": "VPN ゲートウェイの ID。" // The ID of the VPN Gateway.
},
"NextHop": {
"Type": "String",
"Description": "宛先ルートエントリのネクストホップ。" // The next hop of the destination route entry.
},
"PublishVpc": {
"Type": "Boolean",
"Description": "VPC に宛先ルートを公開するかどうかを示します。有効な値:\ntrue: VPC に宛先ルートを公開します。\nfalse: VPC に宛先ルートを公開しません。", // Indicates whether to publish the destination route to the VPC. Valid values:\ntrue: Publish the destination route to the VPC.\nfalse: Do not publish the destination route to the VPC.
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"Weight": {
"Type": "Number",
"Description": "宛先ルートの重み。有効な値:0|100。" // The weight of the destination route. Valid values: 0|100.
}
},
"Resources": {
"VpnRouteEntry": {
"Type": "ALIYUN::VPC::VpnRouteEntry",
"Properties": {
"Description": {
"Ref": "Description"
},
"RouteDest": {
"Ref": "RouteDest"
},
"OverlayMode": {
"Ref": "OverlayMode"
},
"VpnGatewayId": {
"Ref": "VpnGatewayId"
},
"NextHop": {
"Ref": "NextHop"
},
"PublishVpc": {
"Ref": "PublishVpc"
},
"Weight": {
"Ref": "Weight"
}
}
}
},
"Outputs": {
"RouteDest": {
"Description": "宛先ルートの宛先 CIDR ブロック。", // The destination CIDR block of the destination route.
"Value": {
"Fn::GetAtt": [
"VpnRouteEntry",
"RouteDest"
]
}
},
"VpnGatewayId": {
"Description": "VPN ゲートウェイの ID。", // The ID of the VPN Gateway.
"Value": {
"Fn::GetAtt": [
"VpnRouteEntry",
"VpnGatewayId"
]
}
},
"NextHop": {
"Description": "宛先ルートエントリのネクストホップ。", // The next hop of the destination route entry.
"Value": {
"Fn::GetAtt": [
"VpnRouteEntry",
"NextHop"
]
}
}
}
}YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Description:
Description: VPN 宛先ルートの説明。 # The description of the VPN destination route.
Type: String
NextHop:
Description: 宛先ルートエントリのネクストホップ。 # The next hop of the destination route entry.
Type: String
OverlayMode:
Description: オーバーレイモード。 # The overlay mode.
Type: String
PublishVpc:
AllowedValues:
- 'True'
- 'true'
- 'False'
- 'false'
Description: 'VPC に宛先ルートを公開するかどうかを示します。有効な値: # Indicates whether to publish the destination route to the VPC. Valid values:
true: VPC に宛先ルートを公開します。 # true: Publish the destination route to the VPC.
false: VPC に宛先ルートを公開しません。' # false: Do not publish the destination route to the VPC.
Type: Boolean
RouteDest:
Description: 宛先ルートの宛先 CIDR ブロック。 # The destination CIDR block of the destination route.
Type: String
VpnGatewayId:
Description: VPN ゲートウェイの ID。 # The ID of the VPN Gateway.
Type: String
Weight:
Description: '宛先ルートの重み。有効な値:0|100。' # The weight of the destination route. Valid values: 0|100.
Type: Number
Resources:
VpnRouteEntry:
Properties:
Description:
Ref: Description
NextHop:
Ref: NextHop
OverlayMode:
Ref: OverlayMode
PublishVpc:
Ref: PublishVpc
RouteDest:
Ref: RouteDest
VpnGatewayId:
Ref: VpnGatewayId
Weight:
Ref: Weight
Type: ALIYUN::VPC::VpnRouteEntry
Outputs:
NextHop:
Description: 宛先ルートエントリのネクストホップ。 # The next hop of the destination route entry.
Value:
Fn::GetAtt:
- VpnRouteEntry
- NextHop
RouteDest:
Description: 宛先ルートの宛先 CIDR ブロック。 # The destination CIDR block of the destination route.
Value:
Fn::GetAtt:
- VpnRouteEntry
- RouteDest
VpnGatewayId:
Description: VPN ゲートウェイの ID。 # The ID of the VPN Gateway.
Value:
Fn::GetAtt:
- VpnRouteEntry
- VpnGatewayId