O recurso ALIYUN::VPC::VpcGatewayEndpointAssociation associa tabelas de rotas a um gateway endpoint.
Sintaxe
{
"Type": "ALIYUN::VPC::VpcGatewayEndpointAssociation",
"Properties": {
"EndpointId": String,
"RouteTableIds": List
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
EndpointId |
String |
Sim |
Não |
ID do gateway endpoint. |
Nenhuma. |
|
RouteTableIds |
List |
Sim |
Não |
IDs das tabelas de rotas. |
Máximo: 20. |
Valores de retorno
Fn::GetAtt
EndpointId: ID do gateway endpoint.
Exemplos
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"
]
}
}
}
}