Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::BastionHost::UserGroup

Última atualização: Jun 27, 2026

Cria um grupo de usuários em uma instância do Bastion Host.

Sintaxe

{
  "Type": "ALIYUN::BastionHost::UserGroup",
  "Properties": {
    "InstanceId": String,
    "UserGroupName": String,
    "Comment": String
  }
}

Propriedades

Parâmetro

Tipo

Obrigatório

Atualize permitida

Descrição

Restrições

InstanceId

String

Sim

Não

ID da instância do Bastion Host.

Nenhuma

UserGroupName

String

Sim

Não

Nome do grupo de usuários.

Nenhuma

Comment

String

Não

Não

Comentário do grupo de usuários.

Nenhuma

Saídas

Fn::GetAtt

UserGroupId: ID do grupo de usuários.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description: The ID of the Bastion Host instance.
    Required: true
  UserGroupName:
    Type: String
    Description: The name of the user group.
    Required: true
Resources:
  UserGroup:
    Type: ALIYUN::BastionHost::UserGroup
    Properties:
      InstanceId:
        Ref: InstanceId
      UserGroupName:
        Ref: UserGroupName
Outputs:
  UserGroupId:
    Description: The ID of the user group.
    Value:
      Fn::GetAtt:
        - UserGroup
        - UserGroupId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": "The ID of the Bastion Host instance.",
      "Required": true
    },
    "UserGroupName": {
      "Type": "String",
      "Description": "The name of the user group.",
      "Required": true
    }
  },
  "Resources": {
    "UserGroup": {
      "Type": "ALIYUN::BastionHost::UserGroup",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "UserGroupName": {
          "Ref": "UserGroupName"
        }
      }
    }
  },
  "Outputs": {
    "UserGroupId": {
      "Description": "The ID of the user group.",
      "Value": {
        "Fn::GetAtt": [
          "UserGroup",
          "UserGroupId"
        ]
      }
    }
  }
}