class AWS::IAM::UserPolicyCollection
{PolicyCollection} module.
All of the methods for this class are defined in the
user.policies.has_key?(“ReadOnly”) # => true<br>user.policies = policy
end
# …
policy = AWS::IAM::Policy.new do |p|
# add or replace a policy named “ReadOnly”
example:
string keys and values that are instances of {Policy}. For
with an IAM user. The interface mimics a hash containing
A collection that provides access to the policies associated
def initialize user, options = {}
-
user
(User
) -- The user that owns this collection.
def initialize user, options = {} @user = user super end