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