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


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

ALIYUN::RAM::ManagedPolicy 类型可用于创建 RAM 管理策略

语法

  1. {
  2. "Type" : "ALIYUN::RAM::ManagedPolicy",
  3. "Properties" : {
  4. "PolicyName" : String,
  5. "Description": String,
  6. "PolicyDocument" : Map,
  7. "Users" : List,
  8. "Groups" : List,
  9. "Roles" : List
  10. }
  11. }

属性

属性名称 类型 必须 描述 约束
PolicyName string 指定策略名称 最长128个字符
Description string 指定策略描述 最长1024个字符
PolicyDocument map 指定策略详细定义
Users list 指定适用此策略的用户
Groups list 指定适用此策略的群组
Roles list 指定适用此策略的角色
  1. "PolicyDocument" : {
  2. "Version": String,
  3. "Statement" : [
  4. {
  5. "Effect" : String,
  6. "Action" : List,
  7. "Resource" : List
  8. }
  9. ]
  10. }
属性名称 类型 必须 描述 约束
Version string 指定策略版本
Statement list 指定策略具体的规则
Action list 指定策略针对的具体操作
Resource list 指定策略针对的具体资源
Effect string 指定允许或拒绝在 Resource 中定义的资源上作 Action 定义的操作

返回值

Fn::GetAtt

  • PolicyName 策略名称

示例

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "RamPolicy": {
  5. "Type": "ALIYUN::RAM::ManagedPolicy",
  6. "Properties": {
  7. "PolicyName": "RosTest",
  8. "Description": "createdByRos",
  9. "PolicyDocument" : {
  10. "Version": "1",
  11. "Statement" : [
  12. {
  13. "Effect" : "Allow",
  14. "Action" : [ "oss:*" ],
  15. "Resource" : ["acs:oss:*:*:*"]
  16. }
  17. ]
  18. },
  19. "Roles": ["RosRole"],
  20. "Groups": ["RosGroup"],
  21. "Users": ["RosUser"]
  22. }
  23. }
  24. },
  25. "Outputs": {
  26. "PolicyName": {
  27. "Value": {
  28. "Fn::GetAtt": ["RamPolicy","PolicyName"]
  29. }
  30. }
  31. }
  32. }

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

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