class AWS::IAM::GroupPolicyCollection

A collection that provides access to the policies associated with an IAM group. The interface mimics a hash containing string keys and values that are instances of {Policy}. For example:

# add or replace a policy named "ReadOnly"
policy = AWS::IAM::Policy.new do |p|
  # ...
end
group.policies["ReadOnly"] = policy
group.policies.has_key?("ReadOnly")  # => true

All of the methods for this class are defined in the {PolicyCollection} module.

Attributes

group[R]

@attr_reader [Group] The group.

Public Class Methods

new(group, opts = {}) click to toggle source

@private

# File lib/aws/iam/group_policy_collection.rb, line 39
def initialize group, opts = {}
  @group = group
  super
end