Class: AWS::IAM::GroupPolicyCollection
- Inherits:
-
Object
- Object
- AWS::IAM::GroupPolicyCollection
- Includes:
- PolicyCollection
- Defined in:
- lib/aws/iam/group_policy_collection.rb
Overview
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.
Instance Attribute Summary collapse
- #group ⇒ Object readonly
Method Summary
Methods included from PolicyCollection
#[], #[]=, #clear, #delete, #each, #has_key?, #keys, #to_h, #values, #values_at
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Instance Attribute Details
#group ⇒ Object (readonly)
36 37 38 |
# File 'lib/aws/iam/group_policy_collection.rb', line 36 def group @group end |