O tipo de recurso ALIYUN::CEN::CenInstanceAttachment anexa uma instância de rede a uma instância do Cloud Enterprise Network (CEN).
Sintaxe
{
"Type": "ALIYUN::CEN::CenInstanceAttachment",
"Properties": {
"ChildInstanceRegionId": String,
"ChildInstanceType": String,
"ChildInstanceId": String,
"CenId": String,
"ChildInstanceOwnerId": Integer
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
CenId |
String |
Sim |
Não |
ID da instância do CEN. |
Nenhuma. |
|
ChildInstanceId |
String |
Sim |
Não |
ID da instância de rede a ser anexada à instância do CEN. |
Nenhuma. |
|
ChildInstanceRegionId |
String |
Sim |
Não |
Região da instância de rede. |
Nenhuma. |
|
ChildInstanceType |
String |
Sim |
Não |
Tipo da instância de rede. |
Valores válidos: VPC, VBR e CCN. |
|
ChildInstanceOwnerId |
Integer |
Não |
Não |
Identificador exclusivo (UID) da conta proprietária da instância de rede em cenários entre contas. |
Nenhuma. |
Valores de retorno
Fn::GetAtt
Nenhum.
Exemplos
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
CenId:
Type: String
Description: The ID of the CEN instance.
ChildInstanceOwnerId:
Type: Number
Description: The account ID to which the network belongs.
Resources:
CenInstanceAttachment:
Type: ALIYUN::CEN::CenInstanceAttachment
Properties:
ChildInstanceRegionId: cn-beijing
ChildInstanceType: VPC
ChildInstanceId:
Ref: VpcId
CenId:
Ref: CenId
ChildInstanceOwnerId:
Ref: ChildInstanceOwnerId
Outputs: {}
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"CenId": {
"Type": "String",
"Description": "The ID of the CEN instance."
},
"ChildInstanceOwnerId": {
"Type": "Number",
"Description": "The account ID to which the network belongs."
}
},
"Resources": {
"CenInstanceAttachment": {
"Type": "ALIYUN::CEN::CenInstanceAttachment",
"Properties": {
"ChildInstanceRegionId": "cn-beijing",
"ChildInstanceType": "VPC",
"ChildInstanceId": {
"Ref": "VpcId"
},
"CenId": {
"Ref": "CenId"
},
"ChildInstanceOwnerId": {
"Ref": "ChildInstanceOwnerId"
}
}
}
},
"Outputs": {}
}