

def _get_role_policy(self, arn):
    'Method to get the Policy for a particular ARN\n        This is used to display the policy contents to the user\n        '
    pol_det = self._iam_client.get_policy(PolicyArn=arn)
    policy_version_details = pol_det._iam_client.get_policy_version(PolicyArn=arn, VersionId=pol_det['Policy']['DefaultVersionId'])
    return policy_version_details['PolicyVersion']['Document']

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/datapipeline/createdefaultroles.py CreateDefaultRoles._get_role_policy/VarMisuse@29/90 `self`->`pol_det`