閱讀469 返回首頁    go 阿裏雲


ALIYUN::ECS::EIP__資源列表_資源編排-阿裏雲

ALIYUN::ECS::EIP 類型可用於申請彈性公網 IP。

語法

{
   "Type" : "ALIYUN::ECS::EIP",
   "Properties" : {
         "Bandwidth" : String,
      "InternetChargeType" : String,
   }
}

屬性

Bandwidth

彈性公網 IP 的限速,如果不指定,默認為 5Mbps。

InternetChargeType

PayByBandwidth 和 PayByTraffic,默認是 PayByBandwidth

返回值

Fn::GetAtt

  • EipAddress 分配的彈性公網 IP

  • AllocationId 彈性公網 IP 的實例 Id

示例

{
  "ROSTemplateFormatVersion" : "2015-09-01",
  "Resources" : {
    "NewEip": {
      "Type": "ALIYUN::ECS::EIP"
    }
  },
  "Outputs": {
    "EipAddress": {
         "Value" : {"get_attr": ["EipAddress"]}
    },
    "AllocationId": {
         "Value" : {"get_attr": ["AllocationId"]}
    }
  }
}

最後更新:2016-11-23 16:04:02

  上一篇:go ALIYUN::ECS::DiskAttachment__資源列表_資源編排-阿裏雲
  下一篇:go ALIYUN::ECS::EIPAssociation__資源列表_資源編排-阿裏雲