ALIYUN::CEN::ChildInstanceRouteEntryToAttachment は、エンタープライズ版の中継ルーターに接続されているネットワークインスタンスにルートを追加するために使用されます。
構文
{
"Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
"Properties": {
"TransitRouterAttachmentId": String,
"RouteTableId": String,
"CenId": String,
"DestinationCidrBlock": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
CenId | String | はい | いいえ | クラウドエンタープライズネットワーク (CEN) インスタンスの ID。 | なし |
DestinationCidrBlock | String | はい | いいえ | ルートの宛先 CIDR ブロック。 | なし |
RouteTableId | String | はい | いいえ | ネットワークインスタンスのルートテーブルの ID。 | なし |
TransitRouterAttachmentId | String | はい | いいえ | ネットワークインスタンスの接続 ID。 | なし |
戻り値
Fn::GetAtt
TransitRouterAttachmentId: ネットワークインスタンスの接続 ID。
RouteTableId: ネットワークインスタンスのルートテーブルの ID。
CenId: CEN インスタンスの ID。
DestinationCidrBlock: ルートの宛先 CIDR ブロック。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TransitRouterAttachmentId:
Type: String
Description: The ID of the network instance connection. # ネットワークインスタンス接続のID
RouteTableId:
Type: String
Description: The ID of the route table configured on the network instance. # ネットワークインスタンス上に構成されたルートテーブルのID
CenId:
Type: String
Description: The ID of the CEN instance. # CENインスタンスのID
DestinationCidrBlock:
Type: String
Description: The destination CIDR block of the route. # ルートの宛先CIDRブロック
Resources:
ChildInstanceRouteEntryToAttachment:
Type: ALIYUN::CEN::ChildInstanceRouteEntryToAttachment
Properties:
TransitRouterAttachmentId:
Ref: TransitRouterAttachmentId
RouteTableId:
Ref: RouteTableId
CenId:
Ref: CenId
DestinationCidrBlock:
Ref: DestinationCidrBlock
Outputs:
TransitRouterAttachmentId:
Description: The ID of the network instance connection. # ネットワークインスタンス接続のID
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- TransitRouterAttachmentId
RouteTableId:
Description: The ID of the route table configured on the network instance. # ネットワークインスタンス上に構成されたルートテーブルのID
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- RouteTableId
CenId:
Description: The ID of the CEN instance. # CENインスタンスのID
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- CenId
DestinationCidrBlock:
Description: The destination CIDR block of the route. # ルートの宛先CIDRブロック
Value:
Fn::GetAtt:
- ChildInstanceRouteEntryToAttachment
- DestinationCidrBlock
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TransitRouterAttachmentId": {
"Type": "String",
"Description": "The ID of the network instance connection." // ネットワークインスタンス接続の ID
},
"RouteTableId": {
"Type": "String",
"Description": "The ID of the route table configured on the network instance." // ネットワークインスタンス上に構成されたルートテーブルの ID
},
"CenId": {
"Type": "String",
"Description": "The ID of the CEN instance." // CEN インスタンスの ID
},
"DestinationCidrBlock": {
"Type": "String",
"Description": "The destination CIDR block of the route." // ルートの宛先 CIDR ブロック
}
},
"Resources": {
"ChildInstanceRouteEntryToAttachment": {
"Type": "ALIYUN::CEN::ChildInstanceRouteEntryToAttachment",
"Properties": {
"TransitRouterAttachmentId": {
"Ref": "TransitRouterAttachmentId"
},
"RouteTableId": {
"Ref": "RouteTableId"
},
"CenId": {
"Ref": "CenId"
},
"DestinationCidrBlock": {
"Ref": "DestinationCidrBlock"
}
}
}
},
"Outputs": {
"TransitRouterAttachmentId": {
"Description": "The ID of the network instance connection.", // ネットワークインスタンス接続の ID
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"TransitRouterAttachmentId"
]
}
},
"RouteTableId": {
"Description": "The ID of the route table configured on the network instance.", // ネットワークインスタンス上に構成されたルートテーブルの ID
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"RouteTableId"
]
}
},
"CenId": {
"Description": "The ID of the CEN instance.", // CEN インスタンスの ID
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"CenId"
]
}
},
"DestinationCidrBlock": {
"Description": "The destination CIDR block of the route.", // ルートの宛先 CIDR ブロック
"Value": {
"Fn::GetAtt": [
"ChildInstanceRouteEntryToAttachment",
"DestinationCidrBlock"
]
}
}
}
}