Skip to content

Commit

Permalink
Resource definitions for managed policies.
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverJ committed Mar 10, 2015
1 parent b270599 commit e57a125
Showing 1 changed file with 277 additions and 0 deletions.
277 changes: 277 additions & 0 deletions boto3/data/resources/iam-2010-05-08.resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@
"path": "Certificate"
}
},
"CreatePolicy": {
"request": { "operation": "CreatePolicy" },
"resource": {
"type": "Policy",
"identifiers": [
{ "target": "Arn", "source": "response", "path": "Policy.Arn" }
]
}
},
"CreateUser": {
"request": { "operation": "CreateUser" },
"resource": {
Expand Down Expand Up @@ -128,6 +137,14 @@
]
}
},
"Policy": {
"resource": {
"type": "Policy",
"identifiers": [
{ "target": "PolicyArn", "source": "input" }
]
}
},
"Role": {
"resource": {
"type": "Role",
Expand Down Expand Up @@ -180,6 +197,16 @@
"path": "Groups[]"
}
},
"Policies": {
"request": { "operation": "ListPolicies" },
"resource": {
"type": "Policy",
"identifiers": [
{ "target": "Arn", "source": "response", "path": "Policies[].Arn" }
],
"path": "Policies[]"
}
},
"InstanceProfiles": {
"request": { "operation": "ListInstanceProfiles" },
"resource": {
Expand Down Expand Up @@ -455,6 +482,14 @@
]
}
},
"AttachPolicy": {
"request": {
"operation": "AttachGroupPolicy",
"params": [
{ "target": "GroupName", "source": "identifier", "name": "Name" }
]
}
},
"Create": {
"request": {
"operation": "CreateGroup",
Expand Down Expand Up @@ -493,6 +528,14 @@
]
}
},
"DetachPolicy": {
"request": {
"operation": "DetachGroupPolicy",
"params": [
{ "target": "GroupName", "source": "identifier", "name": "Name" }
]
}
},
"RemoveUser": {
"request": {
"operation": "RemoveUserFromGroup",
Expand Down Expand Up @@ -528,6 +571,20 @@
}
},
"hasMany": {
"AttachedPolicies": {
"request": {
"operation": "ListAttachedGroupPolicies",
"params": [
{ "target": "GroupName", "source": "identifier", "name": "Name" }
]
},
"resource": {
"type": "Policy",
"identifiers": [
{ "target": "Arn", "source": "response", "path": "AttachedPolicies[].PolicyArn" }
]
}
},
"Policies": {
"request": {
"operation": "ListGroupPolicies",
Expand Down Expand Up @@ -781,6 +838,166 @@
}
}
},
"Policy": {
"identifiers": [
{ "name": "Arn",
"memberName": "PolicyArn" }
],
"shape": "Policy",
"load": {
"request": {
"operation": "GetPolicy",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" }
]
},
"path": "Policy"
},
"actions": {
"Create": {
"request": {
"operation": "CreatePolicy"
}
},
"CreateVersion": {
"request": {
"operation": "CreatePolicyVersion",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" }
]
},
"resource": {
"type": "PolicyVersion",
"identifiers": [
{ "target": "Arn", "source": "identifier", "name": "Arn" },
{ "target": "VersionId", "source": "response", "path": "PolicyVersion.VersionId" }
]
}
},
"Delete": {
"request": {
"operation": "DeletePolicy",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" }
]
}
}
},
"has": {
"DefaultVersion": {
"resource": {
"type": "PolicyVersion",
"identifiers": [
{ "target": "Arn", "source": "identifier", "name": "Arn" },
{ "target": "VersionId", "source": "data", "name": "DefaultVersionId", "path": "DefaultVersionId" }
]
}
}
},
"hasMany": {
"Versions": {
"request": {
"operation": "ListPolicyVersions",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" }
]
},
"resource": {
"type": "PolicyVersion",
"identifiers": [
{ "target": "Arn", "source": "identifier", "name": "Arn" },
{ "target": "VersionId", "source": "response", "path": "Versions[].VersionId" }
],
"path": "Versions[]"
}
},
"AttachedGroups": {
"request": {
"operation": "ListEntitiesForPolicy",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" },
{ "target": "EntityFilter", "source": "string", "value": "Group" }
]
},
"resource": {
"type": "Group",
"identifiers": [
{ "target": "Name", "source": "response", "path": "PolicyGroups[].GroupName" }
]
},
"path": "PolicyGroups[]"
},
"AttachedRoles": {
"request": {
"operation": "ListEntitiesForPolicy",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" },
{ "target": "EntityFilter", "source": "string", "value": "Role" }
]
},
"resource": {
"type": "Role",
"identifiers": [
{ "target": "Name", "source": "response", "path": "PolicyRoles[].RoleName" }
]
},
"path": "PolicyRoles[]"
},
"AttachedUsers": {
"request": {
"operation": "ListEntitiesForPolicy",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" },
{ "target": "EntityFilter", "source": "string", "value": "User" }
]
},
"resource": {
"type": "User",
"identifiers": [
{ "target": "Name", "source": "response", "path": "PolicyUsers[].UserName" }
]
},
"path": "PolicyUsers[]"
}
}
},
"PolicyVersion": {
"identifiers": [
{ "name": "Arn" },
{ "name": "VersionId" }
],
"shape": "PolicyVersion",
"load": {
"request": {
"operation": "GetPolicyVersion",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" },
{ "target": "VersionId", "source": "identifier", "name": "VersionId" }
]
},
"path": "PolicyVersion"
},
"actions": {
"Delete": {
"request": {
"operation": "DeletePolicyVersion",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" },
{ "target": "VersionId", "source": "identifier", "name": "VersionId" }
]
}
},
"SetAsDefault": {
"request": {
"operation": "SetDefaultPolicyVersion",
"params": [
{ "target": "PolicyArn", "source": "identifier", "name": "Arn" },
{ "target": "VersionId", "source": "identifier", "name": "VersionId" }
]
}
}
}
},
"Role": {
"identifiers": [
{
Expand All @@ -799,13 +1016,29 @@
"path": "Role"
},
"actions": {
"AttachPolicy": {
"request": {
"operation": "AttachRolePolicy",
"params": [
{ "target": "RoleName", "source": "identifier", "name": "Name" }
]
}
},
"Delete": {
"request": {
"operation": "DeleteRole",
"params": [
{ "target": "RoleName", "source": "identifier", "name": "Name" }
]
}
},
"DetachPolicy": {
"request": {
"operation": "DetachRolePolicy",
"params": [
{ "target": "RoleName", "source": "identifier", "name": "Name" }
]
}
}
},
"has": {
Expand All @@ -828,6 +1061,20 @@
}
},
"hasMany": {
"AttachedPolicies": {
"request": {
"operation": "ListAttachedRolePolicies",
"params": [
{ "target": "RoleName", "source": "identifier", "name": "Name" }
]
},
"resource": {
"type": "Policy",
"identifiers": [
{ "target": "Arn", "source": "response", "path": "AttachedPolicies[].PolicyArn" }
]
}
},
"InstanceProfiles": {
"request": {
"operation": "ListInstanceProfilesForRole",
Expand Down Expand Up @@ -1065,6 +1312,14 @@
]
}
},
"AttachPolicy": {
"request": {
"operation": "AttachUserPolicy",
"params": [
{ "target": "UserName", "source": "identifier", "name": "Name" }
]
}
},
"Create": {
"request": {
"operation": "CreateUser",
Expand Down Expand Up @@ -1135,6 +1390,14 @@
]
}
},
"DetachPolicy": {
"request": {
"operation": "DetachUserPolicy",
"params": [
{ "target": "UserName", "source": "identifier", "name": "Name" }
]
}
},
"EnableMfa": {
"request": {
"operation": "EnableMFADevice",
Expand Down Expand Up @@ -1220,6 +1483,20 @@
}
},
"hasMany": {
"AttachedPolicies": {
"request": {
"operation": "ListAttachedUserPolicies",
"params": [
{ "target": "UserName", "source": "identifier", "name": "Name" }
]
},
"resource": {
"type": "Policy",
"identifiers": [
{ "target": "Arn", "source": "response", "path": "AttachedPolicies[].PolicyArn" }
]
}
},
"AccessKeys": {
"request": {
"operation": "ListAccessKeys",
Expand Down

0 comments on commit e57a125

Please sign in to comment.