ALIYUN::RAM::UserToGroupAddition

更新时间:
复制 MD 格式

ALIYUN::RAM::UserToGroupAddition adds the specified Resource Access Management (RAM) users to the specified RAM group.

Syntax

{
  "Type": "ALIYUN::RAM::UserToGroupAddition",
  "Properties": {
    "GroupName": String,
    "Users": List
  }
}

Properties

PropertyTypeRequiredUpdate allowedDescriptionConstraints
GroupName String YesNoThe name of the group.The name must be 1 to 64 characters in length and can contain letters, digits, and hyphens (-).
Users List YesNoEnter the username. None.

Return values

Fn::GetAtt

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      RamUserToGroup:
        Type: ALIYUN::RAM::UserToGroupAddition
        Properties:
          GroupName: hope
          Users:
            - hope
    Outputs:
      GroupName:
        Value:
          Fn::GetAtt:
            - RamUserToGroup
            - GroupName
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
        "Resources": {
          "RamUserToGroup": {
            "Type": "ALIYUN::RAM::UserToGroupAddition",
              "Properties": {
                "GroupName": "hope",
                  "Users": ["hope"]
              }
          }
        },
        "Outputs": {
            "GroupName": {
                "Value": {"Fn::GetAtt": ["RamUserToGroup", "GroupName"]}
            }
        }
    }