ALIYUN::VPC::RouteTableWithGatewayAssociation は、同じ仮想プライベートクラウド (VPC) 内の IPv4 または IPv6 ゲートウェイにゲートウェイルートテーブルを関連付けるために使用されます。
構文
{
"Type": "ALIYUN::VPC::RouteTableWithGatewayAssociation",
"Properties": {
"GatewayType": String,
"GatewayId": String,
"RouteTableId": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
GatewayType | String | はい | いいえ | ゲートウェイのタイプ。 | 値を Ipv4Gateway に設定します。 |
GatewayId | String | はい | いいえ | IPv4 ゲートウェイの ID。 | なし。 |
RouteTableId | String | はい | いいえ | ゲートウェイルートテーブルの ID。 | なし。 |
戻り値
Fn::GetAtt
RouteTableId: ゲートウェイルートテーブルの ID。
GatewayId: ゲートウェイの ID。
例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RouteTableId:
Type: String
Description:
en: The ID of route table that gateway is to be bound.
ja: ゲートウェイがバインドされるルートテーブルの ID。
Required: true
GatewayType:
Type: String
Description:
en: Types of the associated gateway instance.
ja: 関連付けられているゲートウェイインスタンスのタイプ。
AllowedValues:
- Ipv4Gateway
Required: true
GatewayId:
Type: String
Description:
en: |-
The ID of the IPv4 gateway that is to be associated.
The IPv4 gateway instance must be activated.
ja: |-
関連付けられる IPv4 ゲートウェイの ID。
IPv4 ゲートウェイインスタンスはアクティブ化されている必要があります。
Required: true
Resources:
RouteTableWithGatewayAssociation:
Type: ALIYUN::VPC::RouteTableWithGatewayAssociation
Properties:
RouteTableId:
Ref: RouteTableId
GatewayType:
Ref: GatewayType
GatewayId:
Ref: GatewayId
Outputs:
RouteTableId:
Description: The ID of route table that gateway is to be bound.
Value:
Fn::GetAtt:
- RouteTableWithGatewayAssociation
- RouteTableId
GatewayId:
Description: The ID of the IPv4 gateway that is to be associated.
Value:
Fn::GetAtt:
- RouteTableWithGatewayAssociation
- GatewayId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RouteTableId": {
"Type": "String",
"Description": {
"en": "The ID of route table that gateway is to be bound.",
"ja": "ゲートウェイがバインドされるルートテーブルの ID。"
},
"Required": true
},
"GatewayType": {
"Type": "String",
"Description": {
"en": "Types of the associated gateway instance.",
"ja": "関連付けられているゲートウェイインスタンスのタイプ。"
},
"AllowedValues": [
"Ipv4Gateway"
],
"Required": true
},
"GatewayId": {
"Type": "String",
"Description": {
"en": "The ID of the IPv4 gateway that is to be associated.\nThe IPv4 gateway instance must be activated.",
"ja": "関連付けられる IPv4 ゲートウェイの ID。\nIPv4 ゲートウェイインスタンスはアクティブ化されている必要があります。"
},
"Required": true
}
},
"Resources": {
"RouteTableWithGatewayAssociation": {
"Type": "ALIYUN::VPC::RouteTableWithGatewayAssociation",
"Properties": {
"RouteTableId": {
"Ref": "RouteTableId"
},
"GatewayType": {
"Ref": "GatewayType"
},
"GatewayId": {
"Ref": "GatewayId"
}
}
}
},
"Outputs": {
"RouteTableId": {
"Description": "The ID of route table that gateway is to be bound.",
"Value": {
"Fn::GetAtt": [
"RouteTableWithGatewayAssociation",
"RouteTableId"
]
}
},
"GatewayId": {
"Description": "The ID of the IPv4 gateway that is to be associated.",
"Value": {
"Fn::GetAtt": [
"RouteTableWithGatewayAssociation",
"GatewayId"
]
}
}
}
}