Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ResourceManager::Handshake

Última atualização: Jun 27, 2026

ALIYUN::ResourceManager::Handshake crie um convite.

Sintaxe

{
  "Type": "ALIYUN::ResourceManager::Handshake",
  "Properties": {
    "Note": String,
    "TargetType": String,
    "TargetEntity": String
  }
}

Propriedades

PropriedadeTipoObrigatórioEditávelDescriçãoRestrição
NoteStringNãoNãoObservações do convite.Nenhuma
TargetTypeStringSimNãoTipo da conta convidada.Valores válidos:
  • Account: ID da conta.
  • Email: endereço de e-mail de login da conta.
TargetEntityStringSimNãoID ou endereço de e-mail de login da conta convidada.Nenhuma

Parâmetros de resposta

Fn::GetAtt

  • ResourceDirectoryId: ID do diretório de recursos.

  • HandshakeId: ID do convite.

  • Note: observações do convite.

  • TargetType: tipo da conta convidada.

  • TargetEntity: ID ou endereço de e-mail de login da conta convidada.

  • MasterAccountName: nome da conta principal.

  • MasterAccountId: ID da conta principal.

Exemplos

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "Note": {
      "Type": "String",
      "Description": "Remarks"
    },
    "TargetType": {
      "Type": "String",
      "Description": "Type of account being invited. Valid values: Account, Email"
    },
    "TargetEntity": {
      "Type": "String",
      "Description": "Invited account ID or login email"
    }
  },
  "Resources": {
    "ResourceManagerHandshake": {
      "Type": "ALIYUN::ResourceManager::Handshake",
      "Properties": {
        "Note": {
          "Ref": "Note"
        },
        "TargetType": {
          "Ref": "TargetType"
        },
        "TargetEntity": {
          "Ref": "TargetEntity"
        }
      }
    }
  },
  "Outputs": {
    "ResourceDirectoryId": {
      "Description": "Resource directory ID",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "ResourceDirectoryId"
        ]
      }
    },
    "HandshakeId": {
      "Description": "This ID of Resource Manager handshake",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "HandshakeId"
        ]
      }
    },
    "Note": {
      "Description": "Remarks",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "Note"
        ]
      }
    },
    "MasterAccountName": {
      "Description": "The name of the main account of the resource directory",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "MasterAccountName"
        ]
      }
    },
    "TargetType": {
      "Description": "Type of account being invited. Valid values: Account, Email",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "TargetType"
        ]
      }
    },
    "MasterAccountId": {
      "Description": "Resource account master account ID",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "MasterAccountId"
        ]
      }
    },
    "TargetEntity": {
      "Description": "Invited account ID or login email",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "TargetEntity"
        ]
      }
    }
  }
}

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 Note:
  Type: String
  Description: Remarks
 TargetType:
  Type: String
  Description: 'Type of account being invited. Valid values: Account, Email'
 TargetEntity:
  Type: String
  Description: Invited account ID or login email
Resources:
 ResourceManagerHandshake:
  Type: 'ALIYUN::ResourceManager::Handshake'
  Properties:
   Note:
    Ref: Note
   TargetType:
    Ref: TargetType
   TargetEntity:
    Ref: TargetEntity
Outputs:
 ResourceDirectoryId:
  Description: Resource directory ID
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - ResourceDirectoryId
 HandshakeId:
  Description: This ID of Resource Manager handshake
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - HandshakeId
 Note:
  Description: Remarks
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - Note
 MasterAccountName:
  Description: The name of the main account of the resource directory
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - MasterAccountName
 TargetType:
  Description: 'Type of account being invited. Valid values: Account, Email'
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - TargetType
 MasterAccountId:
  Description: Resource account master account ID
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - MasterAccountId
 TargetEntity:
  Description: Invited account ID or login email
  Value:
   'Fn::GetAtt':
    - ResourceManagerHandshake
    - TargetEntity