#NEWLINE# def _create_mrjob_role_with_attached_policy( conn , role_document , policy_arn ) : #NEWLINE# #INDENT# role_name = ( 'mrjob-' + random_identifier ( ) ) #NEWLINE# conn . create_role ( role_name , json . dumps ( role_document ) ) #NEWLINE# _attach_role_policy ( conn , role_name , policy_arn ) #NEWLINE# return role_name