ALIYUN::BastionHost::PasswordTaskHostAccountAttachment类型用于将密码任务与主机账户绑定。
语法
{
"Type": "ALIYUN::BastionHost::PasswordTaskHostAccountAttachment",
"Properties": {
"HostAccountIds": List,
"InstanceId": String,
"TaskId": String
}
}
属性
|
属性名称 |
类型 |
必须 |
允许更新 |
描述 |
约束 |
|
HostAccountIds |
List |
是 |
否 |
要附加到密码任务的主机账户ID列表。 |
无 |
|
InstanceId |
String |
是 |
否 |
堡垒主机实例的ID。 |
无 |
|
TaskId |
String |
是 |
否 |
密码任务的ID。 |
无 |
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TaskId:
Type: String
Description:
en: The ID of the password task.
zh: 密码任务的ID。
Required: true
InstanceId:
Type: String
Description:
en: The ID of the bastion host instance.
zh: 堡垒主机实例的ID。
Required: true
HostAccountIds:
AssociationPropertyMetadata:
Parameter:
Type: String
Required: false
AssociationProperty: List[Parameter]
Type: Json
Description:
en: The IDs of the host accounts to be attached to the password task.
zh: 要附加到密码任务的主机账户ID列表。
Required: true
Resources:
PasswordTaskHostAccountAttachment:
Type: ALIYUN::BastionHost::PasswordTaskHostAccountAttachment
Properties:
TaskId:
Ref: TaskId
InstanceId:
Ref: InstanceId
HostAccountIds:
Ref: HostAccountIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"TaskId": {
"Type": "String",
"Description": {
"en": "The ID of the password task.",
"zh": "密码任务的ID。"
},
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the bastion host instance.",
"zh": "堡垒主机实例的ID。"
},
"Required": true
},
"HostAccountIds": {
"AssociationPropertyMetadata": {
"Parameter": {
"Type": "String",
"Required": false
}
},
"AssociationProperty": "List[Parameter]",
"Type": "Json",
"Description": {
"en": "The IDs of the host accounts to be attached to the password task.",
"zh": "要附加到密码任务的主机账户ID列表。"
},
"Required": true
}
},
"Resources": {
"PasswordTaskHostAccountAttachment": {
"Type": "ALIYUN::BastionHost::PasswordTaskHostAccountAttachment",
"Properties": {
"TaskId": {
"Ref": "TaskId"
},
"InstanceId": {
"Ref": "InstanceId"
},
"HostAccountIds": {
"Ref": "HostAccountIds"
}
}
}
}
}
该文章对您有帮助吗?