DATASOURCE::RAM::AccountAlias类型用于查看云账号别名。
Fn::GetAtt
AccountAlias:账号别名。
YAML格式
YAML
ROSTemplateFormatVersion: '2015-09-01' Resources: AccountAlias: Type: DATASOURCE::RAM::AccountAlias Properties: {} Outputs: AccountAlias: Description: Account alias. Value: Fn::GetAtt: - AccountAlias - AccountAlias
JSON格式
JSON
{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "AccountAlias": { "Type": "DATASOURCE::RAM::AccountAlias", "Properties": {} } }, "Outputs": { "AccountAlias": { "Description": "Account alias.", "Value": { "Fn::GetAtt": [ "AccountAlias", "AccountAlias" ] } } } }