ALIYUN::ResourceManager::Handshake is used to create an invitation.

Syntax

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

Properties

Property Type Required Editable Description Constraint
Note String No No The remarks of the invitation. None
TargetType String Yes No The type of the invited account. Valid values:
  • Account: indicates the ID of the account.
  • Email: indicates the logon email address of the account.
TargetEntity String Yes No The ID or logon email address of the invited account. None

Response parameters

Fn::GetAtt

  • ResourceDirectoryId: the ID of the resource directory.
  • HandshakeId: the ID of the invitation.
  • Note: the remarks of the invitation.
  • CreateTime: the time when the invitation was created.
  • ModifyTime: the time when the invitation was modified.
  • TargetType: the type of the invited account.
  • TargetEntity: the ID or logon email address of the invited account.
  • MasterAccountName: the name of the master account.
  • MasterAccountId: the ID of the master account.
  • ExpireTime: the time when the invitation expires.

Examples

JSON format

{
  "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": {
    "ModifyTime": {
      "Description": "The modification time of the invitation",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "ModifyTime"
        ]
      }
    },
    "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"
        ]
      }
    },
    "CreateTime": {
      "Description": "The creation time of the invitation",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "CreateTime"
        ]
      }
    },
    "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"
        ]
      }
    },
    "ExpireTime": {
      "Description": "The expiration time of the invitation",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "ExpireTime"
        ]
      }
    },
    "TargetEntity": {
      "Description": "Invited account ID or login email",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerHandshake",
          "TargetEntity"
        ]
      }
    }
  }
}

YAML format

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:
  ModifyTime:
    Description: The modification time of the invitation
    Value:
      'Fn::GetAtt':
        - ResourceManagerHandshake
        - ModifyTime
  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
  CreateTime:
    Description: The creation time of the invitation
    Value:
      'Fn::GetAtt':
        - ResourceManagerHandshake
        - CreateTime
  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
  ExpireTime:
    Description: The expiration time of the invitation
    Value:
      'Fn::GetAtt':
        - ResourceManagerHandshake
        - ExpireTime
  TargetEntity:
    Description: Invited account ID or login email
    Value:
      'Fn::GetAtt':
        - ResourceManagerHandshake
        - TargetEntity