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 |
Property | Type | Required | Editable | Description | Constraint |
RefreshOptions | String | No | Yes | The refresh policy for data source resources when the stack is updated. | Valid values:
|
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"
]
}
}
}
}