ALIYUN::VPC::VpcGatewayEndpointAssociation is used to associate route tables with a gateway endpoint.
Syntax
{
"Type": "ALIYUN::VPC::VpcGatewayEndpointAssociation",
"Properties": {
"EndpointId": String,
"RouteTableIds": List
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
EndpointId | String | Yes | No | The ID of the gateway endpoint with which you want to associate the route tables. | None. |
RouteTableIds | List | Yes | No | The IDs of the route tables that you want to associate with the gateway endpoint. | You can specify up to 20 route table IDs. |
Return values
Fn::GetAtt
EndpointId: the ID of the gateway endpoint.
Examples
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"
]
}
}
}
}