阅读281 返回首页    go 手机大全


ALIYUN::RAM::Group__资源列表_资源编排-阿里云

ALIYUN::RAM::Group 类型可用于创建 RAM 用户群组

语法

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

属性

属性名称 类型 必须 描述 约束
GroupName string 指定群组名 长度为1-64个字符,允许英文字母、数字,或”-“
Comments string 指定群组备注 备注最长128个字符
Policies list 指定群组策略
  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. ]
属性名称 类型 必须 描述 约束
PolicyName string 指定策略名称 最长128个汉字或字符
PolicyDocument map 指定策略详细描述
Version string 指定策略版本
Statement list 指定策略具体的规则
Action list 指定策略针对的具体操作
Resource list 指定策略针对的具体资源
Effect string 指定允许或拒绝在 Resource 中定义的资源上作 Action 定义的操作

返回值

Fn::GetAtt

  • GroupName 群组名称

示例

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

最后更新:2016-12-16 14:18:24

  上一篇:go ALIYUN::RAM::AccessKey__资源列表_资源编排-阿里云
  下一篇:go ALIYUN::RAM::ManagedPolicy__资源列表_资源编排-阿里云