日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ALIYUN::ECS::NetworkInterfaceAttachment

ALIYUN::ECS::NetworkInterfaceAttachment類型用于綁定彈性網卡(ENI)到專有網絡(VPC)類型實例上。

語法

  {
  "Type": "ALIYUN::ECS::NetworkInterfaceAttachment",
  "Properties": {
    "InstanceId": String,
    "NetworkInterfaceId": String,
    "TrunkNetworkInstanceId": String,
    "EcsRestartOption": String
  }
}

屬性

屬性名稱

類型

必須

允許更新

描述

約束

InstanceId

String

實例ID。

NetworkInterfaceId

String

彈性網卡ID。

TrunkNetworkInstanceId

String

Trunk網卡ID。

EcsRestartOption

String

控制綁定彈性網卡時是否重啟ECS實例。

取值:

  • Auto

  • NotRestart

  • Restart

返回值

Fn::GetAtt

  • NetworkInterfaceId:彈性網卡ID。

  • TrunkNetworkInstanceId:Trunk網卡ID。

  • InstanceId:實例ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      InstanceId:
        Type: String
        AssociationProperty: ALIYUN::ECS::Instance::InstanceId
      NetworkInterfaceId:
        Type: String
        Description: Network interface id
    Resources:
      EniAttachment:
        Type: ALIYUN::ECS::NetworkInterfaceAttachment
        Properties:
          InstanceId:
            Ref: InstanceId
          NetworkInterfaceId:
            Ref: NetworkInterfaceId
    Outputs:
      TrunkNetworkInstanceId:
        Description: ID of Trunk Network Interface.
        Value:
          Fn::GetAtt:
            - EniAttachment
            - TrunkNetworkInstanceId
      NetworkInterfaceId:
        Description: ID of your Network Interface.
        Value:
          Fn::GetAtt:
            - EniAttachment
            - NetworkInterfaceId
      InstanceId:
        Description: ID of instance.
        Value:
          Fn::GetAtt:
            - EniAttachment
            - InstanceId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstanceId": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::ECS::Instance::InstanceId",
        },
        "NetworkInterfaceId": {
          "Type": "String",
          "Description": "Network interface id"
        }
      },
      "Resources": {
        "EniAttachment": {
          "Type": "ALIYUN::ECS::NetworkInterfaceAttachment",
          "Properties": {
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "NetworkInterfaceId": {
              "Ref": "NetworkInterfaceId"
            }
          }
        }
      },
      "Outputs": {
        "TrunkNetworkInstanceId": {
          "Description": "ID of Trunk Network Interface.",
          "Value": {
            "Fn::GetAtt": [
              "EniAttachment",
              "TrunkNetworkInstanceId"
            ]
          }
        },
        "NetworkInterfaceId": {
          "Description": "ID of your Network Interface.",
          "Value": {
            "Fn::GetAtt": [
              "EniAttachment",
              "NetworkInterfaceId"
            ]
          }
        },
        "InstanceId": {
          "Description": "ID of instance.",
          "Value": {
            "Fn::GetAtt": [
              "EniAttachment",
              "InstanceId"
            ]
          }
        }
      }
    }

更多示例,請參見創建一個彈性網卡、綁定彈性網卡到專有網絡類型實例和授權彈性網卡的組合示例:JSON示例YAML示例