Sha256: bd8daa854648c5b87b4e0cd7af5f8c52a2aeea626c650485cbc216455b4534e8
Contents?: true
Size: 408 Bytes
Versions: 39
Compression:
Stored size: 408 Bytes
Contents
module Awspec::Type class IamUser < Base def initialize(id) super @resource = find_iam_user(id) @id = @resource[:user_id] if @resource end def has_iam_policy?(policy_id) policies = select_iam_policy_by_user_name(@resource[:user_name]) policies.find do |policy| policy.policy_arn == policy_id || policy.policy_name == policy_id end end end end
Version data entries
39 entries across 39 versions & 1 rubygems