Associa contas de host a uma tarefa de senha no Bastionhost.
Sintaxe
{
"Type": "ALIYUN::BastionHost::PasswordTaskHostAccountAttachment",
"Properties": {
"HostAccountIds": List,
"InstanceId": String,
"TaskId": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
HostAccountIds |
List |
Sim |
Não |
IDs das contas de host para associar à tarefa de senha. |
Nenhuma |
|
InstanceId |
String |
Sim |
Não |
ID da instância do Bastionhost. |
Nenhuma |
|
TaskId |
String |
Sim |
Não |
ID da tarefa de senha. |
Nenhuma |
Valores de retorno
Fn::GetAtt
Este recurso não tem valores de retorno.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
TaskId:
Type: String
Description:
en: The ID of the password task.
Required: true
InstanceId:
Type: String
Description:
en: The ID of the bastion host instance.
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.
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."
},
"Required": true
},
"InstanceId": {
"Type": "String",
"Description": {
"en": "The ID of the bastion host instance."
},
"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."
},
"Required": true
}
},
"Resources": {
"PasswordTaskHostAccountAttachment": {
"Type": "ALIYUN::BastionHost::PasswordTaskHostAccountAttachment",
"Properties": {
"TaskId": {
"Ref": "TaskId"
},
"InstanceId": {
"Ref": "InstanceId"
},
"HostAccountIds": {
"Ref": "HostAccountIds"
}
}
}
}
}