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

:ALIYUN::ECS::EIP

最終更新日:Mar 19, 2020

ALIYUN::ECS::EIP タイプを使用して EIP を作成します。

構文

  1. {
  2. "Type" : "ALIYUN::ECS::EIP",
  3. "Properties" : {
  4. "Bandwidth" : String,
  5. "InternetChargeType" : String
  6. }
  7. }

属性

属性名 必須かどうか 更新の許可 説明 制約
InternetChargeType string いいえ いいえ トラフィック料金の支払い方法 値:PayByTraffic。
Bandwidth number いいえ いいえ EIP の帯域制限。 値の範囲:[1-200]。指定しない場合、デフォルトでは 5 Mbps です。

リターン値

Fn::GetAtt

  • EipAddress: 割り当てられた EIP。

  • AllocationId: EIP に関連付けられたインスタンス ID。

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "NewEip": {
  5. "Type": "ALIYUN::ECS::EIP",
  6. "Properties": {
  7. "Bandwidth" : 50
  8. }
  9. }
  10. },
  11. "Outputs": {
  12. "EipAddress": {
  13. "Value" : {"Fn::GetAtt": ["NewEip", "EipAddress"]}
  14. },
  15. "AllocationId": {
  16. "Value" : {"Fn::GetAtt": ["NewEip", "AllocationId"]}
  17. }
  18. }
  19. }