Added preliminary CreateComputeEnvironment

This commit is contained in:
Terry Cain 2017-09-26 22:22:59 +01:00
commit 56e4300ad4
No known key found for this signature in database
GPG key ID: 14D90844E4E9B9F3
7 changed files with 302 additions and 16 deletions

View file

@ -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: