DATASOURCE::RAM::AccountAlias

DATASOURCE::RAM::AccountAlias类型用于查看云账号别名。

返回值

Fn::GetAtt

AccountAlias:账号别名。

示例

  • YAML格式

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      AccountAlias:
        Type: DATASOURCE::RAM::AccountAlias
        Properties: {}
    Outputs:
      AccountAlias:
        Description: Account alias.
        Value:
          Fn::GetAtt:
            - AccountAlias
            - AccountAlias
    
  • JSON格式

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "AccountAlias": {
          "Type": "DATASOURCE::RAM::AccountAlias",
          "Properties": {}
        }
      },
      "Outputs": {
        "AccountAlias": {
          "Description": "Account alias.",
          "Value": {
            "Fn::GetAtt": [
              "AccountAlias",
              "AccountAlias"
            ]
          }
        }
      }
    }