ALIYUN::ROCKETMQ5::Account类型用于创建实例的访问账号。
语法
{
"Type": "ALIYUN::ROCKETMQ5::Account",
"Properties": {
"InstanceId": String,
"Password": String,
"Username": String,
"AccountStatus": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
InstanceId |
String |
是 |
否 |
实例 ID。 |
无 |
|
Password |
String |
是 |
是 |
账号密码。 |
长度限制:3~64 个字符。 |
|
Username |
String |
是 |
否 |
账号名称。 |
长度限制:3~64 个字符。 字符限制:支持字母 a~z 或 A~Z、数字 0~9、下划线(_)和连字符(-)。 |
|
AccountStatus |
String |
否 |
是 |
账号状态。 |
取值:
|
返回值
Fn::GetAtt
-
AccountStatus:账号状态。
-
Username:账号名称。
-
Password:账号密码。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AccountStatus:
AllowedValues:
- DISABLE
- ENABLE
Description:
en: 'Account Status
DISABLE: DISABLE.
ENABLE: Enabled.'
Required: false
Type: String
InstanceId:
Description:
en: The unifed ID of the instance.
Required: true
Type: String
Password:
Description:
en: 'Account password
Length Limit: 3~64 characters.'
Required: true
Type: String
Username:
Description:
en: 'Account Name
Length Limit: 3~64 characters
Character limit: Supports letters a ~ z or A ~ Z, numbers 0~9, underscore
(_) and dash (-).'
Required: true
Type: String
Resources:
ExtensionResource:
Properties:
AccountStatus:
Ref: AccountStatus
InstanceId:
Ref: InstanceId
Password:
Ref: Password
Username:
Ref: Username
Type: ALIYUN::ROCKETMQ5::Account
Outputs:
AccountStatus:
Description: Account Status.
Value:
Fn::GetAtt:
- ExtensionResource
- AccountStatus
Password:
Description: Account password.
Value:
Fn::GetAtt:
- ExtensionResource
- Password
Username:
Description: Account Name.
Value:
Fn::GetAtt:
- ExtensionResource
- Username
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AccountStatus": {
"Type": "String",
"Description": {
"en": "Account Status\nDISABLE: DISABLE.\nENABLE: Enabled."
},
"AllowedValues": [
"DISABLE",
"ENABLE"
],
"Required": false
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The unifed ID of the instance."
},
"Required": true
},
"Username": {
"Type": "String",
"Description": {
"en": "Account Name\nLength Limit: 3~64 characters\nCharacter limit: Supports letters a ~ z or A ~ Z, numbers 0~9, underscore (_) and dash (-)."
},
"Required": true
},
"Password": {
"Type": "String",
"Description": {
"en": "Account password\nLength Limit: 3~64 characters."
},
"Required": true
}
},
"Resources": {
"ExtensionResource": {
"Type": "ALIYUN::ROCKETMQ5::Account",
"Properties": {
"AccountStatus": {
"Ref": "AccountStatus"
},
"InstanceId": {
"Ref": "InstanceId"
},
"Username": {
"Ref": "Username"
},
"Password": {
"Ref": "Password"
}
}
}
},
"Outputs": {
"AccountStatus": {
"Description": "Account Status.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"AccountStatus"
]
}
},
"Username": {
"Description": "Account Name.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Username"
]
}
},
"Password": {
"Description": "Account password.",
"Value": {
"Fn::GetAtt": [
"ExtensionResource",
"Password"
]
}
}
}
}
该文章对您有帮助吗?