Exemple #1
0
 def delete_service_linked_role(self):
     role_name = self._get_param('RoleName')
     moto_iam_backend.delete_role(role_name)
     result = {
         'DeleteServiceLinkedRoleResponse': {
             '@xmlns': XMLNS_IAM,
             'DeleteServiceLinkedRoleResult': {'DeletionTaskId': short_uid()}
         }
     }
     return xmltodict.unparse(result)
Exemple #2
0
 def delete_service_linked_role(self):
     role_name = self._get_param("RoleName")
     moto_iam_backend.delete_role(role_name)
     result = {
         "DeleteServiceLinkedRoleResponse": {
             "@xmlns": XMLNS_IAM,
             "DeleteServiceLinkedRoleResult": {"DeletionTaskId": short_uid()},
         }
     }
     return xmltodict.unparse(result)
Exemple #3
0
 def delete_service_linked_role(
         self, context: RequestContext,
         role_name: roleNameType) -> DeleteServiceLinkedRoleResponse:
     # TODO: test
     moto_iam_backend.delete_role(role_name)
     return DeleteServiceLinkedRoleResponse(DeletionTaskId=short_uid())