ALIYUN::VPC::DhcpOptionsSetAttachment は、Dynamic Host Configuration Protocol(DHCP)オプションセットを仮想プライベートクラウド(VPC)に関連付けるために使用されます。
構文
{
"Type": "ALIYUN::VPC::DhcpOptionsSetAttachment",
"Properties": {
"DhcpOptionsSetId": String,
"VpcId": String
}
}プロパティ
| プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| DhcpOptionsSetId | String | はい | はい | DHCP オプションセットの ID です。 DHCP オプションセットの詳細については、DHCP オプションセットをご参照ください。 | N/A |
| VpcId | String | はい | いいえ | DHCP オプションセットに関連付けられている VPC の ID です。 | N/A |
レスポンスパラメータ
Fn::GetAtt
- DhcpOptionsSetId: DHCP オプションセットの ID です。
- VpcId: DHCP オプションセットに関連付けられている VPC の ID です。
例
JSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DhcpOptionsSetId": {
"Type": "String",
"Description": "The ID of the DHCP options set." // DHCP オプションセットのID。
},
"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.", // DHCP オプションセットのID。
"Value": {
"Fn::GetAtt": [
"DhcpOptionsSetAttachment",
"DhcpOptionsSetId"
]
}
},
"VpcId": {
"Description": "The ID of the VPC network.", // VPCネットワークのID。
"Value": {
"Fn::GetAtt": [
"DhcpOptionsSetAttachment",
"VpcId"
]
}
}
}
}YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DhcpOptionsSetId:
Type: String
Description: The ID of the DHCP options set. # DHCP オプションセットのID。
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. # DHCP オプションセットのID。
Value:
Fn::GetAtt:
- DhcpOptionsSetAttachment
- DhcpOptionsSetId
VpcId:
Description: The ID of the VPC network. # VPCネットワークのID。
Value:
Fn::GetAtt:
- DhcpOptionsSetAttachment
- VpcId