Method: Awspec::Helper::Finder::Iam#select_policy_evaluation_results
- Defined in:
- lib/awspec/helper/finder/iam.rb
#select_policy_evaluation_results(policy_arn, action_name, resource_arn = nil, context_entries = nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/awspec/helper/finder/iam.rb', line 30 def select_policy_evaluation_results(policy_arn, action_name, resource_arn = nil, context_entries = nil) = { policy_source_arn: policy_arn, action_names: [action_name] } [:resource_arns] = [resource_arn] if resource_arn [:context_entries] = context_entries if context_entries res = iam_client.simulate_principal_policy() res.evaluation_results end |