All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::BastionHost::UserGroup

Last Updated:Apr 09, 2026

The ALIYUN::BastionHost::UserGroup resource creates a user group.

Syntax

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

Properties

Parameter

Type

Required

Update allowed

Description

Constraints

InstanceId

String

Yes

No

The ID of the Bastion Host instance.

None

UserGroupName

String

Yes

No

The name of the user group.

None

Comment

String

No

No

The comment for the user group.

None

Outputs

Fn::GetAtt

UserGroupId: The ID of the user group.

Examples

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