全部产品
Search
文档中心

资源编排:DATASOURCE::RAM::AccountAlias

更新时间:Aug 12, 2024

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