閱讀281 返回首頁    go iPhone_iPad_Mac_apple


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__資源列表_資源編排-阿裏雲