ALIYUN::VPC::VpcGatewayEndpointAssociation类型用于关联路由表与网关终端节点。
语法
{
"Type": "ALIYUN::VPC::VpcGatewayEndpointAssociation",
"Properties": {
"EndpointId": String,
"RouteTableIds": List
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
EndpointId | String | 是 | 否 | 要关联路由表的网关终端节点实例 ID。 | 无 |
RouteTableIds | List | 是 | 否 | 要关联的路由表 ID 列表。 | 最多支持配置20组路由表 ID 。 |
返回值
Fn::GetAtt
EndpointId:网关终端节点实例 ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
RouteTableIds:
AssociationPropertyMetadata:
Parameter:
Type: String
Description:
en: The routing table ID.
Required: true
AssociationProperty: List[Parameter]
Type: Json
Description:
en: The routing table ID to associate.The value range of N is 1~20, that is, a maximum of 20 routing tables can be bound at a time.
Required: true
MaxLength: 20
EndpointId:
Type: String
Description:
en: The gateway endpoint instance ID to associate the routing table.
Required: true
Resources:
VpcGatewayEndpointAssociation:
Type: ALIYUN::VPC::VpcGatewayEndpointAssociation
Properties:
RouteTableIds:
Ref: RouteTableIds
EndpointId:
Ref: EndpointId
Outputs:
EndpointId:
Description: The gateway endpoint instance ID to associate the routing table.
Value:
Fn::GetAtt:
- VpcGatewayEndpointAssociation
- EndpointId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"RouteTableIds": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Description": {
"en": "The routing table ID."
},
"Required": true
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The routing table ID to associate.The value range of N is 1~20, that is, a maximum of 20 routing tables can be bound at a time."
},
"Required": true,
"MaxLength": 20
},
"EndpointId": {
"Type": "String",
"Description": {
"en": "The gateway endpoint instance ID to associate the routing table."
},
"Required": true
}
},
"Resources": {
"VpcGatewayEndpointAssociation": {
"Type": "ALIYUN::VPC::VpcGatewayEndpointAssociation",
"Properties": {
"RouteTableIds": {
"Ref": "RouteTableIds"
},
"EndpointId": {
"Ref": "EndpointId"
}
}
}
},
"Outputs": {
"EndpointId": {
"Description": "The gateway endpoint instance ID to associate the routing table.",
"Value": {
"Fn::GetAtt": [
"VpcGatewayEndpointAssociation",
"EndpointId"
]
}
}
}
}
该文章对您有帮助吗?