すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::VPC::DhcpOptionsSetAttachment

最終更新日:Jan 16, 2025

ALIYUN::VPC::DhcpOptionsSetAttachment は、Dynamic Host Configuration Protocol(DHCP)オプションセットを仮想プライベートクラウド(VPC)に関連付けるために使用されます。

構文

{
  "Type": "ALIYUN::VPC::DhcpOptionsSetAttachment",
  "Properties": {
    "DhcpOptionsSetId": String,
    "VpcId": String
  }
}

プロパティ

プロパティタイプ必須編集可能説明制約
DhcpOptionsSetIdStringはいはいDHCP オプションセットの ID です。

DHCP オプションセットの詳細については、DHCP オプションセットをご参照ください。

N/A
VpcIdStringはいいいえ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