ALIYUN::RAM::RamAccountAlias is a resource type that creates an alias for an Alibaba Cloud account.
Syntax
{
"Type": "ALIYUN::RAM::RamAccountAlias",
"Properties": {
"AccountAlias": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| AccountAlias | String | Yes | Yes | The account alias. | The alias must be 1 to 50 characters in length. It can contain lowercase letters, digits, and hyphens (-). It cannot start or end with a hyphen (-) or contain consecutive hyphens. |
Return value
Fn::GetAtt
AccountAlias: The account alias.
Examples
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AccountAlias": {
"Type": "String",
"Description": "The alias of the Alibaba Cloud account.\nThe alias must be 1 to 50 characters in length, and can contain lowercase letters,\ndigits, and hyphens (-).\nNote It cannot start or end with a hyphen (-), and cannot contain consecutive hyphens (-).",
"AllowedPattern": "^(?!-)([a-z0-9]+|-(?!-))+(?!-)$",
"MinLength": 1,
"MaxLength": 50
}
},
"Resources": {
"RamAccountAlias": {
"Type": "ALIYUN::RAM::RamAccountAlias",
"Properties": {
"AccountAlias": {
"Ref": "AccountAlias"
}
}
}
},
"Outputs": {
"AccountAlias": {
"Description": "The alias of the Alibaba Cloud account.",
"Value": {
"Fn::GetAtt": [
"RamAccountAlias",
"AccountAlias"
]
}
}
}
}
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AccountAlias:
AllowedPattern: ^(?!-)([a-z0-9]+|-(?!-))+(?!-)$
Description: 'The alias of the Alibaba Cloud account.
The alias must be 1 to 50 characters in length, and can contain lowercase letters,
digits, and hyphens (-).
Note It cannot start or end with a hyphen (-), and cannot contain consecutive
hyphens (-).'
MaxLength: 50
MinLength: 1
Type: String
Resources:
RamAccountAlias:
Properties:
AccountAlias:
Ref: AccountAlias
Type: ALIYUN::RAM::RamAccountAlias
Outputs:
AccountAlias:
Description: The alias of the Alibaba Cloud account.
Value:
Fn::GetAtt:
- RamAccountAlias
- AccountAlias
该文章对您有帮助吗?