ALIYUN::EAIS::ClientInstanceAttachment

ALIYUN::EAIS::ClientInstanceAttachment类型用于将弹性加速计算实例挂载到用户的ECS实例上。

语法

{
  "Type": "ALIYUN::EAIS::ClientInstanceAttachment",
  "Properties": {
    "InstanceId": String,
    "ClientInstanceId": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

InstanceId

String

EAIS实例ID。

ClientInstanceId

String

待绑定的ECS或ECI实例ID。

返回值

Fn::GetAtt

  • ClientInstanceId:ECS或ECI实例ID。

  • InstanceId:EAIS实例ID。

  • VSwitchId:交换机ID。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ClientInstanceId:
        Description: The ID of the ECS or ECI instance bound to the EAIS instance.
        Type: String
      InstanceId:
        Description: The EAIS instance ID.
        Type: String
    Resources:
      ExtensionResource:
        Properties:
          ClientInstanceId:
            Ref: ClientInstanceId
          InstanceId:
            Ref: InstanceId
        Type: ALIYUN::EAIS::ClientInstanceAttachment
    Outputs:
      ClientInstanceId:
        Description: The ID of the ECS or ECI instance bound to the EAIS instance.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - ClientInstanceId
      InstanceId:
        Description: The EAIS instance ID.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - InstanceId
      VSwitchId:
        Description: Switch ID.
        Value:
          Fn::GetAtt:
          - ExtensionResource
          - VSwitchId
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "InstanceId": {
          "Type": "String",
          "Description": "The EAIS instance ID."
        },
        "ClientInstanceId": {
          "Type": "String",
          "Description": "The ID of the ECS or ECI instance bound to the EAIS instance."
        }
      },
      "Resources": {
        "ExtensionResource": {
          "Type": "ALIYUN::EAIS::ClientInstanceAttachment",
          "Properties": {
            "InstanceId": {
              "Ref": "InstanceId"
            },
            "ClientInstanceId": {
              "Ref": "ClientInstanceId"
            }
          }
        }
      },
      "Outputs": {
        "InstanceId": {
          "Description": "The EAIS instance ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "InstanceId"
            ]
          }
        },
        "VSwitchId": {
          "Description": "Switch ID.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "VSwitchId"
            ]
          }
        },
        "ClientInstanceId": {
          "Description": "The ID of the ECS or ECI instance bound to the EAIS instance.",
          "Value": {
            "Fn::GetAtt": [
              "ExtensionResource",
              "ClientInstanceId"
            ]
          }
        }
      }
    }