All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::RAM::AccountAlias

更新时间:Feb 05, 2025

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

Syntax

{
  "Type": "DATASOURCE::RAM::AccountAlias",
  "Properties": {
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): does not refresh data source resources when the stack is updated.

  • Always: refreshes data source resources when the stack is updated.

Return values

Fn::GetAtt

AccountAlias: the alias of the account.

Examples

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