All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::RAM::AccountAlias

Last Updated:Sep 18, 2024

DATASOURCE::RAM::AccountAlias is used to query the alias of a cloud account.

Return values

Fn::GetAtt

AccountAlias: the alias of the account.

Examples

  • YAML format

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

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