ALIYUN::ResourceManager::Account

更新时间:
复制 MD 格式

ALIYUN::ResourceManager::Account creates a member of the resource account type.

Syntax

{
  "Type": "ALIYUN::ResourceManager::Account",
  "Properties": {
    "PayerAccountId": String,
    "DisplayName": String,
    "FolderId": String,
    "DeleteAccount": Boolean
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

PayerAccountId

String

No

No

Settlement account ID.

Default: the current account.

DisplayName

String

Yes

Yes

Display name of the member.

2 to 50 characters. Can contain letters, digits, underscores (_), periods (.), and hyphens (-).

Must be unique in the resource directory.

FolderId

String

No

Yes

Resource folder ID.

None

DeleteAccount

Boolean

No

No

Whether to delete the account.

Valid values:

  • true

  • false (default)

Return values

Fn::GetAtt

  • FolderId: Resource folder ID.

  • ResourceDirectoryId: Resource directory ID.

  • AccountId: Account ID.

  • DisplayName: Member display name.

  • Type: Member type. ResourceAccount indicates a resource account.

  • JoinMethod: How the member joined the resource directory. invited indicates the member was invited. created indicates the member account was created in the directory.

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
 PayerAccountId:
  Type: String
  Description: ''
 DisplayName:
  Type: String
  Description: Member name
 FolderId:
  Type: String
  Description: The ID of the parent folder
Resources:
 ResourceManagerAccount:
  Type: 'ALIYUN::ResourceManager::Account'
  Properties:
   PayerAccountId:
    Ref: PayerAccountId
   DisplayName:
    Ref: DisplayName
   FolderId:
    Ref: FolderId
Outputs:
 JoinMethod:
  Description: >-
   Ways for members to join the resource directory. Valid values: invited,
   created
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - JoinMethod
 ResourceDirectoryId:
  Description: Resource directory ID
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - ResourceDirectoryId
 Type:
  Description: Member type. The value of ResourceAccount indicates the resource account
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - Type
 AccountId:
  Description: This ID of Resource Manager Account
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - AccountId
 DisplayName:
  Description: Member name
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - DisplayName
 FolderId:
  Description: The ID of the parent folder
  Value:
   'Fn::GetAtt':
    - ResourceManagerAccount
    - FolderId

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "PayerAccountId": {
      "Type": "String",
      "Description": ""
    },
    "DisplayName": {
      "Type": "String",
      "Description": "Member name"
    },
    "FolderId": {
      "Type": "String",
      "Description": "The ID of the parent folder"
    }
  },
  "Resources": {
    "ResourceManagerAccount": {
      "Type": "ALIYUN::ResourceManager::Account",
      "Properties": {
        "PayerAccountId": {
          "Ref": "PayerAccountId"
        },
        "DisplayName": {
          "Ref": "DisplayName"
        },
        "FolderId": {
          "Ref": "FolderId"
        }
      }
    }
  },
  "Outputs": {
    "JoinMethod": {
      "Description": "Ways for members to join the resource directory. Valid values: invited, created",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "JoinMethod"
        ]
      }
    },
    "ResourceDirectoryId": {
      "Description": "Resource directory ID",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "ResourceDirectoryId"
        ]
      }
    },
    "Type": {
      "Description": "Member type. The value of ResourceAccount indicates the resource account",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "Type"
        ]
      }
    },
    "AccountId": {
      "Description": "This ID of Resource Manager Account",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "AccountId"
        ]
      }
    },
    "DisplayName": {
      "Description": "Member name",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "DisplayName"
        ]
      }
    },
    "FolderId": {
      "Description": "The ID of the parent folder",
      "Value": {
        "Fn::GetAtt": [
          "ResourceManagerAccount",
          "FolderId"
        ]
      }
    }
  }
}