Added preliminary CreateComputeEnvironment
This commit is contained in:
parent
f9c8836d54
commit
56e4300ad4
7 changed files with 302 additions and 16 deletions
|
|
@ -534,6 +534,12 @@ class IAMBackend(BaseBackend):
|
|||
return role
|
||||
raise IAMNotFoundException("Role {0} not found".format(role_name))
|
||||
|
||||
def get_role_by_arn(self, arn):
|
||||
for role in self.get_roles():
|
||||
if role.arn == arn:
|
||||
return role
|
||||
raise IAMNotFoundException("Role {0} not found".format(arn))
|
||||
|
||||
def delete_role(self, role_name):
|
||||
for role in self.get_roles():
|
||||
if role.name == role_name:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue