ALIYUN::BastionHost::PasswordTaskHostAccountAttachment

更新时间:
复制为 MD 格式

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"
        }
      }
    }
  }
}