edit-icon download-icon

ALIYUN::RAM::Group

Last Updated: Jun 13, 2018

The ALIYUN::RAM::Group type is used to create a RAM user group.

Syntax

  1. {
  2. "Type" : "ALIYUN::RAM::Group",
  3. "Properties" : {
  4. "GroupName" : String,
  5. "Comments" : String,
  6. "Policies" : List
  7. }
  8. }

Attributes

Attribute name Type Required Description Constraint
GroupName string Yes Group name The group name is a string of 1 to 64 characters including English letters, digits, and hyphens(-)
Comments string No Group remarks The remarks can contain a maximum of 128 characters
Policies list No Group policy N/A

Policies syntax

  1. "Policies" : [
  2. {
  3. "PolicyName" : String,
  4. "PolicyDocument" : {
  5. "Version": String,
  6. "Statement" : [
  7. {
  8. "Effect" : String,
  9. "Action" : List,
  10. "Resource" : List
  11. }
  12. ]
  13. }
  14. }
  15. ]

Policies attributes

Attribute name Type Required Description Constraint
PolicyName string Yes Policy name The policy name can contain a maximum of 128 characters
PolicyDocument map No Policy details N/A
Version string No Policy version N/A
Statement list No Policy rules N/A
Action list No Policy-specific operation N/A
Resource list No Resource to which the policy is applied N/A
Effect string No Whether the operation defined by the Action parameter can be performed on the resource defined by the Resource parameter N/A

Return values

Fn::GetAtt

GroupName: group name.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "RamGroup": {
  5. "Type": "ALIYUN::RAM::Group",
  6. "Properties": {
  7. "GroupName": "RosTestGroup",
  8. "Comments": "createdByRos",
  9. "Policies" : [
  10. {
  11. "PolicyName" : "RosPolicy",
  12. "PolicyDocument" : {
  13. "Version": "1",
  14. "Statement" : [
  15. {
  16. "Effect" : "Allow",
  17. "Action" : [ "oss:*" ],
  18. "Resource" : ["acs:oss:*:*:*"]
  19. }
  20. ]
  21. }
  22. ]
  23. }
  24. },
  25. "Outputs": {
  26. "GroupName": {
  27. "Value" : {"Fn::GetAtt": ["RamGroup", "GroupName"]}
  28. }
  29. }
  30. }
Thank you! We've received your feedback.