O recurso ALIYUN::VPC::DhcpOptionsSetAttachment associa um conjunto de opções do Dynamic Host Configuration Protocol (DHCP) a uma Virtual Private Cloud (VPC).
Sintaxe
{
"Type": "ALIYUN::VPC::DhcpOptionsSetAttachment",
"Properties": {
"DhcpOptionsSetId": String,
"VpcId": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
DhcpOptionsSetId |
String |
Sim |
Sim |
ID do conjunto de opções DHCP. Para mais informações sobre conjuntos de opções DHCP, consulte Conjuntos de opções DHCP. |
N/A |
|
VpcId |
String |
Sim |
Não |
ID da VPC associada ao conjunto de opções DHCP. |
N/A |
Parâmetros de resposta
Fn::GetAtt
DhcpOptionsSetId: ID do conjunto de opções DHCP.
VpcId: ID da VPC associada ao conjunto de opções DHCP.
Exemplos
Formato JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DhcpOptionsSetId": {
"Type": "String",
"Description": "The ID of the DHCP options set."
},
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
}
},
"Resources": {
"DhcpOptionsSetAttachment": {
"Type": "ALIYUN::VPC::DhcpOptionsSetAttachment",
"Properties": {
"DhcpOptionsSetId": {
"Ref": "DhcpOptionsSetId"
},
"VpcId": {
"Ref": "VpcId"
}
}
}
},
"Outputs": {
"DhcpOptionsSetId": {
"Description": "The ID of the DHCP options set.",
"Value": {
"Fn::GetAtt": [
"DhcpOptionsSetAttachment",
"DhcpOptionsSetId"
]
}
},
"VpcId": {
"Description": "The ID of the VPC network.",
"Value": {
"Fn::GetAtt": [
"DhcpOptionsSetAttachment",
"VpcId"
]
}
}
}
}
Formato YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DhcpOptionsSetId:
Type: String
Description: The ID of the DHCP options set.
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Resources:
DhcpOptionsSetAttachment:
Type: ALIYUN::VPC::DhcpOptionsSetAttachment
Properties:
DhcpOptionsSetId:
Ref: DhcpOptionsSetId
VpcId:
Ref: VpcId
Outputs:
DhcpOptionsSetId:
Description: The ID of the DHCP options set.
Value:
Fn::GetAtt:
- DhcpOptionsSetAttachment
- DhcpOptionsSetId
VpcId:
Description: The ID of the VPC network.
Value:
Fn::GetAtt:
- DhcpOptionsSetAttachment
- VpcId