ALIYUN::RAM::RamAccountAlias adalah tipe resource yang membuat alias untuk Akun Alibaba Cloud.
Syntax
{
"Type": "ALIYUN::RAM::RamAccountAlias",
"Properties": {
"AccountAlias": String
}
}
Properties
| Property name | Type | Required | Update allowed | Description | Constraints |
| AccountAlias | String | Yes | Yes | Alias akun. | Alias harus terdiri dari 1 hingga 50 karakter. Alias dapat berisi huruf kecil, angka, dan tanda hubung (-). Alias tidak boleh diawali atau diakhiri dengan tanda hubung (-) dan tidak boleh mengandung tanda hubung berurutan. |
Return value
Fn::GetAtt
AccountAlias: Alias akun.
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