All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::EAIS::ClientInstanceAttachment

更新時間:Aug 12, 2024

ALIYUN::EAIS::ClientInstanceAttachment is used to attach an Elastic Accelerated Computing Instances (EAIS) instance to an Elastic Compute Service (ECS) instance or elastic container instance of a user.

Syntax

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

Properties

Property

Type

Required

Editable

Description

Constraint

InstanceId

String

Yes

No

The ID of the EAIS instance.

None.

ClientInstanceId

String

Yes

No

The ID of the ECS instance or elastic container instance to which you want to attach the EAIS instance.

None.

Return values

Fn::GetAtt

  • ClientInstanceId: the ID of the ECS instance or elastic container instance.

  • InstanceId: the ID of the EAIS instance.

  • VSwitchId: the vSwitch ID.

Examples

  • YAML format

    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 format

    {
      "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"
            ]
          }
        }
      }
    }